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