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