1 2004-02-20 Richard Henderson <rth@redhat.com>
3 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
5 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
9 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
11 * Make-lang.in: Replace $(docdir) with doc.
12 (treelang.info, treelang.srcinfo): New rules.
13 (treelang.man, treelang.man): Dummy entries.
15 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
17 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
18 (treelang/parse.o, treelang/lex.o): Look for sources in build
19 directory. Use implicit rule.
20 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
22 (treelang.srcextra): Copy above back to source directory if requested.
24 2004-01-07 Zack Weinberg <zack@codesourcery.com>
26 * parse.y (yyerror): Mark the definition static.
28 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
30 * lex.l: Add \t as a whitespace character.
31 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
33 * treelang.texi (What is GNU Treelang?): Fix a typo.
34 (Lexical Syntax): Create an itemize list of keywords. Add commas to
35 paragraph defining names.
37 2003-11-26 Jason Merrill <jason@redhat.com>
39 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
40 directory and TAGS files that include them for each front end.
42 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
46 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
48 * Make-lang.in (treelang.extraclean): Delete.
50 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
52 * Make-lang.in: Remove obsolete comment.
54 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
56 * Make-lang.in (dvi): Move targets to $(docobjdir).
57 (treelang.dvi): Simplify rule and adjust target.
58 (treelang.info): Simplify rule.
59 (parse.o): Correct dependencies.
60 (TREE_EXE): Delete doubled suffix append.
62 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
64 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
67 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
69 * Make-lang.in (parse.o): Honor $(parsedir).
72 (parse.c, parse.h): Likewise.
73 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
76 2003-10-20 Mark Mitchell <mark@codesourcery.com>
78 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
81 * Make-lang.in (info): Use docobjdir.
82 ($(srcdir)/treelang/treelang.info): Replace with ...
83 ($(docobjdir)/treelang/treelang.info): ... this.
84 (install-info): New target.
86 2003-10-12 Andreas Jaeger <aj@suse.de>
88 * Make-lang.in (treelang.install-info): Remove reference to
92 2003-10-06 Mark Mitchell <mark@codesourcery.com>
94 * Make-lang.in (treelang.info): Replace with ...
96 * Make-lang.in (treelang.dvi): Replace with ...
99 2003-09-21 Richard Henderson <rth@redhat.com>
101 * treetree.c: Revert.
103 2003-09-21 Richard Henderson <rth@redhat.com>
105 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
108 2003-07-28 Andreas Jaeger <aj@suse.de>
110 * treetree.c: Convert remaining K&R prototypes to ISO C90.
113 * tree-convert.c: Likewise.
115 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
117 * treetree.c: Remove unnecessary casts.
119 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
121 * lang-options.h: Remove.
122 * lang.opt: Document some options. Remove --help.
123 * tree1.c (treelang_handle_option): Remove OPT__help case.
125 2003-07-12 Andreas Jaeger <aj@suse.de>
127 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
129 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
131 * Make-lang.in: Update.
132 * tree1.c: Don't include c-common.h.
133 (c_language): Remove.
135 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
136 Steven Bosscher <steven@gcc.gnu.org>
138 * tree-convert.c: New file.
139 * treetree.c: Don't include c-tree.h. Include target.h.
140 (struct lang_identifier, union lang_tree_node, struct lang_type,
141 struct lang_function): New, minimal language-specific datastructs.
142 (tree_lang_truthvalue_conversion, tree_mark_addressable,
143 tree_lang_type_for_size, tree_lang_type_for_mode,
144 tree_lang_unsigned_type, tree_lang_signed_type,
145 tree_lang_signed_or_unsigned): New functions.
146 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
147 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
148 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
149 tree_push_atomic_type_decl): New functions.
150 (struct resword, struct reswords): Remove.
151 * Make-lang.in: Update. Don't depend on C front end objects.
152 * config-lang.in: Likewise.
154 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
156 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
157 tree_code_if_end, tree_code_create_function_initial,
158 tree_code_create_function_wrapup, tree_code_generate_return,
159 tree_code_output_expression_statement): Adjust emit_line_note
162 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
164 * Make-lang.in: Replace PWD with PWD_COMMAND.
166 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
168 * tree1.c (treelang_init_options): Update prototype.
169 * treelang.h (treelang_init_options): Update prototype.
171 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
173 * Make-lang.in: Update.
174 * tree1.c: Include c-common.h. Define c_language.
176 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
178 * treetree.c (tree_code_create_function_wrapup): Adjust
179 expand_function_end call.
181 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
183 * treetree.c (build_stmt): Remove VPARAMS.
184 (pedwarn_c99): Likewise.
186 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
188 * lang.opt: Declare Treelang. Update.
189 * tree1.c (treelang_init_options): Update.
191 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
193 * treetree.c (tree_code_create_function_initial): Adjust
194 init_function_start call.
196 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
198 * Make-lang.in: Update to use options.c and options.h.
199 * tree1.c: Include options.h not t-options.h.
200 (treelang_init_options): New.
201 (treelang_handle_option): Abort on unrecognized switch.
202 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
203 * treetree.h (treelang_init_options): New.
205 2003-06-12 Andreas Jaeger <aj@suse.de>
207 * treetree.c: Remove cl_options-count and cl_options.
209 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
211 * Make-lang.in: Update for option handling.
213 * tree1.c: Include opts.h and t-options.h.
214 (treelang_decode_option): Remove.
215 (treelang_handle_option): New.
216 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
217 (LANG_HOOKS_HANDLE_OPTION): Override.
218 * treetree.h (treelang_decode_option): Remove.
219 (treelang_handle_option): New.
221 2003-06-08 Andreas Jaeger <aj@suse.de>
223 * Make-lang.in: Update.
224 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
226 2003-06-08 Tim Josling <tej@melbpc.org.au>
228 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
230 2003-06-05 Jan Hubicka <jh@suse.cz>
232 * Make-lang.in: Add support for stageprofile and stagefeedback
234 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
236 * treetree.c (reswords): Remove __bounded__, __unbounded__.
238 2003-05-09 Tim Josling <tej@melbpc.org.au>
240 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
241 to link (needed by some front ends such as PPC).
243 * treetree.c (tree_code_create_function_initial): Fix long line.
244 Initialize tree_code_int_size and tree_code_char_size to
246 (tree_code_get_numeric_type): Add check that size1 parameter is
249 * parse.y: Fix extra long lines in prototypes.
251 * treelang.h: Fix extra long lines in macro definitions.
253 2003-05-07 Zack Weinberg <zack@codesourcery.com>
255 * Make-lang.in: Set -Wno-error for treelang/lex.o.
257 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
259 * Make-lang.in (treelang/tree1.o): Depends on input.h
260 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
261 * treelang.h: #include input.h.
263 (struct token_part): Remove lineno, add location.
264 * lex.l (next_tree_lineno): Remove.
265 (update_lineno_charno): Adjust.
266 (dump_lex_value): Adjust.
267 * parse.y (variable_def, function_prototype, function, statement,
268 if_statement, return, function_invocation, variable_ref): Adjust.
269 (print_token, yyerror, ensure_not_void): Adjust.
270 tree1.c (in_fname): Remove.
271 (treelang_init): Setup input_location.
272 (lookup_tree_name): Adjust.
273 (insert_tree_name): Adjust.
274 * treetree.c (tree_code_if_start): Replace filename and lineno
275 parms with loc. Adjust.
276 (tree_code_if_else, tree_code_if_end,
277 tree_code_create_function_prototype,
278 tree_code_create_function_initial,
279 tree_code_create_function_wrapup, tree_code_create_variable,
280 tree_code_output_expression_statement): Likewise.
281 * treetree.h (tree_code_if_start): Replace filename and lineno
283 (tree_code_if_else, tree_code_if_end,
284 tree_code_create_function_prototype,
285 tree_code_create_function_initial,
286 tree_code_create_function_wrapup, tree_code_create_variable,
287 tree_code_output_expression_statement): Likewise.
289 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
291 * tree1.c (treelang_init): Rename lineno to input_line.
293 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
295 * parse.y (make_plus_expression): New function.
296 (expression production): Use make_plus_expression for PLUS,
297 MINUS, ASSIGN and EQUALS.
298 * tree1.c (treelang_decode_option): Don't fall through to
299 options that start with a different character when an option
302 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
304 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
305 * treetree.c: Do not #include parse.h.
307 2003-03-21 Andreas Jaeger <aj@suse.de>
309 * treetree.c (cpp_create_reader): Follow prototype change in
312 2003-03-17 Andreas Jaeger <aj@suse.de>
314 * Make-lang.in (treelang.tags): Remove duplicate entry.
316 2003-03-15 Andreas Jaeger <aj@suse.de>
318 * treetree.c (cpp_handle_option): Remove.
320 2003-03-13 Andreas Jaeger <aj@suse.de>
322 * Make-lang.in (tree1$(exeext)): Fix previous patch.
324 2003-03-12 Andreas Jaeger <aj@suse.de>
326 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
328 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
330 * tree1.c (in_fname): Fix type.
331 (treelang_init): Update prototype and use of in_fname.
332 * treelang.h (in_fname): Fix type.
333 * treetree.c (tree_code_if_start, tree_code_if_else,
334 tree_code_if_end, tree_code_create_function_prototype,
335 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
336 tree_code_create_variable, tree_code_output_expression_statement)
337 : Fix prototypes and use of filenames.
338 * treetree.h: Similarly.
340 2003-03-05 Andreas Jaeger <aj@suse.de>
342 * treetree.c (init_c_lex): Follow change to c-common.h.
344 2003-03-04 Tom Tromey <tromey@redhat.com>
346 * Make-lang.in (treelang.tags): New target.
348 2003-03-01 Tim Josling <tej@melbpc.org.au>
350 Name clashes with rtl.h fixed.
352 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
357 2003-02-24 Tim Josling <tej@melbpc.org.au>
359 * parse.y (my_yylex): New - ensure lexer time is charged to
361 (yylex): redefine as invocation of my_yylex which then calls
362 flex-generated yylex.
363 (timevar.h): include.
365 2003-02-23 Tim Josling <tej@melbpc.org.au>
367 Fix garbage collection, add more error checking, force GC always.
369 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
370 (treelang/treetree.o): Depend on treelang/parse.h
372 * lex.l: include "treetree.h"
374 * lex.l (update_yylval): Allocate string using get_string so GC
377 * parse.y (function_prototype): Set category correctly so GC works.
378 (function): Set category in search so checking works.
379 (function_invocation): Ditto.
380 (variable_ref): Ditto.
382 * tree1.c (lookup_tree_name): Call sanity_check for passed
383 production and associated token and for symbol table entries.
385 * tree1.c (sanity_check): New, basic check that struct is valid.
387 * treelang.h: Prototype for sanity_check.
389 2003-01-27 Tim Josling <tej@melbpc.org.au>
391 * treetree.c (treelang_init_decl_processing): Change memory
392 allocation to use GC.
394 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
396 * treelang.texi: Update to GFDL 1.2.
398 2003-01-26 Michael Matz <matz@suse.de>
400 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
402 2003-01-14 Andreas Jaeger <aj@suse.de>
404 * Make-lang.in (treelang.install-info): Depend only on info files
405 if BUILD_INFO is set. Fix install rules.
408 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
410 * Make-lang.in (treelang.install.common.done,
411 treelang.install-info, treelang.uninstall): Prepend
412 $(DESTDIR) to destination paths in all (un)installation
415 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
417 * treelang.texi: Use @copying.
419 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
421 * treelang.texi: Include gcc-common.texi.
422 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
423 Depend on gcc-common.texi. Add other missing dependencies.
424 (treelang.dvi): Use texi2dvi.
426 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
428 * treelang.texi: Use @ifnottex instead of @ifinfo.
430 2002-11-30 Zack Weinberg <zack@codesourcery.com>
432 * lex.l: Move "%{" below copyright notice; get rid of "/*"
433 embedded in comment. Do not #undef IN_GCC; do not include
434 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
435 Do include coretypes.h and tm.h.
436 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
437 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
438 ansidecl.h. Do include coretypes.h and tm.h.
439 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
440 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
441 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
442 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
443 or ansidecl.h. Do include coretypes.h and tm.h.
444 * Make-lang.in: Update dependencies.
446 2002-09-09 Tim Josling <tej@melbpc.org.au>
448 * treetree.c (objc_is_id): New.
450 2002-08-16 Tim Josling <tej@melbpc.org.au>
452 Remove variables and functions now defined elsewhere.
454 * treetree.c (maybe_objc_comptypes): Remove.
455 (warn_format, warn_format_y2k, warn_format_extra_args,
456 warn_format_nonliteral, warn_format_security,
457 warn_format_zero_length): Remove.
458 (maybe_building_objc_message_expr): Remove.
459 (cpp_post_options): Remove.
460 (maybe_objc_check_decl): Remove.
461 (integer_types): Remove.
464 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
466 * treelang.c: Remove cpp_post_options.
468 2002-08-13 Tim Josling <tej@melbpc.org.au>
470 * parse.y: Provide dummy definition of rtx for use by config.h.
471 * Make-lang.in (treetree.o): Remove dependency on non-existent
472 gt-treelang-treelang.h.
473 (gt-treelang-treelang.h): Remove.
475 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
477 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
479 2002-07-11 Tim Josling <tej@melbpc.org.au>
481 Remove front end hard coding from gengtype.c.
483 * config-lang.in (gtfiles): Add files needed for this front
486 2002-07-09 Tim Josling <tej@melbpc.org.au>
488 Support new attributes regime (Fix for PR c++/7099).
490 * treetree.c (handle_format_attribute): Return NULL_TREE instead
492 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
493 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
494 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
496 2002-06-21 Andreas Jaeger <aj@suse.de>
498 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
499 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
501 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
503 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
506 2002-06-10 Tim Josling <tej@melbpc.org.au>
510 * Make-lang.in (check-treelang). Add. Remove direct dependency of
511 'check' on 'treelang.check' as redundant.
513 PCH Garbage collection regime (gengtypes.c) phase 1.
515 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
516 gt-treelang-treelang.h gtype-treelang.h.
517 (gt-treelang-tree1.h) Depend on s-gtype.
518 (gt-treelang-treelang.h) Depend on s-gtype.
519 (gtype-treelang.h) Depend on s-gtype.
521 * config-lang.in (gtfiles): Define.
523 * lex.l (main): Remove '#if 0' dead code.
524 (main): Move undef of IN_GCC so define of tree typedef works.
525 (all): Replace token and production by prod_token_parm_item.
528 (all): Replace token and production by prod_token_parm_item.
530 * tree1.c (main): Remove include of "output.h".
531 (symbol_table): Add GTY details.
532 (symbol_table_ggc): Remove.
533 (treelang_init): Remove root definitions for garbage collection.
534 (mark_production_used): Remove.
535 (mark_token_used): Remove.
536 (main, at end): include generated garage collection routines.
538 * treelang.h (category_enum ): Add parameter_category.
539 (all): Replace token and production and parameters by union
540 prod_token_parm_item containing production_part, token_part,
542 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
543 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
544 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
545 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
549 (tm_p.h): Do not include.
550 (ansidecl.h): Move include after config.h.
551 (treelang.h): Include it.
553 (all): Replace token, production and parameter by prod_token_parm_item.
554 (tree_parameter_list): Move to treelang.h as part of
555 prod_token_parm_item.
556 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
557 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
558 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
559 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
562 2002-05-19 Tim Josling <tej@melbpc.org.au>
564 * treetree.c (warn_format_zero_length): Add.
566 2002-05-14 Tim Josling <tej@melbpc.org.au>
568 * Make-lang.in: Fix build for .info files, add target for manpages.
569 A bug report and a suggested patch came from Magnus Fromreide
570 <magfr@lysator.liu.se>.
572 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
574 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
576 2002-05-11 Tim Josling <tej@melbpc.org.au>
578 * treetree.c: (cpp_define) Add.
579 (cpp_get_callbacks) Add.
581 2002-05-07 Tim Josling <tej@melbpc.org.au>
583 * treetree.c: (cpp_get_options) Add.
585 2002-05-06 Tim Josling <tej@melbpc.org.au>
589 2002-05-05 Tim Josling <tej@melbpc.org.au>
591 * Updated for gcc3.2 experimental. Major changes throughout.
593 2002-03-31 Tim Josling <tej@melbpc.org.au>
595 * Make-lang.in: Changes so build and check work more reliably
597 2001-07-30 Tim Josling <tej@melbpc.org.au>
600 * treelang.texi: updates based on feedback
602 2001-06-11 Tim Josling <tej@melbpc.org.au>
604 * all (all) Revamp code to conform to GCC coding standards, fix
607 2001-05-11 Tim Josling <tej@melbpc.org.au>
609 Create the new language.