1 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
3 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
4 tree_lang_truthvalue_conversion): Remove.
5 * tree-convert.c: Don't call truthvalue_conversion.
7 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
9 * treetree.c (tree_code_if_start): Use fold_buildN.
10 (tree_code_create_variable): Likewise.
11 (tree_code_generate_return): Likewise.
12 (tree_code_get_expression): Likewise.
13 (tree_code_add_parameter): Likewise.
15 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
17 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
20 2005-03-15 Zack Weinberg <zack@codesourcery.com>
22 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
24 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
27 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
30 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
32 * treelang.texi: Fix a typo.
34 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
36 * parse.y (function_invocation, variable-ref, make_plus_expression):
37 Pass location to tree_code_get_expression.
38 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
39 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
40 set EXPR_LOCATION on ret1.
41 * treetree.h (tree_code_get_expression): Take the location of the
42 expression as an argument.
44 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
46 * treelang.texi: Treelang does have warnings.
47 * treetree.c (tree_code_create_function_prototype): Don't set
48 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
49 as few times as needed on the function declaration.
50 (tree_code_create_function_initial): Don't set TREE_USED,
51 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
52 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
53 (tree_code_get_expression): Set TREE_USED for variable references
56 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
58 * parse.y: Do comparisons as the type of the first expression.
59 * treetree.c (tree_code_get_integer_value): Build integer constants
62 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
64 * Make-lang.in: Remove commented out code.
65 * lang-specs.h: Always pass -dumpbase to tree1.
67 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
69 * treelang.texi: Remove extra contribution notice.
70 Split up some run-on sentences. Document function parameters
71 as optional. Indicate automatic variables can now be at any scope.
72 Mention literals are only signed if they are preceded by a unary
73 plus or minus. Clarify interoperability with C.
75 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
77 * treelang.texi: Fix whitespacing.
79 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
82 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
83 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
84 rest_of_decl_compilation on static variables.
85 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
88 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
91 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
92 Move function parameters check from ...
93 (function): ...Here. Update call to tree_code_create_function_initial.
94 (function_invocation): Use expressions_with_commas_opt instead of
95 expressions_with_commas.
96 (expressions_with_commas_opt): New rule.
97 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
98 for function parameters.
99 (tree_code_create_function_initial): Remove PARMS parameter.
100 Don't create PARM_DECLs for function parameters.
101 * treetree.h (tree_code_create_function_initial): Remove PARMS
104 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
106 * parse.y: Update copyright.
108 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
110 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
111 scalar integer types.
113 2005-02-09 Richard Henderson <rth@redhat.com>
115 * treetree.c (treelang_init_decl_processing): Call
116 build_common_builtin_nodes.
118 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
120 * treelang.texi: Don't use local treelang version number. Don't
121 give last update date.
123 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
125 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
127 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
129 * parse.y: Reformat comments.
130 * treetree.c: Likewise.
131 * treetree.h: Likewise.
133 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
135 * treetree.c (tree_code_generate_return): Wrap param declaration in
138 2004-10-05 Zack Weinberg <zack@codesourcery.com>
140 * parse.y: Add list of diagnostic messages to insulate
141 translation template from version of yacc/bison used to
144 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
147 * lex.l: Include input.h and errors.h
148 (lineno): New variable.
149 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
151 Set column position with LINEMAP_POSITION_FOR_COLUMN.
152 Use error instead of fprintf.
153 Set input_location with the value returned by linemap_start_line when
154 USE_MAPPED_LOCATION is defined.
155 (dump_lex_value): Use LOCATION_LINE.
156 * parse.y: Include errors.h.
157 Use error and warning instead of fprintf.
158 (return): Move exp to rule scope and always set to $2. Test against
160 (init): Set $$ to $2.
161 (print_token): Use LOCATION_LINE.
162 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
163 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
165 (treelang_parse_file): Always start at line one.
166 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
168 Leave main_input_filename when done parsing the input.
169 (insert_tree_name): Use error instead of fprintf.
170 * treetree.c (tree_code_get_expression): Wrap long line.
171 (tree_mark_addressable): Use %qD to print out DECLs.
173 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
175 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
177 * treetree.c: Likewise.
179 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
181 * lex.l: Remove random whitespace.
182 * parse.y: Reformat copyright notice. Indent declarations.
183 Wrap long lines, unwrap short lines.
184 * tree1.c: Reformat copyright notice. Wrap long lines.
185 Remove random whitespace.
186 (lookup_tree_name): Use LOCATION_LINE.
187 * treetree.c: Reformat copyright notice. Wrap long lines.
188 Remove random whitespace.
190 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
192 * parse.y (ELSE): Set tok to $1.
193 * treelang.texi: Wrap comments in @r{}. Indent example comments.
194 Use gcc when refering to the command line or website. Update function
197 2004-10-01 Jan Hubicka <jh@suse.cz>
199 * treetree.c (treeland_expand_function): Update call of
200 tree_rest_of_compilation.
202 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
203 Zack Weinberg <zack@codesourcery.com>
205 * treetree.c: Update for new tree-class enumeration constants.
207 2004-09-15 Zack Weinberg <zack@codesourcery.com>
209 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
211 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
213 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
215 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
217 * treelang/treetree.c (treelang_init_decl_processing): Adjust
218 build_common_tree_nodes call.
220 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
222 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
224 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
226 * Make-lang.in (TREE_BE_LIBS): Remove.
227 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
229 * parse.y: Add variable_defs_opt before statements_opt.
230 Use tree_code_get_type instead of get_type_for_numeric_type.
232 (parameters_opt): New rule.
233 (function_prototype): Use parameters_opt.
234 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
235 (check_type_match): Use VOID_TYPE.
236 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
237 * tree1.c: Include version.h and cgraph.h
238 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
240 * treelang.h (item): Remove extraneous GTY.
241 * treetree.h (get_type_for_numeric_type): Remove.
242 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
243 function.h, and cgraph.h. Don't include rtl.h
244 (keep_level_p): Remove.
245 (tree_push_atomic_type_decl): Remove.
246 (get_type_for_numeric_type): Remove.
247 (tree_code_get_numeric_type): Remove.
248 (global_bindings_p): Make static.
249 (getdecls): Likewise.
250 (insert_block): Likewise.
251 (tree_code_if_start): Create a COND_EXPR and add it to the tree
252 instead of creating rtl.
253 (tree_code_if_else): Create a BIND_EXPR if any variables were created
255 (tree_code_end_if): Likewise.
256 (tree_code_create_function_prototype): Use tree_code_get_type.
257 Don't use SET_DECL_ASSEMBLER_NAME.
258 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
259 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
260 layout_decl on RESULT_DECL. Don't call rtl expand functions.
261 (tree_code_create_function_wrapup): Don't call rtl expand functions.
262 Create a BIND_EXPR for each function. Dump original and gimplified
263 copies of the function tree. Gimplify function.
264 (tree_code_create_variable): Use tree_code_get_type. Don't call
265 layout_decl or expand_decl. Fold CONVERT_EXPRs.
266 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
267 Add RETURN_EXPR to the current statement list. Don't call rtl expand
269 (tree_code_output_expression_statement): Append CODE to current
271 (tree_code_get_expression): Fold expressions. Build a pointer to
272 a FUNCTION_TYPE intead of the called functions return type.
273 (struct binding_level): Add statement list STMTS.
274 (getstmtlist): New Function.
275 (pushlevel): Make static. Allocate an empty statement list.
276 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
277 Don't use DECL_ASSEMBLER_NAME.
278 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
279 (treelang_init_decl_processing): Define basic types after unused types.
280 Don't call tree_push_atomic_type_decl.
281 (builtin_function): Don't call make_decl_rtl.
282 (treelang_expand_function). New Function.
284 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
286 * treetree.c (set_block): Remove.
287 (struct binding_level): Remove block_created_by_back_end.
288 (clear_binding_level): Likewise.
289 (tree_code_create_function_initial,
290 tree_code_create_function_wrapup): Call pushlevel and poplevel
291 directly rather than through hooks.
292 (poplevel): Don't handle block_created_by_back_end.
294 2004-04-07 Richard Henderson <rth@redhat.com>
296 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
298 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
300 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
303 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
305 * treelang.texi: Update link to "G++ and GCC".
307 2004-02-20 Richard Henderson <rth@redhat.com>
309 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
311 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
313 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
315 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
317 * Make-lang.in: Replace $(docdir) with doc.
318 (treelang.info, treelang.srcinfo): New rules.
319 (treelang.man, treelang.man): Dummy entries.
321 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
323 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
324 (treelang/parse.o, treelang/lex.o): Look for sources in build
325 directory. Use implicit rule.
326 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
328 (treelang.srcextra): Copy above back to source directory if requested.
330 2004-01-07 Zack Weinberg <zack@codesourcery.com>
332 * parse.y (yyerror): Mark the definition static.
334 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
336 * lex.l: Add \t as a whitespace character.
337 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
339 * treelang.texi (What is GNU Treelang?): Fix a typo.
340 (Lexical Syntax): Create an itemize list of keywords. Add commas to
341 paragraph defining names.
343 2003-11-26 Jason Merrill <jason@redhat.com>
345 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
346 directory and TAGS files that include them for each front end.
348 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
350 * .cvsignore: Delete.
352 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
354 * Make-lang.in (treelang.extraclean): Delete.
356 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
358 * Make-lang.in: Remove obsolete comment.
360 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
362 * Make-lang.in (dvi): Move targets to $(docobjdir).
363 (treelang.dvi): Simplify rule and adjust target.
364 (treelang.info): Simplify rule.
365 (parse.o): Correct dependencies.
366 (TREE_EXE): Delete doubled suffix append.
368 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
370 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
373 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
375 * Make-lang.in (parse.o): Honor $(parsedir).
378 (parse.c, parse.h): Likewise.
379 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
382 2003-10-20 Mark Mitchell <mark@codesourcery.com>
384 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
387 * Make-lang.in (info): Use docobjdir.
388 ($(srcdir)/treelang/treelang.info): Replace with ...
389 ($(docobjdir)/treelang/treelang.info): ... this.
390 (install-info): New target.
392 2003-10-12 Andreas Jaeger <aj@suse.de>
394 * Make-lang.in (treelang.install-info): Remove reference to
396 (treelang.): Removed.
398 2003-10-06 Mark Mitchell <mark@codesourcery.com>
400 * Make-lang.in (treelang.info): Replace with ...
402 * Make-lang.in (treelang.dvi): Replace with ...
405 2003-09-21 Richard Henderson <rth@redhat.com>
407 * treetree.c: Revert.
409 2003-09-21 Richard Henderson <rth@redhat.com>
411 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
414 2003-07-28 Andreas Jaeger <aj@suse.de>
416 * treetree.c: Convert remaining K&R prototypes to ISO C90.
419 * tree-convert.c: Likewise.
421 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
423 * treetree.c: Remove unnecessary casts.
425 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
427 * lang-options.h: Remove.
428 * lang.opt: Document some options. Remove --help.
429 * tree1.c (treelang_handle_option): Remove OPT__help case.
431 2003-07-12 Andreas Jaeger <aj@suse.de>
433 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
435 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
437 * Make-lang.in: Update.
438 * tree1.c: Don't include c-common.h.
439 (c_language): Remove.
441 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
442 Steven Bosscher <steven@gcc.gnu.org>
444 * tree-convert.c: New file.
445 * treetree.c: Don't include c-tree.h. Include target.h.
446 (struct lang_identifier, union lang_tree_node, struct lang_type,
447 struct lang_function): New, minimal language-specific datastructs.
448 (tree_lang_truthvalue_conversion, tree_mark_addressable,
449 tree_lang_type_for_size, tree_lang_type_for_mode,
450 tree_lang_unsigned_type, tree_lang_signed_type,
451 tree_lang_signed_or_unsigned): New functions.
452 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
453 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
454 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
455 tree_push_atomic_type_decl): New functions.
456 (struct resword, struct reswords): Remove.
457 * Make-lang.in: Update. Don't depend on C front end objects.
458 * config-lang.in: Likewise.
460 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
462 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
463 tree_code_if_end, tree_code_create_function_initial,
464 tree_code_create_function_wrapup, tree_code_generate_return,
465 tree_code_output_expression_statement): Adjust emit_line_note
468 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
470 * Make-lang.in: Replace PWD with PWD_COMMAND.
472 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
474 * tree1.c (treelang_init_options): Update prototype.
475 * treelang.h (treelang_init_options): Update prototype.
477 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
479 * Make-lang.in: Update.
480 * tree1.c: Include c-common.h. Define c_language.
482 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
484 * treetree.c (tree_code_create_function_wrapup): Adjust
485 expand_function_end call.
487 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
489 * treetree.c (build_stmt): Remove VPARAMS.
490 (pedwarn_c99): Likewise.
492 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
494 * lang.opt: Declare Treelang. Update.
495 * tree1.c (treelang_init_options): Update.
497 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
499 * treetree.c (tree_code_create_function_initial): Adjust
500 init_function_start call.
502 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
504 * Make-lang.in: Update to use options.c and options.h.
505 * tree1.c: Include options.h not t-options.h.
506 (treelang_init_options): New.
507 (treelang_handle_option): Abort on unrecognized switch.
508 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
509 * treetree.h (treelang_init_options): New.
511 2003-06-12 Andreas Jaeger <aj@suse.de>
513 * treetree.c: Remove cl_options-count and cl_options.
515 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
517 * Make-lang.in: Update for option handling.
519 * tree1.c: Include opts.h and t-options.h.
520 (treelang_decode_option): Remove.
521 (treelang_handle_option): New.
522 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
523 (LANG_HOOKS_HANDLE_OPTION): Override.
524 * treetree.h (treelang_decode_option): Remove.
525 (treelang_handle_option): New.
527 2003-06-08 Andreas Jaeger <aj@suse.de>
529 * Make-lang.in: Update.
530 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
532 2003-06-08 Tim Josling <tej@melbpc.org.au>
534 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
536 2003-06-05 Jan Hubicka <jh@suse.cz>
538 * Make-lang.in: Add support for stageprofile and stagefeedback
540 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
542 * treetree.c (reswords): Remove __bounded__, __unbounded__.
544 2003-05-09 Tim Josling <tej@melbpc.org.au>
546 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
547 to link (needed by some front ends such as PPC).
549 * treetree.c (tree_code_create_function_initial): Fix long line.
550 Initialize tree_code_int_size and tree_code_char_size to
552 (tree_code_get_numeric_type): Add check that size1 parameter is
555 * parse.y: Fix extra long lines in prototypes.
557 * treelang.h: Fix extra long lines in macro definitions.
559 2003-05-07 Zack Weinberg <zack@codesourcery.com>
561 * Make-lang.in: Set -Wno-error for treelang/lex.o.
563 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
565 * Make-lang.in (treelang/tree1.o): Depends on input.h
566 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
567 * treelang.h: #include input.h.
569 (struct token_part): Remove lineno, add location.
570 * lex.l (next_tree_lineno): Remove.
571 (update_lineno_charno): Adjust.
572 (dump_lex_value): Adjust.
573 * parse.y (variable_def, function_prototype, function, statement,
574 if_statement, return, function_invocation, variable_ref): Adjust.
575 (print_token, yyerror, ensure_not_void): Adjust.
576 tree1.c (in_fname): Remove.
577 (treelang_init): Setup input_location.
578 (lookup_tree_name): Adjust.
579 (insert_tree_name): Adjust.
580 * treetree.c (tree_code_if_start): Replace filename and lineno
581 parms with loc. Adjust.
582 (tree_code_if_else, tree_code_if_end,
583 tree_code_create_function_prototype,
584 tree_code_create_function_initial,
585 tree_code_create_function_wrapup, tree_code_create_variable,
586 tree_code_output_expression_statement): Likewise.
587 * treetree.h (tree_code_if_start): Replace filename and lineno
589 (tree_code_if_else, tree_code_if_end,
590 tree_code_create_function_prototype,
591 tree_code_create_function_initial,
592 tree_code_create_function_wrapup, tree_code_create_variable,
593 tree_code_output_expression_statement): Likewise.
595 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
597 * tree1.c (treelang_init): Rename lineno to input_line.
599 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
601 * parse.y (make_plus_expression): New function.
602 (expression production): Use make_plus_expression for PLUS,
603 MINUS, ASSIGN and EQUALS.
604 * tree1.c (treelang_decode_option): Don't fall through to
605 options that start with a different character when an option
608 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
610 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
611 * treetree.c: Do not #include parse.h.
613 2003-03-21 Andreas Jaeger <aj@suse.de>
615 * treetree.c (cpp_create_reader): Follow prototype change in
618 2003-03-17 Andreas Jaeger <aj@suse.de>
620 * Make-lang.in (treelang.tags): Remove duplicate entry.
622 2003-03-15 Andreas Jaeger <aj@suse.de>
624 * treetree.c (cpp_handle_option): Remove.
626 2003-03-13 Andreas Jaeger <aj@suse.de>
628 * Make-lang.in (tree1$(exeext)): Fix previous patch.
630 2003-03-12 Andreas Jaeger <aj@suse.de>
632 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
634 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
636 * tree1.c (in_fname): Fix type.
637 (treelang_init): Update prototype and use of in_fname.
638 * treelang.h (in_fname): Fix type.
639 * treetree.c (tree_code_if_start, tree_code_if_else,
640 tree_code_if_end, tree_code_create_function_prototype,
641 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
642 tree_code_create_variable, tree_code_output_expression_statement)
643 : Fix prototypes and use of filenames.
644 * treetree.h: Similarly.
646 2003-03-05 Andreas Jaeger <aj@suse.de>
648 * treetree.c (init_c_lex): Follow change to c-common.h.
650 2003-03-04 Tom Tromey <tromey@redhat.com>
652 * Make-lang.in (treelang.tags): New target.
654 2003-03-01 Tim Josling <tej@melbpc.org.au>
656 Name clashes with rtl.h fixed.
658 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
663 2003-02-24 Tim Josling <tej@melbpc.org.au>
665 * parse.y (my_yylex): New - ensure lexer time is charged to
667 (yylex): redefine as invocation of my_yylex which then calls
668 flex-generated yylex.
669 (timevar.h): include.
671 2003-02-23 Tim Josling <tej@melbpc.org.au>
673 Fix garbage collection, add more error checking, force GC always.
675 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
676 (treelang/treetree.o): Depend on treelang/parse.h
678 * lex.l: include "treetree.h"
680 * lex.l (update_yylval): Allocate string using get_string so GC
683 * parse.y (function_prototype): Set category correctly so GC works.
684 (function): Set category in search so checking works.
685 (function_invocation): Ditto.
686 (variable_ref): Ditto.
688 * tree1.c (lookup_tree_name): Call sanity_check for passed
689 production and associated token and for symbol table entries.
691 * tree1.c (sanity_check): New, basic check that struct is valid.
693 * treelang.h: Prototype for sanity_check.
695 2003-01-27 Tim Josling <tej@melbpc.org.au>
697 * treetree.c (treelang_init_decl_processing): Change memory
698 allocation to use GC.
700 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
702 * treelang.texi: Update to GFDL 1.2.
704 2003-01-26 Michael Matz <matz@suse.de>
706 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
708 2003-01-14 Andreas Jaeger <aj@suse.de>
710 * Make-lang.in (treelang.install-info): Depend only on info files
711 if BUILD_INFO is set. Fix install rules.
714 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
716 * Make-lang.in (treelang.install.common.done,
717 treelang.install-info, treelang.uninstall): Prepend
718 $(DESTDIR) to destination paths in all (un)installation
721 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
723 * treelang.texi: Use @copying.
725 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
727 * treelang.texi: Include gcc-common.texi.
728 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
729 Depend on gcc-common.texi. Add other missing dependencies.
730 (treelang.dvi): Use texi2dvi.
732 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
734 * treelang.texi: Use @ifnottex instead of @ifinfo.
736 2002-11-30 Zack Weinberg <zack@codesourcery.com>
738 * lex.l: Move "%{" below copyright notice; get rid of "/*"
739 embedded in comment. Do not #undef IN_GCC; do not include
740 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
741 Do include coretypes.h and tm.h.
742 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
743 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
744 ansidecl.h. Do include coretypes.h and tm.h.
745 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
746 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
747 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
748 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
749 or ansidecl.h. Do include coretypes.h and tm.h.
750 * Make-lang.in: Update dependencies.
752 2002-09-09 Tim Josling <tej@melbpc.org.au>
754 * treetree.c (objc_is_id): New.
756 2002-08-16 Tim Josling <tej@melbpc.org.au>
758 Remove variables and functions now defined elsewhere.
760 * treetree.c (maybe_objc_comptypes): Remove.
761 (warn_format, warn_format_y2k, warn_format_extra_args,
762 warn_format_nonliteral, warn_format_security,
763 warn_format_zero_length): Remove.
764 (maybe_building_objc_message_expr): Remove.
765 (cpp_post_options): Remove.
766 (maybe_objc_check_decl): Remove.
767 (integer_types): Remove.
770 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
772 * treelang.c: Remove cpp_post_options.
774 2002-08-13 Tim Josling <tej@melbpc.org.au>
776 * parse.y: Provide dummy definition of rtx for use by config.h.
777 * Make-lang.in (treetree.o): Remove dependency on non-existent
778 gt-treelang-treelang.h.
779 (gt-treelang-treelang.h): Remove.
781 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
783 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
785 2002-07-11 Tim Josling <tej@melbpc.org.au>
787 Remove front end hard coding from gengtype.c.
789 * config-lang.in (gtfiles): Add files needed for this front
792 2002-07-09 Tim Josling <tej@melbpc.org.au>
794 Support new attributes regime (Fix for PR c++/7099).
796 * treetree.c (handle_format_attribute): Return NULL_TREE instead
798 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
799 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
800 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
802 2002-06-21 Andreas Jaeger <aj@suse.de>
804 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
805 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
807 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
809 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
812 2002-06-10 Tim Josling <tej@melbpc.org.au>
816 * Make-lang.in (check-treelang). Add. Remove direct dependency of
817 'check' on 'treelang.check' as redundant.
819 PCH Garbage collection regime (gengtypes.c) phase 1.
821 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
822 gt-treelang-treelang.h gtype-treelang.h.
823 (gt-treelang-tree1.h) Depend on s-gtype.
824 (gt-treelang-treelang.h) Depend on s-gtype.
825 (gtype-treelang.h) Depend on s-gtype.
827 * config-lang.in (gtfiles): Define.
829 * lex.l (main): Remove '#if 0' dead code.
830 (main): Move undef of IN_GCC so define of tree typedef works.
831 (all): Replace token and production by prod_token_parm_item.
834 (all): Replace token and production by prod_token_parm_item.
836 * tree1.c (main): Remove include of "output.h".
837 (symbol_table): Add GTY details.
838 (symbol_table_ggc): Remove.
839 (treelang_init): Remove root definitions for garbage collection.
840 (mark_production_used): Remove.
841 (mark_token_used): Remove.
842 (main, at end): include generated garage collection routines.
844 * treelang.h (category_enum ): Add parameter_category.
845 (all): Replace token and production and parameters by union
846 prod_token_parm_item containing production_part, token_part,
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 here from
855 (tm_p.h): Do not include.
856 (ansidecl.h): Move include after config.h.
857 (treelang.h): Include it.
859 (all): Replace token, production and parameter by prod_token_parm_item.
860 (tree_parameter_list): Move to treelang.h as part of
861 prod_token_parm_item.
862 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
863 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
864 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
865 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
868 2002-05-19 Tim Josling <tej@melbpc.org.au>
870 * treetree.c (warn_format_zero_length): Add.
872 2002-05-14 Tim Josling <tej@melbpc.org.au>
874 * Make-lang.in: Fix build for .info files, add target for manpages.
875 A bug report and a suggested patch came from Magnus Fromreide
876 <magfr@lysator.liu.se>.
878 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
880 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
882 2002-05-11 Tim Josling <tej@melbpc.org.au>
884 * treetree.c: (cpp_define) Add.
885 (cpp_get_callbacks) Add.
887 2002-05-07 Tim Josling <tej@melbpc.org.au>
889 * treetree.c: (cpp_get_options) Add.
891 2002-05-06 Tim Josling <tej@melbpc.org.au>
895 2002-05-05 Tim Josling <tej@melbpc.org.au>
897 * Updated for gcc3.2 experimental. Major changes throughout.
899 2002-03-31 Tim Josling <tej@melbpc.org.au>
901 * Make-lang.in: Changes so build and check work more reliably
903 2001-07-30 Tim Josling <tej@melbpc.org.au>
906 * treelang.texi: updates based on feedback
908 2001-06-11 Tim Josling <tej@melbpc.org.au>
910 * all (all) Revamp code to conform to GCC coding standards, fix
913 2001-05-11 Tim Josling <tej@melbpc.org.au>
915 Create the new language.