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