1 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
3 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
6 2005-03-15 Zack Weinberg <zack@codesourcery.com>
8 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
10 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
13 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
16 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
18 * treelang.texi: Fix a typo.
20 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
22 * parse.y (function_invocation, variable-ref, make_plus_expression):
23 Pass location to tree_code_get_expression.
24 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
25 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
26 set EXPR_LOCATION on ret1.
27 * treetree.h (tree_code_get_expression): Take the location of the
28 expression as an argument.
30 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
32 * treelang.texi: Treelang does have warnings.
33 * treetree.c (tree_code_create_function_prototype): Don't set
34 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
35 as few times as needed on the function declaration.
36 (tree_code_create_function_initial): Don't set TREE_USED,
37 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
38 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
39 (tree_code_get_expression): Set TREE_USED for variable references
42 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
44 * parse.y: Do comparisons as the type of the first expression.
45 * treetree.c (tree_code_get_integer_value): Build integer constants
48 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
50 * Make-lang.in: Remove commented out code.
51 * lang-specs.h: Always pass -dumpbase to tree1.
53 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
55 * treelang.texi: Remove extra contribution notice.
56 Split up some run-on sentences. Document function parameters
57 as optional. Indicate automatic variables can now be at any scope.
58 Mention literals are only signed if they are preceded by a unary
59 plus or minus. Clarify interoperability with C.
61 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
63 * treelang.texi: Fix whitespacing.
65 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
68 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
69 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
70 rest_of_decl_compilation on static variables.
71 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
74 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
77 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
78 Move function parameters check from ...
79 (function): ...Here. Update call to tree_code_create_function_initial.
80 (function_invocation): Use expressions_with_commas_opt instead of
81 expressions_with_commas.
82 (expressions_with_commas_opt): New rule.
83 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
84 for function parameters.
85 (tree_code_create_function_initial): Remove PARMS parameter.
86 Don't create PARM_DECLs for function parameters.
87 * treetree.h (tree_code_create_function_initial): Remove PARMS
90 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
92 * parse.y: Update copyright.
94 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
96 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
99 2005-02-09 Richard Henderson <rth@redhat.com>
101 * treetree.c (treelang_init_decl_processing): Call
102 build_common_builtin_nodes.
104 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
106 * treelang.texi: Don't use local treelang version number. Don't
107 give last update date.
109 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
111 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
113 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
115 * parse.y: Reformat comments.
116 * treetree.c: Likewise.
117 * treetree.h: Likewise.
119 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
121 * treetree.c (tree_code_generate_return): Wrap param declaration in
124 2004-10-05 Zack Weinberg <zack@codesourcery.com>
126 * parse.y: Add list of diagnostic messages to insulate
127 translation template from version of yacc/bison used to
130 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
133 * lex.l: Include input.h and errors.h
134 (lineno): New variable.
135 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
137 Set column position with LINEMAP_POSITION_FOR_COLUMN.
138 Use error instead of fprintf.
139 Set input_location with the value returned by linemap_start_line when
140 USE_MAPPED_LOCATION is defined.
141 (dump_lex_value): Use LOCATION_LINE.
142 * parse.y: Include errors.h.
143 Use error and warning instead of fprintf.
144 (return): Move exp to rule scope and always set to $2. Test against
146 (init): Set $$ to $2.
147 (print_token): Use LOCATION_LINE.
148 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
149 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
151 (treelang_parse_file): Always start at line one.
152 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
154 Leave main_input_filename when done parsing the input.
155 (insert_tree_name): Use error instead of fprintf.
156 * treetree.c (tree_code_get_expression): Wrap long line.
157 (tree_mark_addressable): Use %qD to print out DECLs.
159 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
161 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
163 * treetree.c: Likewise.
165 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
167 * lex.l: Remove random whitespace.
168 * parse.y: Reformat copyright notice. Indent declarations.
169 Wrap long lines, unwrap short lines.
170 * tree1.c: Reformat copyright notice. Wrap long lines.
171 Remove random whitespace.
172 (lookup_tree_name): Use LOCATION_LINE.
173 * treetree.c: Reformat copyright notice. Wrap long lines.
174 Remove random whitespace.
176 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
178 * parse.y (ELSE): Set tok to $1.
179 * treelang.texi: Wrap comments in @r{}. Indent example comments.
180 Use gcc when refering to the command line or website. Update function
183 2004-10-01 Jan Hubicka <jh@suse.cz>
185 * treetree.c (treeland_expand_function): Update call of
186 tree_rest_of_compilation.
188 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
189 Zack Weinberg <zack@codesourcery.com>
191 * treetree.c: Update for new tree-class enumeration constants.
193 2004-09-15 Zack Weinberg <zack@codesourcery.com>
195 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
197 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
199 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
201 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
203 * treelang/treetree.c (treelang_init_decl_processing): Adjust
204 build_common_tree_nodes call.
206 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
208 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
210 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
212 * Make-lang.in (TREE_BE_LIBS): Remove.
213 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
215 * parse.y: Add variable_defs_opt before statements_opt.
216 Use tree_code_get_type instead of get_type_for_numeric_type.
218 (parameters_opt): New rule.
219 (function_prototype): Use parameters_opt.
220 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
221 (check_type_match): Use VOID_TYPE.
222 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
223 * tree1.c: Include version.h and cgraph.h
224 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
226 * treelang.h (item): Remove extraneous GTY.
227 * treetree.h (get_type_for_numeric_type): Remove.
228 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
229 function.h, and cgraph.h. Don't include rtl.h
230 (keep_level_p): Remove.
231 (tree_push_atomic_type_decl): Remove.
232 (get_type_for_numeric_type): Remove.
233 (tree_code_get_numeric_type): Remove.
234 (global_bindings_p): Make static.
235 (getdecls): Likewise.
236 (insert_block): Likewise.
237 (tree_code_if_start): Create a COND_EXPR and add it to the tree
238 instead of creating rtl.
239 (tree_code_if_else): Create a BIND_EXPR if any variables were created
241 (tree_code_end_if): Likewise.
242 (tree_code_create_function_prototype): Use tree_code_get_type.
243 Don't use SET_DECL_ASSEMBLER_NAME.
244 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
245 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
246 layout_decl on RESULT_DECL. Don't call rtl expand functions.
247 (tree_code_create_function_wrapup): Don't call rtl expand functions.
248 Create a BIND_EXPR for each function. Dump original and gimplified
249 copies of the function tree. Gimplify function.
250 (tree_code_create_variable): Use tree_code_get_type. Don't call
251 layout_decl or expand_decl. Fold CONVERT_EXPRs.
252 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
253 Add RETURN_EXPR to the current statement list. Don't call rtl expand
255 (tree_code_output_expression_statement): Append CODE to current
257 (tree_code_get_expression): Fold expressions. Build a pointer to
258 a FUNCTION_TYPE intead of the called functions return type.
259 (struct binding_level): Add statement list STMTS.
260 (getstmtlist): New Function.
261 (pushlevel): Make static. Allocate an empty statement list.
262 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
263 Don't use DECL_ASSEMBLER_NAME.
264 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
265 (treelang_init_decl_processing): Define basic types after unused types.
266 Don't call tree_push_atomic_type_decl.
267 (builtin_function): Don't call make_decl_rtl.
268 (treelang_expand_function). New Function.
270 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
272 * treetree.c (set_block): Remove.
273 (struct binding_level): Remove block_created_by_back_end.
274 (clear_binding_level): Likewise.
275 (tree_code_create_function_initial,
276 tree_code_create_function_wrapup): Call pushlevel and poplevel
277 directly rather than through hooks.
278 (poplevel): Don't handle block_created_by_back_end.
280 2004-04-07 Richard Henderson <rth@redhat.com>
282 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
284 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
286 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
289 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
291 * treelang.texi: Update link to "G++ and GCC".
293 2004-02-20 Richard Henderson <rth@redhat.com>
295 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
297 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
299 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
301 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
303 * Make-lang.in: Replace $(docdir) with doc.
304 (treelang.info, treelang.srcinfo): New rules.
305 (treelang.man, treelang.man): Dummy entries.
307 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
309 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
310 (treelang/parse.o, treelang/lex.o): Look for sources in build
311 directory. Use implicit rule.
312 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
314 (treelang.srcextra): Copy above back to source directory if requested.
316 2004-01-07 Zack Weinberg <zack@codesourcery.com>
318 * parse.y (yyerror): Mark the definition static.
320 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
322 * lex.l: Add \t as a whitespace character.
323 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
325 * treelang.texi (What is GNU Treelang?): Fix a typo.
326 (Lexical Syntax): Create an itemize list of keywords. Add commas to
327 paragraph defining names.
329 2003-11-26 Jason Merrill <jason@redhat.com>
331 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
332 directory and TAGS files that include them for each front end.
334 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
336 * .cvsignore: Delete.
338 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
340 * Make-lang.in (treelang.extraclean): Delete.
342 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
344 * Make-lang.in: Remove obsolete comment.
346 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
348 * Make-lang.in (dvi): Move targets to $(docobjdir).
349 (treelang.dvi): Simplify rule and adjust target.
350 (treelang.info): Simplify rule.
351 (parse.o): Correct dependencies.
352 (TREE_EXE): Delete doubled suffix append.
354 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
356 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
359 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
361 * Make-lang.in (parse.o): Honor $(parsedir).
364 (parse.c, parse.h): Likewise.
365 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
368 2003-10-20 Mark Mitchell <mark@codesourcery.com>
370 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
373 * Make-lang.in (info): Use docobjdir.
374 ($(srcdir)/treelang/treelang.info): Replace with ...
375 ($(docobjdir)/treelang/treelang.info): ... this.
376 (install-info): New target.
378 2003-10-12 Andreas Jaeger <aj@suse.de>
380 * Make-lang.in (treelang.install-info): Remove reference to
382 (treelang.): Removed.
384 2003-10-06 Mark Mitchell <mark@codesourcery.com>
386 * Make-lang.in (treelang.info): Replace with ...
388 * Make-lang.in (treelang.dvi): Replace with ...
391 2003-09-21 Richard Henderson <rth@redhat.com>
393 * treetree.c: Revert.
395 2003-09-21 Richard Henderson <rth@redhat.com>
397 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
400 2003-07-28 Andreas Jaeger <aj@suse.de>
402 * treetree.c: Convert remaining K&R prototypes to ISO C90.
405 * tree-convert.c: Likewise.
407 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
409 * treetree.c: Remove unnecessary casts.
411 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
413 * lang-options.h: Remove.
414 * lang.opt: Document some options. Remove --help.
415 * tree1.c (treelang_handle_option): Remove OPT__help case.
417 2003-07-12 Andreas Jaeger <aj@suse.de>
419 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
421 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
423 * Make-lang.in: Update.
424 * tree1.c: Don't include c-common.h.
425 (c_language): Remove.
427 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
428 Steven Bosscher <steven@gcc.gnu.org>
430 * tree-convert.c: New file.
431 * treetree.c: Don't include c-tree.h. Include target.h.
432 (struct lang_identifier, union lang_tree_node, struct lang_type,
433 struct lang_function): New, minimal language-specific datastructs.
434 (tree_lang_truthvalue_conversion, tree_mark_addressable,
435 tree_lang_type_for_size, tree_lang_type_for_mode,
436 tree_lang_unsigned_type, tree_lang_signed_type,
437 tree_lang_signed_or_unsigned): New functions.
438 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
439 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
440 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
441 tree_push_atomic_type_decl): New functions.
442 (struct resword, struct reswords): Remove.
443 * Make-lang.in: Update. Don't depend on C front end objects.
444 * config-lang.in: Likewise.
446 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
448 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
449 tree_code_if_end, tree_code_create_function_initial,
450 tree_code_create_function_wrapup, tree_code_generate_return,
451 tree_code_output_expression_statement): Adjust emit_line_note
454 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
456 * Make-lang.in: Replace PWD with PWD_COMMAND.
458 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
460 * tree1.c (treelang_init_options): Update prototype.
461 * treelang.h (treelang_init_options): Update prototype.
463 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
465 * Make-lang.in: Update.
466 * tree1.c: Include c-common.h. Define c_language.
468 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
470 * treetree.c (tree_code_create_function_wrapup): Adjust
471 expand_function_end call.
473 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
475 * treetree.c (build_stmt): Remove VPARAMS.
476 (pedwarn_c99): Likewise.
478 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
480 * lang.opt: Declare Treelang. Update.
481 * tree1.c (treelang_init_options): Update.
483 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
485 * treetree.c (tree_code_create_function_initial): Adjust
486 init_function_start call.
488 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
490 * Make-lang.in: Update to use options.c and options.h.
491 * tree1.c: Include options.h not t-options.h.
492 (treelang_init_options): New.
493 (treelang_handle_option): Abort on unrecognized switch.
494 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
495 * treetree.h (treelang_init_options): New.
497 2003-06-12 Andreas Jaeger <aj@suse.de>
499 * treetree.c: Remove cl_options-count and cl_options.
501 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
503 * Make-lang.in: Update for option handling.
505 * tree1.c: Include opts.h and t-options.h.
506 (treelang_decode_option): Remove.
507 (treelang_handle_option): New.
508 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
509 (LANG_HOOKS_HANDLE_OPTION): Override.
510 * treetree.h (treelang_decode_option): Remove.
511 (treelang_handle_option): New.
513 2003-06-08 Andreas Jaeger <aj@suse.de>
515 * Make-lang.in: Update.
516 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
518 2003-06-08 Tim Josling <tej@melbpc.org.au>
520 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
522 2003-06-05 Jan Hubicka <jh@suse.cz>
524 * Make-lang.in: Add support for stageprofile and stagefeedback
526 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
528 * treetree.c (reswords): Remove __bounded__, __unbounded__.
530 2003-05-09 Tim Josling <tej@melbpc.org.au>
532 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
533 to link (needed by some front ends such as PPC).
535 * treetree.c (tree_code_create_function_initial): Fix long line.
536 Initialize tree_code_int_size and tree_code_char_size to
538 (tree_code_get_numeric_type): Add check that size1 parameter is
541 * parse.y: Fix extra long lines in prototypes.
543 * treelang.h: Fix extra long lines in macro definitions.
545 2003-05-07 Zack Weinberg <zack@codesourcery.com>
547 * Make-lang.in: Set -Wno-error for treelang/lex.o.
549 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
551 * Make-lang.in (treelang/tree1.o): Depends on input.h
552 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
553 * treelang.h: #include input.h.
555 (struct token_part): Remove lineno, add location.
556 * lex.l (next_tree_lineno): Remove.
557 (update_lineno_charno): Adjust.
558 (dump_lex_value): Adjust.
559 * parse.y (variable_def, function_prototype, function, statement,
560 if_statement, return, function_invocation, variable_ref): Adjust.
561 (print_token, yyerror, ensure_not_void): Adjust.
562 tree1.c (in_fname): Remove.
563 (treelang_init): Setup input_location.
564 (lookup_tree_name): Adjust.
565 (insert_tree_name): Adjust.
566 * treetree.c (tree_code_if_start): Replace filename and lineno
567 parms with loc. Adjust.
568 (tree_code_if_else, tree_code_if_end,
569 tree_code_create_function_prototype,
570 tree_code_create_function_initial,
571 tree_code_create_function_wrapup, tree_code_create_variable,
572 tree_code_output_expression_statement): Likewise.
573 * treetree.h (tree_code_if_start): Replace filename and lineno
575 (tree_code_if_else, tree_code_if_end,
576 tree_code_create_function_prototype,
577 tree_code_create_function_initial,
578 tree_code_create_function_wrapup, tree_code_create_variable,
579 tree_code_output_expression_statement): Likewise.
581 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
583 * tree1.c (treelang_init): Rename lineno to input_line.
585 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
587 * parse.y (make_plus_expression): New function.
588 (expression production): Use make_plus_expression for PLUS,
589 MINUS, ASSIGN and EQUALS.
590 * tree1.c (treelang_decode_option): Don't fall through to
591 options that start with a different character when an option
594 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
596 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
597 * treetree.c: Do not #include parse.h.
599 2003-03-21 Andreas Jaeger <aj@suse.de>
601 * treetree.c (cpp_create_reader): Follow prototype change in
604 2003-03-17 Andreas Jaeger <aj@suse.de>
606 * Make-lang.in (treelang.tags): Remove duplicate entry.
608 2003-03-15 Andreas Jaeger <aj@suse.de>
610 * treetree.c (cpp_handle_option): Remove.
612 2003-03-13 Andreas Jaeger <aj@suse.de>
614 * Make-lang.in (tree1$(exeext)): Fix previous patch.
616 2003-03-12 Andreas Jaeger <aj@suse.de>
618 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
620 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
622 * tree1.c (in_fname): Fix type.
623 (treelang_init): Update prototype and use of in_fname.
624 * treelang.h (in_fname): Fix type.
625 * treetree.c (tree_code_if_start, tree_code_if_else,
626 tree_code_if_end, tree_code_create_function_prototype,
627 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
628 tree_code_create_variable, tree_code_output_expression_statement)
629 : Fix prototypes and use of filenames.
630 * treetree.h: Similarly.
632 2003-03-05 Andreas Jaeger <aj@suse.de>
634 * treetree.c (init_c_lex): Follow change to c-common.h.
636 2003-03-04 Tom Tromey <tromey@redhat.com>
638 * Make-lang.in (treelang.tags): New target.
640 2003-03-01 Tim Josling <tej@melbpc.org.au>
642 Name clashes with rtl.h fixed.
644 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
649 2003-02-24 Tim Josling <tej@melbpc.org.au>
651 * parse.y (my_yylex): New - ensure lexer time is charged to
653 (yylex): redefine as invocation of my_yylex which then calls
654 flex-generated yylex.
655 (timevar.h): include.
657 2003-02-23 Tim Josling <tej@melbpc.org.au>
659 Fix garbage collection, add more error checking, force GC always.
661 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
662 (treelang/treetree.o): Depend on treelang/parse.h
664 * lex.l: include "treetree.h"
666 * lex.l (update_yylval): Allocate string using get_string so GC
669 * parse.y (function_prototype): Set category correctly so GC works.
670 (function): Set category in search so checking works.
671 (function_invocation): Ditto.
672 (variable_ref): Ditto.
674 * tree1.c (lookup_tree_name): Call sanity_check for passed
675 production and associated token and for symbol table entries.
677 * tree1.c (sanity_check): New, basic check that struct is valid.
679 * treelang.h: Prototype for sanity_check.
681 2003-01-27 Tim Josling <tej@melbpc.org.au>
683 * treetree.c (treelang_init_decl_processing): Change memory
684 allocation to use GC.
686 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
688 * treelang.texi: Update to GFDL 1.2.
690 2003-01-26 Michael Matz <matz@suse.de>
692 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
694 2003-01-14 Andreas Jaeger <aj@suse.de>
696 * Make-lang.in (treelang.install-info): Depend only on info files
697 if BUILD_INFO is set. Fix install rules.
700 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
702 * Make-lang.in (treelang.install.common.done,
703 treelang.install-info, treelang.uninstall): Prepend
704 $(DESTDIR) to destination paths in all (un)installation
707 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
709 * treelang.texi: Use @copying.
711 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
713 * treelang.texi: Include gcc-common.texi.
714 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
715 Depend on gcc-common.texi. Add other missing dependencies.
716 (treelang.dvi): Use texi2dvi.
718 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
720 * treelang.texi: Use @ifnottex instead of @ifinfo.
722 2002-11-30 Zack Weinberg <zack@codesourcery.com>
724 * lex.l: Move "%{" below copyright notice; get rid of "/*"
725 embedded in comment. Do not #undef IN_GCC; do not include
726 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
727 Do include coretypes.h and tm.h.
728 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
729 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
730 ansidecl.h. Do include coretypes.h and tm.h.
731 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
732 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
733 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
734 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
735 or ansidecl.h. Do include coretypes.h and tm.h.
736 * Make-lang.in: Update dependencies.
738 2002-09-09 Tim Josling <tej@melbpc.org.au>
740 * treetree.c (objc_is_id): New.
742 2002-08-16 Tim Josling <tej@melbpc.org.au>
744 Remove variables and functions now defined elsewhere.
746 * treetree.c (maybe_objc_comptypes): Remove.
747 (warn_format, warn_format_y2k, warn_format_extra_args,
748 warn_format_nonliteral, warn_format_security,
749 warn_format_zero_length): Remove.
750 (maybe_building_objc_message_expr): Remove.
751 (cpp_post_options): Remove.
752 (maybe_objc_check_decl): Remove.
753 (integer_types): Remove.
756 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
758 * treelang.c: Remove cpp_post_options.
760 2002-08-13 Tim Josling <tej@melbpc.org.au>
762 * parse.y: Provide dummy definition of rtx for use by config.h.
763 * Make-lang.in (treetree.o): Remove dependency on non-existent
764 gt-treelang-treelang.h.
765 (gt-treelang-treelang.h): Remove.
767 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
769 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
771 2002-07-11 Tim Josling <tej@melbpc.org.au>
773 Remove front end hard coding from gengtype.c.
775 * config-lang.in (gtfiles): Add files needed for this front
778 2002-07-09 Tim Josling <tej@melbpc.org.au>
780 Support new attributes regime (Fix for PR c++/7099).
782 * treetree.c (handle_format_attribute): Return NULL_TREE instead
784 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
785 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
786 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
788 2002-06-21 Andreas Jaeger <aj@suse.de>
790 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
791 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
793 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
795 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
798 2002-06-10 Tim Josling <tej@melbpc.org.au>
802 * Make-lang.in (check-treelang). Add. Remove direct dependency of
803 'check' on 'treelang.check' as redundant.
805 PCH Garbage collection regime (gengtypes.c) phase 1.
807 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
808 gt-treelang-treelang.h gtype-treelang.h.
809 (gt-treelang-tree1.h) Depend on s-gtype.
810 (gt-treelang-treelang.h) Depend on s-gtype.
811 (gtype-treelang.h) Depend on s-gtype.
813 * config-lang.in (gtfiles): Define.
815 * lex.l (main): Remove '#if 0' dead code.
816 (main): Move undef of IN_GCC so define of tree typedef works.
817 (all): Replace token and production by prod_token_parm_item.
820 (all): Replace token and production by prod_token_parm_item.
822 * tree1.c (main): Remove include of "output.h".
823 (symbol_table): Add GTY details.
824 (symbol_table_ggc): Remove.
825 (treelang_init): Remove root definitions for garbage collection.
826 (mark_production_used): Remove.
827 (mark_token_used): Remove.
828 (main, at end): include generated garage collection routines.
830 * treelang.h (category_enum ): Add parameter_category.
831 (all): Replace token and production and parameters by union
832 prod_token_parm_item containing production_part, token_part,
834 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
835 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
836 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
837 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
841 (tm_p.h): Do not include.
842 (ansidecl.h): Move include after config.h.
843 (treelang.h): Include it.
845 (all): Replace token, production and parameter by prod_token_parm_item.
846 (tree_parameter_list): Move to treelang.h as part of
847 prod_token_parm_item.
848 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
849 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
850 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
851 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
854 2002-05-19 Tim Josling <tej@melbpc.org.au>
856 * treetree.c (warn_format_zero_length): Add.
858 2002-05-14 Tim Josling <tej@melbpc.org.au>
860 * Make-lang.in: Fix build for .info files, add target for manpages.
861 A bug report and a suggested patch came from Magnus Fromreide
862 <magfr@lysator.liu.se>.
864 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
866 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
868 2002-05-11 Tim Josling <tej@melbpc.org.au>
870 * treetree.c: (cpp_define) Add.
871 (cpp_get_callbacks) Add.
873 2002-05-07 Tim Josling <tej@melbpc.org.au>
875 * treetree.c: (cpp_get_options) Add.
877 2002-05-06 Tim Josling <tej@melbpc.org.au>
881 2002-05-05 Tim Josling <tej@melbpc.org.au>
883 * Updated for gcc3.2 experimental. Major changes throughout.
885 2002-03-31 Tim Josling <tej@melbpc.org.au>
887 * Make-lang.in: Changes so build and check work more reliably
889 2001-07-30 Tim Josling <tej@melbpc.org.au>
892 * treelang.texi: updates based on feedback
894 2001-06-11 Tim Josling <tej@melbpc.org.au>
896 * all (all) Revamp code to conform to GCC coding standards, fix
899 2001-05-11 Tim Josling <tej@melbpc.org.au>
901 Create the new language.