1 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
4 * Make-lang.in: Remove old testing cruft.
6 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
8 * all files: Update FSF address in copyright headers.
10 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
12 * parse.y (function_invocation): Reverse parameter list.
13 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
15 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
17 * treetree.c (tree_code_get_expression): Call build_function_call_expr
18 to build function calls.
20 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
24 * treelang/Make-lang.in: Updates dependencies.
26 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
29 * parse.y (parameters_opt): Add semicolon at the end.
31 2005-04-29 Tom Tromey <tromey@redhat.com>
33 * treetree.c (poplevel): Updated for change to build_block.
35 2005-04-23 DJ Delorie <dj@redhat.com>
37 * parse.y: Adjust warning() callers.
39 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
41 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
43 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
46 * lang-spec.c: Simplify @treelang to what the other
49 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
51 * treelang/treelang.texi: Fix typos.
52 * treelang/treetree.c: Fix comment typos.
54 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
56 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
57 tree_lang_truthvalue_conversion): Remove.
58 * tree-convert.c: Don't call truthvalue_conversion.
60 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
62 * treetree.c (tree_code_if_start): Use fold_buildN.
63 (tree_code_create_variable): Likewise.
64 (tree_code_generate_return): Likewise.
65 (tree_code_get_expression): Likewise.
66 (tree_code_add_parameter): Likewise.
68 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
70 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
73 2005-03-15 Zack Weinberg <zack@codesourcery.com>
75 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
77 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
80 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
83 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
85 * treelang.texi: Fix a typo.
87 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
89 * parse.y (function_invocation, variable-ref, make_plus_expression):
90 Pass location to tree_code_get_expression.
91 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
92 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
93 set EXPR_LOCATION on ret1.
94 * treetree.h (tree_code_get_expression): Take the location of the
95 expression as an argument.
97 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
99 * treelang.texi: Treelang does have warnings.
100 * treetree.c (tree_code_create_function_prototype): Don't set
101 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
102 as few times as needed on the function declaration.
103 (tree_code_create_function_initial): Don't set TREE_USED,
104 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
105 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
106 (tree_code_get_expression): Set TREE_USED for variable references
109 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
111 * parse.y: Do comparisons as the type of the first expression.
112 * treetree.c (tree_code_get_integer_value): Build integer constants
113 with the proper type.
115 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
117 * Make-lang.in: Remove commented out code.
118 * lang-specs.h: Always pass -dumpbase to tree1.
120 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
122 * treelang.texi: Remove extra contribution notice.
123 Split up some run-on sentences. Document function parameters
124 as optional. Indicate automatic variables can now be at any scope.
125 Mention literals are only signed if they are preceded by a unary
126 plus or minus. Clarify interoperability with C.
128 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
130 * treelang.texi: Fix whitespacing.
132 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
135 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
136 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
137 rest_of_decl_compilation on static variables.
138 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
141 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
144 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
145 Move function parameters check from ...
146 (function): ...Here. Update call to tree_code_create_function_initial.
147 (function_invocation): Use expressions_with_commas_opt instead of
148 expressions_with_commas.
149 (expressions_with_commas_opt): New rule.
150 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
151 for function parameters.
152 (tree_code_create_function_initial): Remove PARMS parameter.
153 Don't create PARM_DECLs for function parameters.
154 * treetree.h (tree_code_create_function_initial): Remove PARMS
157 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
159 * parse.y: Update copyright.
161 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
163 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
164 scalar integer types.
166 2005-02-09 Richard Henderson <rth@redhat.com>
168 * treetree.c (treelang_init_decl_processing): Call
169 build_common_builtin_nodes.
171 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
173 * treelang.texi: Don't use local treelang version number. Don't
174 give last update date.
176 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
178 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
180 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
182 * parse.y: Reformat comments.
183 * treetree.c: Likewise.
184 * treetree.h: Likewise.
186 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
188 * treetree.c (tree_code_generate_return): Wrap param declaration in
191 2004-10-05 Zack Weinberg <zack@codesourcery.com>
193 * parse.y: Add list of diagnostic messages to insulate
194 translation template from version of yacc/bison used to
197 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
200 * lex.l: Include input.h and errors.h
201 (lineno): New variable.
202 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
204 Set column position with LINEMAP_POSITION_FOR_COLUMN.
205 Use error instead of fprintf.
206 Set input_location with the value returned by linemap_start_line when
207 USE_MAPPED_LOCATION is defined.
208 (dump_lex_value): Use LOCATION_LINE.
209 * parse.y: Include errors.h.
210 Use error and warning instead of fprintf.
211 (return): Move exp to rule scope and always set to $2. Test against
213 (init): Set $$ to $2.
214 (print_token): Use LOCATION_LINE.
215 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
216 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
218 (treelang_parse_file): Always start at line one.
219 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
221 Leave main_input_filename when done parsing the input.
222 (insert_tree_name): Use error instead of fprintf.
223 * treetree.c (tree_code_get_expression): Wrap long line.
224 (tree_mark_addressable): Use %qD to print out DECLs.
226 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
228 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
230 * treetree.c: Likewise.
232 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
234 * lex.l: Remove random whitespace.
235 * parse.y: Reformat copyright notice. Indent declarations.
236 Wrap long lines, unwrap short lines.
237 * tree1.c: Reformat copyright notice. Wrap long lines.
238 Remove random whitespace.
239 (lookup_tree_name): Use LOCATION_LINE.
240 * treetree.c: Reformat copyright notice. Wrap long lines.
241 Remove random whitespace.
243 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
245 * parse.y (ELSE): Set tok to $1.
246 * treelang.texi: Wrap comments in @r{}. Indent example comments.
247 Use gcc when refering to the command line or website. Update function
250 2004-10-01 Jan Hubicka <jh@suse.cz>
252 * treetree.c (treeland_expand_function): Update call of
253 tree_rest_of_compilation.
255 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
256 Zack Weinberg <zack@codesourcery.com>
258 * treetree.c: Update for new tree-class enumeration constants.
260 2004-09-15 Zack Weinberg <zack@codesourcery.com>
262 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
264 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
266 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
268 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
270 * treelang/treetree.c (treelang_init_decl_processing): Adjust
271 build_common_tree_nodes call.
273 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
275 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
277 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
279 * Make-lang.in (TREE_BE_LIBS): Remove.
280 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
282 * parse.y: Add variable_defs_opt before statements_opt.
283 Use tree_code_get_type instead of get_type_for_numeric_type.
285 (parameters_opt): New rule.
286 (function_prototype): Use parameters_opt.
287 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
288 (check_type_match): Use VOID_TYPE.
289 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
290 * tree1.c: Include version.h and cgraph.h
291 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
293 * treelang.h (item): Remove extraneous GTY.
294 * treetree.h (get_type_for_numeric_type): Remove.
295 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
296 function.h, and cgraph.h. Don't include rtl.h
297 (keep_level_p): Remove.
298 (tree_push_atomic_type_decl): Remove.
299 (get_type_for_numeric_type): Remove.
300 (tree_code_get_numeric_type): Remove.
301 (global_bindings_p): Make static.
302 (getdecls): Likewise.
303 (insert_block): Likewise.
304 (tree_code_if_start): Create a COND_EXPR and add it to the tree
305 instead of creating rtl.
306 (tree_code_if_else): Create a BIND_EXPR if any variables were created
308 (tree_code_end_if): Likewise.
309 (tree_code_create_function_prototype): Use tree_code_get_type.
310 Don't use SET_DECL_ASSEMBLER_NAME.
311 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
312 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
313 layout_decl on RESULT_DECL. Don't call rtl expand functions.
314 (tree_code_create_function_wrapup): Don't call rtl expand functions.
315 Create a BIND_EXPR for each function. Dump original and gimplified
316 copies of the function tree. Gimplify function.
317 (tree_code_create_variable): Use tree_code_get_type. Don't call
318 layout_decl or expand_decl. Fold CONVERT_EXPRs.
319 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
320 Add RETURN_EXPR to the current statement list. Don't call rtl expand
322 (tree_code_output_expression_statement): Append CODE to current
324 (tree_code_get_expression): Fold expressions. Build a pointer to
325 a FUNCTION_TYPE intead of the called functions return type.
326 (struct binding_level): Add statement list STMTS.
327 (getstmtlist): New Function.
328 (pushlevel): Make static. Allocate an empty statement list.
329 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
330 Don't use DECL_ASSEMBLER_NAME.
331 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
332 (treelang_init_decl_processing): Define basic types after unused types.
333 Don't call tree_push_atomic_type_decl.
334 (builtin_function): Don't call make_decl_rtl.
335 (treelang_expand_function). New Function.
337 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
339 * treetree.c (set_block): Remove.
340 (struct binding_level): Remove block_created_by_back_end.
341 (clear_binding_level): Likewise.
342 (tree_code_create_function_initial,
343 tree_code_create_function_wrapup): Call pushlevel and poplevel
344 directly rather than through hooks.
345 (poplevel): Don't handle block_created_by_back_end.
347 2004-04-07 Richard Henderson <rth@redhat.com>
349 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
351 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
353 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
356 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
358 * treelang.texi: Update link to "G++ and GCC".
360 2004-02-20 Richard Henderson <rth@redhat.com>
362 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
364 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
366 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
368 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
370 * Make-lang.in: Replace $(docdir) with doc.
371 (treelang.info, treelang.srcinfo): New rules.
372 (treelang.man, treelang.man): Dummy entries.
374 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
376 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
377 (treelang/parse.o, treelang/lex.o): Look for sources in build
378 directory. Use implicit rule.
379 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
381 (treelang.srcextra): Copy above back to source directory if requested.
383 2004-01-07 Zack Weinberg <zack@codesourcery.com>
385 * parse.y (yyerror): Mark the definition static.
387 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
389 * lex.l: Add \t as a whitespace character.
390 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
392 * treelang.texi (What is GNU Treelang?): Fix a typo.
393 (Lexical Syntax): Create an itemize list of keywords. Add commas to
394 paragraph defining names.
396 2003-11-26 Jason Merrill <jason@redhat.com>
398 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
399 directory and TAGS files that include them for each front end.
401 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
403 * .cvsignore: Delete.
405 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
407 * Make-lang.in (treelang.extraclean): Delete.
409 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
411 * Make-lang.in: Remove obsolete comment.
413 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
415 * Make-lang.in (dvi): Move targets to $(docobjdir).
416 (treelang.dvi): Simplify rule and adjust target.
417 (treelang.info): Simplify rule.
418 (parse.o): Correct dependencies.
419 (TREE_EXE): Delete doubled suffix append.
421 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
423 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
426 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
428 * Make-lang.in (parse.o): Honor $(parsedir).
431 (parse.c, parse.h): Likewise.
432 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
435 2003-10-20 Mark Mitchell <mark@codesourcery.com>
437 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
440 * Make-lang.in (info): Use docobjdir.
441 ($(srcdir)/treelang/treelang.info): Replace with ...
442 ($(docobjdir)/treelang/treelang.info): ... this.
443 (install-info): New target.
445 2003-10-12 Andreas Jaeger <aj@suse.de>
447 * Make-lang.in (treelang.install-info): Remove reference to
449 (treelang.): Removed.
451 2003-10-06 Mark Mitchell <mark@codesourcery.com>
453 * Make-lang.in (treelang.info): Replace with ...
455 * Make-lang.in (treelang.dvi): Replace with ...
458 2003-09-21 Richard Henderson <rth@redhat.com>
460 * treetree.c: Revert.
462 2003-09-21 Richard Henderson <rth@redhat.com>
464 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
467 2003-07-28 Andreas Jaeger <aj@suse.de>
469 * treetree.c: Convert remaining K&R prototypes to ISO C90.
472 * tree-convert.c: Likewise.
474 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
476 * treetree.c: Remove unnecessary casts.
478 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
480 * lang-options.h: Remove.
481 * lang.opt: Document some options. Remove --help.
482 * tree1.c (treelang_handle_option): Remove OPT__help case.
484 2003-07-12 Andreas Jaeger <aj@suse.de>
486 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
488 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
490 * Make-lang.in: Update.
491 * tree1.c: Don't include c-common.h.
492 (c_language): Remove.
494 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
495 Steven Bosscher <steven@gcc.gnu.org>
497 * tree-convert.c: New file.
498 * treetree.c: Don't include c-tree.h. Include target.h.
499 (struct lang_identifier, union lang_tree_node, struct lang_type,
500 struct lang_function): New, minimal language-specific datastructs.
501 (tree_lang_truthvalue_conversion, tree_mark_addressable,
502 tree_lang_type_for_size, tree_lang_type_for_mode,
503 tree_lang_unsigned_type, tree_lang_signed_type,
504 tree_lang_signed_or_unsigned): New functions.
505 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
506 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
507 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
508 tree_push_atomic_type_decl): New functions.
509 (struct resword, struct reswords): Remove.
510 * Make-lang.in: Update. Don't depend on C front end objects.
511 * config-lang.in: Likewise.
513 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
515 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
516 tree_code_if_end, tree_code_create_function_initial,
517 tree_code_create_function_wrapup, tree_code_generate_return,
518 tree_code_output_expression_statement): Adjust emit_line_note
521 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
523 * Make-lang.in: Replace PWD with PWD_COMMAND.
525 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
527 * tree1.c (treelang_init_options): Update prototype.
528 * treelang.h (treelang_init_options): Update prototype.
530 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
532 * Make-lang.in: Update.
533 * tree1.c: Include c-common.h. Define c_language.
535 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
537 * treetree.c (tree_code_create_function_wrapup): Adjust
538 expand_function_end call.
540 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
542 * treetree.c (build_stmt): Remove VPARAMS.
543 (pedwarn_c99): Likewise.
545 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
547 * lang.opt: Declare Treelang. Update.
548 * tree1.c (treelang_init_options): Update.
550 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
552 * treetree.c (tree_code_create_function_initial): Adjust
553 init_function_start call.
555 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
557 * Make-lang.in: Update to use options.c and options.h.
558 * tree1.c: Include options.h not t-options.h.
559 (treelang_init_options): New.
560 (treelang_handle_option): Abort on unrecognized switch.
561 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
562 * treetree.h (treelang_init_options): New.
564 2003-06-12 Andreas Jaeger <aj@suse.de>
566 * treetree.c: Remove cl_options-count and cl_options.
568 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
570 * Make-lang.in: Update for option handling.
572 * tree1.c: Include opts.h and t-options.h.
573 (treelang_decode_option): Remove.
574 (treelang_handle_option): New.
575 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
576 (LANG_HOOKS_HANDLE_OPTION): Override.
577 * treetree.h (treelang_decode_option): Remove.
578 (treelang_handle_option): New.
580 2003-06-08 Andreas Jaeger <aj@suse.de>
582 * Make-lang.in: Update.
583 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
585 2003-06-08 Tim Josling <tej@melbpc.org.au>
587 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
589 2003-06-05 Jan Hubicka <jh@suse.cz>
591 * Make-lang.in: Add support for stageprofile and stagefeedback
593 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
595 * treetree.c (reswords): Remove __bounded__, __unbounded__.
597 2003-05-09 Tim Josling <tej@melbpc.org.au>
599 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
600 to link (needed by some front ends such as PPC).
602 * treetree.c (tree_code_create_function_initial): Fix long line.
603 Initialize tree_code_int_size and tree_code_char_size to
605 (tree_code_get_numeric_type): Add check that size1 parameter is
608 * parse.y: Fix extra long lines in prototypes.
610 * treelang.h: Fix extra long lines in macro definitions.
612 2003-05-07 Zack Weinberg <zack@codesourcery.com>
614 * Make-lang.in: Set -Wno-error for treelang/lex.o.
616 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
618 * Make-lang.in (treelang/tree1.o): Depends on input.h
619 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
620 * treelang.h: #include input.h.
622 (struct token_part): Remove lineno, add location.
623 * lex.l (next_tree_lineno): Remove.
624 (update_lineno_charno): Adjust.
625 (dump_lex_value): Adjust.
626 * parse.y (variable_def, function_prototype, function, statement,
627 if_statement, return, function_invocation, variable_ref): Adjust.
628 (print_token, yyerror, ensure_not_void): Adjust.
629 tree1.c (in_fname): Remove.
630 (treelang_init): Setup input_location.
631 (lookup_tree_name): Adjust.
632 (insert_tree_name): Adjust.
633 * treetree.c (tree_code_if_start): Replace filename and lineno
634 parms with loc. Adjust.
635 (tree_code_if_else, tree_code_if_end,
636 tree_code_create_function_prototype,
637 tree_code_create_function_initial,
638 tree_code_create_function_wrapup, tree_code_create_variable,
639 tree_code_output_expression_statement): Likewise.
640 * treetree.h (tree_code_if_start): Replace filename and lineno
642 (tree_code_if_else, tree_code_if_end,
643 tree_code_create_function_prototype,
644 tree_code_create_function_initial,
645 tree_code_create_function_wrapup, tree_code_create_variable,
646 tree_code_output_expression_statement): Likewise.
648 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
650 * tree1.c (treelang_init): Rename lineno to input_line.
652 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
654 * parse.y (make_plus_expression): New function.
655 (expression production): Use make_plus_expression for PLUS,
656 MINUS, ASSIGN and EQUALS.
657 * tree1.c (treelang_decode_option): Don't fall through to
658 options that start with a different character when an option
661 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
663 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
664 * treetree.c: Do not #include parse.h.
666 2003-03-21 Andreas Jaeger <aj@suse.de>
668 * treetree.c (cpp_create_reader): Follow prototype change in
671 2003-03-17 Andreas Jaeger <aj@suse.de>
673 * Make-lang.in (treelang.tags): Remove duplicate entry.
675 2003-03-15 Andreas Jaeger <aj@suse.de>
677 * treetree.c (cpp_handle_option): Remove.
679 2003-03-13 Andreas Jaeger <aj@suse.de>
681 * Make-lang.in (tree1$(exeext)): Fix previous patch.
683 2003-03-12 Andreas Jaeger <aj@suse.de>
685 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
687 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
689 * tree1.c (in_fname): Fix type.
690 (treelang_init): Update prototype and use of in_fname.
691 * treelang.h (in_fname): Fix type.
692 * treetree.c (tree_code_if_start, tree_code_if_else,
693 tree_code_if_end, tree_code_create_function_prototype,
694 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
695 tree_code_create_variable, tree_code_output_expression_statement)
696 : Fix prototypes and use of filenames.
697 * treetree.h: Similarly.
699 2003-03-05 Andreas Jaeger <aj@suse.de>
701 * treetree.c (init_c_lex): Follow change to c-common.h.
703 2003-03-04 Tom Tromey <tromey@redhat.com>
705 * Make-lang.in (treelang.tags): New target.
707 2003-03-01 Tim Josling <tej@melbpc.org.au>
709 Name clashes with rtl.h fixed.
711 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
716 2003-02-24 Tim Josling <tej@melbpc.org.au>
718 * parse.y (my_yylex): New - ensure lexer time is charged to
720 (yylex): redefine as invocation of my_yylex which then calls
721 flex-generated yylex.
722 (timevar.h): include.
724 2003-02-23 Tim Josling <tej@melbpc.org.au>
726 Fix garbage collection, add more error checking, force GC always.
728 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
729 (treelang/treetree.o): Depend on treelang/parse.h
731 * lex.l: include "treetree.h"
733 * lex.l (update_yylval): Allocate string using get_string so GC
736 * parse.y (function_prototype): Set category correctly so GC works.
737 (function): Set category in search so checking works.
738 (function_invocation): Ditto.
739 (variable_ref): Ditto.
741 * tree1.c (lookup_tree_name): Call sanity_check for passed
742 production and associated token and for symbol table entries.
744 * tree1.c (sanity_check): New, basic check that struct is valid.
746 * treelang.h: Prototype for sanity_check.
748 2003-01-27 Tim Josling <tej@melbpc.org.au>
750 * treetree.c (treelang_init_decl_processing): Change memory
751 allocation to use GC.
753 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
755 * treelang.texi: Update to GFDL 1.2.
757 2003-01-26 Michael Matz <matz@suse.de>
759 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
761 2003-01-14 Andreas Jaeger <aj@suse.de>
763 * Make-lang.in (treelang.install-info): Depend only on info files
764 if BUILD_INFO is set. Fix install rules.
767 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
769 * Make-lang.in (treelang.install.common.done,
770 treelang.install-info, treelang.uninstall): Prepend
771 $(DESTDIR) to destination paths in all (un)installation
774 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
776 * treelang.texi: Use @copying.
778 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
780 * treelang.texi: Include gcc-common.texi.
781 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
782 Depend on gcc-common.texi. Add other missing dependencies.
783 (treelang.dvi): Use texi2dvi.
785 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
787 * treelang.texi: Use @ifnottex instead of @ifinfo.
789 2002-11-30 Zack Weinberg <zack@codesourcery.com>
791 * lex.l: Move "%{" below copyright notice; get rid of "/*"
792 embedded in comment. Do not #undef IN_GCC; do not include
793 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
794 Do include coretypes.h and tm.h.
795 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
796 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
797 ansidecl.h. Do include coretypes.h and tm.h.
798 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
799 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
800 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
801 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
802 or ansidecl.h. Do include coretypes.h and tm.h.
803 * Make-lang.in: Update dependencies.
805 2002-09-09 Tim Josling <tej@melbpc.org.au>
807 * treetree.c (objc_is_id): New.
809 2002-08-16 Tim Josling <tej@melbpc.org.au>
811 Remove variables and functions now defined elsewhere.
813 * treetree.c (maybe_objc_comptypes): Remove.
814 (warn_format, warn_format_y2k, warn_format_extra_args,
815 warn_format_nonliteral, warn_format_security,
816 warn_format_zero_length): Remove.
817 (maybe_building_objc_message_expr): Remove.
818 (cpp_post_options): Remove.
819 (maybe_objc_check_decl): Remove.
820 (integer_types): Remove.
823 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
825 * treelang.c: Remove cpp_post_options.
827 2002-08-13 Tim Josling <tej@melbpc.org.au>
829 * parse.y: Provide dummy definition of rtx for use by config.h.
830 * Make-lang.in (treetree.o): Remove dependency on non-existent
831 gt-treelang-treelang.h.
832 (gt-treelang-treelang.h): Remove.
834 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
836 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
838 2002-07-11 Tim Josling <tej@melbpc.org.au>
840 Remove front end hard coding from gengtype.c.
842 * config-lang.in (gtfiles): Add files needed for this front
845 2002-07-09 Tim Josling <tej@melbpc.org.au>
847 Support new attributes regime (Fix for PR c++/7099).
849 * treetree.c (handle_format_attribute): Return NULL_TREE instead
851 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
852 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
853 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
855 2002-06-21 Andreas Jaeger <aj@suse.de>
857 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
858 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
860 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
862 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
865 2002-06-10 Tim Josling <tej@melbpc.org.au>
869 * Make-lang.in (check-treelang). Add. Remove direct dependency of
870 'check' on 'treelang.check' as redundant.
872 PCH Garbage collection regime (gengtypes.c) phase 1.
874 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
875 gt-treelang-treelang.h gtype-treelang.h.
876 (gt-treelang-tree1.h) Depend on s-gtype.
877 (gt-treelang-treelang.h) Depend on s-gtype.
878 (gtype-treelang.h) Depend on s-gtype.
880 * config-lang.in (gtfiles): Define.
882 * lex.l (main): Remove '#if 0' dead code.
883 (main): Move undef of IN_GCC so define of tree typedef works.
884 (all): Replace token and production by prod_token_parm_item.
887 (all): Replace token and production by prod_token_parm_item.
889 * tree1.c (main): Remove include of "output.h".
890 (symbol_table): Add GTY details.
891 (symbol_table_ggc): Remove.
892 (treelang_init): Remove root definitions for garbage collection.
893 (mark_production_used): Remove.
894 (mark_token_used): Remove.
895 (main, at end): include generated garage collection routines.
897 * treelang.h (category_enum ): Add parameter_category.
898 (all): Replace token and production and parameters by union
899 prod_token_parm_item containing production_part, token_part,
901 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
902 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
903 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
904 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
908 (tm_p.h): Do not include.
909 (ansidecl.h): Move include after config.h.
910 (treelang.h): Include it.
912 (all): Replace token, production and parameter by prod_token_parm_item.
913 (tree_parameter_list): Move to treelang.h as part of
914 prod_token_parm_item.
915 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
916 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
917 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
918 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
921 2002-05-19 Tim Josling <tej@melbpc.org.au>
923 * treetree.c (warn_format_zero_length): Add.
925 2002-05-14 Tim Josling <tej@melbpc.org.au>
927 * Make-lang.in: Fix build for .info files, add target for manpages.
928 A bug report and a suggested patch came from Magnus Fromreide
929 <magfr@lysator.liu.se>.
931 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
933 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
935 2002-05-11 Tim Josling <tej@melbpc.org.au>
937 * treetree.c: (cpp_define) Add.
938 (cpp_get_callbacks) Add.
940 2002-05-07 Tim Josling <tej@melbpc.org.au>
942 * treetree.c: (cpp_get_options) Add.
944 2002-05-06 Tim Josling <tej@melbpc.org.au>
948 2002-05-05 Tim Josling <tej@melbpc.org.au>
950 * Updated for gcc3.2 experimental. Major changes throughout.
952 2002-03-31 Tim Josling <tej@melbpc.org.au>
954 * Make-lang.in: Changes so build and check work more reliably
956 2001-07-30 Tim Josling <tej@melbpc.org.au>
959 * treelang.texi: updates based on feedback
961 2001-06-11 Tim Josling <tej@melbpc.org.au>
963 * all (all) Revamp code to conform to GCC coding standards, fix
966 2001-05-11 Tim Josling <tej@melbpc.org.au>
968 Create the new language.