1 2005-04-29 Tom Tromey <tromey@redhat.com>
3 * treetree.c (poplevel): Updated for change to build_block.
5 2005-04-23 DJ Delorie <dj@redhat.com>
7 * parse.y: Adjust warning() callers.
9 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
11 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
13 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
16 * lang-spec.c: Simplify @treelang to what the other
19 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
21 * treelang/treelang.texi: Fix typos.
22 * treelang/treetree.c: Fix comment typos.
24 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
27 tree_lang_truthvalue_conversion): Remove.
28 * tree-convert.c: Don't call truthvalue_conversion.
30 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
32 * treetree.c (tree_code_if_start): Use fold_buildN.
33 (tree_code_create_variable): Likewise.
34 (tree_code_generate_return): Likewise.
35 (tree_code_get_expression): Likewise.
36 (tree_code_add_parameter): Likewise.
38 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
40 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
43 2005-03-15 Zack Weinberg <zack@codesourcery.com>
45 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
47 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
50 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
53 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
55 * treelang.texi: Fix a typo.
57 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
59 * parse.y (function_invocation, variable-ref, make_plus_expression):
60 Pass location to tree_code_get_expression.
61 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
62 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
63 set EXPR_LOCATION on ret1.
64 * treetree.h (tree_code_get_expression): Take the location of the
65 expression as an argument.
67 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
69 * treelang.texi: Treelang does have warnings.
70 * treetree.c (tree_code_create_function_prototype): Don't set
71 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
72 as few times as needed on the function declaration.
73 (tree_code_create_function_initial): Don't set TREE_USED,
74 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
75 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
76 (tree_code_get_expression): Set TREE_USED for variable references
79 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
81 * parse.y: Do comparisons as the type of the first expression.
82 * treetree.c (tree_code_get_integer_value): Build integer constants
85 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
87 * Make-lang.in: Remove commented out code.
88 * lang-specs.h: Always pass -dumpbase to tree1.
90 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
92 * treelang.texi: Remove extra contribution notice.
93 Split up some run-on sentences. Document function parameters
94 as optional. Indicate automatic variables can now be at any scope.
95 Mention literals are only signed if they are preceded by a unary
96 plus or minus. Clarify interoperability with C.
98 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
100 * treelang.texi: Fix whitespacing.
102 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
105 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
106 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
107 rest_of_decl_compilation on static variables.
108 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
111 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
114 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
115 Move function parameters check from ...
116 (function): ...Here. Update call to tree_code_create_function_initial.
117 (function_invocation): Use expressions_with_commas_opt instead of
118 expressions_with_commas.
119 (expressions_with_commas_opt): New rule.
120 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
121 for function parameters.
122 (tree_code_create_function_initial): Remove PARMS parameter.
123 Don't create PARM_DECLs for function parameters.
124 * treetree.h (tree_code_create_function_initial): Remove PARMS
127 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
129 * parse.y: Update copyright.
131 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
133 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
134 scalar integer types.
136 2005-02-09 Richard Henderson <rth@redhat.com>
138 * treetree.c (treelang_init_decl_processing): Call
139 build_common_builtin_nodes.
141 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
143 * treelang.texi: Don't use local treelang version number. Don't
144 give last update date.
146 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
148 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
150 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
152 * parse.y: Reformat comments.
153 * treetree.c: Likewise.
154 * treetree.h: Likewise.
156 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
158 * treetree.c (tree_code_generate_return): Wrap param declaration in
161 2004-10-05 Zack Weinberg <zack@codesourcery.com>
163 * parse.y: Add list of diagnostic messages to insulate
164 translation template from version of yacc/bison used to
167 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
170 * lex.l: Include input.h and errors.h
171 (lineno): New variable.
172 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
174 Set column position with LINEMAP_POSITION_FOR_COLUMN.
175 Use error instead of fprintf.
176 Set input_location with the value returned by linemap_start_line when
177 USE_MAPPED_LOCATION is defined.
178 (dump_lex_value): Use LOCATION_LINE.
179 * parse.y: Include errors.h.
180 Use error and warning instead of fprintf.
181 (return): Move exp to rule scope and always set to $2. Test against
183 (init): Set $$ to $2.
184 (print_token): Use LOCATION_LINE.
185 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
186 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
188 (treelang_parse_file): Always start at line one.
189 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
191 Leave main_input_filename when done parsing the input.
192 (insert_tree_name): Use error instead of fprintf.
193 * treetree.c (tree_code_get_expression): Wrap long line.
194 (tree_mark_addressable): Use %qD to print out DECLs.
196 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
198 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
200 * treetree.c: Likewise.
202 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
204 * lex.l: Remove random whitespace.
205 * parse.y: Reformat copyright notice. Indent declarations.
206 Wrap long lines, unwrap short lines.
207 * tree1.c: Reformat copyright notice. Wrap long lines.
208 Remove random whitespace.
209 (lookup_tree_name): Use LOCATION_LINE.
210 * treetree.c: Reformat copyright notice. Wrap long lines.
211 Remove random whitespace.
213 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
215 * parse.y (ELSE): Set tok to $1.
216 * treelang.texi: Wrap comments in @r{}. Indent example comments.
217 Use gcc when refering to the command line or website. Update function
220 2004-10-01 Jan Hubicka <jh@suse.cz>
222 * treetree.c (treeland_expand_function): Update call of
223 tree_rest_of_compilation.
225 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
226 Zack Weinberg <zack@codesourcery.com>
228 * treetree.c: Update for new tree-class enumeration constants.
230 2004-09-15 Zack Weinberg <zack@codesourcery.com>
232 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
234 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
236 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
238 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
240 * treelang/treetree.c (treelang_init_decl_processing): Adjust
241 build_common_tree_nodes call.
243 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
245 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
247 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
249 * Make-lang.in (TREE_BE_LIBS): Remove.
250 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
252 * parse.y: Add variable_defs_opt before statements_opt.
253 Use tree_code_get_type instead of get_type_for_numeric_type.
255 (parameters_opt): New rule.
256 (function_prototype): Use parameters_opt.
257 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
258 (check_type_match): Use VOID_TYPE.
259 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
260 * tree1.c: Include version.h and cgraph.h
261 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
263 * treelang.h (item): Remove extraneous GTY.
264 * treetree.h (get_type_for_numeric_type): Remove.
265 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
266 function.h, and cgraph.h. Don't include rtl.h
267 (keep_level_p): Remove.
268 (tree_push_atomic_type_decl): Remove.
269 (get_type_for_numeric_type): Remove.
270 (tree_code_get_numeric_type): Remove.
271 (global_bindings_p): Make static.
272 (getdecls): Likewise.
273 (insert_block): Likewise.
274 (tree_code_if_start): Create a COND_EXPR and add it to the tree
275 instead of creating rtl.
276 (tree_code_if_else): Create a BIND_EXPR if any variables were created
278 (tree_code_end_if): Likewise.
279 (tree_code_create_function_prototype): Use tree_code_get_type.
280 Don't use SET_DECL_ASSEMBLER_NAME.
281 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
282 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
283 layout_decl on RESULT_DECL. Don't call rtl expand functions.
284 (tree_code_create_function_wrapup): Don't call rtl expand functions.
285 Create a BIND_EXPR for each function. Dump original and gimplified
286 copies of the function tree. Gimplify function.
287 (tree_code_create_variable): Use tree_code_get_type. Don't call
288 layout_decl or expand_decl. Fold CONVERT_EXPRs.
289 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
290 Add RETURN_EXPR to the current statement list. Don't call rtl expand
292 (tree_code_output_expression_statement): Append CODE to current
294 (tree_code_get_expression): Fold expressions. Build a pointer to
295 a FUNCTION_TYPE intead of the called functions return type.
296 (struct binding_level): Add statement list STMTS.
297 (getstmtlist): New Function.
298 (pushlevel): Make static. Allocate an empty statement list.
299 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
300 Don't use DECL_ASSEMBLER_NAME.
301 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
302 (treelang_init_decl_processing): Define basic types after unused types.
303 Don't call tree_push_atomic_type_decl.
304 (builtin_function): Don't call make_decl_rtl.
305 (treelang_expand_function). New Function.
307 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
309 * treetree.c (set_block): Remove.
310 (struct binding_level): Remove block_created_by_back_end.
311 (clear_binding_level): Likewise.
312 (tree_code_create_function_initial,
313 tree_code_create_function_wrapup): Call pushlevel and poplevel
314 directly rather than through hooks.
315 (poplevel): Don't handle block_created_by_back_end.
317 2004-04-07 Richard Henderson <rth@redhat.com>
319 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
321 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
323 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
326 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
328 * treelang.texi: Update link to "G++ and GCC".
330 2004-02-20 Richard Henderson <rth@redhat.com>
332 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
334 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
336 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
338 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
340 * Make-lang.in: Replace $(docdir) with doc.
341 (treelang.info, treelang.srcinfo): New rules.
342 (treelang.man, treelang.man): Dummy entries.
344 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
346 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
347 (treelang/parse.o, treelang/lex.o): Look for sources in build
348 directory. Use implicit rule.
349 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
351 (treelang.srcextra): Copy above back to source directory if requested.
353 2004-01-07 Zack Weinberg <zack@codesourcery.com>
355 * parse.y (yyerror): Mark the definition static.
357 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
359 * lex.l: Add \t as a whitespace character.
360 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
362 * treelang.texi (What is GNU Treelang?): Fix a typo.
363 (Lexical Syntax): Create an itemize list of keywords. Add commas to
364 paragraph defining names.
366 2003-11-26 Jason Merrill <jason@redhat.com>
368 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
369 directory and TAGS files that include them for each front end.
371 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
373 * .cvsignore: Delete.
375 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
377 * Make-lang.in (treelang.extraclean): Delete.
379 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
381 * Make-lang.in: Remove obsolete comment.
383 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
385 * Make-lang.in (dvi): Move targets to $(docobjdir).
386 (treelang.dvi): Simplify rule and adjust target.
387 (treelang.info): Simplify rule.
388 (parse.o): Correct dependencies.
389 (TREE_EXE): Delete doubled suffix append.
391 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
393 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
396 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
398 * Make-lang.in (parse.o): Honor $(parsedir).
401 (parse.c, parse.h): Likewise.
402 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
405 2003-10-20 Mark Mitchell <mark@codesourcery.com>
407 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
410 * Make-lang.in (info): Use docobjdir.
411 ($(srcdir)/treelang/treelang.info): Replace with ...
412 ($(docobjdir)/treelang/treelang.info): ... this.
413 (install-info): New target.
415 2003-10-12 Andreas Jaeger <aj@suse.de>
417 * Make-lang.in (treelang.install-info): Remove reference to
419 (treelang.): Removed.
421 2003-10-06 Mark Mitchell <mark@codesourcery.com>
423 * Make-lang.in (treelang.info): Replace with ...
425 * Make-lang.in (treelang.dvi): Replace with ...
428 2003-09-21 Richard Henderson <rth@redhat.com>
430 * treetree.c: Revert.
432 2003-09-21 Richard Henderson <rth@redhat.com>
434 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
437 2003-07-28 Andreas Jaeger <aj@suse.de>
439 * treetree.c: Convert remaining K&R prototypes to ISO C90.
442 * tree-convert.c: Likewise.
444 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
446 * treetree.c: Remove unnecessary casts.
448 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
450 * lang-options.h: Remove.
451 * lang.opt: Document some options. Remove --help.
452 * tree1.c (treelang_handle_option): Remove OPT__help case.
454 2003-07-12 Andreas Jaeger <aj@suse.de>
456 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
458 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
460 * Make-lang.in: Update.
461 * tree1.c: Don't include c-common.h.
462 (c_language): Remove.
464 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
465 Steven Bosscher <steven@gcc.gnu.org>
467 * tree-convert.c: New file.
468 * treetree.c: Don't include c-tree.h. Include target.h.
469 (struct lang_identifier, union lang_tree_node, struct lang_type,
470 struct lang_function): New, minimal language-specific datastructs.
471 (tree_lang_truthvalue_conversion, tree_mark_addressable,
472 tree_lang_type_for_size, tree_lang_type_for_mode,
473 tree_lang_unsigned_type, tree_lang_signed_type,
474 tree_lang_signed_or_unsigned): New functions.
475 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
476 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
477 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
478 tree_push_atomic_type_decl): New functions.
479 (struct resword, struct reswords): Remove.
480 * Make-lang.in: Update. Don't depend on C front end objects.
481 * config-lang.in: Likewise.
483 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
485 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
486 tree_code_if_end, tree_code_create_function_initial,
487 tree_code_create_function_wrapup, tree_code_generate_return,
488 tree_code_output_expression_statement): Adjust emit_line_note
491 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
493 * Make-lang.in: Replace PWD with PWD_COMMAND.
495 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
497 * tree1.c (treelang_init_options): Update prototype.
498 * treelang.h (treelang_init_options): Update prototype.
500 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
502 * Make-lang.in: Update.
503 * tree1.c: Include c-common.h. Define c_language.
505 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
507 * treetree.c (tree_code_create_function_wrapup): Adjust
508 expand_function_end call.
510 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
512 * treetree.c (build_stmt): Remove VPARAMS.
513 (pedwarn_c99): Likewise.
515 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
517 * lang.opt: Declare Treelang. Update.
518 * tree1.c (treelang_init_options): Update.
520 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
522 * treetree.c (tree_code_create_function_initial): Adjust
523 init_function_start call.
525 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
527 * Make-lang.in: Update to use options.c and options.h.
528 * tree1.c: Include options.h not t-options.h.
529 (treelang_init_options): New.
530 (treelang_handle_option): Abort on unrecognized switch.
531 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
532 * treetree.h (treelang_init_options): New.
534 2003-06-12 Andreas Jaeger <aj@suse.de>
536 * treetree.c: Remove cl_options-count and cl_options.
538 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
540 * Make-lang.in: Update for option handling.
542 * tree1.c: Include opts.h and t-options.h.
543 (treelang_decode_option): Remove.
544 (treelang_handle_option): New.
545 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
546 (LANG_HOOKS_HANDLE_OPTION): Override.
547 * treetree.h (treelang_decode_option): Remove.
548 (treelang_handle_option): New.
550 2003-06-08 Andreas Jaeger <aj@suse.de>
552 * Make-lang.in: Update.
553 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
555 2003-06-08 Tim Josling <tej@melbpc.org.au>
557 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
559 2003-06-05 Jan Hubicka <jh@suse.cz>
561 * Make-lang.in: Add support for stageprofile and stagefeedback
563 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
565 * treetree.c (reswords): Remove __bounded__, __unbounded__.
567 2003-05-09 Tim Josling <tej@melbpc.org.au>
569 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
570 to link (needed by some front ends such as PPC).
572 * treetree.c (tree_code_create_function_initial): Fix long line.
573 Initialize tree_code_int_size and tree_code_char_size to
575 (tree_code_get_numeric_type): Add check that size1 parameter is
578 * parse.y: Fix extra long lines in prototypes.
580 * treelang.h: Fix extra long lines in macro definitions.
582 2003-05-07 Zack Weinberg <zack@codesourcery.com>
584 * Make-lang.in: Set -Wno-error for treelang/lex.o.
586 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
588 * Make-lang.in (treelang/tree1.o): Depends on input.h
589 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
590 * treelang.h: #include input.h.
592 (struct token_part): Remove lineno, add location.
593 * lex.l (next_tree_lineno): Remove.
594 (update_lineno_charno): Adjust.
595 (dump_lex_value): Adjust.
596 * parse.y (variable_def, function_prototype, function, statement,
597 if_statement, return, function_invocation, variable_ref): Adjust.
598 (print_token, yyerror, ensure_not_void): Adjust.
599 tree1.c (in_fname): Remove.
600 (treelang_init): Setup input_location.
601 (lookup_tree_name): Adjust.
602 (insert_tree_name): Adjust.
603 * treetree.c (tree_code_if_start): Replace filename and lineno
604 parms with loc. Adjust.
605 (tree_code_if_else, tree_code_if_end,
606 tree_code_create_function_prototype,
607 tree_code_create_function_initial,
608 tree_code_create_function_wrapup, tree_code_create_variable,
609 tree_code_output_expression_statement): Likewise.
610 * treetree.h (tree_code_if_start): Replace filename and lineno
612 (tree_code_if_else, tree_code_if_end,
613 tree_code_create_function_prototype,
614 tree_code_create_function_initial,
615 tree_code_create_function_wrapup, tree_code_create_variable,
616 tree_code_output_expression_statement): Likewise.
618 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
620 * tree1.c (treelang_init): Rename lineno to input_line.
622 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
624 * parse.y (make_plus_expression): New function.
625 (expression production): Use make_plus_expression for PLUS,
626 MINUS, ASSIGN and EQUALS.
627 * tree1.c (treelang_decode_option): Don't fall through to
628 options that start with a different character when an option
631 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
633 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
634 * treetree.c: Do not #include parse.h.
636 2003-03-21 Andreas Jaeger <aj@suse.de>
638 * treetree.c (cpp_create_reader): Follow prototype change in
641 2003-03-17 Andreas Jaeger <aj@suse.de>
643 * Make-lang.in (treelang.tags): Remove duplicate entry.
645 2003-03-15 Andreas Jaeger <aj@suse.de>
647 * treetree.c (cpp_handle_option): Remove.
649 2003-03-13 Andreas Jaeger <aj@suse.de>
651 * Make-lang.in (tree1$(exeext)): Fix previous patch.
653 2003-03-12 Andreas Jaeger <aj@suse.de>
655 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
657 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
659 * tree1.c (in_fname): Fix type.
660 (treelang_init): Update prototype and use of in_fname.
661 * treelang.h (in_fname): Fix type.
662 * treetree.c (tree_code_if_start, tree_code_if_else,
663 tree_code_if_end, tree_code_create_function_prototype,
664 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
665 tree_code_create_variable, tree_code_output_expression_statement)
666 : Fix prototypes and use of filenames.
667 * treetree.h: Similarly.
669 2003-03-05 Andreas Jaeger <aj@suse.de>
671 * treetree.c (init_c_lex): Follow change to c-common.h.
673 2003-03-04 Tom Tromey <tromey@redhat.com>
675 * Make-lang.in (treelang.tags): New target.
677 2003-03-01 Tim Josling <tej@melbpc.org.au>
679 Name clashes with rtl.h fixed.
681 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
686 2003-02-24 Tim Josling <tej@melbpc.org.au>
688 * parse.y (my_yylex): New - ensure lexer time is charged to
690 (yylex): redefine as invocation of my_yylex which then calls
691 flex-generated yylex.
692 (timevar.h): include.
694 2003-02-23 Tim Josling <tej@melbpc.org.au>
696 Fix garbage collection, add more error checking, force GC always.
698 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
699 (treelang/treetree.o): Depend on treelang/parse.h
701 * lex.l: include "treetree.h"
703 * lex.l (update_yylval): Allocate string using get_string so GC
706 * parse.y (function_prototype): Set category correctly so GC works.
707 (function): Set category in search so checking works.
708 (function_invocation): Ditto.
709 (variable_ref): Ditto.
711 * tree1.c (lookup_tree_name): Call sanity_check for passed
712 production and associated token and for symbol table entries.
714 * tree1.c (sanity_check): New, basic check that struct is valid.
716 * treelang.h: Prototype for sanity_check.
718 2003-01-27 Tim Josling <tej@melbpc.org.au>
720 * treetree.c (treelang_init_decl_processing): Change memory
721 allocation to use GC.
723 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
725 * treelang.texi: Update to GFDL 1.2.
727 2003-01-26 Michael Matz <matz@suse.de>
729 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
731 2003-01-14 Andreas Jaeger <aj@suse.de>
733 * Make-lang.in (treelang.install-info): Depend only on info files
734 if BUILD_INFO is set. Fix install rules.
737 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
739 * Make-lang.in (treelang.install.common.done,
740 treelang.install-info, treelang.uninstall): Prepend
741 $(DESTDIR) to destination paths in all (un)installation
744 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
746 * treelang.texi: Use @copying.
748 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
750 * treelang.texi: Include gcc-common.texi.
751 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
752 Depend on gcc-common.texi. Add other missing dependencies.
753 (treelang.dvi): Use texi2dvi.
755 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
757 * treelang.texi: Use @ifnottex instead of @ifinfo.
759 2002-11-30 Zack Weinberg <zack@codesourcery.com>
761 * lex.l: Move "%{" below copyright notice; get rid of "/*"
762 embedded in comment. Do not #undef IN_GCC; do not include
763 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
764 Do include coretypes.h and tm.h.
765 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
766 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
767 ansidecl.h. Do include coretypes.h and tm.h.
768 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
769 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
770 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
771 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
772 or ansidecl.h. Do include coretypes.h and tm.h.
773 * Make-lang.in: Update dependencies.
775 2002-09-09 Tim Josling <tej@melbpc.org.au>
777 * treetree.c (objc_is_id): New.
779 2002-08-16 Tim Josling <tej@melbpc.org.au>
781 Remove variables and functions now defined elsewhere.
783 * treetree.c (maybe_objc_comptypes): Remove.
784 (warn_format, warn_format_y2k, warn_format_extra_args,
785 warn_format_nonliteral, warn_format_security,
786 warn_format_zero_length): Remove.
787 (maybe_building_objc_message_expr): Remove.
788 (cpp_post_options): Remove.
789 (maybe_objc_check_decl): Remove.
790 (integer_types): Remove.
793 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
795 * treelang.c: Remove cpp_post_options.
797 2002-08-13 Tim Josling <tej@melbpc.org.au>
799 * parse.y: Provide dummy definition of rtx for use by config.h.
800 * Make-lang.in (treetree.o): Remove dependency on non-existent
801 gt-treelang-treelang.h.
802 (gt-treelang-treelang.h): Remove.
804 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
806 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
808 2002-07-11 Tim Josling <tej@melbpc.org.au>
810 Remove front end hard coding from gengtype.c.
812 * config-lang.in (gtfiles): Add files needed for this front
815 2002-07-09 Tim Josling <tej@melbpc.org.au>
817 Support new attributes regime (Fix for PR c++/7099).
819 * treetree.c (handle_format_attribute): Return NULL_TREE instead
821 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
822 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
823 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
825 2002-06-21 Andreas Jaeger <aj@suse.de>
827 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
828 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
830 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
832 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
835 2002-06-10 Tim Josling <tej@melbpc.org.au>
839 * Make-lang.in (check-treelang). Add. Remove direct dependency of
840 'check' on 'treelang.check' as redundant.
842 PCH Garbage collection regime (gengtypes.c) phase 1.
844 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
845 gt-treelang-treelang.h gtype-treelang.h.
846 (gt-treelang-tree1.h) Depend on s-gtype.
847 (gt-treelang-treelang.h) Depend on s-gtype.
848 (gtype-treelang.h) Depend on s-gtype.
850 * config-lang.in (gtfiles): Define.
852 * lex.l (main): Remove '#if 0' dead code.
853 (main): Move undef of IN_GCC so define of tree typedef works.
854 (all): Replace token and production by prod_token_parm_item.
857 (all): Replace token and production by prod_token_parm_item.
859 * tree1.c (main): Remove include of "output.h".
860 (symbol_table): Add GTY details.
861 (symbol_table_ggc): Remove.
862 (treelang_init): Remove root definitions for garbage collection.
863 (mark_production_used): Remove.
864 (mark_token_used): Remove.
865 (main, at end): include generated garage collection routines.
867 * treelang.h (category_enum ): Add parameter_category.
868 (all): Replace token and production and parameters by union
869 prod_token_parm_item containing production_part, token_part,
871 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
872 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
873 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
874 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
878 (tm_p.h): Do not include.
879 (ansidecl.h): Move include after config.h.
880 (treelang.h): Include it.
882 (all): Replace token, production and parameter by prod_token_parm_item.
883 (tree_parameter_list): Move to treelang.h as part of
884 prod_token_parm_item.
885 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
886 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
887 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
888 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
891 2002-05-19 Tim Josling <tej@melbpc.org.au>
893 * treetree.c (warn_format_zero_length): Add.
895 2002-05-14 Tim Josling <tej@melbpc.org.au>
897 * Make-lang.in: Fix build for .info files, add target for manpages.
898 A bug report and a suggested patch came from Magnus Fromreide
899 <magfr@lysator.liu.se>.
901 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
903 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
905 2002-05-11 Tim Josling <tej@melbpc.org.au>
907 * treetree.c: (cpp_define) Add.
908 (cpp_get_callbacks) Add.
910 2002-05-07 Tim Josling <tej@melbpc.org.au>
912 * treetree.c: (cpp_get_options) Add.
914 2002-05-06 Tim Josling <tej@melbpc.org.au>
918 2002-05-05 Tim Josling <tej@melbpc.org.au>
920 * Updated for gcc3.2 experimental. Major changes throughout.
922 2002-03-31 Tim Josling <tej@melbpc.org.au>
924 * Make-lang.in: Changes so build and check work more reliably
926 2001-07-30 Tim Josling <tej@melbpc.org.au>
929 * treelang.texi: updates based on feedback
931 2001-06-11 Tim Josling <tej@melbpc.org.au>
933 * all (all) Revamp code to conform to GCC coding standards, fix
936 2001-05-11 Tim Josling <tej@melbpc.org.au>
938 Create the new language.