1 2004-04-07 Richard Henderson <rth@redhat.com>
3 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
5 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
10 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
12 * treelang.texi: Update link to "G++ and GCC".
14 2004-02-20 Richard Henderson <rth@redhat.com>
16 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
18 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
20 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
22 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
24 * Make-lang.in: Replace $(docdir) with doc.
25 (treelang.info, treelang.srcinfo): New rules.
26 (treelang.man, treelang.man): Dummy entries.
28 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
30 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
31 (treelang/parse.o, treelang/lex.o): Look for sources in build
32 directory. Use implicit rule.
33 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
35 (treelang.srcextra): Copy above back to source directory if requested.
37 2004-01-07 Zack Weinberg <zack@codesourcery.com>
39 * parse.y (yyerror): Mark the definition static.
41 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
43 * lex.l: Add \t as a whitespace character.
44 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
46 * treelang.texi (What is GNU Treelang?): Fix a typo.
47 (Lexical Syntax): Create an itemize list of keywords. Add commas to
48 paragraph defining names.
50 2003-11-26 Jason Merrill <jason@redhat.com>
52 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
53 directory and TAGS files that include them for each front end.
55 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
59 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
61 * Make-lang.in (treelang.extraclean): Delete.
63 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
65 * Make-lang.in: Remove obsolete comment.
67 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
69 * Make-lang.in (dvi): Move targets to $(docobjdir).
70 (treelang.dvi): Simplify rule and adjust target.
71 (treelang.info): Simplify rule.
72 (parse.o): Correct dependencies.
73 (TREE_EXE): Delete doubled suffix append.
75 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
77 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
80 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
82 * Make-lang.in (parse.o): Honor $(parsedir).
85 (parse.c, parse.h): Likewise.
86 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
89 2003-10-20 Mark Mitchell <mark@codesourcery.com>
91 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
94 * Make-lang.in (info): Use docobjdir.
95 ($(srcdir)/treelang/treelang.info): Replace with ...
96 ($(docobjdir)/treelang/treelang.info): ... this.
97 (install-info): New target.
99 2003-10-12 Andreas Jaeger <aj@suse.de>
101 * Make-lang.in (treelang.install-info): Remove reference to
103 (treelang.): Removed.
105 2003-10-06 Mark Mitchell <mark@codesourcery.com>
107 * Make-lang.in (treelang.info): Replace with ...
109 * Make-lang.in (treelang.dvi): Replace with ...
112 2003-09-21 Richard Henderson <rth@redhat.com>
114 * treetree.c: Revert.
116 2003-09-21 Richard Henderson <rth@redhat.com>
118 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
121 2003-07-28 Andreas Jaeger <aj@suse.de>
123 * treetree.c: Convert remaining K&R prototypes to ISO C90.
126 * tree-convert.c: Likewise.
128 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
130 * treetree.c: Remove unnecessary casts.
132 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
134 * lang-options.h: Remove.
135 * lang.opt: Document some options. Remove --help.
136 * tree1.c (treelang_handle_option): Remove OPT__help case.
138 2003-07-12 Andreas Jaeger <aj@suse.de>
140 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
142 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
144 * Make-lang.in: Update.
145 * tree1.c: Don't include c-common.h.
146 (c_language): Remove.
148 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
149 Steven Bosscher <steven@gcc.gnu.org>
151 * tree-convert.c: New file.
152 * treetree.c: Don't include c-tree.h. Include target.h.
153 (struct lang_identifier, union lang_tree_node, struct lang_type,
154 struct lang_function): New, minimal language-specific datastructs.
155 (tree_lang_truthvalue_conversion, tree_mark_addressable,
156 tree_lang_type_for_size, tree_lang_type_for_mode,
157 tree_lang_unsigned_type, tree_lang_signed_type,
158 tree_lang_signed_or_unsigned): New functions.
159 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
160 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
161 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
162 tree_push_atomic_type_decl): New functions.
163 (struct resword, struct reswords): Remove.
164 * Make-lang.in: Update. Don't depend on C front end objects.
165 * config-lang.in: Likewise.
167 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
169 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
170 tree_code_if_end, tree_code_create_function_initial,
171 tree_code_create_function_wrapup, tree_code_generate_return,
172 tree_code_output_expression_statement): Adjust emit_line_note
175 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
177 * Make-lang.in: Replace PWD with PWD_COMMAND.
179 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
181 * tree1.c (treelang_init_options): Update prototype.
182 * treelang.h (treelang_init_options): Update prototype.
184 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
186 * Make-lang.in: Update.
187 * tree1.c: Include c-common.h. Define c_language.
189 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
191 * treetree.c (tree_code_create_function_wrapup): Adjust
192 expand_function_end call.
194 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
196 * treetree.c (build_stmt): Remove VPARAMS.
197 (pedwarn_c99): Likewise.
199 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
201 * lang.opt: Declare Treelang. Update.
202 * tree1.c (treelang_init_options): Update.
204 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
206 * treetree.c (tree_code_create_function_initial): Adjust
207 init_function_start call.
209 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
211 * Make-lang.in: Update to use options.c and options.h.
212 * tree1.c: Include options.h not t-options.h.
213 (treelang_init_options): New.
214 (treelang_handle_option): Abort on unrecognized switch.
215 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
216 * treetree.h (treelang_init_options): New.
218 2003-06-12 Andreas Jaeger <aj@suse.de>
220 * treetree.c: Remove cl_options-count and cl_options.
222 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
224 * Make-lang.in: Update for option handling.
226 * tree1.c: Include opts.h and t-options.h.
227 (treelang_decode_option): Remove.
228 (treelang_handle_option): New.
229 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
230 (LANG_HOOKS_HANDLE_OPTION): Override.
231 * treetree.h (treelang_decode_option): Remove.
232 (treelang_handle_option): New.
234 2003-06-08 Andreas Jaeger <aj@suse.de>
236 * Make-lang.in: Update.
237 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
239 2003-06-08 Tim Josling <tej@melbpc.org.au>
241 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
243 2003-06-05 Jan Hubicka <jh@suse.cz>
245 * Make-lang.in: Add support for stageprofile and stagefeedback
247 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
249 * treetree.c (reswords): Remove __bounded__, __unbounded__.
251 2003-05-09 Tim Josling <tej@melbpc.org.au>
253 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
254 to link (needed by some front ends such as PPC).
256 * treetree.c (tree_code_create_function_initial): Fix long line.
257 Initialize tree_code_int_size and tree_code_char_size to
259 (tree_code_get_numeric_type): Add check that size1 parameter is
262 * parse.y: Fix extra long lines in prototypes.
264 * treelang.h: Fix extra long lines in macro definitions.
266 2003-05-07 Zack Weinberg <zack@codesourcery.com>
268 * Make-lang.in: Set -Wno-error for treelang/lex.o.
270 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
272 * Make-lang.in (treelang/tree1.o): Depends on input.h
273 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
274 * treelang.h: #include input.h.
276 (struct token_part): Remove lineno, add location.
277 * lex.l (next_tree_lineno): Remove.
278 (update_lineno_charno): Adjust.
279 (dump_lex_value): Adjust.
280 * parse.y (variable_def, function_prototype, function, statement,
281 if_statement, return, function_invocation, variable_ref): Adjust.
282 (print_token, yyerror, ensure_not_void): Adjust.
283 tree1.c (in_fname): Remove.
284 (treelang_init): Setup input_location.
285 (lookup_tree_name): Adjust.
286 (insert_tree_name): Adjust.
287 * treetree.c (tree_code_if_start): Replace filename and lineno
288 parms with loc. Adjust.
289 (tree_code_if_else, tree_code_if_end,
290 tree_code_create_function_prototype,
291 tree_code_create_function_initial,
292 tree_code_create_function_wrapup, tree_code_create_variable,
293 tree_code_output_expression_statement): Likewise.
294 * treetree.h (tree_code_if_start): Replace filename and lineno
296 (tree_code_if_else, tree_code_if_end,
297 tree_code_create_function_prototype,
298 tree_code_create_function_initial,
299 tree_code_create_function_wrapup, tree_code_create_variable,
300 tree_code_output_expression_statement): Likewise.
302 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
304 * tree1.c (treelang_init): Rename lineno to input_line.
306 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
308 * parse.y (make_plus_expression): New function.
309 (expression production): Use make_plus_expression for PLUS,
310 MINUS, ASSIGN and EQUALS.
311 * tree1.c (treelang_decode_option): Don't fall through to
312 options that start with a different character when an option
315 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
317 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
318 * treetree.c: Do not #include parse.h.
320 2003-03-21 Andreas Jaeger <aj@suse.de>
322 * treetree.c (cpp_create_reader): Follow prototype change in
325 2003-03-17 Andreas Jaeger <aj@suse.de>
327 * Make-lang.in (treelang.tags): Remove duplicate entry.
329 2003-03-15 Andreas Jaeger <aj@suse.de>
331 * treetree.c (cpp_handle_option): Remove.
333 2003-03-13 Andreas Jaeger <aj@suse.de>
335 * Make-lang.in (tree1$(exeext)): Fix previous patch.
337 2003-03-12 Andreas Jaeger <aj@suse.de>
339 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
341 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
343 * tree1.c (in_fname): Fix type.
344 (treelang_init): Update prototype and use of in_fname.
345 * treelang.h (in_fname): Fix type.
346 * treetree.c (tree_code_if_start, tree_code_if_else,
347 tree_code_if_end, tree_code_create_function_prototype,
348 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
349 tree_code_create_variable, tree_code_output_expression_statement)
350 : Fix prototypes and use of filenames.
351 * treetree.h: Similarly.
353 2003-03-05 Andreas Jaeger <aj@suse.de>
355 * treetree.c (init_c_lex): Follow change to c-common.h.
357 2003-03-04 Tom Tromey <tromey@redhat.com>
359 * Make-lang.in (treelang.tags): New target.
361 2003-03-01 Tim Josling <tej@melbpc.org.au>
363 Name clashes with rtl.h fixed.
365 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
370 2003-02-24 Tim Josling <tej@melbpc.org.au>
372 * parse.y (my_yylex): New - ensure lexer time is charged to
374 (yylex): redefine as invocation of my_yylex which then calls
375 flex-generated yylex.
376 (timevar.h): include.
378 2003-02-23 Tim Josling <tej@melbpc.org.au>
380 Fix garbage collection, add more error checking, force GC always.
382 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
383 (treelang/treetree.o): Depend on treelang/parse.h
385 * lex.l: include "treetree.h"
387 * lex.l (update_yylval): Allocate string using get_string so GC
390 * parse.y (function_prototype): Set category correctly so GC works.
391 (function): Set category in search so checking works.
392 (function_invocation): Ditto.
393 (variable_ref): Ditto.
395 * tree1.c (lookup_tree_name): Call sanity_check for passed
396 production and associated token and for symbol table entries.
398 * tree1.c (sanity_check): New, basic check that struct is valid.
400 * treelang.h: Prototype for sanity_check.
402 2003-01-27 Tim Josling <tej@melbpc.org.au>
404 * treetree.c (treelang_init_decl_processing): Change memory
405 allocation to use GC.
407 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
409 * treelang.texi: Update to GFDL 1.2.
411 2003-01-26 Michael Matz <matz@suse.de>
413 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
415 2003-01-14 Andreas Jaeger <aj@suse.de>
417 * Make-lang.in (treelang.install-info): Depend only on info files
418 if BUILD_INFO is set. Fix install rules.
421 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
423 * Make-lang.in (treelang.install.common.done,
424 treelang.install-info, treelang.uninstall): Prepend
425 $(DESTDIR) to destination paths in all (un)installation
428 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
430 * treelang.texi: Use @copying.
432 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
434 * treelang.texi: Include gcc-common.texi.
435 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
436 Depend on gcc-common.texi. Add other missing dependencies.
437 (treelang.dvi): Use texi2dvi.
439 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
441 * treelang.texi: Use @ifnottex instead of @ifinfo.
443 2002-11-30 Zack Weinberg <zack@codesourcery.com>
445 * lex.l: Move "%{" below copyright notice; get rid of "/*"
446 embedded in comment. Do not #undef IN_GCC; do not include
447 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
448 Do include coretypes.h and tm.h.
449 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
450 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
451 ansidecl.h. Do include coretypes.h and tm.h.
452 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
453 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
454 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
455 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
456 or ansidecl.h. Do include coretypes.h and tm.h.
457 * Make-lang.in: Update dependencies.
459 2002-09-09 Tim Josling <tej@melbpc.org.au>
461 * treetree.c (objc_is_id): New.
463 2002-08-16 Tim Josling <tej@melbpc.org.au>
465 Remove variables and functions now defined elsewhere.
467 * treetree.c (maybe_objc_comptypes): Remove.
468 (warn_format, warn_format_y2k, warn_format_extra_args,
469 warn_format_nonliteral, warn_format_security,
470 warn_format_zero_length): Remove.
471 (maybe_building_objc_message_expr): Remove.
472 (cpp_post_options): Remove.
473 (maybe_objc_check_decl): Remove.
474 (integer_types): Remove.
477 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
479 * treelang.c: Remove cpp_post_options.
481 2002-08-13 Tim Josling <tej@melbpc.org.au>
483 * parse.y: Provide dummy definition of rtx for use by config.h.
484 * Make-lang.in (treetree.o): Remove dependency on non-existent
485 gt-treelang-treelang.h.
486 (gt-treelang-treelang.h): Remove.
488 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
490 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
492 2002-07-11 Tim Josling <tej@melbpc.org.au>
494 Remove front end hard coding from gengtype.c.
496 * config-lang.in (gtfiles): Add files needed for this front
499 2002-07-09 Tim Josling <tej@melbpc.org.au>
501 Support new attributes regime (Fix for PR c++/7099).
503 * treetree.c (handle_format_attribute): Return NULL_TREE instead
505 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
506 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
507 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
509 2002-06-21 Andreas Jaeger <aj@suse.de>
511 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
512 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
514 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
516 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
519 2002-06-10 Tim Josling <tej@melbpc.org.au>
523 * Make-lang.in (check-treelang). Add. Remove direct dependency of
524 'check' on 'treelang.check' as redundant.
526 PCH Garbage collection regime (gengtypes.c) phase 1.
528 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
529 gt-treelang-treelang.h gtype-treelang.h.
530 (gt-treelang-tree1.h) Depend on s-gtype.
531 (gt-treelang-treelang.h) Depend on s-gtype.
532 (gtype-treelang.h) Depend on s-gtype.
534 * config-lang.in (gtfiles): Define.
536 * lex.l (main): Remove '#if 0' dead code.
537 (main): Move undef of IN_GCC so define of tree typedef works.
538 (all): Replace token and production by prod_token_parm_item.
541 (all): Replace token and production by prod_token_parm_item.
543 * tree1.c (main): Remove include of "output.h".
544 (symbol_table): Add GTY details.
545 (symbol_table_ggc): Remove.
546 (treelang_init): Remove root definitions for garbage collection.
547 (mark_production_used): Remove.
548 (mark_token_used): Remove.
549 (main, at end): include generated garage collection routines.
551 * treelang.h (category_enum ): Add parameter_category.
552 (all): Replace token and production and parameters by union
553 prod_token_parm_item containing production_part, token_part,
555 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
556 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
557 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
558 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
562 (tm_p.h): Do not include.
563 (ansidecl.h): Move include after config.h.
564 (treelang.h): Include it.
566 (all): Replace token, production and parameter by prod_token_parm_item.
567 (tree_parameter_list): Move to treelang.h as part of
568 prod_token_parm_item.
569 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
570 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
571 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
572 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
575 2002-05-19 Tim Josling <tej@melbpc.org.au>
577 * treetree.c (warn_format_zero_length): Add.
579 2002-05-14 Tim Josling <tej@melbpc.org.au>
581 * Make-lang.in: Fix build for .info files, add target for manpages.
582 A bug report and a suggested patch came from Magnus Fromreide
583 <magfr@lysator.liu.se>.
585 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
587 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
589 2002-05-11 Tim Josling <tej@melbpc.org.au>
591 * treetree.c: (cpp_define) Add.
592 (cpp_get_callbacks) Add.
594 2002-05-07 Tim Josling <tej@melbpc.org.au>
596 * treetree.c: (cpp_get_options) Add.
598 2002-05-06 Tim Josling <tej@melbpc.org.au>
602 2002-05-05 Tim Josling <tej@melbpc.org.au>
604 * Updated for gcc3.2 experimental. Major changes throughout.
606 2002-03-31 Tim Josling <tej@melbpc.org.au>
608 * Make-lang.in: Changes so build and check work more reliably
610 2001-07-30 Tim Josling <tej@melbpc.org.au>
613 * treelang.texi: updates based on feedback
615 2001-06-11 Tim Josling <tej@melbpc.org.au>
617 * all (all) Revamp code to conform to GCC coding standards, fix
620 2001-05-11 Tim Josling <tej@melbpc.org.au>
622 Create the new language.