1 2007-09-12 Jan Hubicka <jh@suse.cz>
3 * treetree.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
4 (treelang_expand_function): Kill.
6 2007-09-06 Tom Tromey <tromey@redhat.com>
8 * tree1.c (treelang_init): Update.
9 (treelang_parse_file): Update.
10 (treelang_parse_file): Update.
11 (treelang_parse_file): Update.
13 (update_lineno_charno): Likewise.
15 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
17 * treetree.c (tree_code_create_function_wrapup): Use set_cfun.
19 2007-08-21 Paul Brook <paul@codesourcery.com>
20 Nathan Sidwell <nathan@codesourcery.com>
21 Mark Mitchell <mark@codesourcery.com>
22 Joseph Myers <joseph@codesourcery.com>
24 * tree1.c (treelang_handle_option): Use pkgversion_string.
25 * treelang.texi (which-treelang): Define to use VERSION_PACKAGE.
27 2007-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29 * lex.l (update_yylval): Constify.
30 * treelang.h (struct token_part, struct parameter_part):
32 * treetree.c (tree_code_create_function_prototype,
33 tree_code_create_variable, tree_code_get_integer_value):
35 * treetree.h (tree_code_get_integer_value,
36 tree_code_create_function_prototype, tree_code_create_variable):
39 2007-07-25 Richard Guenther <rguenther@suse.de>
41 * treetree.c (tree_code_generate_return): RETURN_EXPRs
44 2007-07-17 Nick Clifton <nickc@redhat.com>
46 * parse.y: Change copyright header to refer to version 3 of the
47 GNU General Public License and to point readers at the COPYING3
51 * lang-specs.h: Likewise.
52 * treelang.h: Likewise.
53 * config-lang.in: Likewise.
54 * tree-convert.c: Likewise.
55 * treetree.c: Likewise.
57 * Make-lang.in: Likewise.
58 * treetree.h: Likewise.
61 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
63 * treetree.c (tree_lang_signed_type): Remove.
64 (LANG_HOOKS_SIGNED_TYPE): Remove.
66 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
68 * treetree.c (tree_lang_unsigned_type): Remove.
69 (LANG_HOOKS_UNSIGNED_TYPE): Remove.
71 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
73 * treetree.c (tree_lang_signed_or_unsigned_type): Remove.
74 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
76 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
78 * Make-lang.in: Add install-pdf target as copied from
81 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
83 * treelang.texi: Standardize title page, remove version number
86 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
88 * treetree.c (builtin_function): Remove.
90 2006-10-10 Brooks Moses <bmoses@stanford.edu>
92 * Make-lang.in: Added "treelang.pdf" target support.
94 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
96 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
98 2006-06-17 Karl Berry <karl@gnu.org>
100 * treelang.texi (@dircategory): Use "Software development"
101 instead of "Programming", following the Free Software Directory.
103 2006-06-06 Mike Stump <mrs@apple.com>
105 * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid
106 installing during build.
108 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
110 * Make-lang.in: Rename htmldir to gcc_htmldir.
112 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
115 * Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
118 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
120 * Make-lang.in (treelang/treetree.o): Add dependency on
123 2006-04-22 Matthias Klose <doko@debian.org>
125 * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
127 2006-03-29 Carlos O'Donell <caros@codesourcery.com>
129 * Make-lang.in: Rename docdir to gcc_docdir.
131 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
133 * Make-lang.in (.phony): Remove TREELANG.
136 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
138 * spec.c (lang_specific_driver): Update copyright notice date.
140 2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
142 * spec.c (lang_specific_spec_functions): Remove.
144 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
146 * Make-lang.in (treelang.distdir): Remove.
148 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
150 * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
152 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
154 * Make-lang.in: Remove all dependencies on s-gtype.
156 2005-12-05 Richard Guenther <rguenther@suse.de>
158 * treetree.c (tree_code_if_start, tree_code_create_variable,
159 tree_code_generate_return, tree_code_get_expression,
160 tree_code_add_parameter): Use fold_convert where appropriate.
162 2005-11-07 James A. Morrison <phython@gcc.gnu.org>
165 * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
166 treelang_attribute_table.
167 (handle_attribute): New function.
168 (treelang_attribute_table): New attribute table.
170 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
172 * parse.y : Changed pointer declaration from "type* var" to "type *var"
173 Removed trailing space. Wrap long lines.
175 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
177 * parse.y : Fixed two compile warnings in "error" and "warning"
178 invocations. Removed trailing periods in messages. Decapitalized the
181 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
183 * tree-convert.c (convert): Use fold_build1 instead of
186 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
189 * Make-lang.in: Remove old testing cruft.
191 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
193 * all files: Update FSF address in copyright headers.
195 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
197 * parse.y (function_invocation): Reverse parameter list.
198 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
200 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
202 * treetree.c (tree_code_get_expression): Call build_function_call_expr
203 to build function calls.
205 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
207 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
209 * treelang/Make-lang.in: Updates dependencies.
211 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
214 * parse.y (parameters_opt): Add semicolon at the end.
216 2005-04-29 Tom Tromey <tromey@redhat.com>
218 * treetree.c (poplevel): Updated for change to build_block.
220 2005-04-23 DJ Delorie <dj@redhat.com>
222 * parse.y: Adjust warning() callers.
224 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
226 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
228 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
231 * lang-spec.c: Simplify @treelang to what the other
234 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
236 * treelang/treelang.texi: Fix typos.
237 * treelang/treetree.c: Fix comment typos.
239 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
241 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
242 tree_lang_truthvalue_conversion): Remove.
243 * tree-convert.c: Don't call truthvalue_conversion.
245 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
247 * treetree.c (tree_code_if_start): Use fold_buildN.
248 (tree_code_create_variable): Likewise.
249 (tree_code_generate_return): Likewise.
250 (tree_code_get_expression): Likewise.
251 (tree_code_add_parameter): Likewise.
253 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
255 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
258 2005-03-15 Zack Weinberg <zack@codesourcery.com>
260 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
262 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
265 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
268 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
270 * treelang.texi: Fix a typo.
272 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
274 * parse.y (function_invocation, variable-ref, make_plus_expression):
275 Pass location to tree_code_get_expression.
276 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
277 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
278 set EXPR_LOCATION on ret1.
279 * treetree.h (tree_code_get_expression): Take the location of the
280 expression as an argument.
282 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
284 * treelang.texi: Treelang does have warnings.
285 * treetree.c (tree_code_create_function_prototype): Don't set
286 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
287 as few times as needed on the function declaration.
288 (tree_code_create_function_initial): Don't set TREE_USED,
289 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
290 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
291 (tree_code_get_expression): Set TREE_USED for variable references
294 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
296 * parse.y: Do comparisons as the type of the first expression.
297 * treetree.c (tree_code_get_integer_value): Build integer constants
298 with the proper type.
300 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
302 * Make-lang.in: Remove commented out code.
303 * lang-specs.h: Always pass -dumpbase to tree1.
305 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
307 * treelang.texi: Remove extra contribution notice.
308 Split up some run-on sentences. Document function parameters
309 as optional. Indicate automatic variables can now be at any scope.
310 Mention literals are only signed if they are preceded by a unary
311 plus or minus. Clarify interoperability with C.
313 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
315 * treelang.texi: Fix whitespacing.
317 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
320 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
321 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
322 rest_of_decl_compilation on static variables.
323 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
326 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
329 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
330 Move function parameters check from ...
331 (function): ...Here. Update call to tree_code_create_function_initial.
332 (function_invocation): Use expressions_with_commas_opt instead of
333 expressions_with_commas.
334 (expressions_with_commas_opt): New rule.
335 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
336 for function parameters.
337 (tree_code_create_function_initial): Remove PARMS parameter.
338 Don't create PARM_DECLs for function parameters.
339 * treetree.h (tree_code_create_function_initial): Remove PARMS
342 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
344 * parse.y: Update copyright.
346 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
348 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
349 scalar integer types.
351 2005-02-09 Richard Henderson <rth@redhat.com>
353 * treetree.c (treelang_init_decl_processing): Call
354 build_common_builtin_nodes.
356 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
358 * treelang.texi: Don't use local treelang version number. Don't
359 give last update date.
361 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
363 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
365 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
367 * parse.y: Reformat comments.
368 * treetree.c: Likewise.
369 * treetree.h: Likewise.
371 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
373 * treetree.c (tree_code_generate_return): Wrap param declaration in
376 2004-10-05 Zack Weinberg <zack@codesourcery.com>
378 * parse.y: Add list of diagnostic messages to insulate
379 translation template from version of yacc/bison used to
382 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
385 * lex.l: Include input.h and errors.h
386 (lineno): New variable.
387 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
389 Set column position with LINEMAP_POSITION_FOR_COLUMN.
390 Use error instead of fprintf.
391 Set input_location with the value returned by linemap_start_line when
392 USE_MAPPED_LOCATION is defined.
393 (dump_lex_value): Use LOCATION_LINE.
394 * parse.y: Include errors.h.
395 Use error and warning instead of fprintf.
396 (return): Move exp to rule scope and always set to $2. Test against
398 (init): Set $$ to $2.
399 (print_token): Use LOCATION_LINE.
400 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
401 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
403 (treelang_parse_file): Always start at line one.
404 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
406 Leave main_input_filename when done parsing the input.
407 (insert_tree_name): Use error instead of fprintf.
408 * treetree.c (tree_code_get_expression): Wrap long line.
409 (tree_mark_addressable): Use %qD to print out DECLs.
411 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
413 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
415 * treetree.c: Likewise.
417 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
419 * lex.l: Remove random whitespace.
420 * parse.y: Reformat copyright notice. Indent declarations.
421 Wrap long lines, unwrap short lines.
422 * tree1.c: Reformat copyright notice. Wrap long lines.
423 Remove random whitespace.
424 (lookup_tree_name): Use LOCATION_LINE.
425 * treetree.c: Reformat copyright notice. Wrap long lines.
426 Remove random whitespace.
428 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
430 * parse.y (ELSE): Set tok to $1.
431 * treelang.texi: Wrap comments in @r{}. Indent example comments.
432 Use gcc when refering to the command line or website. Update function
435 2004-10-01 Jan Hubicka <jh@suse.cz>
437 * treetree.c (treeland_expand_function): Update call of
438 tree_rest_of_compilation.
440 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
441 Zack Weinberg <zack@codesourcery.com>
443 * treetree.c: Update for new tree-class enumeration constants.
445 2004-09-15 Zack Weinberg <zack@codesourcery.com>
447 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
449 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
451 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
453 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
455 * treelang/treetree.c (treelang_init_decl_processing): Adjust
456 build_common_tree_nodes call.
458 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
460 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
462 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
464 * Make-lang.in (TREE_BE_LIBS): Remove.
465 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
467 * parse.y: Add variable_defs_opt before statements_opt.
468 Use tree_code_get_type instead of get_type_for_numeric_type.
470 (parameters_opt): New rule.
471 (function_prototype): Use parameters_opt.
472 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
473 (check_type_match): Use VOID_TYPE.
474 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
475 * tree1.c: Include version.h and cgraph.h
476 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
478 * treelang.h (item): Remove extraneous GTY.
479 * treetree.h (get_type_for_numeric_type): Remove.
480 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
481 function.h, and cgraph.h. Don't include rtl.h
482 (keep_level_p): Remove.
483 (tree_push_atomic_type_decl): Remove.
484 (get_type_for_numeric_type): Remove.
485 (tree_code_get_numeric_type): Remove.
486 (global_bindings_p): Make static.
487 (getdecls): Likewise.
488 (insert_block): Likewise.
489 (tree_code_if_start): Create a COND_EXPR and add it to the tree
490 instead of creating rtl.
491 (tree_code_if_else): Create a BIND_EXPR if any variables were created
493 (tree_code_end_if): Likewise.
494 (tree_code_create_function_prototype): Use tree_code_get_type.
495 Don't use SET_DECL_ASSEMBLER_NAME.
496 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
497 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
498 layout_decl on RESULT_DECL. Don't call rtl expand functions.
499 (tree_code_create_function_wrapup): Don't call rtl expand functions.
500 Create a BIND_EXPR for each function. Dump original and gimplified
501 copies of the function tree. Gimplify function.
502 (tree_code_create_variable): Use tree_code_get_type. Don't call
503 layout_decl or expand_decl. Fold CONVERT_EXPRs.
504 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
505 Add RETURN_EXPR to the current statement list. Don't call rtl expand
507 (tree_code_output_expression_statement): Append CODE to current
509 (tree_code_get_expression): Fold expressions. Build a pointer to
510 a FUNCTION_TYPE intead of the called functions return type.
511 (struct binding_level): Add statement list STMTS.
512 (getstmtlist): New Function.
513 (pushlevel): Make static. Allocate an empty statement list.
514 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
515 Don't use DECL_ASSEMBLER_NAME.
516 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
517 (treelang_init_decl_processing): Define basic types after unused types.
518 Don't call tree_push_atomic_type_decl.
519 (builtin_function): Don't call make_decl_rtl.
520 (treelang_expand_function). New Function.
522 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
524 * treetree.c (set_block): Remove.
525 (struct binding_level): Remove block_created_by_back_end.
526 (clear_binding_level): Likewise.
527 (tree_code_create_function_initial,
528 tree_code_create_function_wrapup): Call pushlevel and poplevel
529 directly rather than through hooks.
530 (poplevel): Don't handle block_created_by_back_end.
532 2004-04-07 Richard Henderson <rth@redhat.com>
534 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
536 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
538 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
541 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
543 * treelang.texi: Update link to "G++ and GCC".
545 2004-02-20 Richard Henderson <rth@redhat.com>
547 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
549 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
551 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
553 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
555 * Make-lang.in: Replace $(docdir) with doc.
556 (treelang.info, treelang.srcinfo): New rules.
557 (treelang.man, treelang.man): Dummy entries.
559 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
561 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
562 (treelang/parse.o, treelang/lex.o): Look for sources in build
563 directory. Use implicit rule.
564 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
566 (treelang.srcextra): Copy above back to source directory if requested.
568 2004-01-07 Zack Weinberg <zack@codesourcery.com>
570 * parse.y (yyerror): Mark the definition static.
572 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
574 * lex.l: Add \t as a whitespace character.
575 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
577 * treelang.texi (What is GNU Treelang?): Fix a typo.
578 (Lexical Syntax): Create an itemize list of keywords. Add commas to
579 paragraph defining names.
581 2003-11-26 Jason Merrill <jason@redhat.com>
583 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
584 directory and TAGS files that include them for each front end.
586 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
588 * .cvsignore: Delete.
590 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
592 * Make-lang.in (treelang.extraclean): Delete.
594 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
596 * Make-lang.in: Remove obsolete comment.
598 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
600 * Make-lang.in (dvi): Move targets to $(docobjdir).
601 (treelang.dvi): Simplify rule and adjust target.
602 (treelang.info): Simplify rule.
603 (parse.o): Correct dependencies.
604 (TREE_EXE): Delete doubled suffix append.
606 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
608 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
611 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
613 * Make-lang.in (parse.o): Honor $(parsedir).
616 (parse.c, parse.h): Likewise.
617 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
620 2003-10-20 Mark Mitchell <mark@codesourcery.com>
622 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
625 * Make-lang.in (info): Use docobjdir.
626 ($(srcdir)/treelang/treelang.info): Replace with ...
627 ($(docobjdir)/treelang/treelang.info): ... this.
628 (install-info): New target.
630 2003-10-12 Andreas Jaeger <aj@suse.de>
632 * Make-lang.in (treelang.install-info): Remove reference to
634 (treelang.): Removed.
636 2003-10-06 Mark Mitchell <mark@codesourcery.com>
638 * Make-lang.in (treelang.info): Replace with ...
640 * Make-lang.in (treelang.dvi): Replace with ...
643 2003-09-21 Richard Henderson <rth@redhat.com>
645 * treetree.c: Revert.
647 2003-09-21 Richard Henderson <rth@redhat.com>
649 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
652 2003-07-28 Andreas Jaeger <aj@suse.de>
654 * treetree.c: Convert remaining K&R prototypes to ISO C90.
657 * tree-convert.c: Likewise.
659 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
661 * treetree.c: Remove unnecessary casts.
663 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
665 * lang-options.h: Remove.
666 * lang.opt: Document some options. Remove --help.
667 * tree1.c (treelang_handle_option): Remove OPT__help case.
669 2003-07-12 Andreas Jaeger <aj@suse.de>
671 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
673 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
675 * Make-lang.in: Update.
676 * tree1.c: Don't include c-common.h.
677 (c_language): Remove.
679 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
680 Steven Bosscher <steven@gcc.gnu.org>
682 * tree-convert.c: New file.
683 * treetree.c: Don't include c-tree.h. Include target.h.
684 (struct lang_identifier, union lang_tree_node, struct lang_type,
685 struct lang_function): New, minimal language-specific datastructs.
686 (tree_lang_truthvalue_conversion, tree_mark_addressable,
687 tree_lang_type_for_size, tree_lang_type_for_mode,
688 tree_lang_unsigned_type, tree_lang_signed_type,
689 tree_lang_signed_or_unsigned): New functions.
690 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
691 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
692 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
693 tree_push_atomic_type_decl): New functions.
694 (struct resword, struct reswords): Remove.
695 * Make-lang.in: Update. Don't depend on C front end objects.
696 * config-lang.in: Likewise.
698 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
700 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
701 tree_code_if_end, tree_code_create_function_initial,
702 tree_code_create_function_wrapup, tree_code_generate_return,
703 tree_code_output_expression_statement): Adjust emit_line_note
706 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
708 * Make-lang.in: Replace PWD with PWD_COMMAND.
710 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
712 * tree1.c (treelang_init_options): Update prototype.
713 * treelang.h (treelang_init_options): Update prototype.
715 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
717 * Make-lang.in: Update.
718 * tree1.c: Include c-common.h. Define c_language.
720 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
722 * treetree.c (tree_code_create_function_wrapup): Adjust
723 expand_function_end call.
725 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
727 * treetree.c (build_stmt): Remove VPARAMS.
728 (pedwarn_c99): Likewise.
730 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
732 * lang.opt: Declare Treelang. Update.
733 * tree1.c (treelang_init_options): Update.
735 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
737 * treetree.c (tree_code_create_function_initial): Adjust
738 init_function_start call.
740 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
742 * Make-lang.in: Update to use options.c and options.h.
743 * tree1.c: Include options.h not t-options.h.
744 (treelang_init_options): New.
745 (treelang_handle_option): Abort on unrecognized switch.
746 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
747 * treetree.h (treelang_init_options): New.
749 2003-06-12 Andreas Jaeger <aj@suse.de>
751 * treetree.c: Remove cl_options-count and cl_options.
753 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
755 * Make-lang.in: Update for option handling.
757 * tree1.c: Include opts.h and t-options.h.
758 (treelang_decode_option): Remove.
759 (treelang_handle_option): New.
760 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
761 (LANG_HOOKS_HANDLE_OPTION): Override.
762 * treetree.h (treelang_decode_option): Remove.
763 (treelang_handle_option): New.
765 2003-06-08 Andreas Jaeger <aj@suse.de>
767 * Make-lang.in: Update.
768 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
770 2003-06-08 Tim Josling <tej@melbpc.org.au>
772 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
774 2003-06-05 Jan Hubicka <jh@suse.cz>
776 * Make-lang.in: Add support for stageprofile and stagefeedback
778 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
780 * treetree.c (reswords): Remove __bounded__, __unbounded__.
782 2003-05-09 Tim Josling <tej@melbpc.org.au>
784 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
785 to link (needed by some front ends such as PPC).
787 * treetree.c (tree_code_create_function_initial): Fix long line.
788 Initialize tree_code_int_size and tree_code_char_size to
790 (tree_code_get_numeric_type): Add check that size1 parameter is
793 * parse.y: Fix extra long lines in prototypes.
795 * treelang.h: Fix extra long lines in macro definitions.
797 2003-05-07 Zack Weinberg <zack@codesourcery.com>
799 * Make-lang.in: Set -Wno-error for treelang/lex.o.
801 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
803 * Make-lang.in (treelang/tree1.o): Depends on input.h
804 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
805 * treelang.h: #include input.h.
807 (struct token_part): Remove lineno, add location.
808 * lex.l (next_tree_lineno): Remove.
809 (update_lineno_charno): Adjust.
810 (dump_lex_value): Adjust.
811 * parse.y (variable_def, function_prototype, function, statement,
812 if_statement, return, function_invocation, variable_ref): Adjust.
813 (print_token, yyerror, ensure_not_void): Adjust.
814 tree1.c (in_fname): Remove.
815 (treelang_init): Setup input_location.
816 (lookup_tree_name): Adjust.
817 (insert_tree_name): Adjust.
818 * treetree.c (tree_code_if_start): Replace filename and lineno
819 parms with loc. Adjust.
820 (tree_code_if_else, tree_code_if_end,
821 tree_code_create_function_prototype,
822 tree_code_create_function_initial,
823 tree_code_create_function_wrapup, tree_code_create_variable,
824 tree_code_output_expression_statement): Likewise.
825 * treetree.h (tree_code_if_start): Replace filename and lineno
827 (tree_code_if_else, tree_code_if_end,
828 tree_code_create_function_prototype,
829 tree_code_create_function_initial,
830 tree_code_create_function_wrapup, tree_code_create_variable,
831 tree_code_output_expression_statement): Likewise.
833 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
835 * tree1.c (treelang_init): Rename lineno to input_line.
837 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
839 * parse.y (make_plus_expression): New function.
840 (expression production): Use make_plus_expression for PLUS,
841 MINUS, ASSIGN and EQUALS.
842 * tree1.c (treelang_decode_option): Don't fall through to
843 options that start with a different character when an option
846 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
848 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
849 * treetree.c: Do not #include parse.h.
851 2003-03-21 Andreas Jaeger <aj@suse.de>
853 * treetree.c (cpp_create_reader): Follow prototype change in
856 2003-03-17 Andreas Jaeger <aj@suse.de>
858 * Make-lang.in (treelang.tags): Remove duplicate entry.
860 2003-03-15 Andreas Jaeger <aj@suse.de>
862 * treetree.c (cpp_handle_option): Remove.
864 2003-03-13 Andreas Jaeger <aj@suse.de>
866 * Make-lang.in (tree1$(exeext)): Fix previous patch.
868 2003-03-12 Andreas Jaeger <aj@suse.de>
870 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
872 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
874 * tree1.c (in_fname): Fix type.
875 (treelang_init): Update prototype and use of in_fname.
876 * treelang.h (in_fname): Fix type.
877 * treetree.c (tree_code_if_start, tree_code_if_else,
878 tree_code_if_end, tree_code_create_function_prototype,
879 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
880 tree_code_create_variable, tree_code_output_expression_statement)
881 : Fix prototypes and use of filenames.
882 * treetree.h: Similarly.
884 2003-03-05 Andreas Jaeger <aj@suse.de>
886 * treetree.c (init_c_lex): Follow change to c-common.h.
888 2003-03-04 Tom Tromey <tromey@redhat.com>
890 * Make-lang.in (treelang.tags): New target.
892 2003-03-01 Tim Josling <tej@melbpc.org.au>
894 Name clashes with rtl.h fixed.
896 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
901 2003-02-24 Tim Josling <tej@melbpc.org.au>
903 * parse.y (my_yylex): New - ensure lexer time is charged to
905 (yylex): redefine as invocation of my_yylex which then calls
906 flex-generated yylex.
907 (timevar.h): include.
909 2003-02-23 Tim Josling <tej@melbpc.org.au>
911 Fix garbage collection, add more error checking, force GC always.
913 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
914 (treelang/treetree.o): Depend on treelang/parse.h
916 * lex.l: include "treetree.h"
918 * lex.l (update_yylval): Allocate string using get_string so GC
921 * parse.y (function_prototype): Set category correctly so GC works.
922 (function): Set category in search so checking works.
923 (function_invocation): Ditto.
924 (variable_ref): Ditto.
926 * tree1.c (lookup_tree_name): Call sanity_check for passed
927 production and associated token and for symbol table entries.
929 * tree1.c (sanity_check): New, basic check that struct is valid.
931 * treelang.h: Prototype for sanity_check.
933 2003-01-27 Tim Josling <tej@melbpc.org.au>
935 * treetree.c (treelang_init_decl_processing): Change memory
936 allocation to use GC.
938 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
940 * treelang.texi: Update to GFDL 1.2.
942 2003-01-26 Michael Matz <matz@suse.de>
944 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
946 2003-01-14 Andreas Jaeger <aj@suse.de>
948 * Make-lang.in (treelang.install-info): Depend only on info files
949 if BUILD_INFO is set. Fix install rules.
952 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
954 * Make-lang.in (treelang.install.common.done,
955 treelang.install-info, treelang.uninstall): Prepend
956 $(DESTDIR) to destination paths in all (un)installation
959 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
961 * treelang.texi: Use @copying.
963 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
965 * treelang.texi: Include gcc-common.texi.
966 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
967 Depend on gcc-common.texi. Add other missing dependencies.
968 (treelang.dvi): Use texi2dvi.
970 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
972 * treelang.texi: Use @ifnottex instead of @ifinfo.
974 2002-11-30 Zack Weinberg <zack@codesourcery.com>
976 * lex.l: Move "%{" below copyright notice; get rid of "/*"
977 embedded in comment. Do not #undef IN_GCC; do not include
978 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
979 Do include coretypes.h and tm.h.
980 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
981 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
982 ansidecl.h. Do include coretypes.h and tm.h.
983 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
984 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
985 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
986 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
987 or ansidecl.h. Do include coretypes.h and tm.h.
988 * Make-lang.in: Update dependencies.
990 2002-09-09 Tim Josling <tej@melbpc.org.au>
992 * treetree.c (objc_is_id): New.
994 2002-08-16 Tim Josling <tej@melbpc.org.au>
996 Remove variables and functions now defined elsewhere.
998 * treetree.c (maybe_objc_comptypes): Remove.
999 (warn_format, warn_format_y2k, warn_format_extra_args,
1000 warn_format_nonliteral, warn_format_security,
1001 warn_format_zero_length): Remove.
1002 (maybe_building_objc_message_expr): Remove.
1003 (cpp_post_options): Remove.
1004 (maybe_objc_check_decl): Remove.
1005 (integer_types): Remove.
1008 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
1010 * treelang.c: Remove cpp_post_options.
1012 2002-08-13 Tim Josling <tej@melbpc.org.au>
1014 * parse.y: Provide dummy definition of rtx for use by config.h.
1015 * Make-lang.in (treetree.o): Remove dependency on non-existent
1016 gt-treelang-treelang.h.
1017 (gt-treelang-treelang.h): Remove.
1019 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
1021 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
1023 2002-07-11 Tim Josling <tej@melbpc.org.au>
1025 Remove front end hard coding from gengtype.c.
1027 * config-lang.in (gtfiles): Add files needed for this front
1030 2002-07-09 Tim Josling <tej@melbpc.org.au>
1032 Support new attributes regime (Fix for PR c++/7099).
1034 * treetree.c (handle_format_attribute): Return NULL_TREE instead
1036 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
1037 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
1038 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
1040 2002-06-21 Andreas Jaeger <aj@suse.de>
1042 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
1043 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
1045 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
1047 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
1050 2002-06-10 Tim Josling <tej@melbpc.org.au>
1054 * Make-lang.in (check-treelang). Add. Remove direct dependency of
1055 'check' on 'treelang.check' as redundant.
1057 PCH Garbage collection regime (gengtypes.c) phase 1.
1059 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
1060 gt-treelang-treelang.h gtype-treelang.h.
1061 (gt-treelang-tree1.h) Depend on s-gtype.
1062 (gt-treelang-treelang.h) Depend on s-gtype.
1063 (gtype-treelang.h) Depend on s-gtype.
1065 * config-lang.in (gtfiles): Define.
1067 * lex.l (main): Remove '#if 0' dead code.
1068 (main): Move undef of IN_GCC so define of tree typedef works.
1069 (all): Replace token and production by prod_token_parm_item.
1072 (all): Replace token and production by prod_token_parm_item.
1074 * tree1.c (main): Remove include of "output.h".
1075 (symbol_table): Add GTY details.
1076 (symbol_table_ggc): Remove.
1077 (treelang_init): Remove root definitions for garbage collection.
1078 (mark_production_used): Remove.
1079 (mark_token_used): Remove.
1080 (main, at end): include generated garage collection routines.
1082 * treelang.h (category_enum ): Add parameter_category.
1083 (all): Replace token and production and parameters by union
1084 prod_token_parm_item containing production_part, token_part,
1086 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1087 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1088 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1089 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
1093 (tm_p.h): Do not include.
1094 (ansidecl.h): Move include after config.h.
1095 (treelang.h): Include it.
1097 (all): Replace token, production and parameter by prod_token_parm_item.
1098 (tree_parameter_list): Move to treelang.h as part of
1099 prod_token_parm_item.
1100 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1101 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1102 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1103 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
1106 2002-05-19 Tim Josling <tej@melbpc.org.au>
1108 * treetree.c (warn_format_zero_length): Add.
1110 2002-05-14 Tim Josling <tej@melbpc.org.au>
1112 * Make-lang.in: Fix build for .info files, add target for manpages.
1113 A bug report and a suggested patch came from Magnus Fromreide
1114 <magfr@lysator.liu.se>.
1116 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1118 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1120 2002-05-11 Tim Josling <tej@melbpc.org.au>
1122 * treetree.c: (cpp_define) Add.
1123 (cpp_get_callbacks) Add.
1125 2002-05-07 Tim Josling <tej@melbpc.org.au>
1127 * treetree.c: (cpp_get_options) Add.
1129 2002-05-06 Tim Josling <tej@melbpc.org.au>
1133 2002-05-05 Tim Josling <tej@melbpc.org.au>
1135 * Updated for gcc3.2 experimental. Major changes throughout.
1137 2002-03-31 Tim Josling <tej@melbpc.org.au>
1139 * Make-lang.in: Changes so build and check work more reliably
1141 2001-07-30 Tim Josling <tej@melbpc.org.au>
1144 * treelang.texi: updates based on feedback
1146 2001-06-11 Tim Josling <tej@melbpc.org.au>
1148 * all (all) Revamp code to conform to GCC coding standards, fix
1149 typos in texi files.
1151 2001-05-11 Tim Josling <tej@melbpc.org.au>
1153 Create the new language.