1 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
4 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
7 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
9 * treelang.texi: Fix a typo.
11 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
13 * parse.y (function_invocation, variable-ref, make_plus_expression):
14 Pass location to tree_code_get_expression.
15 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
16 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
17 set EXPR_LOCATION on ret1.
18 * treetree.h (tree_code_get_expression): Take the location of the
19 expression as an argument.
21 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
23 * treelang.texi: Treelang does have warnings.
24 * treetree.c (tree_code_create_function_prototype): Don't set
25 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
26 as few times as needed on the function declaration.
27 (tree_code_create_function_initial): Don't set TREE_USED,
28 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
29 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
30 (tree_code_get_expression): Set TREE_USED for variable references
33 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
35 * parse.y: Do comparisons as the type of the first expression.
36 * treetree.c (tree_code_get_integer_value): Build integer constants
39 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
41 * Make-lang.in: Remove commented out code.
42 * lang-specs.h: Always pass -dumpbase to tree1.
44 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
46 * treelang.texi: Remove extra contribution notice.
47 Split up some run-on sentences. Document function parameters
48 as optional. Indicate automatic variables can now be at any scope.
49 Mention literals are only signed if they are preceded by a unary
50 plus or minus. Clarify interoperability with C.
52 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
54 * treelang.texi: Fix whitespacing.
56 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
59 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
60 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
61 rest_of_decl_compilation on static variables.
62 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
65 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
68 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
69 Move function parameters check from ...
70 (function): ...Here. Update call to tree_code_create_function_initial.
71 (function_invocation): Use expressions_with_commas_opt instead of
72 expressions_with_commas.
73 (expressions_with_commas_opt): New rule.
74 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
75 for function parameters.
76 (tree_code_create_function_initial): Remove PARMS parameter.
77 Don't create PARM_DECLs for function parameters.
78 * treetree.h (tree_code_create_function_initial): Remove PARMS
81 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
83 * parse.y: Update copyright.
85 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
87 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
90 2005-02-09 Richard Henderson <rth@redhat.com>
92 * treetree.c (treelang_init_decl_processing): Call
93 build_common_builtin_nodes.
95 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
97 * treelang.texi: Don't use local treelang version number. Don't
98 give last update date.
100 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
102 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
104 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
106 * parse.y: Reformat comments.
107 * treetree.c: Likewise.
108 * treetree.h: Likewise.
110 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
112 * treetree.c (tree_code_generate_return): Wrap param declaration in
115 2004-10-05 Zack Weinberg <zack@codesourcery.com>
117 * parse.y: Add list of diagnostic messages to insulate
118 translation template from version of yacc/bison used to
121 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
124 * lex.l: Include input.h and errors.h
125 (lineno): New variable.
126 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
128 Set column position with LINEMAP_POSITION_FOR_COLUMN.
129 Use error instead of fprintf.
130 Set input_location with the value returned by linemap_start_line when
131 USE_MAPPED_LOCATION is defined.
132 (dump_lex_value): Use LOCATION_LINE.
133 * parse.y: Include errors.h.
134 Use error and warning instead of fprintf.
135 (return): Move exp to rule scope and always set to $2. Test against
137 (init): Set $$ to $2.
138 (print_token): Use LOCATION_LINE.
139 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
140 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
142 (treelang_parse_file): Always start at line one.
143 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
145 Leave main_input_filename when done parsing the input.
146 (insert_tree_name): Use error instead of fprintf.
147 * treetree.c (tree_code_get_expression): Wrap long line.
148 (tree_mark_addressable): Use %qD to print out DECLs.
150 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
152 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
154 * treetree.c: Likewise.
156 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
158 * lex.l: Remove random whitespace.
159 * parse.y: Reformat copyright notice. Indent declarations.
160 Wrap long lines, unwrap short lines.
161 * tree1.c: Reformat copyright notice. Wrap long lines.
162 Remove random whitespace.
163 (lookup_tree_name): Use LOCATION_LINE.
164 * treetree.c: Reformat copyright notice. Wrap long lines.
165 Remove random whitespace.
167 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
169 * parse.y (ELSE): Set tok to $1.
170 * treelang.texi: Wrap comments in @r{}. Indent example comments.
171 Use gcc when refering to the command line or website. Update function
174 2004-10-01 Jan Hubicka <jh@suse.cz>
176 * treetree.c (treeland_expand_function): Update call of
177 tree_rest_of_compilation.
179 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
180 Zack Weinberg <zack@codesourcery.com>
182 * treetree.c: Update for new tree-class enumeration constants.
184 2004-09-15 Zack Weinberg <zack@codesourcery.com>
186 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
188 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
190 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
192 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
194 * treelang/treetree.c (treelang_init_decl_processing): Adjust
195 build_common_tree_nodes call.
197 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
199 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
201 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
203 * Make-lang.in (TREE_BE_LIBS): Remove.
204 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
206 * parse.y: Add variable_defs_opt before statements_opt.
207 Use tree_code_get_type instead of get_type_for_numeric_type.
209 (parameters_opt): New rule.
210 (function_prototype): Use parameters_opt.
211 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
212 (check_type_match): Use VOID_TYPE.
213 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
214 * tree1.c: Include version.h and cgraph.h
215 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
217 * treelang.h (item): Remove extraneous GTY.
218 * treetree.h (get_type_for_numeric_type): Remove.
219 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
220 function.h, and cgraph.h. Don't include rtl.h
221 (keep_level_p): Remove.
222 (tree_push_atomic_type_decl): Remove.
223 (get_type_for_numeric_type): Remove.
224 (tree_code_get_numeric_type): Remove.
225 (global_bindings_p): Make static.
226 (getdecls): Likewise.
227 (insert_block): Likewise.
228 (tree_code_if_start): Create a COND_EXPR and add it to the tree
229 instead of creating rtl.
230 (tree_code_if_else): Create a BIND_EXPR if any variables were created
232 (tree_code_end_if): Likewise.
233 (tree_code_create_function_prototype): Use tree_code_get_type.
234 Don't use SET_DECL_ASSEMBLER_NAME.
235 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
236 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
237 layout_decl on RESULT_DECL. Don't call rtl expand functions.
238 (tree_code_create_function_wrapup): Don't call rtl expand functions.
239 Create a BIND_EXPR for each function. Dump original and gimplified
240 copies of the function tree. Gimplify function.
241 (tree_code_create_variable): Use tree_code_get_type. Don't call
242 layout_decl or expand_decl. Fold CONVERT_EXPRs.
243 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
244 Add RETURN_EXPR to the current statement list. Don't call rtl expand
246 (tree_code_output_expression_statement): Append CODE to current
248 (tree_code_get_expression): Fold expressions. Build a pointer to
249 a FUNCTION_TYPE intead of the called functions return type.
250 (struct binding_level): Add statement list STMTS.
251 (getstmtlist): New Function.
252 (pushlevel): Make static. Allocate an empty statement list.
253 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
254 Don't use DECL_ASSEMBLER_NAME.
255 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
256 (treelang_init_decl_processing): Define basic types after unused types.
257 Don't call tree_push_atomic_type_decl.
258 (builtin_function): Don't call make_decl_rtl.
259 (treelang_expand_function). New Function.
261 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
263 * treetree.c (set_block): Remove.
264 (struct binding_level): Remove block_created_by_back_end.
265 (clear_binding_level): Likewise.
266 (tree_code_create_function_initial,
267 tree_code_create_function_wrapup): Call pushlevel and poplevel
268 directly rather than through hooks.
269 (poplevel): Don't handle block_created_by_back_end.
271 2004-04-07 Richard Henderson <rth@redhat.com>
273 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
275 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
277 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
280 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
282 * treelang.texi: Update link to "G++ and GCC".
284 2004-02-20 Richard Henderson <rth@redhat.com>
286 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
288 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
290 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
292 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
294 * Make-lang.in: Replace $(docdir) with doc.
295 (treelang.info, treelang.srcinfo): New rules.
296 (treelang.man, treelang.man): Dummy entries.
298 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
300 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
301 (treelang/parse.o, treelang/lex.o): Look for sources in build
302 directory. Use implicit rule.
303 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
305 (treelang.srcextra): Copy above back to source directory if requested.
307 2004-01-07 Zack Weinberg <zack@codesourcery.com>
309 * parse.y (yyerror): Mark the definition static.
311 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
313 * lex.l: Add \t as a whitespace character.
314 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
316 * treelang.texi (What is GNU Treelang?): Fix a typo.
317 (Lexical Syntax): Create an itemize list of keywords. Add commas to
318 paragraph defining names.
320 2003-11-26 Jason Merrill <jason@redhat.com>
322 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
323 directory and TAGS files that include them for each front end.
325 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
327 * .cvsignore: Delete.
329 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
331 * Make-lang.in (treelang.extraclean): Delete.
333 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
335 * Make-lang.in: Remove obsolete comment.
337 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
339 * Make-lang.in (dvi): Move targets to $(docobjdir).
340 (treelang.dvi): Simplify rule and adjust target.
341 (treelang.info): Simplify rule.
342 (parse.o): Correct dependencies.
343 (TREE_EXE): Delete doubled suffix append.
345 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
347 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
350 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
352 * Make-lang.in (parse.o): Honor $(parsedir).
355 (parse.c, parse.h): Likewise.
356 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
359 2003-10-20 Mark Mitchell <mark@codesourcery.com>
361 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
364 * Make-lang.in (info): Use docobjdir.
365 ($(srcdir)/treelang/treelang.info): Replace with ...
366 ($(docobjdir)/treelang/treelang.info): ... this.
367 (install-info): New target.
369 2003-10-12 Andreas Jaeger <aj@suse.de>
371 * Make-lang.in (treelang.install-info): Remove reference to
373 (treelang.): Removed.
375 2003-10-06 Mark Mitchell <mark@codesourcery.com>
377 * Make-lang.in (treelang.info): Replace with ...
379 * Make-lang.in (treelang.dvi): Replace with ...
382 2003-09-21 Richard Henderson <rth@redhat.com>
384 * treetree.c: Revert.
386 2003-09-21 Richard Henderson <rth@redhat.com>
388 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
391 2003-07-28 Andreas Jaeger <aj@suse.de>
393 * treetree.c: Convert remaining K&R prototypes to ISO C90.
396 * tree-convert.c: Likewise.
398 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
400 * treetree.c: Remove unnecessary casts.
402 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
404 * lang-options.h: Remove.
405 * lang.opt: Document some options. Remove --help.
406 * tree1.c (treelang_handle_option): Remove OPT__help case.
408 2003-07-12 Andreas Jaeger <aj@suse.de>
410 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
412 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
414 * Make-lang.in: Update.
415 * tree1.c: Don't include c-common.h.
416 (c_language): Remove.
418 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
419 Steven Bosscher <steven@gcc.gnu.org>
421 * tree-convert.c: New file.
422 * treetree.c: Don't include c-tree.h. Include target.h.
423 (struct lang_identifier, union lang_tree_node, struct lang_type,
424 struct lang_function): New, minimal language-specific datastructs.
425 (tree_lang_truthvalue_conversion, tree_mark_addressable,
426 tree_lang_type_for_size, tree_lang_type_for_mode,
427 tree_lang_unsigned_type, tree_lang_signed_type,
428 tree_lang_signed_or_unsigned): New functions.
429 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
430 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
431 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
432 tree_push_atomic_type_decl): New functions.
433 (struct resword, struct reswords): Remove.
434 * Make-lang.in: Update. Don't depend on C front end objects.
435 * config-lang.in: Likewise.
437 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
439 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
440 tree_code_if_end, tree_code_create_function_initial,
441 tree_code_create_function_wrapup, tree_code_generate_return,
442 tree_code_output_expression_statement): Adjust emit_line_note
445 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
447 * Make-lang.in: Replace PWD with PWD_COMMAND.
449 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
451 * tree1.c (treelang_init_options): Update prototype.
452 * treelang.h (treelang_init_options): Update prototype.
454 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
456 * Make-lang.in: Update.
457 * tree1.c: Include c-common.h. Define c_language.
459 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
461 * treetree.c (tree_code_create_function_wrapup): Adjust
462 expand_function_end call.
464 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
466 * treetree.c (build_stmt): Remove VPARAMS.
467 (pedwarn_c99): Likewise.
469 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
471 * lang.opt: Declare Treelang. Update.
472 * tree1.c (treelang_init_options): Update.
474 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
476 * treetree.c (tree_code_create_function_initial): Adjust
477 init_function_start call.
479 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
481 * Make-lang.in: Update to use options.c and options.h.
482 * tree1.c: Include options.h not t-options.h.
483 (treelang_init_options): New.
484 (treelang_handle_option): Abort on unrecognized switch.
485 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
486 * treetree.h (treelang_init_options): New.
488 2003-06-12 Andreas Jaeger <aj@suse.de>
490 * treetree.c: Remove cl_options-count and cl_options.
492 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
494 * Make-lang.in: Update for option handling.
496 * tree1.c: Include opts.h and t-options.h.
497 (treelang_decode_option): Remove.
498 (treelang_handle_option): New.
499 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
500 (LANG_HOOKS_HANDLE_OPTION): Override.
501 * treetree.h (treelang_decode_option): Remove.
502 (treelang_handle_option): New.
504 2003-06-08 Andreas Jaeger <aj@suse.de>
506 * Make-lang.in: Update.
507 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
509 2003-06-08 Tim Josling <tej@melbpc.org.au>
511 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
513 2003-06-05 Jan Hubicka <jh@suse.cz>
515 * Make-lang.in: Add support for stageprofile and stagefeedback
517 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
519 * treetree.c (reswords): Remove __bounded__, __unbounded__.
521 2003-05-09 Tim Josling <tej@melbpc.org.au>
523 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
524 to link (needed by some front ends such as PPC).
526 * treetree.c (tree_code_create_function_initial): Fix long line.
527 Initialize tree_code_int_size and tree_code_char_size to
529 (tree_code_get_numeric_type): Add check that size1 parameter is
532 * parse.y: Fix extra long lines in prototypes.
534 * treelang.h: Fix extra long lines in macro definitions.
536 2003-05-07 Zack Weinberg <zack@codesourcery.com>
538 * Make-lang.in: Set -Wno-error for treelang/lex.o.
540 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
542 * Make-lang.in (treelang/tree1.o): Depends on input.h
543 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
544 * treelang.h: #include input.h.
546 (struct token_part): Remove lineno, add location.
547 * lex.l (next_tree_lineno): Remove.
548 (update_lineno_charno): Adjust.
549 (dump_lex_value): Adjust.
550 * parse.y (variable_def, function_prototype, function, statement,
551 if_statement, return, function_invocation, variable_ref): Adjust.
552 (print_token, yyerror, ensure_not_void): Adjust.
553 tree1.c (in_fname): Remove.
554 (treelang_init): Setup input_location.
555 (lookup_tree_name): Adjust.
556 (insert_tree_name): Adjust.
557 * treetree.c (tree_code_if_start): Replace filename and lineno
558 parms with loc. Adjust.
559 (tree_code_if_else, tree_code_if_end,
560 tree_code_create_function_prototype,
561 tree_code_create_function_initial,
562 tree_code_create_function_wrapup, tree_code_create_variable,
563 tree_code_output_expression_statement): Likewise.
564 * treetree.h (tree_code_if_start): Replace filename and lineno
566 (tree_code_if_else, tree_code_if_end,
567 tree_code_create_function_prototype,
568 tree_code_create_function_initial,
569 tree_code_create_function_wrapup, tree_code_create_variable,
570 tree_code_output_expression_statement): Likewise.
572 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
574 * tree1.c (treelang_init): Rename lineno to input_line.
576 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
578 * parse.y (make_plus_expression): New function.
579 (expression production): Use make_plus_expression for PLUS,
580 MINUS, ASSIGN and EQUALS.
581 * tree1.c (treelang_decode_option): Don't fall through to
582 options that start with a different character when an option
585 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
587 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
588 * treetree.c: Do not #include parse.h.
590 2003-03-21 Andreas Jaeger <aj@suse.de>
592 * treetree.c (cpp_create_reader): Follow prototype change in
595 2003-03-17 Andreas Jaeger <aj@suse.de>
597 * Make-lang.in (treelang.tags): Remove duplicate entry.
599 2003-03-15 Andreas Jaeger <aj@suse.de>
601 * treetree.c (cpp_handle_option): Remove.
603 2003-03-13 Andreas Jaeger <aj@suse.de>
605 * Make-lang.in (tree1$(exeext)): Fix previous patch.
607 2003-03-12 Andreas Jaeger <aj@suse.de>
609 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
611 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
613 * tree1.c (in_fname): Fix type.
614 (treelang_init): Update prototype and use of in_fname.
615 * treelang.h (in_fname): Fix type.
616 * treetree.c (tree_code_if_start, tree_code_if_else,
617 tree_code_if_end, tree_code_create_function_prototype,
618 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
619 tree_code_create_variable, tree_code_output_expression_statement)
620 : Fix prototypes and use of filenames.
621 * treetree.h: Similarly.
623 2003-03-05 Andreas Jaeger <aj@suse.de>
625 * treetree.c (init_c_lex): Follow change to c-common.h.
627 2003-03-04 Tom Tromey <tromey@redhat.com>
629 * Make-lang.in (treelang.tags): New target.
631 2003-03-01 Tim Josling <tej@melbpc.org.au>
633 Name clashes with rtl.h fixed.
635 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
640 2003-02-24 Tim Josling <tej@melbpc.org.au>
642 * parse.y (my_yylex): New - ensure lexer time is charged to
644 (yylex): redefine as invocation of my_yylex which then calls
645 flex-generated yylex.
646 (timevar.h): include.
648 2003-02-23 Tim Josling <tej@melbpc.org.au>
650 Fix garbage collection, add more error checking, force GC always.
652 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
653 (treelang/treetree.o): Depend on treelang/parse.h
655 * lex.l: include "treetree.h"
657 * lex.l (update_yylval): Allocate string using get_string so GC
660 * parse.y (function_prototype): Set category correctly so GC works.
661 (function): Set category in search so checking works.
662 (function_invocation): Ditto.
663 (variable_ref): Ditto.
665 * tree1.c (lookup_tree_name): Call sanity_check for passed
666 production and associated token and for symbol table entries.
668 * tree1.c (sanity_check): New, basic check that struct is valid.
670 * treelang.h: Prototype for sanity_check.
672 2003-01-27 Tim Josling <tej@melbpc.org.au>
674 * treetree.c (treelang_init_decl_processing): Change memory
675 allocation to use GC.
677 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
679 * treelang.texi: Update to GFDL 1.2.
681 2003-01-26 Michael Matz <matz@suse.de>
683 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
685 2003-01-14 Andreas Jaeger <aj@suse.de>
687 * Make-lang.in (treelang.install-info): Depend only on info files
688 if BUILD_INFO is set. Fix install rules.
691 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
693 * Make-lang.in (treelang.install.common.done,
694 treelang.install-info, treelang.uninstall): Prepend
695 $(DESTDIR) to destination paths in all (un)installation
698 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
700 * treelang.texi: Use @copying.
702 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
704 * treelang.texi: Include gcc-common.texi.
705 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
706 Depend on gcc-common.texi. Add other missing dependencies.
707 (treelang.dvi): Use texi2dvi.
709 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
711 * treelang.texi: Use @ifnottex instead of @ifinfo.
713 2002-11-30 Zack Weinberg <zack@codesourcery.com>
715 * lex.l: Move "%{" below copyright notice; get rid of "/*"
716 embedded in comment. Do not #undef IN_GCC; do not include
717 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
718 Do include coretypes.h and tm.h.
719 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
720 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
721 ansidecl.h. Do include coretypes.h and tm.h.
722 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
723 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
724 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
725 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
726 or ansidecl.h. Do include coretypes.h and tm.h.
727 * Make-lang.in: Update dependencies.
729 2002-09-09 Tim Josling <tej@melbpc.org.au>
731 * treetree.c (objc_is_id): New.
733 2002-08-16 Tim Josling <tej@melbpc.org.au>
735 Remove variables and functions now defined elsewhere.
737 * treetree.c (maybe_objc_comptypes): Remove.
738 (warn_format, warn_format_y2k, warn_format_extra_args,
739 warn_format_nonliteral, warn_format_security,
740 warn_format_zero_length): Remove.
741 (maybe_building_objc_message_expr): Remove.
742 (cpp_post_options): Remove.
743 (maybe_objc_check_decl): Remove.
744 (integer_types): Remove.
747 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
749 * treelang.c: Remove cpp_post_options.
751 2002-08-13 Tim Josling <tej@melbpc.org.au>
753 * parse.y: Provide dummy definition of rtx for use by config.h.
754 * Make-lang.in (treetree.o): Remove dependency on non-existent
755 gt-treelang-treelang.h.
756 (gt-treelang-treelang.h): Remove.
758 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
760 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
762 2002-07-11 Tim Josling <tej@melbpc.org.au>
764 Remove front end hard coding from gengtype.c.
766 * config-lang.in (gtfiles): Add files needed for this front
769 2002-07-09 Tim Josling <tej@melbpc.org.au>
771 Support new attributes regime (Fix for PR c++/7099).
773 * treetree.c (handle_format_attribute): Return NULL_TREE instead
775 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
776 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
777 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
779 2002-06-21 Andreas Jaeger <aj@suse.de>
781 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
782 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
784 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
786 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
789 2002-06-10 Tim Josling <tej@melbpc.org.au>
793 * Make-lang.in (check-treelang). Add. Remove direct dependency of
794 'check' on 'treelang.check' as redundant.
796 PCH Garbage collection regime (gengtypes.c) phase 1.
798 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
799 gt-treelang-treelang.h gtype-treelang.h.
800 (gt-treelang-tree1.h) Depend on s-gtype.
801 (gt-treelang-treelang.h) Depend on s-gtype.
802 (gtype-treelang.h) Depend on s-gtype.
804 * config-lang.in (gtfiles): Define.
806 * lex.l (main): Remove '#if 0' dead code.
807 (main): Move undef of IN_GCC so define of tree typedef works.
808 (all): Replace token and production by prod_token_parm_item.
811 (all): Replace token and production by prod_token_parm_item.
813 * tree1.c (main): Remove include of "output.h".
814 (symbol_table): Add GTY details.
815 (symbol_table_ggc): Remove.
816 (treelang_init): Remove root definitions for garbage collection.
817 (mark_production_used): Remove.
818 (mark_token_used): Remove.
819 (main, at end): include generated garage collection routines.
821 * treelang.h (category_enum ): Add parameter_category.
822 (all): Replace token and production and parameters by union
823 prod_token_parm_item containing production_part, token_part,
825 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
826 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
827 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
828 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
832 (tm_p.h): Do not include.
833 (ansidecl.h): Move include after config.h.
834 (treelang.h): Include it.
836 (all): Replace token, production and parameter by prod_token_parm_item.
837 (tree_parameter_list): Move to treelang.h as part of
838 prod_token_parm_item.
839 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
840 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
841 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
842 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
845 2002-05-19 Tim Josling <tej@melbpc.org.au>
847 * treetree.c (warn_format_zero_length): Add.
849 2002-05-14 Tim Josling <tej@melbpc.org.au>
851 * Make-lang.in: Fix build for .info files, add target for manpages.
852 A bug report and a suggested patch came from Magnus Fromreide
853 <magfr@lysator.liu.se>.
855 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
857 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
859 2002-05-11 Tim Josling <tej@melbpc.org.au>
861 * treetree.c: (cpp_define) Add.
862 (cpp_get_callbacks) Add.
864 2002-05-07 Tim Josling <tej@melbpc.org.au>
866 * treetree.c: (cpp_get_options) Add.
868 2002-05-06 Tim Josling <tej@melbpc.org.au>
872 2002-05-05 Tim Josling <tej@melbpc.org.au>
874 * Updated for gcc3.2 experimental. Major changes throughout.
876 2002-03-31 Tim Josling <tej@melbpc.org.au>
878 * Make-lang.in: Changes so build and check work more reliably
880 2001-07-30 Tim Josling <tej@melbpc.org.au>
883 * treelang.texi: updates based on feedback
885 2001-06-11 Tim Josling <tej@melbpc.org.au>
887 * all (all) Revamp code to conform to GCC coding standards, fix
890 2001-05-11 Tim Josling <tej@melbpc.org.au>
892 Create the new language.