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