1 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
3 * Make-lang.in (treelang/treetree.o): Add dependency on
6 2006-04-22 Matthias Klose <doko@debian.org>
8 * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
10 2006-03-29 Carlos O'Donell <caros@codesourcery.com>
12 * Make-lang.in: Rename docdir to gcc_docdir.
14 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16 * Make-lang.in (.phony): Remove TREELANG.
19 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
21 * spec.c (lang_specific_driver): Update copyright notice date.
23 2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25 * spec.c (lang_specific_spec_functions): Remove.
27 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
29 * Make-lang.in (treelang.distdir): Remove.
31 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
33 * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
35 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
37 * Make-lang.in: Remove all dependencies on s-gtype.
39 2005-12-05 Richard Guenther <rguenther@suse.de>
41 * treetree.c (tree_code_if_start, tree_code_create_variable,
42 tree_code_generate_return, tree_code_get_expression,
43 tree_code_add_parameter): Use fold_convert where appropriate.
45 2005-11-07 James A. Morrison <phython@gcc.gnu.org>
48 * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
49 treelang_attribute_table.
50 (handle_attribute): New function.
51 (treelang_attribute_table): New attribute table.
53 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
55 * parse.y : Changed pointer declaration from "type* var" to "type *var"
56 Removed trailing space. Wrap long lines.
58 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
60 * parse.y : Fixed two compile warnings in "error" and "warning"
61 invocations. Removed trailing periods in messages. Decapitalized the
64 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
66 * tree-convert.c (convert): Use fold_build1 instead of
69 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
72 * Make-lang.in: Remove old testing cruft.
74 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
76 * all files: Update FSF address in copyright headers.
78 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
80 * parse.y (function_invocation): Reverse parameter list.
81 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
83 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
85 * treetree.c (tree_code_get_expression): Call build_function_call_expr
86 to build function calls.
88 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
90 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
92 * treelang/Make-lang.in: Updates dependencies.
94 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
97 * parse.y (parameters_opt): Add semicolon at the end.
99 2005-04-29 Tom Tromey <tromey@redhat.com>
101 * treetree.c (poplevel): Updated for change to build_block.
103 2005-04-23 DJ Delorie <dj@redhat.com>
105 * parse.y: Adjust warning() callers.
107 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
109 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
111 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
114 * lang-spec.c: Simplify @treelang to what the other
117 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
119 * treelang/treelang.texi: Fix typos.
120 * treelang/treetree.c: Fix comment typos.
122 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
124 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
125 tree_lang_truthvalue_conversion): Remove.
126 * tree-convert.c: Don't call truthvalue_conversion.
128 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
130 * treetree.c (tree_code_if_start): Use fold_buildN.
131 (tree_code_create_variable): Likewise.
132 (tree_code_generate_return): Likewise.
133 (tree_code_get_expression): Likewise.
134 (tree_code_add_parameter): Likewise.
136 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
138 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
141 2005-03-15 Zack Weinberg <zack@codesourcery.com>
143 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
145 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
148 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
151 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
153 * treelang.texi: Fix a typo.
155 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
157 * parse.y (function_invocation, variable-ref, make_plus_expression):
158 Pass location to tree_code_get_expression.
159 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
160 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
161 set EXPR_LOCATION on ret1.
162 * treetree.h (tree_code_get_expression): Take the location of the
163 expression as an argument.
165 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
167 * treelang.texi: Treelang does have warnings.
168 * treetree.c (tree_code_create_function_prototype): Don't set
169 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
170 as few times as needed on the function declaration.
171 (tree_code_create_function_initial): Don't set TREE_USED,
172 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
173 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
174 (tree_code_get_expression): Set TREE_USED for variable references
177 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
179 * parse.y: Do comparisons as the type of the first expression.
180 * treetree.c (tree_code_get_integer_value): Build integer constants
181 with the proper type.
183 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
185 * Make-lang.in: Remove commented out code.
186 * lang-specs.h: Always pass -dumpbase to tree1.
188 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
190 * treelang.texi: Remove extra contribution notice.
191 Split up some run-on sentences. Document function parameters
192 as optional. Indicate automatic variables can now be at any scope.
193 Mention literals are only signed if they are preceded by a unary
194 plus or minus. Clarify interoperability with C.
196 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
198 * treelang.texi: Fix whitespacing.
200 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
203 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
204 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
205 rest_of_decl_compilation on static variables.
206 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
209 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
212 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
213 Move function parameters check from ...
214 (function): ...Here. Update call to tree_code_create_function_initial.
215 (function_invocation): Use expressions_with_commas_opt instead of
216 expressions_with_commas.
217 (expressions_with_commas_opt): New rule.
218 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
219 for function parameters.
220 (tree_code_create_function_initial): Remove PARMS parameter.
221 Don't create PARM_DECLs for function parameters.
222 * treetree.h (tree_code_create_function_initial): Remove PARMS
225 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
227 * parse.y: Update copyright.
229 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
231 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
232 scalar integer types.
234 2005-02-09 Richard Henderson <rth@redhat.com>
236 * treetree.c (treelang_init_decl_processing): Call
237 build_common_builtin_nodes.
239 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
241 * treelang.texi: Don't use local treelang version number. Don't
242 give last update date.
244 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
246 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
248 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
250 * parse.y: Reformat comments.
251 * treetree.c: Likewise.
252 * treetree.h: Likewise.
254 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
256 * treetree.c (tree_code_generate_return): Wrap param declaration in
259 2004-10-05 Zack Weinberg <zack@codesourcery.com>
261 * parse.y: Add list of diagnostic messages to insulate
262 translation template from version of yacc/bison used to
265 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
268 * lex.l: Include input.h and errors.h
269 (lineno): New variable.
270 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
272 Set column position with LINEMAP_POSITION_FOR_COLUMN.
273 Use error instead of fprintf.
274 Set input_location with the value returned by linemap_start_line when
275 USE_MAPPED_LOCATION is defined.
276 (dump_lex_value): Use LOCATION_LINE.
277 * parse.y: Include errors.h.
278 Use error and warning instead of fprintf.
279 (return): Move exp to rule scope and always set to $2. Test against
281 (init): Set $$ to $2.
282 (print_token): Use LOCATION_LINE.
283 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
284 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
286 (treelang_parse_file): Always start at line one.
287 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
289 Leave main_input_filename when done parsing the input.
290 (insert_tree_name): Use error instead of fprintf.
291 * treetree.c (tree_code_get_expression): Wrap long line.
292 (tree_mark_addressable): Use %qD to print out DECLs.
294 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
296 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
298 * treetree.c: Likewise.
300 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
302 * lex.l: Remove random whitespace.
303 * parse.y: Reformat copyright notice. Indent declarations.
304 Wrap long lines, unwrap short lines.
305 * tree1.c: Reformat copyright notice. Wrap long lines.
306 Remove random whitespace.
307 (lookup_tree_name): Use LOCATION_LINE.
308 * treetree.c: Reformat copyright notice. Wrap long lines.
309 Remove random whitespace.
311 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
313 * parse.y (ELSE): Set tok to $1.
314 * treelang.texi: Wrap comments in @r{}. Indent example comments.
315 Use gcc when refering to the command line or website. Update function
318 2004-10-01 Jan Hubicka <jh@suse.cz>
320 * treetree.c (treeland_expand_function): Update call of
321 tree_rest_of_compilation.
323 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
324 Zack Weinberg <zack@codesourcery.com>
326 * treetree.c: Update for new tree-class enumeration constants.
328 2004-09-15 Zack Weinberg <zack@codesourcery.com>
330 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
332 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
334 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
336 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
338 * treelang/treetree.c (treelang_init_decl_processing): Adjust
339 build_common_tree_nodes call.
341 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
343 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
345 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
347 * Make-lang.in (TREE_BE_LIBS): Remove.
348 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
350 * parse.y: Add variable_defs_opt before statements_opt.
351 Use tree_code_get_type instead of get_type_for_numeric_type.
353 (parameters_opt): New rule.
354 (function_prototype): Use parameters_opt.
355 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
356 (check_type_match): Use VOID_TYPE.
357 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
358 * tree1.c: Include version.h and cgraph.h
359 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
361 * treelang.h (item): Remove extraneous GTY.
362 * treetree.h (get_type_for_numeric_type): Remove.
363 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
364 function.h, and cgraph.h. Don't include rtl.h
365 (keep_level_p): Remove.
366 (tree_push_atomic_type_decl): Remove.
367 (get_type_for_numeric_type): Remove.
368 (tree_code_get_numeric_type): Remove.
369 (global_bindings_p): Make static.
370 (getdecls): Likewise.
371 (insert_block): Likewise.
372 (tree_code_if_start): Create a COND_EXPR and add it to the tree
373 instead of creating rtl.
374 (tree_code_if_else): Create a BIND_EXPR if any variables were created
376 (tree_code_end_if): Likewise.
377 (tree_code_create_function_prototype): Use tree_code_get_type.
378 Don't use SET_DECL_ASSEMBLER_NAME.
379 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
380 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
381 layout_decl on RESULT_DECL. Don't call rtl expand functions.
382 (tree_code_create_function_wrapup): Don't call rtl expand functions.
383 Create a BIND_EXPR for each function. Dump original and gimplified
384 copies of the function tree. Gimplify function.
385 (tree_code_create_variable): Use tree_code_get_type. Don't call
386 layout_decl or expand_decl. Fold CONVERT_EXPRs.
387 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
388 Add RETURN_EXPR to the current statement list. Don't call rtl expand
390 (tree_code_output_expression_statement): Append CODE to current
392 (tree_code_get_expression): Fold expressions. Build a pointer to
393 a FUNCTION_TYPE intead of the called functions return type.
394 (struct binding_level): Add statement list STMTS.
395 (getstmtlist): New Function.
396 (pushlevel): Make static. Allocate an empty statement list.
397 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
398 Don't use DECL_ASSEMBLER_NAME.
399 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
400 (treelang_init_decl_processing): Define basic types after unused types.
401 Don't call tree_push_atomic_type_decl.
402 (builtin_function): Don't call make_decl_rtl.
403 (treelang_expand_function). New Function.
405 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
407 * treetree.c (set_block): Remove.
408 (struct binding_level): Remove block_created_by_back_end.
409 (clear_binding_level): Likewise.
410 (tree_code_create_function_initial,
411 tree_code_create_function_wrapup): Call pushlevel and poplevel
412 directly rather than through hooks.
413 (poplevel): Don't handle block_created_by_back_end.
415 2004-04-07 Richard Henderson <rth@redhat.com>
417 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
419 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
421 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
424 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
426 * treelang.texi: Update link to "G++ and GCC".
428 2004-02-20 Richard Henderson <rth@redhat.com>
430 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
432 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
434 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
436 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
438 * Make-lang.in: Replace $(docdir) with doc.
439 (treelang.info, treelang.srcinfo): New rules.
440 (treelang.man, treelang.man): Dummy entries.
442 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
444 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
445 (treelang/parse.o, treelang/lex.o): Look for sources in build
446 directory. Use implicit rule.
447 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
449 (treelang.srcextra): Copy above back to source directory if requested.
451 2004-01-07 Zack Weinberg <zack@codesourcery.com>
453 * parse.y (yyerror): Mark the definition static.
455 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
457 * lex.l: Add \t as a whitespace character.
458 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
460 * treelang.texi (What is GNU Treelang?): Fix a typo.
461 (Lexical Syntax): Create an itemize list of keywords. Add commas to
462 paragraph defining names.
464 2003-11-26 Jason Merrill <jason@redhat.com>
466 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
467 directory and TAGS files that include them for each front end.
469 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
471 * .cvsignore: Delete.
473 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
475 * Make-lang.in (treelang.extraclean): Delete.
477 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
479 * Make-lang.in: Remove obsolete comment.
481 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
483 * Make-lang.in (dvi): Move targets to $(docobjdir).
484 (treelang.dvi): Simplify rule and adjust target.
485 (treelang.info): Simplify rule.
486 (parse.o): Correct dependencies.
487 (TREE_EXE): Delete doubled suffix append.
489 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
491 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
494 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
496 * Make-lang.in (parse.o): Honor $(parsedir).
499 (parse.c, parse.h): Likewise.
500 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
503 2003-10-20 Mark Mitchell <mark@codesourcery.com>
505 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
508 * Make-lang.in (info): Use docobjdir.
509 ($(srcdir)/treelang/treelang.info): Replace with ...
510 ($(docobjdir)/treelang/treelang.info): ... this.
511 (install-info): New target.
513 2003-10-12 Andreas Jaeger <aj@suse.de>
515 * Make-lang.in (treelang.install-info): Remove reference to
517 (treelang.): Removed.
519 2003-10-06 Mark Mitchell <mark@codesourcery.com>
521 * Make-lang.in (treelang.info): Replace with ...
523 * Make-lang.in (treelang.dvi): Replace with ...
526 2003-09-21 Richard Henderson <rth@redhat.com>
528 * treetree.c: Revert.
530 2003-09-21 Richard Henderson <rth@redhat.com>
532 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
535 2003-07-28 Andreas Jaeger <aj@suse.de>
537 * treetree.c: Convert remaining K&R prototypes to ISO C90.
540 * tree-convert.c: Likewise.
542 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
544 * treetree.c: Remove unnecessary casts.
546 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
548 * lang-options.h: Remove.
549 * lang.opt: Document some options. Remove --help.
550 * tree1.c (treelang_handle_option): Remove OPT__help case.
552 2003-07-12 Andreas Jaeger <aj@suse.de>
554 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
556 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
558 * Make-lang.in: Update.
559 * tree1.c: Don't include c-common.h.
560 (c_language): Remove.
562 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
563 Steven Bosscher <steven@gcc.gnu.org>
565 * tree-convert.c: New file.
566 * treetree.c: Don't include c-tree.h. Include target.h.
567 (struct lang_identifier, union lang_tree_node, struct lang_type,
568 struct lang_function): New, minimal language-specific datastructs.
569 (tree_lang_truthvalue_conversion, tree_mark_addressable,
570 tree_lang_type_for_size, tree_lang_type_for_mode,
571 tree_lang_unsigned_type, tree_lang_signed_type,
572 tree_lang_signed_or_unsigned): New functions.
573 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
574 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
575 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
576 tree_push_atomic_type_decl): New functions.
577 (struct resword, struct reswords): Remove.
578 * Make-lang.in: Update. Don't depend on C front end objects.
579 * config-lang.in: Likewise.
581 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
583 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
584 tree_code_if_end, tree_code_create_function_initial,
585 tree_code_create_function_wrapup, tree_code_generate_return,
586 tree_code_output_expression_statement): Adjust emit_line_note
589 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
591 * Make-lang.in: Replace PWD with PWD_COMMAND.
593 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
595 * tree1.c (treelang_init_options): Update prototype.
596 * treelang.h (treelang_init_options): Update prototype.
598 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
600 * Make-lang.in: Update.
601 * tree1.c: Include c-common.h. Define c_language.
603 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
605 * treetree.c (tree_code_create_function_wrapup): Adjust
606 expand_function_end call.
608 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
610 * treetree.c (build_stmt): Remove VPARAMS.
611 (pedwarn_c99): Likewise.
613 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
615 * lang.opt: Declare Treelang. Update.
616 * tree1.c (treelang_init_options): Update.
618 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
620 * treetree.c (tree_code_create_function_initial): Adjust
621 init_function_start call.
623 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
625 * Make-lang.in: Update to use options.c and options.h.
626 * tree1.c: Include options.h not t-options.h.
627 (treelang_init_options): New.
628 (treelang_handle_option): Abort on unrecognized switch.
629 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
630 * treetree.h (treelang_init_options): New.
632 2003-06-12 Andreas Jaeger <aj@suse.de>
634 * treetree.c: Remove cl_options-count and cl_options.
636 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
638 * Make-lang.in: Update for option handling.
640 * tree1.c: Include opts.h and t-options.h.
641 (treelang_decode_option): Remove.
642 (treelang_handle_option): New.
643 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
644 (LANG_HOOKS_HANDLE_OPTION): Override.
645 * treetree.h (treelang_decode_option): Remove.
646 (treelang_handle_option): New.
648 2003-06-08 Andreas Jaeger <aj@suse.de>
650 * Make-lang.in: Update.
651 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
653 2003-06-08 Tim Josling <tej@melbpc.org.au>
655 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
657 2003-06-05 Jan Hubicka <jh@suse.cz>
659 * Make-lang.in: Add support for stageprofile and stagefeedback
661 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
663 * treetree.c (reswords): Remove __bounded__, __unbounded__.
665 2003-05-09 Tim Josling <tej@melbpc.org.au>
667 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
668 to link (needed by some front ends such as PPC).
670 * treetree.c (tree_code_create_function_initial): Fix long line.
671 Initialize tree_code_int_size and tree_code_char_size to
673 (tree_code_get_numeric_type): Add check that size1 parameter is
676 * parse.y: Fix extra long lines in prototypes.
678 * treelang.h: Fix extra long lines in macro definitions.
680 2003-05-07 Zack Weinberg <zack@codesourcery.com>
682 * Make-lang.in: Set -Wno-error for treelang/lex.o.
684 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
686 * Make-lang.in (treelang/tree1.o): Depends on input.h
687 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
688 * treelang.h: #include input.h.
690 (struct token_part): Remove lineno, add location.
691 * lex.l (next_tree_lineno): Remove.
692 (update_lineno_charno): Adjust.
693 (dump_lex_value): Adjust.
694 * parse.y (variable_def, function_prototype, function, statement,
695 if_statement, return, function_invocation, variable_ref): Adjust.
696 (print_token, yyerror, ensure_not_void): Adjust.
697 tree1.c (in_fname): Remove.
698 (treelang_init): Setup input_location.
699 (lookup_tree_name): Adjust.
700 (insert_tree_name): Adjust.
701 * treetree.c (tree_code_if_start): Replace filename and lineno
702 parms with loc. Adjust.
703 (tree_code_if_else, tree_code_if_end,
704 tree_code_create_function_prototype,
705 tree_code_create_function_initial,
706 tree_code_create_function_wrapup, tree_code_create_variable,
707 tree_code_output_expression_statement): Likewise.
708 * treetree.h (tree_code_if_start): Replace filename and lineno
710 (tree_code_if_else, tree_code_if_end,
711 tree_code_create_function_prototype,
712 tree_code_create_function_initial,
713 tree_code_create_function_wrapup, tree_code_create_variable,
714 tree_code_output_expression_statement): Likewise.
716 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
718 * tree1.c (treelang_init): Rename lineno to input_line.
720 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
722 * parse.y (make_plus_expression): New function.
723 (expression production): Use make_plus_expression for PLUS,
724 MINUS, ASSIGN and EQUALS.
725 * tree1.c (treelang_decode_option): Don't fall through to
726 options that start with a different character when an option
729 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
731 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
732 * treetree.c: Do not #include parse.h.
734 2003-03-21 Andreas Jaeger <aj@suse.de>
736 * treetree.c (cpp_create_reader): Follow prototype change in
739 2003-03-17 Andreas Jaeger <aj@suse.de>
741 * Make-lang.in (treelang.tags): Remove duplicate entry.
743 2003-03-15 Andreas Jaeger <aj@suse.de>
745 * treetree.c (cpp_handle_option): Remove.
747 2003-03-13 Andreas Jaeger <aj@suse.de>
749 * Make-lang.in (tree1$(exeext)): Fix previous patch.
751 2003-03-12 Andreas Jaeger <aj@suse.de>
753 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
755 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
757 * tree1.c (in_fname): Fix type.
758 (treelang_init): Update prototype and use of in_fname.
759 * treelang.h (in_fname): Fix type.
760 * treetree.c (tree_code_if_start, tree_code_if_else,
761 tree_code_if_end, tree_code_create_function_prototype,
762 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
763 tree_code_create_variable, tree_code_output_expression_statement)
764 : Fix prototypes and use of filenames.
765 * treetree.h: Similarly.
767 2003-03-05 Andreas Jaeger <aj@suse.de>
769 * treetree.c (init_c_lex): Follow change to c-common.h.
771 2003-03-04 Tom Tromey <tromey@redhat.com>
773 * Make-lang.in (treelang.tags): New target.
775 2003-03-01 Tim Josling <tej@melbpc.org.au>
777 Name clashes with rtl.h fixed.
779 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
784 2003-02-24 Tim Josling <tej@melbpc.org.au>
786 * parse.y (my_yylex): New - ensure lexer time is charged to
788 (yylex): redefine as invocation of my_yylex which then calls
789 flex-generated yylex.
790 (timevar.h): include.
792 2003-02-23 Tim Josling <tej@melbpc.org.au>
794 Fix garbage collection, add more error checking, force GC always.
796 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
797 (treelang/treetree.o): Depend on treelang/parse.h
799 * lex.l: include "treetree.h"
801 * lex.l (update_yylval): Allocate string using get_string so GC
804 * parse.y (function_prototype): Set category correctly so GC works.
805 (function): Set category in search so checking works.
806 (function_invocation): Ditto.
807 (variable_ref): Ditto.
809 * tree1.c (lookup_tree_name): Call sanity_check for passed
810 production and associated token and for symbol table entries.
812 * tree1.c (sanity_check): New, basic check that struct is valid.
814 * treelang.h: Prototype for sanity_check.
816 2003-01-27 Tim Josling <tej@melbpc.org.au>
818 * treetree.c (treelang_init_decl_processing): Change memory
819 allocation to use GC.
821 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
823 * treelang.texi: Update to GFDL 1.2.
825 2003-01-26 Michael Matz <matz@suse.de>
827 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
829 2003-01-14 Andreas Jaeger <aj@suse.de>
831 * Make-lang.in (treelang.install-info): Depend only on info files
832 if BUILD_INFO is set. Fix install rules.
835 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
837 * Make-lang.in (treelang.install.common.done,
838 treelang.install-info, treelang.uninstall): Prepend
839 $(DESTDIR) to destination paths in all (un)installation
842 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
844 * treelang.texi: Use @copying.
846 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
848 * treelang.texi: Include gcc-common.texi.
849 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
850 Depend on gcc-common.texi. Add other missing dependencies.
851 (treelang.dvi): Use texi2dvi.
853 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
855 * treelang.texi: Use @ifnottex instead of @ifinfo.
857 2002-11-30 Zack Weinberg <zack@codesourcery.com>
859 * lex.l: Move "%{" below copyright notice; get rid of "/*"
860 embedded in comment. Do not #undef IN_GCC; do not include
861 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
862 Do include coretypes.h and tm.h.
863 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
864 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
865 ansidecl.h. Do include coretypes.h and tm.h.
866 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
867 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
868 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
869 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
870 or ansidecl.h. Do include coretypes.h and tm.h.
871 * Make-lang.in: Update dependencies.
873 2002-09-09 Tim Josling <tej@melbpc.org.au>
875 * treetree.c (objc_is_id): New.
877 2002-08-16 Tim Josling <tej@melbpc.org.au>
879 Remove variables and functions now defined elsewhere.
881 * treetree.c (maybe_objc_comptypes): Remove.
882 (warn_format, warn_format_y2k, warn_format_extra_args,
883 warn_format_nonliteral, warn_format_security,
884 warn_format_zero_length): Remove.
885 (maybe_building_objc_message_expr): Remove.
886 (cpp_post_options): Remove.
887 (maybe_objc_check_decl): Remove.
888 (integer_types): Remove.
891 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
893 * treelang.c: Remove cpp_post_options.
895 2002-08-13 Tim Josling <tej@melbpc.org.au>
897 * parse.y: Provide dummy definition of rtx for use by config.h.
898 * Make-lang.in (treetree.o): Remove dependency on non-existent
899 gt-treelang-treelang.h.
900 (gt-treelang-treelang.h): Remove.
902 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
904 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
906 2002-07-11 Tim Josling <tej@melbpc.org.au>
908 Remove front end hard coding from gengtype.c.
910 * config-lang.in (gtfiles): Add files needed for this front
913 2002-07-09 Tim Josling <tej@melbpc.org.au>
915 Support new attributes regime (Fix for PR c++/7099).
917 * treetree.c (handle_format_attribute): Return NULL_TREE instead
919 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
920 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
921 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
923 2002-06-21 Andreas Jaeger <aj@suse.de>
925 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
926 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
928 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
930 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
933 2002-06-10 Tim Josling <tej@melbpc.org.au>
937 * Make-lang.in (check-treelang). Add. Remove direct dependency of
938 'check' on 'treelang.check' as redundant.
940 PCH Garbage collection regime (gengtypes.c) phase 1.
942 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
943 gt-treelang-treelang.h gtype-treelang.h.
944 (gt-treelang-tree1.h) Depend on s-gtype.
945 (gt-treelang-treelang.h) Depend on s-gtype.
946 (gtype-treelang.h) Depend on s-gtype.
948 * config-lang.in (gtfiles): Define.
950 * lex.l (main): Remove '#if 0' dead code.
951 (main): Move undef of IN_GCC so define of tree typedef works.
952 (all): Replace token and production by prod_token_parm_item.
955 (all): Replace token and production by prod_token_parm_item.
957 * tree1.c (main): Remove include of "output.h".
958 (symbol_table): Add GTY details.
959 (symbol_table_ggc): Remove.
960 (treelang_init): Remove root definitions for garbage collection.
961 (mark_production_used): Remove.
962 (mark_token_used): Remove.
963 (main, at end): include generated garage collection routines.
965 * treelang.h (category_enum ): Add parameter_category.
966 (all): Replace token and production and parameters by union
967 prod_token_parm_item containing production_part, token_part,
969 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
970 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
971 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
972 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
976 (tm_p.h): Do not include.
977 (ansidecl.h): Move include after config.h.
978 (treelang.h): Include it.
980 (all): Replace token, production and parameter by prod_token_parm_item.
981 (tree_parameter_list): Move to treelang.h as part of
982 prod_token_parm_item.
983 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
984 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
985 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
986 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
989 2002-05-19 Tim Josling <tej@melbpc.org.au>
991 * treetree.c (warn_format_zero_length): Add.
993 2002-05-14 Tim Josling <tej@melbpc.org.au>
995 * Make-lang.in: Fix build for .info files, add target for manpages.
996 A bug report and a suggested patch came from Magnus Fromreide
997 <magfr@lysator.liu.se>.
999 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1001 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1003 2002-05-11 Tim Josling <tej@melbpc.org.au>
1005 * treetree.c: (cpp_define) Add.
1006 (cpp_get_callbacks) Add.
1008 2002-05-07 Tim Josling <tej@melbpc.org.au>
1010 * treetree.c: (cpp_get_options) Add.
1012 2002-05-06 Tim Josling <tej@melbpc.org.au>
1016 2002-05-05 Tim Josling <tej@melbpc.org.au>
1018 * Updated for gcc3.2 experimental. Major changes throughout.
1020 2002-03-31 Tim Josling <tej@melbpc.org.au>
1022 * Make-lang.in: Changes so build and check work more reliably
1024 2001-07-30 Tim Josling <tej@melbpc.org.au>
1027 * treelang.texi: updates based on feedback
1029 2001-06-11 Tim Josling <tej@melbpc.org.au>
1031 * all (all) Revamp code to conform to GCC coding standards, fix
1032 typos in texi files.
1034 2001-05-11 Tim Josling <tej@melbpc.org.au>
1036 Create the new language.