* config/xtensa/lib1funcs.asm (__umulsidi3): Restore a12-a15 on exit.
[official-gcc.git] / gcc / treelang / ChangeLog
blob1b4a9415f97e63a9ccf6f8ed913baaa9843a797b
1 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
3         * treetree.c (builtin_function): Remove.
5 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
7         * Make-lang.in: Added "treelang.pdf" target support.
9 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
13 2006-06-17  Karl Berry  <karl@gnu.org>
15         * treelang.texi (@dircategory): Use "Software development"
16         instead of "Programming", following the Free Software Directory.
18 2006-06-06  Mike Stump  <mrs@apple.com>
20         * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid
21         installing during build.
23 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
25         * Make-lang.in: Rename htmldir to gcc_htmldir.
27 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
29         PR driver/26885
30         * Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
31         $(GCC_OBJS).
33 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
35         * Make-lang.in (treelang/treetree.o): Add dependency on
36         $(TARGET_H).
38 2006-04-22  Matthias Klose  <doko@debian.org>
40         * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
42 2006-03-29  Carlos O'Donell  <caros@codesourcery.com>
44         * Make-lang.in: Rename docdir to gcc_docdir.
46 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
48         * Make-lang.in (.phony): Remove TREELANG.
49         (TREELANG): Remove.
51 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
53         * spec.c (lang_specific_driver): Update copyright notice date.
55 2006-01-16  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
57         * spec.c (lang_specific_spec_functions): Remove.
59 2005-12-28  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
61         * Make-lang.in (treelang.distdir): Remove.
63 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
65         * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
67 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
69         * Make-lang.in: Remove all dependencies on s-gtype.
71 2005-12-05  Richard Guenther  <rguenther@suse.de>
73         * treetree.c (tree_code_if_start, tree_code_create_variable,
74         tree_code_generate_return, tree_code_get_expression,
75         tree_code_add_parameter): Use fold_convert where appropriate.
77 2005-11-07  James A. Morrison  <phython@gcc.gnu.org>
79         PR treelang/24066
80         * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
81         treelang_attribute_table.
82         (handle_attribute): New function.
83         (treelang_attribute_table): New attribute table.
85 2005-09-23  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
87         * parse.y : Changed pointer declaration from "type* var" to "type *var"
88         Removed trailing space.  Wrap long lines.
90 2005-09-23  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
92         * parse.y :  Fixed two compile warnings in "error" and "warning"
93         invocations.  Removed trailing periods in messages.  Decapitalized the
94         first word of each.
96 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
98         * tree-convert.c (convert): Use fold_build1 instead of
99         fold (build1.
101 2005-08-06  James A. Morrison  <phython@gcc.gnu.org>
103         PR treelang/23072
104         * Make-lang.in: Remove old testing cruft.
106 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
108         * all files: Update FSF address in copyright headers.
110 2005-06-15  James A. Morrison  <phython@gcc.gnu.org>
112         * parse.y (function_invocation): Reverse parameter list.
113         * treetree.c (tree_code_get_expression): Don't reverse parameter list.
115 2005-06-12  Rafael ?vila de Esp?ndola   <rafael.espindola@gmail.com>
117         * treetree.c (tree_code_get_expression): Call build_function_call_expr
118         to build function calls.
120 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
122         * treelang/lex.l, treelang/parse.y: Don't include errors.h and
123         include toplev.h.
124         * treelang/Make-lang.in: Updates dependencies.
126 2005-05-02  Andrew Pinski  <pinskia@physics.uc.edu>
128         PR treelang/21345
129         * parse.y (parameters_opt): Add semicolon at the end.
131 2005-04-29  Tom Tromey  <tromey@redhat.com>
133         * treetree.c (poplevel): Updated for change to build_block.
135 2005-04-23  DJ Delorie  <dj@redhat.com>
137         * parse.y: Adjust warning() callers.
139 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
141         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
143 2005-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
145         PR treelang/20604
146         * lang-spec.c: Simplify @treelang to what the other
147         languages do.
149 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
151         * treelang/treelang.texi: Fix typos.
152         * treelang/treetree.c: Fix comment typos.
154 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
156         * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
157         tree_lang_truthvalue_conversion): Remove.
158         * tree-convert.c: Don't call truthvalue_conversion.
160 2005-03-22  James A. Morrison  <phython@gcc.gnu.org>
162         * treetree.c (tree_code_if_start): Use fold_buildN.
163         (tree_code_create_variable): Likewise.
164         (tree_code_generate_return): Likewise.
165         (tree_code_get_expression): Likewise.
166         (tree_code_add_parameter): Likewise.
168 2005-03-22  James A. Morrison  <phython@gcc.gnu.org>
170         * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
171         during GC.
173 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
175         * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
177 2005-03-06  James A. Morrison  <phython@gcc.gnu.org>
179         PR other/20326
180         * Make-lang.in (gtreelang, treelang/spec.o): New targets.
181         * spec.c: New file.
183 2005-02-27  Kazu Hirata  <kazu@cs.umass.edu>
185         * treelang.texi: Fix a typo.
187 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
189         * parse.y (function_invocation, variable-ref, make_plus_expression):
190         Pass location to tree_code_get_expression.
191         * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
192         (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
193         set EXPR_LOCATION on ret1.
194         * treetree.h (tree_code_get_expression): Take the location of the
195         expression as an argument.
197 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
199         * treelang.texi: Treelang does have warnings.
200         * treetree.c (tree_code_create_function_prototype): Don't set
201         TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
202         as few times as needed on the function declaration.
203         (tree_code_create_function_initial): Don't set TREE_USED,
204         TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
205         (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
206         (tree_code_get_expression): Set TREE_USED for variable references
207         and function calls.
209 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
211         * parse.y: Do comparisons as the type of the first expression.
212         * treetree.c (tree_code_get_integer_value): Build integer constants
213         with the proper type.
215 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
217         * Make-lang.in: Remove commented out code.
218         * lang-specs.h: Always pass -dumpbase to tree1.
220 2005-02-25  James A. Morrrison  <phython@gcc.gnu.org>
222         * treelang.texi: Remove extra contribution notice.
223         Split up some run-on sentences.  Document function parameters
224         as optional.  Indicate automatic variables can now be at any scope.
225         Mention literals are only signed if they are preceded by a unary
226         plus or minus.  Clarify interoperability with C.
228 2005-02-25  James A. Morrison  <phython@gcc.gnu.org>
230         * treelang.texi: Fix whitespacing.
232 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
234         PR other/19896
235         * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
236         TREE_PUBLIC, and TREE_STATIC for var_decl to zero.  Don't call
237         rest_of_decl_compilation on static variables.
238         (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
239         variables.
241 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
243         PR other/19897
244         * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
245         Move function parameters check from ...
246         (function): ...Here.  Update call to tree_code_create_function_initial.
247         (function_invocation): Use expressions_with_commas_opt instead of
248         expressions_with_commas.
249         (expressions_with_commas_opt): New rule.
250         * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
251         for function parameters.
252         (tree_code_create_function_initial): Remove PARMS parameter.
253         Don't create PARM_DECLs for function parameters.
254         * treetree.h (tree_code_create_function_initial): Remove PARMS
255         parameter.
257 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
259         * parse.y: Update copyright.
261 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
263         * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
264         scalar integer types.
266 2005-02-09  Richard Henderson  <rth@redhat.com>
268         * treetree.c (treelang_init_decl_processing): Call
269         build_common_builtin_nodes.
271 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
273         * treelang.texi: Don't use local treelang version number.  Don't
274         give last update date.
276 2005-02-01  James A. Morrison  <phython@gcc.gnu.org>
278         * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
280 2005-02-01  James A. Morrison  <phython@gcc.gnu.org>
282         * parse.y: Reformat comments.
283         * treetree.c: Likewise.
284         * treetree.h: Likewise.
286 2004-10-24  James A. Morrison  <phython@gcc.gnu.org>
288         * treetree.c (tree_code_generate_return): Wrap param declaration in
289         ENABLE_CHECKING.
291 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
293         * parse.y: Add list of diagnostic messages to insulate
294         translation template from version of yacc/bison used to
295         compile the grammar.
297 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
299         PR other/17762
300         * lex.l: Include input.h and errors.h
301         (lineno): New variable.
302         (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
303         is not defined.
304         Set column position with LINEMAP_POSITION_FOR_COLUMN.
305         Use error instead of fprintf.
306         Set input_location with the value returned by linemap_start_line when
307         USE_MAPPED_LOCATION is defined.
308         (dump_lex_value): Use LOCATION_LINE.
309         * parse.y: Include errors.h.
310         Use error and warning instead of fprintf.
311         (return): Move exp to rule scope and always set to $2.  Test against
312         exp instead of $2.
313         (init): Set $$ to $2.
314         (print_token): Use LOCATION_LINE.
315         * tree1.c (treelang_init): Call treelang_init_decl_processing last.
316         Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
317         defined.
318         (treelang_parse_file): Always start at line one.
319         Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
320         defined.
321         Leave main_input_filename when done parsing the input.
322         (insert_tree_name): Use error instead of fprintf.
323         * treetree.c (tree_code_get_expression): Wrap long line.
324         (tree_mark_addressable): Use %qD to print out DECLs.
326 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
328         * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
329         * tree1.c: Likewise.
330         * treetree.c: Likewise.
332 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
334         * lex.l: Remove random whitespace.
335         * parse.y: Reformat copyright notice.  Indent declarations.
336         Wrap long lines, unwrap short lines.
337         * tree1.c: Reformat copyright notice.  Wrap long lines.
338         Remove random whitespace.
339         (lookup_tree_name): Use LOCATION_LINE.
340         * treetree.c: Reformat copyright notice.  Wrap long lines.
341         Remove random whitespace.
343 2004-10-01  James A. Morrison  <phython@gcc.gnu.org>
345         * parse.y (ELSE): Set tok to $1.
346         * treelang.texi: Wrap comments in @r{}.  Indent example comments.
347         Use gcc when refering to the command line or website.  Update function
348         definition.
350 2004-10-01  Jan Hubicka  <jh@suse.cz>
352         * treetree.c (treeland_expand_function): Update call of
353         tree_rest_of_compilation.
355 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
356             Zack Weinberg  <zack@codesourcery.com>
358         * treetree.c: Update for new tree-class enumeration constants.
360 2004-09-15  Zack Weinberg  <zack@codesourcery.com>
362         * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
364 2004-08-26  Nathan Sidwell  <nathan@codesourcery.com>
366         * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
368 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
370         * treelang/treetree.c (treelang_init_decl_processing): Adjust
371         build_common_tree_nodes call.
373 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
375         * treetree.c (tree_code_get_integer_value): Use build_int_cst.
377 2004-07-31  James A. Morrison  <phython@gcc.gnu.org>
379         * Make-lang.in (TREE_BE_LIBS): Remove.
380         (tree1): Depend on BACKEND and LIBDEPS.  Use BACKEND and LIBS instead
381         of TREE_BE_LIBS.
382         * parse.y: Add variable_defs_opt before statements_opt.
383         Use tree_code_get_type instead of get_type_for_numeric_type.
384         Reformat long lines.
385         (parameters_opt): New rule.
386         (function_prototype): Use parameters_opt.
387         (return): Remove calls to print_token in error cases.  Use VOID_TYPE.
388         (check_type_match): Use VOID_TYPE.
389         * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
390         * tree1.c: Include version.h and cgraph.h
391         (treelang_parse_file): Call cgraph_finalize_compilation_unit and
392         cgraph_optimize.
393         * treelang.h (item): Remove extraneous GTY.
394         * treetree.h (get_type_for_numeric_type): Remove.
395         * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
396         function.h, and cgraph.h.  Don't include rtl.h
397         (keep_level_p): Remove.
398         (tree_push_atomic_type_decl): Remove.
399         (get_type_for_numeric_type): Remove.
400         (tree_code_get_numeric_type): Remove.
401         (global_bindings_p): Make static.
402         (getdecls): Likewise.
403         (insert_block): Likewise.
404         (tree_code_if_start): Create a COND_EXPR and add it to the tree
405         instead of creating rtl.
406         (tree_code_if_else): Create a BIND_EXPR if any variables were created
407         in the if statement.
408         (tree_code_end_if): Likewise.
409         (tree_code_create_function_prototype): Use tree_code_get_type.
410         Don't use SET_DECL_ASSEMBLER_NAME.
411         (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
412         DECL_IGNORING_P on RESULT_DECL.  Use tree_code_get_type.  Don't call
413         layout_decl on RESULT_DECL.  Don't call rtl expand functions.
414         (tree_code_create_function_wrapup): Don't call rtl expand functions.
415         Create a BIND_EXPR for each function.  Dump original and gimplified
416         copies of the function tree.  Gimplify function.
417         (tree_code_create_variable): Use tree_code_get_type.  Don't call
418         layout_decl or expand_decl.  Fold CONVERT_EXPRs.
419         (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
420         Add RETURN_EXPR to the current statement list.  Don't call rtl expand
421         functions.
422         (tree_code_output_expression_statement): Append CODE to current
423         statement list.
424         (tree_code_get_expression): Fold expressions.  Build a pointer to
425         a FUNCTION_TYPE intead of the called functions return type.
426         (struct binding_level): Add statement list STMTS.
427         (getstmtlist): New Function.
428         (pushlevel): Make static.  Allocate an empty statement list.
429         (poplevel): Make static.  Don't clear BLOCK_NODE's BLOCK_VARS.
430         Don't use DECL_ASSEMBLER_NAME.
431         (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
432         (treelang_init_decl_processing): Define basic types after unused types.
433         Don't call tree_push_atomic_type_decl.
434         (builtin_function): Don't call make_decl_rtl.
435         (treelang_expand_function). New Function.
437 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
439         * treetree.c (set_block): Remove.
440         (struct binding_level): Remove block_created_by_back_end.
441         (clear_binding_level): Likewise.
442         (tree_code_create_function_initial,
443         tree_code_create_function_wrapup): Call pushlevel and poplevel
444         directly rather than through hooks.
445         (poplevel): Don't handle block_created_by_back_end.
447 2004-04-07  Richard Henderson  <rth@redhat.com>
449         * treetree.c (tree_mark_addressable):  Don't put_var_into_stack.
451 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
453         * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
454         not TREE_UNSIGNED.
456 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
458         * treelang.texi: Update link to "G++ and GCC".
460 2004-02-20  Richard Henderson  <rth@redhat.com>
462         * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
464 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
466         * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
468 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
470         * Make-lang.in: Replace $(docdir) with doc.
471         (treelang.info, treelang.srcinfo): New rules.
472         (treelang.man, treelang.man): Dummy entries.
474 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
476         * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
477         (treelang/parse.o, treelang/lex.o): Look for sources in build
478         directory.  Use implicit rule.
479         (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
480         doc directory.
481         (treelang.srcextra): Copy above back to source directory if requested.
483 2004-01-07  Zack Weinberg  <zack@codesourcery.com>
485         * parse.y (yyerror): Mark the definition static.
487 2003-12-04  James A. Morrison  <ja2morri@uwaterloo.ca>
489         * lex.l: Add \t as a whitespace character.
490         * treelang.texi (Lexical Syntax): Document a tab as whitespace.
492         * treelang.texi (What is GNU Treelang?): Fix a typo.
493         (Lexical Syntax): Create an itemize list of keywords.  Add commas to
494         paragraph defining names.
496 2003-11-26  Jason Merrill  <jason@redhat.com>
498         * Make-lang.in (treelang.tags): Create TAGS.sub files in each
499         directory and TAGS files that include them for each front end.
501 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
503         * .cvsignore: Delete.
505 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
507         * Make-lang.in (treelang.extraclean): Delete.
509 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
511         * Make-lang.in: Remove obsolete comment.
513 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
515         * Make-lang.in (dvi): Move targets to $(docobjdir).
516         (treelang.dvi): Simplify rule and adjust target.
517         (treelang.info): Simplify rule.
518         (parse.o): Correct dependencies.
519         (TREE_EXE): Delete doubled suffix append.
521 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
523         * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
524         (lex.o): Likewise.
526 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
528         * Make-lang.in (parse.o): Honor $(parsedir).
529         (lex.o): Likewise.
530         (lex.c): Likewise
531         (parse.c, parse.h): Likewise.
532         ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
533         (dvi): Likewise.
535 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
537         * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
538         stmp-docobjdir.
540         * Make-lang.in (info): Use docobjdir.
541         ($(srcdir)/treelang/treelang.info): Replace with ...
542         ($(docobjdir)/treelang/treelang.info): ... this.
543         (install-info): New target.
545 2003-10-12  Andreas Jaeger  <aj@suse.de>
547         * Make-lang.in (treelang.install-info): Remove reference to
548         treelang.info.
549         (treelang.): Removed.
551 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
553         * Make-lang.in (treelang.info): Replace with ...
554         (info): ... this.
555         * Make-lang.in (treelang.dvi): Replace with ...
556         (dvi): ... this.
558 2003-09-21  Richard Henderson  <rth@redhat.com>
560         * treetree.c: Revert.
562 2003-09-21  Richard Henderson  <rth@redhat.com>
564         * treetree.c: Update for DECL_SOURCE_LOCATION rename and
565         change to const.
567 2003-07-28  Andreas Jaeger  <aj@suse.de>
569         * treetree.c: Convert remaining K&R prototypes to ISO C90.
570         * tree1.c: Likewise.
571         * parse.y: Likewise.
572         * tree-convert.c: Likewise.
574 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
576         * treetree.c: Remove unnecessary casts.
578 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
580         * lang-options.h: Remove.
581         * lang.opt: Document some options.  Remove --help.
582         * tree1.c (treelang_handle_option): Remove OPT__help case.
584 2003-07-12  Andreas Jaeger  <aj@suse.de>
586         * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
588 2003-07-10  Neil Booth  <neil@daikokuya.co.uk>
590         * Make-lang.in: Update.
591         * tree1.c: Don't include c-common.h.
592         (c_language): Remove.
594 2003-07-10  Fergus Henderson  <fjh@cs.mu.oz.au>
595             Steven Bosscher  <steven@gcc.gnu.org>
597         * tree-convert.c: New file.
598         * treetree.c: Don't include c-tree.h.  Include target.h.
599         (struct lang_identifier, union lang_tree_node, struct lang_type,
600         struct lang_function): New, minimal language-specific datastructs.
601         (tree_lang_truthvalue_conversion, tree_mark_addressable,
602         tree_lang_type_for_size, tree_lang_type_for_mode,
603         tree_lang_unsigned_type, tree_lang_signed_type,
604         tree_lang_signed_or_unsigned): New functions.
605         (LANG_HOOKS_*): Don't use C front end langhooks.  Use new functions.
606         (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
607         pushdecl, getdecls, kept_level_p, tree_push_type_decl,
608         tree_push_atomic_type_decl): New functions.
609         (struct resword, struct reswords): Remove.
610         * Make-lang.in: Update.  Don't depend on C front end objects.
611         * config-lang.in: Likewise.
613 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
615         * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
616         tree_code_if_end, tree_code_create_function_initial,
617         tree_code_create_function_wrapup, tree_code_generate_return,
618         tree_code_output_expression_statement): Adjust emit_line_note
619         calls.
621 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
623         * Make-lang.in: Replace PWD with PWD_COMMAND.
625 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
627         * tree1.c (treelang_init_options): Update prototype.
628         * treelang.h (treelang_init_options): Update prototype.
630 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
632         * Make-lang.in: Update.
633         * tree1.c: Include c-common.h.  Define c_language.
635 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
637         * treetree.c (tree_code_create_function_wrapup): Adjust
638         expand_function_end call.
640 2003-06-18  Nathan Sidwell  <nathan@codesourcery.com>
642         * treetree.c (build_stmt): Remove VPARAMS.
643         (pedwarn_c99): Likewise.
645 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
647         * lang.opt: Declare Treelang.  Update.
648         * tree1.c (treelang_init_options): Update.
650 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
652         * treetree.c (tree_code_create_function_initial): Adjust
653         init_function_start call.
655 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
657         * Make-lang.in: Update to use options.c and options.h.
658         * tree1.c: Include options.h not t-options.h.
659         (treelang_init_options): New.
660         (treelang_handle_option): Abort on unrecognized switch.
661         * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
662         * treetree.h (treelang_init_options): New.
664 2003-06-12  Andreas Jaeger  <aj@suse.de>
666         * treetree.c: Remove cl_options-count and cl_options.
668 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
670         * Make-lang.in: Update for option handling.
671         * lang.opt: New.
672         * tree1.c: Include opts.h and t-options.h.
673         (treelang_decode_option): Remove.
674         (treelang_handle_option): New.
675         * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
676         (LANG_HOOKS_HANDLE_OPTION): Override.
677         * treetree.h (treelang_decode_option): Remove.
678         (treelang_handle_option): New.
680 2003-06-08  Andreas Jaeger  <aj@suse.de>
682         * Make-lang.in: Update.
683         * treetree.c: Include opts.h. Define cl_options_count and cl_options.
685 2003-06-08  Tim Josling  <tej@melbpc.org.au>
687         * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
689 2003-06-05  Jan Hubicka  <jh@suse.cz>
691         * Make-lang.in:  Add support for stageprofile and stagefeedback
693 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
695         * treetree.c (reswords): Remove __bounded__, __unbounded__.
697 2003-05-09  Tim Josling  <tej@melbpc.org.au>
699         * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
700         to link (needed by some front ends such as PPC).
702         * treetree.c (tree_code_create_function_initial): Fix long line.
703         Initialize tree_code_int_size and tree_code_char_size to
704         meaningful values.
705         (tree_code_get_numeric_type): Add check that size1 parameter is
706         valid.
708         * parse.y: Fix extra long lines in prototypes.
710         * treelang.h: Fix extra long lines in macro definitions.
712 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
714         * Make-lang.in: Set -Wno-error for treelang/lex.o.
716 2003-05-06  Nathan Sidwell  <nathan@codesourcery.com>
718         * Make-lang.in (treelang/tree1.o): Depends on input.h
719         (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
720         * treelang.h: #include input.h.
721         (in_fname): Remove.
722         (struct token_part): Remove lineno, add location.
723         * lex.l (next_tree_lineno): Remove.
724         (update_lineno_charno): Adjust.
725         (dump_lex_value): Adjust.
726         * parse.y (variable_def, function_prototype, function, statement,
727         if_statement, return, function_invocation, variable_ref): Adjust.
728         (print_token, yyerror, ensure_not_void): Adjust.
729         tree1.c (in_fname): Remove.
730         (treelang_init): Setup input_location.
731         (lookup_tree_name): Adjust.
732         (insert_tree_name): Adjust.
733         * treetree.c (tree_code_if_start): Replace filename and lineno
734         parms with loc. Adjust.
735         (tree_code_if_else, tree_code_if_end,
736         tree_code_create_function_prototype,
737         tree_code_create_function_initial,
738         tree_code_create_function_wrapup, tree_code_create_variable,
739         tree_code_output_expression_statement): Likewise.
740         * treetree.h (tree_code_if_start): Replace filename and lineno
741         parms with loc.
742         (tree_code_if_else, tree_code_if_end,
743         tree_code_create_function_prototype,
744         tree_code_create_function_initial,
745         tree_code_create_function_wrapup, tree_code_create_variable,
746         tree_code_output_expression_statement): Likewise.
748 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
750         * tree1.c (treelang_init): Rename lineno to input_line.
752 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
754         * parse.y (make_plus_expression): New function.
755         (expression production): Use make_plus_expression for PLUS,
756         MINUS, ASSIGN and EQUALS.
757         * tree1.c (treelang_decode_option): Don't fall through to
758         options that start with a different character when an option
759         was not recognized.
761 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
763         * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
764         * treetree.c: Do not #include parse.h.
766 2003-03-21  Andreas Jaeger  <aj@suse.de>
768         * treetree.c (cpp_create_reader): Follow prototype change in
769         cpplib.h.
771 2003-03-17  Andreas Jaeger  <aj@suse.de>
773         * Make-lang.in (treelang.tags): Remove duplicate entry.
775 2003-03-15  Andreas Jaeger  <aj@suse.de>
777         * treetree.c (cpp_handle_option): Remove.
779 2003-03-13  Andreas Jaeger  <aj@suse.de>
781         * Make-lang.in (tree1$(exeext)): Fix previous patch.
783 2003-03-12  Andreas Jaeger  <aj@suse.de>
785         * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
787 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
789         * tree1.c (in_fname): Fix type.
790         (treelang_init): Update prototype and use of in_fname.
791         * treelang.h (in_fname): Fix type.
792         * treetree.c (tree_code_if_start, tree_code_if_else,
793         tree_code_if_end, tree_code_create_function_prototype,
794         tree_code_create_function_initial, tree_code_create_funciton_wrapup,
795         tree_code_create_variable, tree_code_output_expression_statement)
796         : Fix prototypes and use of filenames.
797         * treetree.h: Similarly.
799 2003-03-05  Andreas Jaeger  <aj@suse.de>
801         * treetree.c (init_c_lex): Follow change to c-common.h.
803 2003-03-04  Tom Tromey  <tromey@redhat.com>
805         * Make-lang.in (treelang.tags): New target.
807 2003-03-01  Tim Josling  <tej@melbpc.org.au>
809         Name clashes with rtl.h fixed.
811         * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
812         tl_RETURN.
814         * parse.y: Ditto.
816 2003-02-24  Tim Josling  <tej@melbpc.org.au>
818         * parse.y (my_yylex): New - ensure lexer time is charged to
819         TV_LEX.
820         (yylex): redefine as invocation of my_yylex which then calls
821         flex-generated yylex.
822         (timevar.h): include.
824 2003-02-23  Tim Josling  <tej@melbpc.org.au>
826         Fix garbage collection, add more error checking, force GC always.
828         * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
829         (treelang/treetree.o): Depend on  treelang/parse.h
831         * lex.l: include "treetree.h"
833         * lex.l (update_yylval): Allocate string using get_string so GC
834         works.
836         * parse.y (function_prototype): Set category correctly so GC works.
837         (function): Set category in search so checking works.
838         (function_invocation): Ditto.
839         (variable_ref): Ditto.
841         * tree1.c (lookup_tree_name): Call sanity_check for passed
842         production and associated token and for symbol table entries.
844         * tree1.c (sanity_check): New, basic check that struct is valid.
846         * treelang.h: Prototype for sanity_check.
848 2003-01-27  Tim Josling  <tej@melbpc.org.au>
850         * treetree.c (treelang_init_decl_processing): Change memory
851         allocation to use GC.
853 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
855         * treelang.texi: Update to GFDL 1.2.
857 2003-01-26  Michael Matz  <matz@suse.de>
859         * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
861 2003-01-14  Andreas Jaeger  <aj@suse.de>
863         * Make-lang.in (treelang.install-info): Depend only on info files
864         if BUILD_INFO is set.  Fix install rules.
865         (treelang.): New.
867 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
869         * Make-lang.in (treelang.install.common.done,
870         treelang.install-info, treelang.uninstall): Prepend
871         $(DESTDIR) to destination paths in all (un)installation
872         commands.
874 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
876         * treelang.texi: Use @copying.
878 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
880         * treelang.texi: Include gcc-common.texi.
881         * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
882         Depend on gcc-common.texi.  Add other missing dependencies.
883         (treelang.dvi): Use texi2dvi.
885 2002-12-22  Joseph S. Myers  <jsm@polyomino.org.uk>
887         * treelang.texi: Use @ifnottex instead of @ifinfo.
889 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
891         * lex.l: Move "%{" below copyright notice; get rid of "/*"
892         embedded in comment.  Do not #undef IN_GCC; do not include
893         stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
894         Do include coretypes.h and tm.h.
895         * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
896         and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
897         ansidecl.h. Do include coretypes.h and tm.h.
898         * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
899         stdarg.h, string.h, or stdio.h.  Do include coretypes.h and tm.h.
900         * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
901         errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
902         or ansidecl.h.  Do include coretypes.h and tm.h.
903         * Make-lang.in: Update dependencies.
905 2002-09-09  Tim Josling  <tej@melbpc.org.au>
907         * treetree.c (objc_is_id): New.
909 2002-08-16  Tim Josling  <tej@melbpc.org.au>
911         Remove variables and functions now defined elsewhere.
913         * treetree.c (maybe_objc_comptypes): Remove.
914         (warn_format, warn_format_y2k, warn_format_extra_args,
915         warn_format_nonliteral, warn_format_security,
916         warn_format_zero_length): Remove.
917         (maybe_building_objc_message_expr): Remove.
918         (cpp_post_options): Remove.
919         (maybe_objc_check_decl): Remove.
920         (integer_types): Remove.
923 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
925         * treelang.c: Remove cpp_post_options.
927 2002-08-13  Tim Josling  <tej@melbpc.org.au>
929         * parse.y: Provide dummy definition of rtx for use by config.h.
930         * Make-lang.in (treetree.o): Remove dependency on non-existent
931         gt-treelang-treelang.h.
932         (gt-treelang-treelang.h): Remove.
934 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
936         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
938 2002-07-11  Tim Josling  <tej@melbpc.org.au>
940         Remove front end hard coding from gengtype.c.
942         * config-lang.in (gtfiles): Add files needed for this front
943         end.
945 2002-07-09  Tim Josling  <tej@melbpc.org.au>
947         Support new attributes regime (Fix for PR c++/7099).
949         * treetree.c (handle_format_attribute): Return NULL_TREE instead
950         of aborting.
951         (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
952         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
953         LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
955 2002-06-21  Andreas Jaeger  <aj@suse.de>
957         * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
958         treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
960 2002-06-19  Paolo Bonzini <bonzini@gnu.org>
962         * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
963         than STATIC.
965 2002-06-10  Tim Josling  <tej@melbpc.org.au>
967         Cleanup
969         * Make-lang.in (check-treelang). Add. Remove direct dependency of
970         'check' on 'treelang.check' as redundant.
972         PCH Garbage collection regime (gengtypes.c) phase 1.
974         * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
975         gt-treelang-treelang.h gtype-treelang.h.
976         (gt-treelang-tree1.h) Depend on s-gtype.
977         (gt-treelang-treelang.h) Depend on s-gtype.
978         (gtype-treelang.h) Depend on s-gtype.
980         * config-lang.in (gtfiles): Define.
982         * lex.l (main): Remove '#if 0' dead code.
983         (main): Move undef of IN_GCC so define of tree typedef works.
984         (all): Replace token and production by prod_token_parm_item.
986         * parse.y
987         (all): Replace token and production by prod_token_parm_item.
989         * tree1.c (main): Remove include of "output.h".
990         (symbol_table): Add GTY details.
991         (symbol_table_ggc): Remove.
992         (treelang_init): Remove root definitions for garbage collection.
993         (mark_production_used): Remove.
994         (mark_token_used): Remove.
995         (main, at end): include generated garage collection routines.
997         * treelang.h (category_enum ): Add parameter_category.
998         (all): Replace token and production and parameters by union
999         prod_token_parm_item containing production_part, token_part,
1000         parameter_part.
1001         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1002         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1003         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1004         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
1005         treetree.h.
1007         * treetree.c
1008         (tm_p.h): Do not include.
1009         (ansidecl.h): Move include after config.h.
1010         (treelang.h): Include it.
1011         (ADDROOT): Remove.
1012         (all): Replace token, production and parameter by prod_token_parm_item.
1013         (tree_parameter_list): Move to treelang.h as part of
1014         prod_token_parm_item.
1015         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1016         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1017         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1018         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
1019         treelang.h.
1021 2002-05-19  Tim Josling  <tej@melbpc.org.au>
1023         * treetree.c (warn_format_zero_length): Add.
1025 2002-05-14  Tim Josling  <tej@melbpc.org.au>
1027         * Make-lang.in: Fix build for .info files, add target for manpages.
1028         A bug report and a suggested patch came from Magnus Fromreide
1029         <magfr@lysator.liu.se>.
1031 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1033         * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1035 2002-05-11  Tim Josling  <tej@melbpc.org.au>
1037         * treetree.c: (cpp_define) Add.
1038         (cpp_get_callbacks) Add.
1040 2002-05-07  Tim Josling  <tej@melbpc.org.au>
1042         * treetree.c: (cpp_get_options) Add.
1044 2002-05-06  Tim Josling  <tej@melbpc.org.au>
1046         * .cvsignore: Add.
1048 2002-05-05  Tim Josling  <tej@melbpc.org.au>
1050         * Updated for gcc3.2 experimental. Major changes throughout.
1052 2002-03-31  Tim Josling  <tej@melbpc.org.au>
1054         * Make-lang.in: Changes so build and check work more reliably
1056 2001-07-30  Tim Josling  <tej@melbpc.org.au>
1058         * root.texi: remove
1059         * treelang.texi: updates based on feedback
1061 2001-06-11  Tim Josling  <tej@melbpc.org.au>
1063         * all (all) Revamp code to conform to GCC coding standards, fix
1064         typos in texi files.
1066 2001-05-11  Tim Josling  <tej@melbpc.org.au>
1068         Create the new language.