1 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
4 * lang-spec.c: Simplify @treelang to what the other
7 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
9 * treelang/treelang.texi: Fix typos.
10 * treelang/treetree.c: Fix comment typos.
12 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
14 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
15 tree_lang_truthvalue_conversion): Remove.
16 * tree-convert.c: Don't call truthvalue_conversion.
18 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
20 * treetree.c (tree_code_if_start): Use fold_buildN.
21 (tree_code_create_variable): Likewise.
22 (tree_code_generate_return): Likewise.
23 (tree_code_get_expression): Likewise.
24 (tree_code_add_parameter): Likewise.
26 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
28 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
31 2005-03-15 Zack Weinberg <zack@codesourcery.com>
33 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
35 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
38 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
41 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
43 * treelang.texi: Fix a typo.
45 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
47 * parse.y (function_invocation, variable-ref, make_plus_expression):
48 Pass location to tree_code_get_expression.
49 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
50 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
51 set EXPR_LOCATION on ret1.
52 * treetree.h (tree_code_get_expression): Take the location of the
53 expression as an argument.
55 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
57 * treelang.texi: Treelang does have warnings.
58 * treetree.c (tree_code_create_function_prototype): Don't set
59 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
60 as few times as needed on the function declaration.
61 (tree_code_create_function_initial): Don't set TREE_USED,
62 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
63 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
64 (tree_code_get_expression): Set TREE_USED for variable references
67 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
69 * parse.y: Do comparisons as the type of the first expression.
70 * treetree.c (tree_code_get_integer_value): Build integer constants
73 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
75 * Make-lang.in: Remove commented out code.
76 * lang-specs.h: Always pass -dumpbase to tree1.
78 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
80 * treelang.texi: Remove extra contribution notice.
81 Split up some run-on sentences. Document function parameters
82 as optional. Indicate automatic variables can now be at any scope.
83 Mention literals are only signed if they are preceded by a unary
84 plus or minus. Clarify interoperability with C.
86 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
88 * treelang.texi: Fix whitespacing.
90 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
93 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
94 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
95 rest_of_decl_compilation on static variables.
96 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
99 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
102 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
103 Move function parameters check from ...
104 (function): ...Here. Update call to tree_code_create_function_initial.
105 (function_invocation): Use expressions_with_commas_opt instead of
106 expressions_with_commas.
107 (expressions_with_commas_opt): New rule.
108 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
109 for function parameters.
110 (tree_code_create_function_initial): Remove PARMS parameter.
111 Don't create PARM_DECLs for function parameters.
112 * treetree.h (tree_code_create_function_initial): Remove PARMS
115 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
117 * parse.y: Update copyright.
119 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
121 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
122 scalar integer types.
124 2005-02-09 Richard Henderson <rth@redhat.com>
126 * treetree.c (treelang_init_decl_processing): Call
127 build_common_builtin_nodes.
129 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
131 * treelang.texi: Don't use local treelang version number. Don't
132 give last update date.
134 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
136 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
138 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
140 * parse.y: Reformat comments.
141 * treetree.c: Likewise.
142 * treetree.h: Likewise.
144 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
146 * treetree.c (tree_code_generate_return): Wrap param declaration in
149 2004-10-05 Zack Weinberg <zack@codesourcery.com>
151 * parse.y: Add list of diagnostic messages to insulate
152 translation template from version of yacc/bison used to
155 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
158 * lex.l: Include input.h and errors.h
159 (lineno): New variable.
160 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
162 Set column position with LINEMAP_POSITION_FOR_COLUMN.
163 Use error instead of fprintf.
164 Set input_location with the value returned by linemap_start_line when
165 USE_MAPPED_LOCATION is defined.
166 (dump_lex_value): Use LOCATION_LINE.
167 * parse.y: Include errors.h.
168 Use error and warning instead of fprintf.
169 (return): Move exp to rule scope and always set to $2. Test against
171 (init): Set $$ to $2.
172 (print_token): Use LOCATION_LINE.
173 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
174 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
176 (treelang_parse_file): Always start at line one.
177 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
179 Leave main_input_filename when done parsing the input.
180 (insert_tree_name): Use error instead of fprintf.
181 * treetree.c (tree_code_get_expression): Wrap long line.
182 (tree_mark_addressable): Use %qD to print out DECLs.
184 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
186 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
188 * treetree.c: Likewise.
190 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
192 * lex.l: Remove random whitespace.
193 * parse.y: Reformat copyright notice. Indent declarations.
194 Wrap long lines, unwrap short lines.
195 * tree1.c: Reformat copyright notice. Wrap long lines.
196 Remove random whitespace.
197 (lookup_tree_name): Use LOCATION_LINE.
198 * treetree.c: Reformat copyright notice. Wrap long lines.
199 Remove random whitespace.
201 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
203 * parse.y (ELSE): Set tok to $1.
204 * treelang.texi: Wrap comments in @r{}. Indent example comments.
205 Use gcc when refering to the command line or website. Update function
208 2004-10-01 Jan Hubicka <jh@suse.cz>
210 * treetree.c (treeland_expand_function): Update call of
211 tree_rest_of_compilation.
213 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
214 Zack Weinberg <zack@codesourcery.com>
216 * treetree.c: Update for new tree-class enumeration constants.
218 2004-09-15 Zack Weinberg <zack@codesourcery.com>
220 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
222 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
224 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
226 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
228 * treelang/treetree.c (treelang_init_decl_processing): Adjust
229 build_common_tree_nodes call.
231 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
233 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
235 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
237 * Make-lang.in (TREE_BE_LIBS): Remove.
238 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
240 * parse.y: Add variable_defs_opt before statements_opt.
241 Use tree_code_get_type instead of get_type_for_numeric_type.
243 (parameters_opt): New rule.
244 (function_prototype): Use parameters_opt.
245 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
246 (check_type_match): Use VOID_TYPE.
247 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
248 * tree1.c: Include version.h and cgraph.h
249 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
251 * treelang.h (item): Remove extraneous GTY.
252 * treetree.h (get_type_for_numeric_type): Remove.
253 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
254 function.h, and cgraph.h. Don't include rtl.h
255 (keep_level_p): Remove.
256 (tree_push_atomic_type_decl): Remove.
257 (get_type_for_numeric_type): Remove.
258 (tree_code_get_numeric_type): Remove.
259 (global_bindings_p): Make static.
260 (getdecls): Likewise.
261 (insert_block): Likewise.
262 (tree_code_if_start): Create a COND_EXPR and add it to the tree
263 instead of creating rtl.
264 (tree_code_if_else): Create a BIND_EXPR if any variables were created
266 (tree_code_end_if): Likewise.
267 (tree_code_create_function_prototype): Use tree_code_get_type.
268 Don't use SET_DECL_ASSEMBLER_NAME.
269 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
270 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
271 layout_decl on RESULT_DECL. Don't call rtl expand functions.
272 (tree_code_create_function_wrapup): Don't call rtl expand functions.
273 Create a BIND_EXPR for each function. Dump original and gimplified
274 copies of the function tree. Gimplify function.
275 (tree_code_create_variable): Use tree_code_get_type. Don't call
276 layout_decl or expand_decl. Fold CONVERT_EXPRs.
277 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
278 Add RETURN_EXPR to the current statement list. Don't call rtl expand
280 (tree_code_output_expression_statement): Append CODE to current
282 (tree_code_get_expression): Fold expressions. Build a pointer to
283 a FUNCTION_TYPE intead of the called functions return type.
284 (struct binding_level): Add statement list STMTS.
285 (getstmtlist): New Function.
286 (pushlevel): Make static. Allocate an empty statement list.
287 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
288 Don't use DECL_ASSEMBLER_NAME.
289 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
290 (treelang_init_decl_processing): Define basic types after unused types.
291 Don't call tree_push_atomic_type_decl.
292 (builtin_function): Don't call make_decl_rtl.
293 (treelang_expand_function). New Function.
295 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
297 * treetree.c (set_block): Remove.
298 (struct binding_level): Remove block_created_by_back_end.
299 (clear_binding_level): Likewise.
300 (tree_code_create_function_initial,
301 tree_code_create_function_wrapup): Call pushlevel and poplevel
302 directly rather than through hooks.
303 (poplevel): Don't handle block_created_by_back_end.
305 2004-04-07 Richard Henderson <rth@redhat.com>
307 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
309 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
311 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
314 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
316 * treelang.texi: Update link to "G++ and GCC".
318 2004-02-20 Richard Henderson <rth@redhat.com>
320 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
322 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
324 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
326 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
328 * Make-lang.in: Replace $(docdir) with doc.
329 (treelang.info, treelang.srcinfo): New rules.
330 (treelang.man, treelang.man): Dummy entries.
332 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
334 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
335 (treelang/parse.o, treelang/lex.o): Look for sources in build
336 directory. Use implicit rule.
337 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
339 (treelang.srcextra): Copy above back to source directory if requested.
341 2004-01-07 Zack Weinberg <zack@codesourcery.com>
343 * parse.y (yyerror): Mark the definition static.
345 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
347 * lex.l: Add \t as a whitespace character.
348 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
350 * treelang.texi (What is GNU Treelang?): Fix a typo.
351 (Lexical Syntax): Create an itemize list of keywords. Add commas to
352 paragraph defining names.
354 2003-11-26 Jason Merrill <jason@redhat.com>
356 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
357 directory and TAGS files that include them for each front end.
359 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
361 * .cvsignore: Delete.
363 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
365 * Make-lang.in (treelang.extraclean): Delete.
367 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
369 * Make-lang.in: Remove obsolete comment.
371 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
373 * Make-lang.in (dvi): Move targets to $(docobjdir).
374 (treelang.dvi): Simplify rule and adjust target.
375 (treelang.info): Simplify rule.
376 (parse.o): Correct dependencies.
377 (TREE_EXE): Delete doubled suffix append.
379 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
381 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
384 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
386 * Make-lang.in (parse.o): Honor $(parsedir).
389 (parse.c, parse.h): Likewise.
390 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
393 2003-10-20 Mark Mitchell <mark@codesourcery.com>
395 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
398 * Make-lang.in (info): Use docobjdir.
399 ($(srcdir)/treelang/treelang.info): Replace with ...
400 ($(docobjdir)/treelang/treelang.info): ... this.
401 (install-info): New target.
403 2003-10-12 Andreas Jaeger <aj@suse.de>
405 * Make-lang.in (treelang.install-info): Remove reference to
407 (treelang.): Removed.
409 2003-10-06 Mark Mitchell <mark@codesourcery.com>
411 * Make-lang.in (treelang.info): Replace with ...
413 * Make-lang.in (treelang.dvi): Replace with ...
416 2003-09-21 Richard Henderson <rth@redhat.com>
418 * treetree.c: Revert.
420 2003-09-21 Richard Henderson <rth@redhat.com>
422 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
425 2003-07-28 Andreas Jaeger <aj@suse.de>
427 * treetree.c: Convert remaining K&R prototypes to ISO C90.
430 * tree-convert.c: Likewise.
432 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
434 * treetree.c: Remove unnecessary casts.
436 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
438 * lang-options.h: Remove.
439 * lang.opt: Document some options. Remove --help.
440 * tree1.c (treelang_handle_option): Remove OPT__help case.
442 2003-07-12 Andreas Jaeger <aj@suse.de>
444 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
446 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
448 * Make-lang.in: Update.
449 * tree1.c: Don't include c-common.h.
450 (c_language): Remove.
452 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
453 Steven Bosscher <steven@gcc.gnu.org>
455 * tree-convert.c: New file.
456 * treetree.c: Don't include c-tree.h. Include target.h.
457 (struct lang_identifier, union lang_tree_node, struct lang_type,
458 struct lang_function): New, minimal language-specific datastructs.
459 (tree_lang_truthvalue_conversion, tree_mark_addressable,
460 tree_lang_type_for_size, tree_lang_type_for_mode,
461 tree_lang_unsigned_type, tree_lang_signed_type,
462 tree_lang_signed_or_unsigned): New functions.
463 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
464 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
465 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
466 tree_push_atomic_type_decl): New functions.
467 (struct resword, struct reswords): Remove.
468 * Make-lang.in: Update. Don't depend on C front end objects.
469 * config-lang.in: Likewise.
471 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
473 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
474 tree_code_if_end, tree_code_create_function_initial,
475 tree_code_create_function_wrapup, tree_code_generate_return,
476 tree_code_output_expression_statement): Adjust emit_line_note
479 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
481 * Make-lang.in: Replace PWD with PWD_COMMAND.
483 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
485 * tree1.c (treelang_init_options): Update prototype.
486 * treelang.h (treelang_init_options): Update prototype.
488 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
490 * Make-lang.in: Update.
491 * tree1.c: Include c-common.h. Define c_language.
493 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
495 * treetree.c (tree_code_create_function_wrapup): Adjust
496 expand_function_end call.
498 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
500 * treetree.c (build_stmt): Remove VPARAMS.
501 (pedwarn_c99): Likewise.
503 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
505 * lang.opt: Declare Treelang. Update.
506 * tree1.c (treelang_init_options): Update.
508 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
510 * treetree.c (tree_code_create_function_initial): Adjust
511 init_function_start call.
513 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
515 * Make-lang.in: Update to use options.c and options.h.
516 * tree1.c: Include options.h not t-options.h.
517 (treelang_init_options): New.
518 (treelang_handle_option): Abort on unrecognized switch.
519 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
520 * treetree.h (treelang_init_options): New.
522 2003-06-12 Andreas Jaeger <aj@suse.de>
524 * treetree.c: Remove cl_options-count and cl_options.
526 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
528 * Make-lang.in: Update for option handling.
530 * tree1.c: Include opts.h and t-options.h.
531 (treelang_decode_option): Remove.
532 (treelang_handle_option): New.
533 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
534 (LANG_HOOKS_HANDLE_OPTION): Override.
535 * treetree.h (treelang_decode_option): Remove.
536 (treelang_handle_option): New.
538 2003-06-08 Andreas Jaeger <aj@suse.de>
540 * Make-lang.in: Update.
541 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
543 2003-06-08 Tim Josling <tej@melbpc.org.au>
545 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
547 2003-06-05 Jan Hubicka <jh@suse.cz>
549 * Make-lang.in: Add support for stageprofile and stagefeedback
551 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
553 * treetree.c (reswords): Remove __bounded__, __unbounded__.
555 2003-05-09 Tim Josling <tej@melbpc.org.au>
557 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
558 to link (needed by some front ends such as PPC).
560 * treetree.c (tree_code_create_function_initial): Fix long line.
561 Initialize tree_code_int_size and tree_code_char_size to
563 (tree_code_get_numeric_type): Add check that size1 parameter is
566 * parse.y: Fix extra long lines in prototypes.
568 * treelang.h: Fix extra long lines in macro definitions.
570 2003-05-07 Zack Weinberg <zack@codesourcery.com>
572 * Make-lang.in: Set -Wno-error for treelang/lex.o.
574 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
576 * Make-lang.in (treelang/tree1.o): Depends on input.h
577 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
578 * treelang.h: #include input.h.
580 (struct token_part): Remove lineno, add location.
581 * lex.l (next_tree_lineno): Remove.
582 (update_lineno_charno): Adjust.
583 (dump_lex_value): Adjust.
584 * parse.y (variable_def, function_prototype, function, statement,
585 if_statement, return, function_invocation, variable_ref): Adjust.
586 (print_token, yyerror, ensure_not_void): Adjust.
587 tree1.c (in_fname): Remove.
588 (treelang_init): Setup input_location.
589 (lookup_tree_name): Adjust.
590 (insert_tree_name): Adjust.
591 * treetree.c (tree_code_if_start): Replace filename and lineno
592 parms with loc. Adjust.
593 (tree_code_if_else, tree_code_if_end,
594 tree_code_create_function_prototype,
595 tree_code_create_function_initial,
596 tree_code_create_function_wrapup, tree_code_create_variable,
597 tree_code_output_expression_statement): Likewise.
598 * treetree.h (tree_code_if_start): Replace filename and lineno
600 (tree_code_if_else, tree_code_if_end,
601 tree_code_create_function_prototype,
602 tree_code_create_function_initial,
603 tree_code_create_function_wrapup, tree_code_create_variable,
604 tree_code_output_expression_statement): Likewise.
606 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
608 * tree1.c (treelang_init): Rename lineno to input_line.
610 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
612 * parse.y (make_plus_expression): New function.
613 (expression production): Use make_plus_expression for PLUS,
614 MINUS, ASSIGN and EQUALS.
615 * tree1.c (treelang_decode_option): Don't fall through to
616 options that start with a different character when an option
619 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
621 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
622 * treetree.c: Do not #include parse.h.
624 2003-03-21 Andreas Jaeger <aj@suse.de>
626 * treetree.c (cpp_create_reader): Follow prototype change in
629 2003-03-17 Andreas Jaeger <aj@suse.de>
631 * Make-lang.in (treelang.tags): Remove duplicate entry.
633 2003-03-15 Andreas Jaeger <aj@suse.de>
635 * treetree.c (cpp_handle_option): Remove.
637 2003-03-13 Andreas Jaeger <aj@suse.de>
639 * Make-lang.in (tree1$(exeext)): Fix previous patch.
641 2003-03-12 Andreas Jaeger <aj@suse.de>
643 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
645 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
647 * tree1.c (in_fname): Fix type.
648 (treelang_init): Update prototype and use of in_fname.
649 * treelang.h (in_fname): Fix type.
650 * treetree.c (tree_code_if_start, tree_code_if_else,
651 tree_code_if_end, tree_code_create_function_prototype,
652 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
653 tree_code_create_variable, tree_code_output_expression_statement)
654 : Fix prototypes and use of filenames.
655 * treetree.h: Similarly.
657 2003-03-05 Andreas Jaeger <aj@suse.de>
659 * treetree.c (init_c_lex): Follow change to c-common.h.
661 2003-03-04 Tom Tromey <tromey@redhat.com>
663 * Make-lang.in (treelang.tags): New target.
665 2003-03-01 Tim Josling <tej@melbpc.org.au>
667 Name clashes with rtl.h fixed.
669 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
674 2003-02-24 Tim Josling <tej@melbpc.org.au>
676 * parse.y (my_yylex): New - ensure lexer time is charged to
678 (yylex): redefine as invocation of my_yylex which then calls
679 flex-generated yylex.
680 (timevar.h): include.
682 2003-02-23 Tim Josling <tej@melbpc.org.au>
684 Fix garbage collection, add more error checking, force GC always.
686 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
687 (treelang/treetree.o): Depend on treelang/parse.h
689 * lex.l: include "treetree.h"
691 * lex.l (update_yylval): Allocate string using get_string so GC
694 * parse.y (function_prototype): Set category correctly so GC works.
695 (function): Set category in search so checking works.
696 (function_invocation): Ditto.
697 (variable_ref): Ditto.
699 * tree1.c (lookup_tree_name): Call sanity_check for passed
700 production and associated token and for symbol table entries.
702 * tree1.c (sanity_check): New, basic check that struct is valid.
704 * treelang.h: Prototype for sanity_check.
706 2003-01-27 Tim Josling <tej@melbpc.org.au>
708 * treetree.c (treelang_init_decl_processing): Change memory
709 allocation to use GC.
711 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
713 * treelang.texi: Update to GFDL 1.2.
715 2003-01-26 Michael Matz <matz@suse.de>
717 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
719 2003-01-14 Andreas Jaeger <aj@suse.de>
721 * Make-lang.in (treelang.install-info): Depend only on info files
722 if BUILD_INFO is set. Fix install rules.
725 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
727 * Make-lang.in (treelang.install.common.done,
728 treelang.install-info, treelang.uninstall): Prepend
729 $(DESTDIR) to destination paths in all (un)installation
732 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
734 * treelang.texi: Use @copying.
736 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
738 * treelang.texi: Include gcc-common.texi.
739 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
740 Depend on gcc-common.texi. Add other missing dependencies.
741 (treelang.dvi): Use texi2dvi.
743 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
745 * treelang.texi: Use @ifnottex instead of @ifinfo.
747 2002-11-30 Zack Weinberg <zack@codesourcery.com>
749 * lex.l: Move "%{" below copyright notice; get rid of "/*"
750 embedded in comment. Do not #undef IN_GCC; do not include
751 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
752 Do include coretypes.h and tm.h.
753 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
754 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
755 ansidecl.h. Do include coretypes.h and tm.h.
756 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
757 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
758 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
759 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
760 or ansidecl.h. Do include coretypes.h and tm.h.
761 * Make-lang.in: Update dependencies.
763 2002-09-09 Tim Josling <tej@melbpc.org.au>
765 * treetree.c (objc_is_id): New.
767 2002-08-16 Tim Josling <tej@melbpc.org.au>
769 Remove variables and functions now defined elsewhere.
771 * treetree.c (maybe_objc_comptypes): Remove.
772 (warn_format, warn_format_y2k, warn_format_extra_args,
773 warn_format_nonliteral, warn_format_security,
774 warn_format_zero_length): Remove.
775 (maybe_building_objc_message_expr): Remove.
776 (cpp_post_options): Remove.
777 (maybe_objc_check_decl): Remove.
778 (integer_types): Remove.
781 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
783 * treelang.c: Remove cpp_post_options.
785 2002-08-13 Tim Josling <tej@melbpc.org.au>
787 * parse.y: Provide dummy definition of rtx for use by config.h.
788 * Make-lang.in (treetree.o): Remove dependency on non-existent
789 gt-treelang-treelang.h.
790 (gt-treelang-treelang.h): Remove.
792 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
794 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
796 2002-07-11 Tim Josling <tej@melbpc.org.au>
798 Remove front end hard coding from gengtype.c.
800 * config-lang.in (gtfiles): Add files needed for this front
803 2002-07-09 Tim Josling <tej@melbpc.org.au>
805 Support new attributes regime (Fix for PR c++/7099).
807 * treetree.c (handle_format_attribute): Return NULL_TREE instead
809 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
810 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
811 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
813 2002-06-21 Andreas Jaeger <aj@suse.de>
815 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
816 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
818 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
820 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
823 2002-06-10 Tim Josling <tej@melbpc.org.au>
827 * Make-lang.in (check-treelang). Add. Remove direct dependency of
828 'check' on 'treelang.check' as redundant.
830 PCH Garbage collection regime (gengtypes.c) phase 1.
832 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
833 gt-treelang-treelang.h gtype-treelang.h.
834 (gt-treelang-tree1.h) Depend on s-gtype.
835 (gt-treelang-treelang.h) Depend on s-gtype.
836 (gtype-treelang.h) Depend on s-gtype.
838 * config-lang.in (gtfiles): Define.
840 * lex.l (main): Remove '#if 0' dead code.
841 (main): Move undef of IN_GCC so define of tree typedef works.
842 (all): Replace token and production by prod_token_parm_item.
845 (all): Replace token and production by prod_token_parm_item.
847 * tree1.c (main): Remove include of "output.h".
848 (symbol_table): Add GTY details.
849 (symbol_table_ggc): Remove.
850 (treelang_init): Remove root definitions for garbage collection.
851 (mark_production_used): Remove.
852 (mark_token_used): Remove.
853 (main, at end): include generated garage collection routines.
855 * treelang.h (category_enum ): Add parameter_category.
856 (all): Replace token and production and parameters by union
857 prod_token_parm_item containing production_part, token_part,
859 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
860 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
861 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
862 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
866 (tm_p.h): Do not include.
867 (ansidecl.h): Move include after config.h.
868 (treelang.h): Include it.
870 (all): Replace token, production and parameter by prod_token_parm_item.
871 (tree_parameter_list): Move to treelang.h as part of
872 prod_token_parm_item.
873 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
874 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
875 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
876 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
879 2002-05-19 Tim Josling <tej@melbpc.org.au>
881 * treetree.c (warn_format_zero_length): Add.
883 2002-05-14 Tim Josling <tej@melbpc.org.au>
885 * Make-lang.in: Fix build for .info files, add target for manpages.
886 A bug report and a suggested patch came from Magnus Fromreide
887 <magfr@lysator.liu.se>.
889 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
891 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
893 2002-05-11 Tim Josling <tej@melbpc.org.au>
895 * treetree.c: (cpp_define) Add.
896 (cpp_get_callbacks) Add.
898 2002-05-07 Tim Josling <tej@melbpc.org.au>
900 * treetree.c: (cpp_get_options) Add.
902 2002-05-06 Tim Josling <tej@melbpc.org.au>
906 2002-05-05 Tim Josling <tej@melbpc.org.au>
908 * Updated for gcc3.2 experimental. Major changes throughout.
910 2002-03-31 Tim Josling <tej@melbpc.org.au>
912 * Make-lang.in: Changes so build and check work more reliably
914 2001-07-30 Tim Josling <tej@melbpc.org.au>
917 * treelang.texi: updates based on feedback
919 2001-06-11 Tim Josling <tej@melbpc.org.au>
921 * all (all) Revamp code to conform to GCC coding standards, fix
924 2001-05-11 Tim Josling <tej@melbpc.org.au>
926 Create the new language.