1 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
3 * treelang.texi: Treelang does have warnings.
4 * treetree.c (tree_code_create_function_prototype): Don't set
5 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
6 as few times as needed on the function declaration.
7 (tree_code_create_function_initial): Don't set TREE_USED,
8 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
9 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
10 (tree_code_get_expression): Set TREE_USED for variable references
13 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
15 * parse.y: Do comparisons as the type of the first expression.
16 * treetree.c (tree_code_get_integer_value): Build integer constants
19 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
21 * Make-lang.in: Remove commented out code.
22 * lang-specs.h: Always pass -dumpbase to tree1.
24 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
26 * treelang.texi: Remove extra contribution notice.
27 Split up some run-on sentences. Document function parameters
28 as optional. Indicate automatic variables can now be at any scope.
29 Mention literals are only signed if they are preceded by a unary
30 plus or minus. Clarify interoperability with C.
32 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
34 * treelang.texi: Fix whitespacing.
36 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
39 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
40 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
41 rest_of_decl_compilation on static variables.
42 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
45 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
48 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
49 Move function parameters check from ...
50 (function): ...Here. Update call to tree_code_create_function_initial.
51 (function_invocation): Use expressions_with_commas_opt instead of
52 expressions_with_commas.
53 (expressions_with_commas_opt): New rule.
54 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
55 for function parameters.
56 (tree_code_create_function_initial): Remove PARMS parameter.
57 Don't create PARM_DECLs for function parameters.
58 * treetree.h (tree_code_create_function_initial): Remove PARMS
61 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
63 * parse.y: Update copyright.
65 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
67 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
70 2005-02-09 Richard Henderson <rth@redhat.com>
72 * treetree.c (treelang_init_decl_processing): Call
73 build_common_builtin_nodes.
75 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
77 * treelang.texi: Don't use local treelang version number. Don't
78 give last update date.
80 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
82 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
84 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
86 * parse.y: Reformat comments.
87 * treetree.c: Likewise.
88 * treetree.h: Likewise.
90 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
92 * treetree.c (tree_code_generate_return): Wrap param declaration in
95 2004-10-05 Zack Weinberg <zack@codesourcery.com>
97 * parse.y: Add list of diagnostic messages to insulate
98 translation template from version of yacc/bison used to
101 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
104 * lex.l: Include input.h and errors.h
105 (lineno): New variable.
106 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
108 Set column position with LINEMAP_POSITION_FOR_COLUMN.
109 Use error instead of fprintf.
110 Set input_location with the value returned by linemap_start_line when
111 USE_MAPPED_LOCATION is defined.
112 (dump_lex_value): Use LOCATION_LINE.
113 * parse.y: Include errors.h.
114 Use error and warning instead of fprintf.
115 (return): Move exp to rule scope and always set to $2. Test against
117 (init): Set $$ to $2.
118 (print_token): Use LOCATION_LINE.
119 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
120 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
122 (treelang_parse_file): Always start at line one.
123 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
125 Leave main_input_filename when done parsing the input.
126 (insert_tree_name): Use error instead of fprintf.
127 * treetree.c (tree_code_get_expression): Wrap long line.
128 (tree_mark_addressable): Use %qD to print out DECLs.
130 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
132 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
134 * treetree.c: Likewise.
136 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
138 * lex.l: Remove random whitespace.
139 * parse.y: Reformat copyright notice. Indent declarations.
140 Wrap long lines, unwrap short lines.
141 * tree1.c: Reformat copyright notice. Wrap long lines.
142 Remove random whitespace.
143 (lookup_tree_name): Use LOCATION_LINE.
144 * treetree.c: Reformat copyright notice. Wrap long lines.
145 Remove random whitespace.
147 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
149 * parse.y (ELSE): Set tok to $1.
150 * treelang.texi: Wrap comments in @r{}. Indent example comments.
151 Use gcc when refering to the command line or website. Update function
154 2004-10-01 Jan Hubicka <jh@suse.cz>
156 * treetree.c (treeland_expand_function): Update call of
157 tree_rest_of_compilation.
159 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
160 Zack Weinberg <zack@codesourcery.com>
162 * treetree.c: Update for new tree-class enumeration constants.
164 2004-09-15 Zack Weinberg <zack@codesourcery.com>
166 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
168 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
170 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
172 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
174 * treelang/treetree.c (treelang_init_decl_processing): Adjust
175 build_common_tree_nodes call.
177 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
179 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
181 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
183 * Make-lang.in (TREE_BE_LIBS): Remove.
184 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
186 * parse.y: Add variable_defs_opt before statements_opt.
187 Use tree_code_get_type instead of get_type_for_numeric_type.
189 (parameters_opt): New rule.
190 (function_prototype): Use parameters_opt.
191 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
192 (check_type_match): Use VOID_TYPE.
193 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
194 * tree1.c: Include version.h and cgraph.h
195 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
197 * treelang.h (item): Remove extraneous GTY.
198 * treetree.h (get_type_for_numeric_type): Remove.
199 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
200 function.h, and cgraph.h. Don't include rtl.h
201 (keep_level_p): Remove.
202 (tree_push_atomic_type_decl): Remove.
203 (get_type_for_numeric_type): Remove.
204 (tree_code_get_numeric_type): Remove.
205 (global_bindings_p): Make static.
206 (getdecls): Likewise.
207 (insert_block): Likewise.
208 (tree_code_if_start): Create a COND_EXPR and add it to the tree
209 instead of creating rtl.
210 (tree_code_if_else): Create a BIND_EXPR if any variables were created
212 (tree_code_end_if): Likewise.
213 (tree_code_create_function_prototype): Use tree_code_get_type.
214 Don't use SET_DECL_ASSEMBLER_NAME.
215 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
216 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
217 layout_decl on RESULT_DECL. Don't call rtl expand functions.
218 (tree_code_create_function_wrapup): Don't call rtl expand functions.
219 Create a BIND_EXPR for each function. Dump original and gimplified
220 copies of the function tree. Gimplify function.
221 (tree_code_create_variable): Use tree_code_get_type. Don't call
222 layout_decl or expand_decl. Fold CONVERT_EXPRs.
223 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
224 Add RETURN_EXPR to the current statement list. Don't call rtl expand
226 (tree_code_output_expression_statement): Append CODE to current
228 (tree_code_get_expression): Fold expressions. Build a pointer to
229 a FUNCTION_TYPE intead of the called functions return type.
230 (struct binding_level): Add statement list STMTS.
231 (getstmtlist): New Function.
232 (pushlevel): Make static. Allocate an empty statement list.
233 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
234 Don't use DECL_ASSEMBLER_NAME.
235 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
236 (treelang_init_decl_processing): Define basic types after unused types.
237 Don't call tree_push_atomic_type_decl.
238 (builtin_function): Don't call make_decl_rtl.
239 (treelang_expand_function). New Function.
241 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
243 * treetree.c (set_block): Remove.
244 (struct binding_level): Remove block_created_by_back_end.
245 (clear_binding_level): Likewise.
246 (tree_code_create_function_initial,
247 tree_code_create_function_wrapup): Call pushlevel and poplevel
248 directly rather than through hooks.
249 (poplevel): Don't handle block_created_by_back_end.
251 2004-04-07 Richard Henderson <rth@redhat.com>
253 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
255 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
257 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
260 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
262 * treelang.texi: Update link to "G++ and GCC".
264 2004-02-20 Richard Henderson <rth@redhat.com>
266 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
268 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
270 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
272 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
274 * Make-lang.in: Replace $(docdir) with doc.
275 (treelang.info, treelang.srcinfo): New rules.
276 (treelang.man, treelang.man): Dummy entries.
278 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
280 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
281 (treelang/parse.o, treelang/lex.o): Look for sources in build
282 directory. Use implicit rule.
283 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
285 (treelang.srcextra): Copy above back to source directory if requested.
287 2004-01-07 Zack Weinberg <zack@codesourcery.com>
289 * parse.y (yyerror): Mark the definition static.
291 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
293 * lex.l: Add \t as a whitespace character.
294 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
296 * treelang.texi (What is GNU Treelang?): Fix a typo.
297 (Lexical Syntax): Create an itemize list of keywords. Add commas to
298 paragraph defining names.
300 2003-11-26 Jason Merrill <jason@redhat.com>
302 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
303 directory and TAGS files that include them for each front end.
305 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
307 * .cvsignore: Delete.
309 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
311 * Make-lang.in (treelang.extraclean): Delete.
313 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
315 * Make-lang.in: Remove obsolete comment.
317 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
319 * Make-lang.in (dvi): Move targets to $(docobjdir).
320 (treelang.dvi): Simplify rule and adjust target.
321 (treelang.info): Simplify rule.
322 (parse.o): Correct dependencies.
323 (TREE_EXE): Delete doubled suffix append.
325 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
327 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
330 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
332 * Make-lang.in (parse.o): Honor $(parsedir).
335 (parse.c, parse.h): Likewise.
336 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
339 2003-10-20 Mark Mitchell <mark@codesourcery.com>
341 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
344 * Make-lang.in (info): Use docobjdir.
345 ($(srcdir)/treelang/treelang.info): Replace with ...
346 ($(docobjdir)/treelang/treelang.info): ... this.
347 (install-info): New target.
349 2003-10-12 Andreas Jaeger <aj@suse.de>
351 * Make-lang.in (treelang.install-info): Remove reference to
353 (treelang.): Removed.
355 2003-10-06 Mark Mitchell <mark@codesourcery.com>
357 * Make-lang.in (treelang.info): Replace with ...
359 * Make-lang.in (treelang.dvi): Replace with ...
362 2003-09-21 Richard Henderson <rth@redhat.com>
364 * treetree.c: Revert.
366 2003-09-21 Richard Henderson <rth@redhat.com>
368 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
371 2003-07-28 Andreas Jaeger <aj@suse.de>
373 * treetree.c: Convert remaining K&R prototypes to ISO C90.
376 * tree-convert.c: Likewise.
378 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
380 * treetree.c: Remove unnecessary casts.
382 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
384 * lang-options.h: Remove.
385 * lang.opt: Document some options. Remove --help.
386 * tree1.c (treelang_handle_option): Remove OPT__help case.
388 2003-07-12 Andreas Jaeger <aj@suse.de>
390 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
392 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
394 * Make-lang.in: Update.
395 * tree1.c: Don't include c-common.h.
396 (c_language): Remove.
398 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
399 Steven Bosscher <steven@gcc.gnu.org>
401 * tree-convert.c: New file.
402 * treetree.c: Don't include c-tree.h. Include target.h.
403 (struct lang_identifier, union lang_tree_node, struct lang_type,
404 struct lang_function): New, minimal language-specific datastructs.
405 (tree_lang_truthvalue_conversion, tree_mark_addressable,
406 tree_lang_type_for_size, tree_lang_type_for_mode,
407 tree_lang_unsigned_type, tree_lang_signed_type,
408 tree_lang_signed_or_unsigned): New functions.
409 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
410 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
411 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
412 tree_push_atomic_type_decl): New functions.
413 (struct resword, struct reswords): Remove.
414 * Make-lang.in: Update. Don't depend on C front end objects.
415 * config-lang.in: Likewise.
417 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
419 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
420 tree_code_if_end, tree_code_create_function_initial,
421 tree_code_create_function_wrapup, tree_code_generate_return,
422 tree_code_output_expression_statement): Adjust emit_line_note
425 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
427 * Make-lang.in: Replace PWD with PWD_COMMAND.
429 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
431 * tree1.c (treelang_init_options): Update prototype.
432 * treelang.h (treelang_init_options): Update prototype.
434 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
436 * Make-lang.in: Update.
437 * tree1.c: Include c-common.h. Define c_language.
439 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
441 * treetree.c (tree_code_create_function_wrapup): Adjust
442 expand_function_end call.
444 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
446 * treetree.c (build_stmt): Remove VPARAMS.
447 (pedwarn_c99): Likewise.
449 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
451 * lang.opt: Declare Treelang. Update.
452 * tree1.c (treelang_init_options): Update.
454 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
456 * treetree.c (tree_code_create_function_initial): Adjust
457 init_function_start call.
459 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
461 * Make-lang.in: Update to use options.c and options.h.
462 * tree1.c: Include options.h not t-options.h.
463 (treelang_init_options): New.
464 (treelang_handle_option): Abort on unrecognized switch.
465 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
466 * treetree.h (treelang_init_options): New.
468 2003-06-12 Andreas Jaeger <aj@suse.de>
470 * treetree.c: Remove cl_options-count and cl_options.
472 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
474 * Make-lang.in: Update for option handling.
476 * tree1.c: Include opts.h and t-options.h.
477 (treelang_decode_option): Remove.
478 (treelang_handle_option): New.
479 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
480 (LANG_HOOKS_HANDLE_OPTION): Override.
481 * treetree.h (treelang_decode_option): Remove.
482 (treelang_handle_option): New.
484 2003-06-08 Andreas Jaeger <aj@suse.de>
486 * Make-lang.in: Update.
487 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
489 2003-06-08 Tim Josling <tej@melbpc.org.au>
491 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
493 2003-06-05 Jan Hubicka <jh@suse.cz>
495 * Make-lang.in: Add support for stageprofile and stagefeedback
497 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
499 * treetree.c (reswords): Remove __bounded__, __unbounded__.
501 2003-05-09 Tim Josling <tej@melbpc.org.au>
503 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
504 to link (needed by some front ends such as PPC).
506 * treetree.c (tree_code_create_function_initial): Fix long line.
507 Initialize tree_code_int_size and tree_code_char_size to
509 (tree_code_get_numeric_type): Add check that size1 parameter is
512 * parse.y: Fix extra long lines in prototypes.
514 * treelang.h: Fix extra long lines in macro definitions.
516 2003-05-07 Zack Weinberg <zack@codesourcery.com>
518 * Make-lang.in: Set -Wno-error for treelang/lex.o.
520 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
522 * Make-lang.in (treelang/tree1.o): Depends on input.h
523 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
524 * treelang.h: #include input.h.
526 (struct token_part): Remove lineno, add location.
527 * lex.l (next_tree_lineno): Remove.
528 (update_lineno_charno): Adjust.
529 (dump_lex_value): Adjust.
530 * parse.y (variable_def, function_prototype, function, statement,
531 if_statement, return, function_invocation, variable_ref): Adjust.
532 (print_token, yyerror, ensure_not_void): Adjust.
533 tree1.c (in_fname): Remove.
534 (treelang_init): Setup input_location.
535 (lookup_tree_name): Adjust.
536 (insert_tree_name): Adjust.
537 * treetree.c (tree_code_if_start): Replace filename and lineno
538 parms with loc. Adjust.
539 (tree_code_if_else, tree_code_if_end,
540 tree_code_create_function_prototype,
541 tree_code_create_function_initial,
542 tree_code_create_function_wrapup, tree_code_create_variable,
543 tree_code_output_expression_statement): Likewise.
544 * treetree.h (tree_code_if_start): Replace filename and lineno
546 (tree_code_if_else, tree_code_if_end,
547 tree_code_create_function_prototype,
548 tree_code_create_function_initial,
549 tree_code_create_function_wrapup, tree_code_create_variable,
550 tree_code_output_expression_statement): Likewise.
552 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
554 * tree1.c (treelang_init): Rename lineno to input_line.
556 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
558 * parse.y (make_plus_expression): New function.
559 (expression production): Use make_plus_expression for PLUS,
560 MINUS, ASSIGN and EQUALS.
561 * tree1.c (treelang_decode_option): Don't fall through to
562 options that start with a different character when an option
565 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
567 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
568 * treetree.c: Do not #include parse.h.
570 2003-03-21 Andreas Jaeger <aj@suse.de>
572 * treetree.c (cpp_create_reader): Follow prototype change in
575 2003-03-17 Andreas Jaeger <aj@suse.de>
577 * Make-lang.in (treelang.tags): Remove duplicate entry.
579 2003-03-15 Andreas Jaeger <aj@suse.de>
581 * treetree.c (cpp_handle_option): Remove.
583 2003-03-13 Andreas Jaeger <aj@suse.de>
585 * Make-lang.in (tree1$(exeext)): Fix previous patch.
587 2003-03-12 Andreas Jaeger <aj@suse.de>
589 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
591 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
593 * tree1.c (in_fname): Fix type.
594 (treelang_init): Update prototype and use of in_fname.
595 * treelang.h (in_fname): Fix type.
596 * treetree.c (tree_code_if_start, tree_code_if_else,
597 tree_code_if_end, tree_code_create_function_prototype,
598 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
599 tree_code_create_variable, tree_code_output_expression_statement)
600 : Fix prototypes and use of filenames.
601 * treetree.h: Similarly.
603 2003-03-05 Andreas Jaeger <aj@suse.de>
605 * treetree.c (init_c_lex): Follow change to c-common.h.
607 2003-03-04 Tom Tromey <tromey@redhat.com>
609 * Make-lang.in (treelang.tags): New target.
611 2003-03-01 Tim Josling <tej@melbpc.org.au>
613 Name clashes with rtl.h fixed.
615 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
620 2003-02-24 Tim Josling <tej@melbpc.org.au>
622 * parse.y (my_yylex): New - ensure lexer time is charged to
624 (yylex): redefine as invocation of my_yylex which then calls
625 flex-generated yylex.
626 (timevar.h): include.
628 2003-02-23 Tim Josling <tej@melbpc.org.au>
630 Fix garbage collection, add more error checking, force GC always.
632 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
633 (treelang/treetree.o): Depend on treelang/parse.h
635 * lex.l: include "treetree.h"
637 * lex.l (update_yylval): Allocate string using get_string so GC
640 * parse.y (function_prototype): Set category correctly so GC works.
641 (function): Set category in search so checking works.
642 (function_invocation): Ditto.
643 (variable_ref): Ditto.
645 * tree1.c (lookup_tree_name): Call sanity_check for passed
646 production and associated token and for symbol table entries.
648 * tree1.c (sanity_check): New, basic check that struct is valid.
650 * treelang.h: Prototype for sanity_check.
652 2003-01-27 Tim Josling <tej@melbpc.org.au>
654 * treetree.c (treelang_init_decl_processing): Change memory
655 allocation to use GC.
657 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
659 * treelang.texi: Update to GFDL 1.2.
661 2003-01-26 Michael Matz <matz@suse.de>
663 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
665 2003-01-14 Andreas Jaeger <aj@suse.de>
667 * Make-lang.in (treelang.install-info): Depend only on info files
668 if BUILD_INFO is set. Fix install rules.
671 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
673 * Make-lang.in (treelang.install.common.done,
674 treelang.install-info, treelang.uninstall): Prepend
675 $(DESTDIR) to destination paths in all (un)installation
678 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
680 * treelang.texi: Use @copying.
682 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
684 * treelang.texi: Include gcc-common.texi.
685 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
686 Depend on gcc-common.texi. Add other missing dependencies.
687 (treelang.dvi): Use texi2dvi.
689 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
691 * treelang.texi: Use @ifnottex instead of @ifinfo.
693 2002-11-30 Zack Weinberg <zack@codesourcery.com>
695 * lex.l: Move "%{" below copyright notice; get rid of "/*"
696 embedded in comment. Do not #undef IN_GCC; do not include
697 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
698 Do include coretypes.h and tm.h.
699 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
700 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
701 ansidecl.h. Do include coretypes.h and tm.h.
702 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
703 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
704 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
705 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
706 or ansidecl.h. Do include coretypes.h and tm.h.
707 * Make-lang.in: Update dependencies.
709 2002-09-09 Tim Josling <tej@melbpc.org.au>
711 * treetree.c (objc_is_id): New.
713 2002-08-16 Tim Josling <tej@melbpc.org.au>
715 Remove variables and functions now defined elsewhere.
717 * treetree.c (maybe_objc_comptypes): Remove.
718 (warn_format, warn_format_y2k, warn_format_extra_args,
719 warn_format_nonliteral, warn_format_security,
720 warn_format_zero_length): Remove.
721 (maybe_building_objc_message_expr): Remove.
722 (cpp_post_options): Remove.
723 (maybe_objc_check_decl): Remove.
724 (integer_types): Remove.
727 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
729 * treelang.c: Remove cpp_post_options.
731 2002-08-13 Tim Josling <tej@melbpc.org.au>
733 * parse.y: Provide dummy definition of rtx for use by config.h.
734 * Make-lang.in (treetree.o): Remove dependency on non-existent
735 gt-treelang-treelang.h.
736 (gt-treelang-treelang.h): Remove.
738 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
740 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
742 2002-07-11 Tim Josling <tej@melbpc.org.au>
744 Remove front end hard coding from gengtype.c.
746 * config-lang.in (gtfiles): Add files needed for this front
749 2002-07-09 Tim Josling <tej@melbpc.org.au>
751 Support new attributes regime (Fix for PR c++/7099).
753 * treetree.c (handle_format_attribute): Return NULL_TREE instead
755 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
756 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
757 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
759 2002-06-21 Andreas Jaeger <aj@suse.de>
761 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
762 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
764 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
766 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
769 2002-06-10 Tim Josling <tej@melbpc.org.au>
773 * Make-lang.in (check-treelang). Add. Remove direct dependency of
774 'check' on 'treelang.check' as redundant.
776 PCH Garbage collection regime (gengtypes.c) phase 1.
778 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
779 gt-treelang-treelang.h gtype-treelang.h.
780 (gt-treelang-tree1.h) Depend on s-gtype.
781 (gt-treelang-treelang.h) Depend on s-gtype.
782 (gtype-treelang.h) Depend on s-gtype.
784 * config-lang.in (gtfiles): Define.
786 * lex.l (main): Remove '#if 0' dead code.
787 (main): Move undef of IN_GCC so define of tree typedef works.
788 (all): Replace token and production by prod_token_parm_item.
791 (all): Replace token and production by prod_token_parm_item.
793 * tree1.c (main): Remove include of "output.h".
794 (symbol_table): Add GTY details.
795 (symbol_table_ggc): Remove.
796 (treelang_init): Remove root definitions for garbage collection.
797 (mark_production_used): Remove.
798 (mark_token_used): Remove.
799 (main, at end): include generated garage collection routines.
801 * treelang.h (category_enum ): Add parameter_category.
802 (all): Replace token and production and parameters by union
803 prod_token_parm_item containing production_part, token_part,
805 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
806 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
807 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
808 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
812 (tm_p.h): Do not include.
813 (ansidecl.h): Move include after config.h.
814 (treelang.h): Include it.
816 (all): Replace token, production and parameter by prod_token_parm_item.
817 (tree_parameter_list): Move to treelang.h as part of
818 prod_token_parm_item.
819 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
820 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
821 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
822 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
825 2002-05-19 Tim Josling <tej@melbpc.org.au>
827 * treetree.c (warn_format_zero_length): Add.
829 2002-05-14 Tim Josling <tej@melbpc.org.au>
831 * Make-lang.in: Fix build for .info files, add target for manpages.
832 A bug report and a suggested patch came from Magnus Fromreide
833 <magfr@lysator.liu.se>.
835 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
837 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
839 2002-05-11 Tim Josling <tej@melbpc.org.au>
841 * treetree.c: (cpp_define) Add.
842 (cpp_get_callbacks) Add.
844 2002-05-07 Tim Josling <tej@melbpc.org.au>
846 * treetree.c: (cpp_get_options) Add.
848 2002-05-06 Tim Josling <tej@melbpc.org.au>
852 2002-05-05 Tim Josling <tej@melbpc.org.au>
854 * Updated for gcc3.2 experimental. Major changes throughout.
856 2002-03-31 Tim Josling <tej@melbpc.org.au>
858 * Make-lang.in: Changes so build and check work more reliably
860 2001-07-30 Tim Josling <tej@melbpc.org.au>
863 * treelang.texi: updates based on feedback
865 2001-06-11 Tim Josling <tej@melbpc.org.au>
867 * all (all) Revamp code to conform to GCC coding standards, fix
870 2001-05-11 Tim Josling <tej@melbpc.org.au>
872 Create the new language.