1 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3 * Make-lang.in: Rename htmldir to gcc_htmldir.
5 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
8 * Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
11 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
13 * Make-lang.in (treelang/treetree.o): Add dependency on
16 2006-04-22 Matthias Klose <doko@debian.org>
18 * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
20 2006-03-29 Carlos O'Donell <caros@codesourcery.com>
22 * Make-lang.in: Rename docdir to gcc_docdir.
24 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
26 * Make-lang.in (.phony): Remove TREELANG.
29 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
31 * spec.c (lang_specific_driver): Update copyright notice date.
33 2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
35 * spec.c (lang_specific_spec_functions): Remove.
37 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
39 * Make-lang.in (treelang.distdir): Remove.
41 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
43 * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
45 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
47 * Make-lang.in: Remove all dependencies on s-gtype.
49 2005-12-05 Richard Guenther <rguenther@suse.de>
51 * treetree.c (tree_code_if_start, tree_code_create_variable,
52 tree_code_generate_return, tree_code_get_expression,
53 tree_code_add_parameter): Use fold_convert where appropriate.
55 2005-11-07 James A. Morrison <phython@gcc.gnu.org>
58 * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
59 treelang_attribute_table.
60 (handle_attribute): New function.
61 (treelang_attribute_table): New attribute table.
63 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
65 * parse.y : Changed pointer declaration from "type* var" to "type *var"
66 Removed trailing space. Wrap long lines.
68 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
70 * parse.y : Fixed two compile warnings in "error" and "warning"
71 invocations. Removed trailing periods in messages. Decapitalized the
74 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
76 * tree-convert.c (convert): Use fold_build1 instead of
79 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
82 * Make-lang.in: Remove old testing cruft.
84 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
86 * all files: Update FSF address in copyright headers.
88 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
90 * parse.y (function_invocation): Reverse parameter list.
91 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
93 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
95 * treetree.c (tree_code_get_expression): Call build_function_call_expr
96 to build function calls.
98 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
100 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
102 * treelang/Make-lang.in: Updates dependencies.
104 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
107 * parse.y (parameters_opt): Add semicolon at the end.
109 2005-04-29 Tom Tromey <tromey@redhat.com>
111 * treetree.c (poplevel): Updated for change to build_block.
113 2005-04-23 DJ Delorie <dj@redhat.com>
115 * parse.y: Adjust warning() callers.
117 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
119 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
121 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
124 * lang-spec.c: Simplify @treelang to what the other
127 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
129 * treelang/treelang.texi: Fix typos.
130 * treelang/treetree.c: Fix comment typos.
132 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
134 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
135 tree_lang_truthvalue_conversion): Remove.
136 * tree-convert.c: Don't call truthvalue_conversion.
138 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
140 * treetree.c (tree_code_if_start): Use fold_buildN.
141 (tree_code_create_variable): Likewise.
142 (tree_code_generate_return): Likewise.
143 (tree_code_get_expression): Likewise.
144 (tree_code_add_parameter): Likewise.
146 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
148 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
151 2005-03-15 Zack Weinberg <zack@codesourcery.com>
153 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
155 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
158 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
161 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
163 * treelang.texi: Fix a typo.
165 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
167 * parse.y (function_invocation, variable-ref, make_plus_expression):
168 Pass location to tree_code_get_expression.
169 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
170 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
171 set EXPR_LOCATION on ret1.
172 * treetree.h (tree_code_get_expression): Take the location of the
173 expression as an argument.
175 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
177 * treelang.texi: Treelang does have warnings.
178 * treetree.c (tree_code_create_function_prototype): Don't set
179 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
180 as few times as needed on the function declaration.
181 (tree_code_create_function_initial): Don't set TREE_USED,
182 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
183 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
184 (tree_code_get_expression): Set TREE_USED for variable references
187 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
189 * parse.y: Do comparisons as the type of the first expression.
190 * treetree.c (tree_code_get_integer_value): Build integer constants
191 with the proper type.
193 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
195 * Make-lang.in: Remove commented out code.
196 * lang-specs.h: Always pass -dumpbase to tree1.
198 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
200 * treelang.texi: Remove extra contribution notice.
201 Split up some run-on sentences. Document function parameters
202 as optional. Indicate automatic variables can now be at any scope.
203 Mention literals are only signed if they are preceded by a unary
204 plus or minus. Clarify interoperability with C.
206 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
208 * treelang.texi: Fix whitespacing.
210 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
213 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
214 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
215 rest_of_decl_compilation on static variables.
216 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
219 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
222 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
223 Move function parameters check from ...
224 (function): ...Here. Update call to tree_code_create_function_initial.
225 (function_invocation): Use expressions_with_commas_opt instead of
226 expressions_with_commas.
227 (expressions_with_commas_opt): New rule.
228 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
229 for function parameters.
230 (tree_code_create_function_initial): Remove PARMS parameter.
231 Don't create PARM_DECLs for function parameters.
232 * treetree.h (tree_code_create_function_initial): Remove PARMS
235 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
237 * parse.y: Update copyright.
239 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
241 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
242 scalar integer types.
244 2005-02-09 Richard Henderson <rth@redhat.com>
246 * treetree.c (treelang_init_decl_processing): Call
247 build_common_builtin_nodes.
249 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
251 * treelang.texi: Don't use local treelang version number. Don't
252 give last update date.
254 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
256 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
258 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
260 * parse.y: Reformat comments.
261 * treetree.c: Likewise.
262 * treetree.h: Likewise.
264 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
266 * treetree.c (tree_code_generate_return): Wrap param declaration in
269 2004-10-05 Zack Weinberg <zack@codesourcery.com>
271 * parse.y: Add list of diagnostic messages to insulate
272 translation template from version of yacc/bison used to
275 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
278 * lex.l: Include input.h and errors.h
279 (lineno): New variable.
280 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
282 Set column position with LINEMAP_POSITION_FOR_COLUMN.
283 Use error instead of fprintf.
284 Set input_location with the value returned by linemap_start_line when
285 USE_MAPPED_LOCATION is defined.
286 (dump_lex_value): Use LOCATION_LINE.
287 * parse.y: Include errors.h.
288 Use error and warning instead of fprintf.
289 (return): Move exp to rule scope and always set to $2. Test against
291 (init): Set $$ to $2.
292 (print_token): Use LOCATION_LINE.
293 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
294 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
296 (treelang_parse_file): Always start at line one.
297 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
299 Leave main_input_filename when done parsing the input.
300 (insert_tree_name): Use error instead of fprintf.
301 * treetree.c (tree_code_get_expression): Wrap long line.
302 (tree_mark_addressable): Use %qD to print out DECLs.
304 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
306 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
308 * treetree.c: Likewise.
310 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
312 * lex.l: Remove random whitespace.
313 * parse.y: Reformat copyright notice. Indent declarations.
314 Wrap long lines, unwrap short lines.
315 * tree1.c: Reformat copyright notice. Wrap long lines.
316 Remove random whitespace.
317 (lookup_tree_name): Use LOCATION_LINE.
318 * treetree.c: Reformat copyright notice. Wrap long lines.
319 Remove random whitespace.
321 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
323 * parse.y (ELSE): Set tok to $1.
324 * treelang.texi: Wrap comments in @r{}. Indent example comments.
325 Use gcc when refering to the command line or website. Update function
328 2004-10-01 Jan Hubicka <jh@suse.cz>
330 * treetree.c (treeland_expand_function): Update call of
331 tree_rest_of_compilation.
333 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
334 Zack Weinberg <zack@codesourcery.com>
336 * treetree.c: Update for new tree-class enumeration constants.
338 2004-09-15 Zack Weinberg <zack@codesourcery.com>
340 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
342 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
344 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
346 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
348 * treelang/treetree.c (treelang_init_decl_processing): Adjust
349 build_common_tree_nodes call.
351 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
353 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
355 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
357 * Make-lang.in (TREE_BE_LIBS): Remove.
358 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
360 * parse.y: Add variable_defs_opt before statements_opt.
361 Use tree_code_get_type instead of get_type_for_numeric_type.
363 (parameters_opt): New rule.
364 (function_prototype): Use parameters_opt.
365 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
366 (check_type_match): Use VOID_TYPE.
367 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
368 * tree1.c: Include version.h and cgraph.h
369 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
371 * treelang.h (item): Remove extraneous GTY.
372 * treetree.h (get_type_for_numeric_type): Remove.
373 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
374 function.h, and cgraph.h. Don't include rtl.h
375 (keep_level_p): Remove.
376 (tree_push_atomic_type_decl): Remove.
377 (get_type_for_numeric_type): Remove.
378 (tree_code_get_numeric_type): Remove.
379 (global_bindings_p): Make static.
380 (getdecls): Likewise.
381 (insert_block): Likewise.
382 (tree_code_if_start): Create a COND_EXPR and add it to the tree
383 instead of creating rtl.
384 (tree_code_if_else): Create a BIND_EXPR if any variables were created
386 (tree_code_end_if): Likewise.
387 (tree_code_create_function_prototype): Use tree_code_get_type.
388 Don't use SET_DECL_ASSEMBLER_NAME.
389 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
390 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
391 layout_decl on RESULT_DECL. Don't call rtl expand functions.
392 (tree_code_create_function_wrapup): Don't call rtl expand functions.
393 Create a BIND_EXPR for each function. Dump original and gimplified
394 copies of the function tree. Gimplify function.
395 (tree_code_create_variable): Use tree_code_get_type. Don't call
396 layout_decl or expand_decl. Fold CONVERT_EXPRs.
397 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
398 Add RETURN_EXPR to the current statement list. Don't call rtl expand
400 (tree_code_output_expression_statement): Append CODE to current
402 (tree_code_get_expression): Fold expressions. Build a pointer to
403 a FUNCTION_TYPE intead of the called functions return type.
404 (struct binding_level): Add statement list STMTS.
405 (getstmtlist): New Function.
406 (pushlevel): Make static. Allocate an empty statement list.
407 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
408 Don't use DECL_ASSEMBLER_NAME.
409 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
410 (treelang_init_decl_processing): Define basic types after unused types.
411 Don't call tree_push_atomic_type_decl.
412 (builtin_function): Don't call make_decl_rtl.
413 (treelang_expand_function). New Function.
415 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
417 * treetree.c (set_block): Remove.
418 (struct binding_level): Remove block_created_by_back_end.
419 (clear_binding_level): Likewise.
420 (tree_code_create_function_initial,
421 tree_code_create_function_wrapup): Call pushlevel and poplevel
422 directly rather than through hooks.
423 (poplevel): Don't handle block_created_by_back_end.
425 2004-04-07 Richard Henderson <rth@redhat.com>
427 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
429 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
431 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
434 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
436 * treelang.texi: Update link to "G++ and GCC".
438 2004-02-20 Richard Henderson <rth@redhat.com>
440 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
442 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
444 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
446 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
448 * Make-lang.in: Replace $(docdir) with doc.
449 (treelang.info, treelang.srcinfo): New rules.
450 (treelang.man, treelang.man): Dummy entries.
452 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
454 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
455 (treelang/parse.o, treelang/lex.o): Look for sources in build
456 directory. Use implicit rule.
457 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
459 (treelang.srcextra): Copy above back to source directory if requested.
461 2004-01-07 Zack Weinberg <zack@codesourcery.com>
463 * parse.y (yyerror): Mark the definition static.
465 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
467 * lex.l: Add \t as a whitespace character.
468 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
470 * treelang.texi (What is GNU Treelang?): Fix a typo.
471 (Lexical Syntax): Create an itemize list of keywords. Add commas to
472 paragraph defining names.
474 2003-11-26 Jason Merrill <jason@redhat.com>
476 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
477 directory and TAGS files that include them for each front end.
479 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
481 * .cvsignore: Delete.
483 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
485 * Make-lang.in (treelang.extraclean): Delete.
487 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
489 * Make-lang.in: Remove obsolete comment.
491 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
493 * Make-lang.in (dvi): Move targets to $(docobjdir).
494 (treelang.dvi): Simplify rule and adjust target.
495 (treelang.info): Simplify rule.
496 (parse.o): Correct dependencies.
497 (TREE_EXE): Delete doubled suffix append.
499 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
501 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
504 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
506 * Make-lang.in (parse.o): Honor $(parsedir).
509 (parse.c, parse.h): Likewise.
510 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
513 2003-10-20 Mark Mitchell <mark@codesourcery.com>
515 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
518 * Make-lang.in (info): Use docobjdir.
519 ($(srcdir)/treelang/treelang.info): Replace with ...
520 ($(docobjdir)/treelang/treelang.info): ... this.
521 (install-info): New target.
523 2003-10-12 Andreas Jaeger <aj@suse.de>
525 * Make-lang.in (treelang.install-info): Remove reference to
527 (treelang.): Removed.
529 2003-10-06 Mark Mitchell <mark@codesourcery.com>
531 * Make-lang.in (treelang.info): Replace with ...
533 * Make-lang.in (treelang.dvi): Replace with ...
536 2003-09-21 Richard Henderson <rth@redhat.com>
538 * treetree.c: Revert.
540 2003-09-21 Richard Henderson <rth@redhat.com>
542 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
545 2003-07-28 Andreas Jaeger <aj@suse.de>
547 * treetree.c: Convert remaining K&R prototypes to ISO C90.
550 * tree-convert.c: Likewise.
552 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
554 * treetree.c: Remove unnecessary casts.
556 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
558 * lang-options.h: Remove.
559 * lang.opt: Document some options. Remove --help.
560 * tree1.c (treelang_handle_option): Remove OPT__help case.
562 2003-07-12 Andreas Jaeger <aj@suse.de>
564 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
566 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
568 * Make-lang.in: Update.
569 * tree1.c: Don't include c-common.h.
570 (c_language): Remove.
572 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
573 Steven Bosscher <steven@gcc.gnu.org>
575 * tree-convert.c: New file.
576 * treetree.c: Don't include c-tree.h. Include target.h.
577 (struct lang_identifier, union lang_tree_node, struct lang_type,
578 struct lang_function): New, minimal language-specific datastructs.
579 (tree_lang_truthvalue_conversion, tree_mark_addressable,
580 tree_lang_type_for_size, tree_lang_type_for_mode,
581 tree_lang_unsigned_type, tree_lang_signed_type,
582 tree_lang_signed_or_unsigned): New functions.
583 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
584 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
585 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
586 tree_push_atomic_type_decl): New functions.
587 (struct resword, struct reswords): Remove.
588 * Make-lang.in: Update. Don't depend on C front end objects.
589 * config-lang.in: Likewise.
591 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
593 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
594 tree_code_if_end, tree_code_create_function_initial,
595 tree_code_create_function_wrapup, tree_code_generate_return,
596 tree_code_output_expression_statement): Adjust emit_line_note
599 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
601 * Make-lang.in: Replace PWD with PWD_COMMAND.
603 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
605 * tree1.c (treelang_init_options): Update prototype.
606 * treelang.h (treelang_init_options): Update prototype.
608 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
610 * Make-lang.in: Update.
611 * tree1.c: Include c-common.h. Define c_language.
613 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
615 * treetree.c (tree_code_create_function_wrapup): Adjust
616 expand_function_end call.
618 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
620 * treetree.c (build_stmt): Remove VPARAMS.
621 (pedwarn_c99): Likewise.
623 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
625 * lang.opt: Declare Treelang. Update.
626 * tree1.c (treelang_init_options): Update.
628 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
630 * treetree.c (tree_code_create_function_initial): Adjust
631 init_function_start call.
633 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
635 * Make-lang.in: Update to use options.c and options.h.
636 * tree1.c: Include options.h not t-options.h.
637 (treelang_init_options): New.
638 (treelang_handle_option): Abort on unrecognized switch.
639 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
640 * treetree.h (treelang_init_options): New.
642 2003-06-12 Andreas Jaeger <aj@suse.de>
644 * treetree.c: Remove cl_options-count and cl_options.
646 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
648 * Make-lang.in: Update for option handling.
650 * tree1.c: Include opts.h and t-options.h.
651 (treelang_decode_option): Remove.
652 (treelang_handle_option): New.
653 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
654 (LANG_HOOKS_HANDLE_OPTION): Override.
655 * treetree.h (treelang_decode_option): Remove.
656 (treelang_handle_option): New.
658 2003-06-08 Andreas Jaeger <aj@suse.de>
660 * Make-lang.in: Update.
661 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
663 2003-06-08 Tim Josling <tej@melbpc.org.au>
665 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
667 2003-06-05 Jan Hubicka <jh@suse.cz>
669 * Make-lang.in: Add support for stageprofile and stagefeedback
671 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
673 * treetree.c (reswords): Remove __bounded__, __unbounded__.
675 2003-05-09 Tim Josling <tej@melbpc.org.au>
677 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
678 to link (needed by some front ends such as PPC).
680 * treetree.c (tree_code_create_function_initial): Fix long line.
681 Initialize tree_code_int_size and tree_code_char_size to
683 (tree_code_get_numeric_type): Add check that size1 parameter is
686 * parse.y: Fix extra long lines in prototypes.
688 * treelang.h: Fix extra long lines in macro definitions.
690 2003-05-07 Zack Weinberg <zack@codesourcery.com>
692 * Make-lang.in: Set -Wno-error for treelang/lex.o.
694 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
696 * Make-lang.in (treelang/tree1.o): Depends on input.h
697 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
698 * treelang.h: #include input.h.
700 (struct token_part): Remove lineno, add location.
701 * lex.l (next_tree_lineno): Remove.
702 (update_lineno_charno): Adjust.
703 (dump_lex_value): Adjust.
704 * parse.y (variable_def, function_prototype, function, statement,
705 if_statement, return, function_invocation, variable_ref): Adjust.
706 (print_token, yyerror, ensure_not_void): Adjust.
707 tree1.c (in_fname): Remove.
708 (treelang_init): Setup input_location.
709 (lookup_tree_name): Adjust.
710 (insert_tree_name): Adjust.
711 * treetree.c (tree_code_if_start): Replace filename and lineno
712 parms with loc. Adjust.
713 (tree_code_if_else, tree_code_if_end,
714 tree_code_create_function_prototype,
715 tree_code_create_function_initial,
716 tree_code_create_function_wrapup, tree_code_create_variable,
717 tree_code_output_expression_statement): Likewise.
718 * treetree.h (tree_code_if_start): Replace filename and lineno
720 (tree_code_if_else, tree_code_if_end,
721 tree_code_create_function_prototype,
722 tree_code_create_function_initial,
723 tree_code_create_function_wrapup, tree_code_create_variable,
724 tree_code_output_expression_statement): Likewise.
726 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
728 * tree1.c (treelang_init): Rename lineno to input_line.
730 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
732 * parse.y (make_plus_expression): New function.
733 (expression production): Use make_plus_expression for PLUS,
734 MINUS, ASSIGN and EQUALS.
735 * tree1.c (treelang_decode_option): Don't fall through to
736 options that start with a different character when an option
739 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
741 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
742 * treetree.c: Do not #include parse.h.
744 2003-03-21 Andreas Jaeger <aj@suse.de>
746 * treetree.c (cpp_create_reader): Follow prototype change in
749 2003-03-17 Andreas Jaeger <aj@suse.de>
751 * Make-lang.in (treelang.tags): Remove duplicate entry.
753 2003-03-15 Andreas Jaeger <aj@suse.de>
755 * treetree.c (cpp_handle_option): Remove.
757 2003-03-13 Andreas Jaeger <aj@suse.de>
759 * Make-lang.in (tree1$(exeext)): Fix previous patch.
761 2003-03-12 Andreas Jaeger <aj@suse.de>
763 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
765 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
767 * tree1.c (in_fname): Fix type.
768 (treelang_init): Update prototype and use of in_fname.
769 * treelang.h (in_fname): Fix type.
770 * treetree.c (tree_code_if_start, tree_code_if_else,
771 tree_code_if_end, tree_code_create_function_prototype,
772 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
773 tree_code_create_variable, tree_code_output_expression_statement)
774 : Fix prototypes and use of filenames.
775 * treetree.h: Similarly.
777 2003-03-05 Andreas Jaeger <aj@suse.de>
779 * treetree.c (init_c_lex): Follow change to c-common.h.
781 2003-03-04 Tom Tromey <tromey@redhat.com>
783 * Make-lang.in (treelang.tags): New target.
785 2003-03-01 Tim Josling <tej@melbpc.org.au>
787 Name clashes with rtl.h fixed.
789 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
794 2003-02-24 Tim Josling <tej@melbpc.org.au>
796 * parse.y (my_yylex): New - ensure lexer time is charged to
798 (yylex): redefine as invocation of my_yylex which then calls
799 flex-generated yylex.
800 (timevar.h): include.
802 2003-02-23 Tim Josling <tej@melbpc.org.au>
804 Fix garbage collection, add more error checking, force GC always.
806 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
807 (treelang/treetree.o): Depend on treelang/parse.h
809 * lex.l: include "treetree.h"
811 * lex.l (update_yylval): Allocate string using get_string so GC
814 * parse.y (function_prototype): Set category correctly so GC works.
815 (function): Set category in search so checking works.
816 (function_invocation): Ditto.
817 (variable_ref): Ditto.
819 * tree1.c (lookup_tree_name): Call sanity_check for passed
820 production and associated token and for symbol table entries.
822 * tree1.c (sanity_check): New, basic check that struct is valid.
824 * treelang.h: Prototype for sanity_check.
826 2003-01-27 Tim Josling <tej@melbpc.org.au>
828 * treetree.c (treelang_init_decl_processing): Change memory
829 allocation to use GC.
831 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
833 * treelang.texi: Update to GFDL 1.2.
835 2003-01-26 Michael Matz <matz@suse.de>
837 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
839 2003-01-14 Andreas Jaeger <aj@suse.de>
841 * Make-lang.in (treelang.install-info): Depend only on info files
842 if BUILD_INFO is set. Fix install rules.
845 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
847 * Make-lang.in (treelang.install.common.done,
848 treelang.install-info, treelang.uninstall): Prepend
849 $(DESTDIR) to destination paths in all (un)installation
852 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
854 * treelang.texi: Use @copying.
856 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
858 * treelang.texi: Include gcc-common.texi.
859 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
860 Depend on gcc-common.texi. Add other missing dependencies.
861 (treelang.dvi): Use texi2dvi.
863 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
865 * treelang.texi: Use @ifnottex instead of @ifinfo.
867 2002-11-30 Zack Weinberg <zack@codesourcery.com>
869 * lex.l: Move "%{" below copyright notice; get rid of "/*"
870 embedded in comment. Do not #undef IN_GCC; do not include
871 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
872 Do include coretypes.h and tm.h.
873 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
874 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
875 ansidecl.h. Do include coretypes.h and tm.h.
876 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
877 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
878 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
879 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
880 or ansidecl.h. Do include coretypes.h and tm.h.
881 * Make-lang.in: Update dependencies.
883 2002-09-09 Tim Josling <tej@melbpc.org.au>
885 * treetree.c (objc_is_id): New.
887 2002-08-16 Tim Josling <tej@melbpc.org.au>
889 Remove variables and functions now defined elsewhere.
891 * treetree.c (maybe_objc_comptypes): Remove.
892 (warn_format, warn_format_y2k, warn_format_extra_args,
893 warn_format_nonliteral, warn_format_security,
894 warn_format_zero_length): Remove.
895 (maybe_building_objc_message_expr): Remove.
896 (cpp_post_options): Remove.
897 (maybe_objc_check_decl): Remove.
898 (integer_types): Remove.
901 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
903 * treelang.c: Remove cpp_post_options.
905 2002-08-13 Tim Josling <tej@melbpc.org.au>
907 * parse.y: Provide dummy definition of rtx for use by config.h.
908 * Make-lang.in (treetree.o): Remove dependency on non-existent
909 gt-treelang-treelang.h.
910 (gt-treelang-treelang.h): Remove.
912 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
914 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
916 2002-07-11 Tim Josling <tej@melbpc.org.au>
918 Remove front end hard coding from gengtype.c.
920 * config-lang.in (gtfiles): Add files needed for this front
923 2002-07-09 Tim Josling <tej@melbpc.org.au>
925 Support new attributes regime (Fix for PR c++/7099).
927 * treetree.c (handle_format_attribute): Return NULL_TREE instead
929 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
930 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
931 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
933 2002-06-21 Andreas Jaeger <aj@suse.de>
935 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
936 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
938 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
940 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
943 2002-06-10 Tim Josling <tej@melbpc.org.au>
947 * Make-lang.in (check-treelang). Add. Remove direct dependency of
948 'check' on 'treelang.check' as redundant.
950 PCH Garbage collection regime (gengtypes.c) phase 1.
952 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
953 gt-treelang-treelang.h gtype-treelang.h.
954 (gt-treelang-tree1.h) Depend on s-gtype.
955 (gt-treelang-treelang.h) Depend on s-gtype.
956 (gtype-treelang.h) Depend on s-gtype.
958 * config-lang.in (gtfiles): Define.
960 * lex.l (main): Remove '#if 0' dead code.
961 (main): Move undef of IN_GCC so define of tree typedef works.
962 (all): Replace token and production by prod_token_parm_item.
965 (all): Replace token and production by prod_token_parm_item.
967 * tree1.c (main): Remove include of "output.h".
968 (symbol_table): Add GTY details.
969 (symbol_table_ggc): Remove.
970 (treelang_init): Remove root definitions for garbage collection.
971 (mark_production_used): Remove.
972 (mark_token_used): Remove.
973 (main, at end): include generated garage collection routines.
975 * treelang.h (category_enum ): Add parameter_category.
976 (all): Replace token and production and parameters by union
977 prod_token_parm_item containing production_part, token_part,
979 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
980 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
981 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
982 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
986 (tm_p.h): Do not include.
987 (ansidecl.h): Move include after config.h.
988 (treelang.h): Include it.
990 (all): Replace token, production and parameter by prod_token_parm_item.
991 (tree_parameter_list): Move to treelang.h as part of
992 prod_token_parm_item.
993 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
994 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
995 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
996 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
999 2002-05-19 Tim Josling <tej@melbpc.org.au>
1001 * treetree.c (warn_format_zero_length): Add.
1003 2002-05-14 Tim Josling <tej@melbpc.org.au>
1005 * Make-lang.in: Fix build for .info files, add target for manpages.
1006 A bug report and a suggested patch came from Magnus Fromreide
1007 <magfr@lysator.liu.se>.
1009 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1011 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1013 2002-05-11 Tim Josling <tej@melbpc.org.au>
1015 * treetree.c: (cpp_define) Add.
1016 (cpp_get_callbacks) Add.
1018 2002-05-07 Tim Josling <tej@melbpc.org.au>
1020 * treetree.c: (cpp_get_options) Add.
1022 2002-05-06 Tim Josling <tej@melbpc.org.au>
1026 2002-05-05 Tim Josling <tej@melbpc.org.au>
1028 * Updated for gcc3.2 experimental. Major changes throughout.
1030 2002-03-31 Tim Josling <tej@melbpc.org.au>
1032 * Make-lang.in: Changes so build and check work more reliably
1034 2001-07-30 Tim Josling <tej@melbpc.org.au>
1037 * treelang.texi: updates based on feedback
1039 2001-06-11 Tim Josling <tej@melbpc.org.au>
1041 * all (all) Revamp code to conform to GCC coding standards, fix
1042 typos in texi files.
1044 2001-05-11 Tim Josling <tej@melbpc.org.au>
1046 Create the new language.