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