* config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
[official-gcc.git] / gcc / treelang / ChangeLog
blob3a780f58b245cdfd3fa2bbf0492e6597aec82060
1 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
3         * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
5 2005-03-06  James A. Morrison  <phython@gcc.gnu.org>
7         PR other/20326
8         * Make-lang.in (gtreelang, treelang/spec.o): New targets.
9         * spec.c: New file.
11 2005-02-27  Kazu Hirata  <kazu@cs.umass.edu>
13         * treelang.texi: Fix a typo.
15 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
17         * parse.y (function_invocation, variable-ref, make_plus_expression):
18         Pass location to tree_code_get_expression.
19         * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
20         (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
21         set EXPR_LOCATION on ret1.
22         * treetree.h (tree_code_get_expression): Take the location of the
23         expression as an argument.
25 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
27         * treelang.texi: Treelang does have warnings.
28         * treetree.c (tree_code_create_function_prototype): Don't set
29         TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
30         as few times as needed on the function declaration.
31         (tree_code_create_function_initial): Don't set TREE_USED,
32         TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
33         (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
34         (tree_code_get_expression): Set TREE_USED for variable references
35         and function calls.
37 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
39         * parse.y: Do comparisons as the type of the first expression.
40         * treetree.c (tree_code_get_integer_value): Build integer constants
41         with the proper type.
43 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
45         * Make-lang.in: Remove commented out code.
46         * lang-specs.h: Always pass -dumpbase to tree1.
48 2005-02-25  James A. Morrrison  <phython@gcc.gnu.org>
50         * treelang.texi: Remove extra contribution notice.
51         Split up some run-on sentences.  Document function parameters
52         as optional.  Indicate automatic variables can now be at any scope.
53         Mention literals are only signed if they are preceded by a unary
54         plus or minus.  Clarify interoperability with C.
56 2005-02-25  James A. Morrison  <phython@gcc.gnu.org>
58         * treelang.texi: Fix whitespacing.
60 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
62         PR other/19896
63         * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
64         TREE_PUBLIC, and TREE_STATIC for var_decl to zero.  Don't call
65         rest_of_decl_compilation on static variables.
66         (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
67         variables.
69 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
71         PR other/19897
72         * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
73         Move function parameters check from ...
74         (function): ...Here.  Update call to tree_code_create_function_initial.
75         (function_invocation): Use expressions_with_commas_opt instead of
76         expressions_with_commas.
77         (expressions_with_commas_opt): New rule.
78         * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
79         for function parameters.
80         (tree_code_create_function_initial): Remove PARMS parameter.
81         Don't create PARM_DECLs for function parameters.
82         * treetree.h (tree_code_create_function_initial): Remove PARMS
83         parameter.
85 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
87         * parse.y: Update copyright.
89 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
91         * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
92         scalar integer types.
94 2005-02-09  Richard Henderson  <rth@redhat.com>
96         * treetree.c (treelang_init_decl_processing): Call
97         build_common_builtin_nodes.
99 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
101         * treelang.texi: Don't use local treelang version number.  Don't
102         give last update date.
104 2005-02-01  James A. Morrison  <phython@gcc.gnu.org>
106         * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
108 2005-02-01  James A. Morrison  <phython@gcc.gnu.org>
110         * parse.y: Reformat comments.
111         * treetree.c: Likewise.
112         * treetree.h: Likewise.
114 2004-10-24  James A. Morrison  <phython@gcc.gnu.org>
116         * treetree.c (tree_code_generate_return): Wrap param declaration in
117         ENABLE_CHECKING.
119 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
121         * parse.y: Add list of diagnostic messages to insulate
122         translation template from version of yacc/bison used to
123         compile the grammar.
125 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
127         PR other/17762
128         * lex.l: Include input.h and errors.h
129         (lineno): New variable.
130         (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
131         is not defined.
132         Set column position with LINEMAP_POSITION_FOR_COLUMN.
133         Use error instead of fprintf.
134         Set input_location with the value returned by linemap_start_line when
135         USE_MAPPED_LOCATION is defined.
136         (dump_lex_value): Use LOCATION_LINE.
137         * parse.y: Include errors.h.
138         Use error and warning instead of fprintf.
139         (return): Move exp to rule scope and always set to $2.  Test against
140         exp instead of $2.
141         (init): Set $$ to $2.
142         (print_token): Use LOCATION_LINE.
143         * tree1.c (treelang_init): Call treelang_init_decl_processing last.
144         Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
145         defined.
146         (treelang_parse_file): Always start at line one.
147         Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
148         defined.
149         Leave main_input_filename when done parsing the input.
150         (insert_tree_name): Use error instead of fprintf.
151         * treetree.c (tree_code_get_expression): Wrap long line.
152         (tree_mark_addressable): Use %qD to print out DECLs.
154 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
156         * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
157         * tree1.c: Likewise.
158         * treetree.c: Likewise.
160 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
162         * lex.l: Remove random whitespace.
163         * parse.y: Reformat copyright notice.  Indent declarations.
164         Wrap long lines, unwrap short lines.
165         * tree1.c: Reformat copyright notice.  Wrap long lines.
166         Remove random whitespace.
167         (lookup_tree_name): Use LOCATION_LINE.
168         * treetree.c: Reformat copyright notice.  Wrap long lines.
169         Remove random whitespace.
171 2004-10-01  James A. Morrison  <phython@gcc.gnu.org>
173         * parse.y (ELSE): Set tok to $1.
174         * treelang.texi: Wrap comments in @r{}.  Indent example comments.
175         Use gcc when refering to the command line or website.  Update function
176         definition.
178 2004-10-01  Jan Hubicka  <jh@suse.cz>
180         * treetree.c (treeland_expand_function): Update call of
181         tree_rest_of_compilation.
183 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
184             Zack Weinberg  <zack@codesourcery.com>
186         * treetree.c: Update for new tree-class enumeration constants.
188 2004-09-15  Zack Weinberg  <zack@codesourcery.com>
190         * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
192 2004-08-26  Nathan Sidwell  <nathan@codesourcery.com>
194         * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
196 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
198         * treelang/treetree.c (treelang_init_decl_processing): Adjust
199         build_common_tree_nodes call.
201 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
203         * treetree.c (tree_code_get_integer_value): Use build_int_cst.
205 2004-07-31  James A. Morrison  <phython@gcc.gnu.org>
207         * Make-lang.in (TREE_BE_LIBS): Remove.
208         (tree1): Depend on BACKEND and LIBDEPS.  Use BACKEND and LIBS instead
209         of TREE_BE_LIBS.
210         * parse.y: Add variable_defs_opt before statements_opt.
211         Use tree_code_get_type instead of get_type_for_numeric_type.
212         Reformat long lines.
213         (parameters_opt): New rule.
214         (function_prototype): Use parameters_opt.
215         (return): Remove calls to print_token in error cases.  Use VOID_TYPE.
216         (check_type_match): Use VOID_TYPE.
217         * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
218         * tree1.c: Include version.h and cgraph.h
219         (treelang_parse_file): Call cgraph_finalize_compilation_unit and
220         cgraph_optimize.
221         * treelang.h (item): Remove extraneous GTY.
222         * treetree.h (get_type_for_numeric_type): Remove.
223         * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
224         function.h, and cgraph.h.  Don't include rtl.h
225         (keep_level_p): Remove.
226         (tree_push_atomic_type_decl): Remove.
227         (get_type_for_numeric_type): Remove.
228         (tree_code_get_numeric_type): Remove.
229         (global_bindings_p): Make static.
230         (getdecls): Likewise.
231         (insert_block): Likewise.
232         (tree_code_if_start): Create a COND_EXPR and add it to the tree
233         instead of creating rtl.
234         (tree_code_if_else): Create a BIND_EXPR if any variables were created
235         in the if statement.
236         (tree_code_end_if): Likewise.
237         (tree_code_create_function_prototype): Use tree_code_get_type.
238         Don't use SET_DECL_ASSEMBLER_NAME.
239         (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
240         DECL_IGNORING_P on RESULT_DECL.  Use tree_code_get_type.  Don't call
241         layout_decl on RESULT_DECL.  Don't call rtl expand functions.
242         (tree_code_create_function_wrapup): Don't call rtl expand functions.
243         Create a BIND_EXPR for each function.  Dump original and gimplified
244         copies of the function tree.  Gimplify function.
245         (tree_code_create_variable): Use tree_code_get_type.  Don't call
246         layout_decl or expand_decl.  Fold CONVERT_EXPRs.
247         (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
248         Add RETURN_EXPR to the current statement list.  Don't call rtl expand
249         functions.
250         (tree_code_output_expression_statement): Append CODE to current
251         statement list.
252         (tree_code_get_expression): Fold expressions.  Build a pointer to
253         a FUNCTION_TYPE intead of the called functions return type.
254         (struct binding_level): Add statement list STMTS.
255         (getstmtlist): New Function.
256         (pushlevel): Make static.  Allocate an empty statement list.
257         (poplevel): Make static.  Don't clear BLOCK_NODE's BLOCK_VARS.
258         Don't use DECL_ASSEMBLER_NAME.
259         (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
260         (treelang_init_decl_processing): Define basic types after unused types.
261         Don't call tree_push_atomic_type_decl.
262         (builtin_function): Don't call make_decl_rtl.
263         (treelang_expand_function). New Function.
265 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
267         * treetree.c (set_block): Remove.
268         (struct binding_level): Remove block_created_by_back_end.
269         (clear_binding_level): Likewise.
270         (tree_code_create_function_initial,
271         tree_code_create_function_wrapup): Call pushlevel and poplevel
272         directly rather than through hooks.
273         (poplevel): Don't handle block_created_by_back_end.
275 2004-04-07  Richard Henderson  <rth@redhat.com>
277         * treetree.c (tree_mark_addressable):  Don't put_var_into_stack.
279 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
281         * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
282         not TREE_UNSIGNED.
284 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
286         * treelang.texi: Update link to "G++ and GCC".
288 2004-02-20  Richard Henderson  <rth@redhat.com>
290         * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
292 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
294         * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
296 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
298         * Make-lang.in: Replace $(docdir) with doc.
299         (treelang.info, treelang.srcinfo): New rules.
300         (treelang.man, treelang.man): Dummy entries.
302 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
304         * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
305         (treelang/parse.o, treelang/lex.o): Look for sources in build
306         directory.  Use implicit rule.
307         (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
308         doc directory.
309         (treelang.srcextra): Copy above back to source directory if requested.
311 2004-01-07  Zack Weinberg  <zack@codesourcery.com>
313         * parse.y (yyerror): Mark the definition static.
315 2003-12-04  James A. Morrison  <ja2morri@uwaterloo.ca>
317         * lex.l: Add \t as a whitespace character.
318         * treelang.texi (Lexical Syntax): Document a tab as whitespace.
320         * treelang.texi (What is GNU Treelang?): Fix a typo.
321         (Lexical Syntax): Create an itemize list of keywords.  Add commas to
322         paragraph defining names.
324 2003-11-26  Jason Merrill  <jason@redhat.com>
326         * Make-lang.in (treelang.tags): Create TAGS.sub files in each
327         directory and TAGS files that include them for each front end.
329 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
331         * .cvsignore: Delete.
333 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
335         * Make-lang.in (treelang.extraclean): Delete.
337 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
339         * Make-lang.in: Remove obsolete comment.
341 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
343         * Make-lang.in (dvi): Move targets to $(docobjdir).
344         (treelang.dvi): Simplify rule and adjust target.
345         (treelang.info): Simplify rule.
346         (parse.o): Correct dependencies.
347         (TREE_EXE): Delete doubled suffix append.
349 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
351         * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
352         (lex.o): Likewise.
354 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
356         * Make-lang.in (parse.o): Honor $(parsedir).
357         (lex.o): Likewise.
358         (lex.c): Likewise
359         (parse.c, parse.h): Likewise.
360         ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
361         (dvi): Likewise.
363 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
365         * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
366         stmp-docobjdir.
368         * Make-lang.in (info): Use docobjdir.
369         ($(srcdir)/treelang/treelang.info): Replace with ...
370         ($(docobjdir)/treelang/treelang.info): ... this.
371         (install-info): New target.
373 2003-10-12  Andreas Jaeger  <aj@suse.de>
375         * Make-lang.in (treelang.install-info): Remove reference to
376         treelang.info.
377         (treelang.): Removed.
379 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
381         * Make-lang.in (treelang.info): Replace with ...
382         (info): ... this.
383         * Make-lang.in (treelang.dvi): Replace with ...
384         (dvi): ... this.
386 2003-09-21  Richard Henderson  <rth@redhat.com>
388         * treetree.c: Revert.
390 2003-09-21  Richard Henderson  <rth@redhat.com>
392         * treetree.c: Update for DECL_SOURCE_LOCATION rename and
393         change to const.
395 2003-07-28  Andreas Jaeger  <aj@suse.de>
397         * treetree.c: Convert remaining K&R prototypes to ISO C90.
398         * tree1.c: Likewise.
399         * parse.y: Likewise.
400         * tree-convert.c: Likewise.
402 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
404         * treetree.c: Remove unnecessary casts.
406 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
408         * lang-options.h: Remove.
409         * lang.opt: Document some options.  Remove --help.
410         * tree1.c (treelang_handle_option): Remove OPT__help case.
412 2003-07-12  Andreas Jaeger  <aj@suse.de>
414         * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
416 2003-07-10  Neil Booth  <neil@daikokuya.co.uk>
418         * Make-lang.in: Update.
419         * tree1.c: Don't include c-common.h.
420         (c_language): Remove.
422 2003-07-10  Fergus Henderson  <fjh@cs.mu.oz.au>
423             Steven Bosscher  <steven@gcc.gnu.org>
425         * tree-convert.c: New file.
426         * treetree.c: Don't include c-tree.h.  Include target.h.
427         (struct lang_identifier, union lang_tree_node, struct lang_type,
428         struct lang_function): New, minimal language-specific datastructs.
429         (tree_lang_truthvalue_conversion, tree_mark_addressable,
430         tree_lang_type_for_size, tree_lang_type_for_mode,
431         tree_lang_unsigned_type, tree_lang_signed_type,
432         tree_lang_signed_or_unsigned): New functions.
433         (LANG_HOOKS_*): Don't use C front end langhooks.  Use new functions.
434         (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
435         pushdecl, getdecls, kept_level_p, tree_push_type_decl,
436         tree_push_atomic_type_decl): New functions.
437         (struct resword, struct reswords): Remove.
438         * Make-lang.in: Update.  Don't depend on C front end objects.
439         * config-lang.in: Likewise.
441 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
443         * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
444         tree_code_if_end, tree_code_create_function_initial,
445         tree_code_create_function_wrapup, tree_code_generate_return,
446         tree_code_output_expression_statement): Adjust emit_line_note
447         calls.
449 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
451         * Make-lang.in: Replace PWD with PWD_COMMAND.
453 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
455         * tree1.c (treelang_init_options): Update prototype.
456         * treelang.h (treelang_init_options): Update prototype.
458 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
460         * Make-lang.in: Update.
461         * tree1.c: Include c-common.h.  Define c_language.
463 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
465         * treetree.c (tree_code_create_function_wrapup): Adjust
466         expand_function_end call.
468 2003-06-18  Nathan Sidwell  <nathan@codesourcery.com>
470         * treetree.c (build_stmt): Remove VPARAMS.
471         (pedwarn_c99): Likewise.
473 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
475         * lang.opt: Declare Treelang.  Update.
476         * tree1.c (treelang_init_options): Update.
478 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
480         * treetree.c (tree_code_create_function_initial): Adjust
481         init_function_start call.
483 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
485         * Make-lang.in: Update to use options.c and options.h.
486         * tree1.c: Include options.h not t-options.h.
487         (treelang_init_options): New.
488         (treelang_handle_option): Abort on unrecognized switch.
489         * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
490         * treetree.h (treelang_init_options): New.
492 2003-06-12  Andreas Jaeger  <aj@suse.de>
494         * treetree.c: Remove cl_options-count and cl_options.
496 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
498         * Make-lang.in: Update for option handling.
499         * lang.opt: New.
500         * tree1.c: Include opts.h and t-options.h.
501         (treelang_decode_option): Remove.
502         (treelang_handle_option): New.
503         * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
504         (LANG_HOOKS_HANDLE_OPTION): Override.
505         * treetree.h (treelang_decode_option): Remove.
506         (treelang_handle_option): New.
508 2003-06-08  Andreas Jaeger  <aj@suse.de>
510         * Make-lang.in: Update.
511         * treetree.c: Include opts.h. Define cl_options_count and cl_options.
513 2003-06-08  Tim Josling  <tej@melbpc.org.au>
515         * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
517 2003-06-05  Jan Hubicka  <jh@suse.cz>
519         * Make-lang.in:  Add support for stageprofile and stagefeedback
521 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
523         * treetree.c (reswords): Remove __bounded__, __unbounded__.
525 2003-05-09  Tim Josling  <tej@melbpc.org.au>
527         * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
528         to link (needed by some front ends such as PPC).
530         * treetree.c (tree_code_create_function_initial): Fix long line.
531         Initialize tree_code_int_size and tree_code_char_size to
532         meaningful values.
533         (tree_code_get_numeric_type): Add check that size1 parameter is
534         valid.
536         * parse.y: Fix extra long lines in prototypes.
538         * treelang.h: Fix extra long lines in macro definitions.
540 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
542         * Make-lang.in: Set -Wno-error for treelang/lex.o.
544 2003-05-06  Nathan Sidwell  <nathan@codesourcery.com>
546         * Make-lang.in (treelang/tree1.o): Depends on input.h
547         (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
548         * treelang.h: #include input.h.
549         (in_fname): Remove.
550         (struct token_part): Remove lineno, add location.
551         * lex.l (next_tree_lineno): Remove.
552         (update_lineno_charno): Adjust.
553         (dump_lex_value): Adjust.
554         * parse.y (variable_def, function_prototype, function, statement,
555         if_statement, return, function_invocation, variable_ref): Adjust.
556         (print_token, yyerror, ensure_not_void): Adjust.
557         tree1.c (in_fname): Remove.
558         (treelang_init): Setup input_location.
559         (lookup_tree_name): Adjust.
560         (insert_tree_name): Adjust.
561         * treetree.c (tree_code_if_start): Replace filename and lineno
562         parms with loc. Adjust.
563         (tree_code_if_else, tree_code_if_end,
564         tree_code_create_function_prototype,
565         tree_code_create_function_initial,
566         tree_code_create_function_wrapup, tree_code_create_variable,
567         tree_code_output_expression_statement): Likewise.
568         * treetree.h (tree_code_if_start): Replace filename and lineno
569         parms with loc.
570         (tree_code_if_else, tree_code_if_end,
571         tree_code_create_function_prototype,
572         tree_code_create_function_initial,
573         tree_code_create_function_wrapup, tree_code_create_variable,
574         tree_code_output_expression_statement): Likewise.
576 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
578         * tree1.c (treelang_init): Rename lineno to input_line.
580 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
582         * parse.y (make_plus_expression): New function.
583         (expression production): Use make_plus_expression for PLUS,
584         MINUS, ASSIGN and EQUALS.
585         * tree1.c (treelang_decode_option): Don't fall through to
586         options that start with a different character when an option
587         was not recognized.
589 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
591         * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
592         * treetree.c: Do not #include parse.h.
594 2003-03-21  Andreas Jaeger  <aj@suse.de>
596         * treetree.c (cpp_create_reader): Follow prototype change in
597         cpplib.h.
599 2003-03-17  Andreas Jaeger  <aj@suse.de>
601         * Make-lang.in (treelang.tags): Remove duplicate entry.
603 2003-03-15  Andreas Jaeger  <aj@suse.de>
605         * treetree.c (cpp_handle_option): Remove.
607 2003-03-13  Andreas Jaeger  <aj@suse.de>
609         * Make-lang.in (tree1$(exeext)): Fix previous patch.
611 2003-03-12  Andreas Jaeger  <aj@suse.de>
613         * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
615 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
617         * tree1.c (in_fname): Fix type.
618         (treelang_init): Update prototype and use of in_fname.
619         * treelang.h (in_fname): Fix type.
620         * treetree.c (tree_code_if_start, tree_code_if_else,
621         tree_code_if_end, tree_code_create_function_prototype,
622         tree_code_create_function_initial, tree_code_create_funciton_wrapup,
623         tree_code_create_variable, tree_code_output_expression_statement)
624         : Fix prototypes and use of filenames.
625         * treetree.h: Similarly.
627 2003-03-05  Andreas Jaeger  <aj@suse.de>
629         * treetree.c (init_c_lex): Follow change to c-common.h.
631 2003-03-04  Tom Tromey  <tromey@redhat.com>
633         * Make-lang.in (treelang.tags): New target.
635 2003-03-01  Tim Josling  <tej@melbpc.org.au>
637         Name clashes with rtl.h fixed.
639         * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
640         tl_RETURN.
642         * parse.y: Ditto.
644 2003-02-24  Tim Josling  <tej@melbpc.org.au>
646         * parse.y (my_yylex): New - ensure lexer time is charged to
647         TV_LEX.
648         (yylex): redefine as invocation of my_yylex which then calls
649         flex-generated yylex.
650         (timevar.h): include.
652 2003-02-23  Tim Josling  <tej@melbpc.org.au>
654         Fix garbage collection, add more error checking, force GC always.
656         * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
657         (treelang/treetree.o): Depend on  treelang/parse.h
659         * lex.l: include "treetree.h"
661         * lex.l (update_yylval): Allocate string using get_string so GC
662         works.
664         * parse.y (function_prototype): Set category correctly so GC works.
665         (function): Set category in search so checking works.
666         (function_invocation): Ditto.
667         (variable_ref): Ditto.
669         * tree1.c (lookup_tree_name): Call sanity_check for passed
670         production and associated token and for symbol table entries.
672         * tree1.c (sanity_check): New, basic check that struct is valid.
674         * treelang.h: Prototype for sanity_check.
676 2003-01-27  Tim Josling  <tej@melbpc.org.au>
678         * treetree.c (treelang_init_decl_processing): Change memory
679         allocation to use GC.
681 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
683         * treelang.texi: Update to GFDL 1.2.
685 2003-01-26  Michael Matz  <matz@suse.de>
687         * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
689 2003-01-14  Andreas Jaeger  <aj@suse.de>
691         * Make-lang.in (treelang.install-info): Depend only on info files
692         if BUILD_INFO is set.  Fix install rules.
693         (treelang.): New.
695 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
697         * Make-lang.in (treelang.install.common.done,
698         treelang.install-info, treelang.uninstall): Prepend
699         $(DESTDIR) to destination paths in all (un)installation
700         commands.
702 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
704         * treelang.texi: Use @copying.
706 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
708         * treelang.texi: Include gcc-common.texi.
709         * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
710         Depend on gcc-common.texi.  Add other missing dependencies.
711         (treelang.dvi): Use texi2dvi.
713 2002-12-22  Joseph S. Myers  <jsm@polyomino.org.uk>
715         * treelang.texi: Use @ifnottex instead of @ifinfo.
717 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
719         * lex.l: Move "%{" below copyright notice; get rid of "/*"
720         embedded in comment.  Do not #undef IN_GCC; do not include
721         stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
722         Do include coretypes.h and tm.h.
723         * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
724         and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
725         ansidecl.h. Do include coretypes.h and tm.h.
726         * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
727         stdarg.h, string.h, or stdio.h.  Do include coretypes.h and tm.h.
728         * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
729         errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
730         or ansidecl.h.  Do include coretypes.h and tm.h.
731         * Make-lang.in: Update dependencies.
733 2002-09-09  Tim Josling  <tej@melbpc.org.au>
735         * treetree.c (objc_is_id): New.
737 2002-08-16  Tim Josling  <tej@melbpc.org.au>
739         Remove variables and functions now defined elsewhere.
741         * treetree.c (maybe_objc_comptypes): Remove.
742         (warn_format, warn_format_y2k, warn_format_extra_args,
743         warn_format_nonliteral, warn_format_security,
744         warn_format_zero_length): Remove.
745         (maybe_building_objc_message_expr): Remove.
746         (cpp_post_options): Remove.
747         (maybe_objc_check_decl): Remove.
748         (integer_types): Remove.
751 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
753         * treelang.c: Remove cpp_post_options.
755 2002-08-13  Tim Josling  <tej@melbpc.org.au>
757         * parse.y: Provide dummy definition of rtx for use by config.h.
758         * Make-lang.in (treetree.o): Remove dependency on non-existent
759         gt-treelang-treelang.h.
760         (gt-treelang-treelang.h): Remove.
762 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
764         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
766 2002-07-11  Tim Josling  <tej@melbpc.org.au>
768         Remove front end hard coding from gengtype.c.
770         * config-lang.in (gtfiles): Add files needed for this front
771         end.
773 2002-07-09  Tim Josling  <tej@melbpc.org.au>
775         Support new attributes regime (Fix for PR c++/7099).
777         * treetree.c (handle_format_attribute): Return NULL_TREE instead
778         of aborting.
779         (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
780         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
781         LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
783 2002-06-21  Andreas Jaeger  <aj@suse.de>
785         * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
786         treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
788 2002-06-19  Paolo Bonzini <bonzini@gnu.org>
790         * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
791         than STATIC.
793 2002-06-10  Tim Josling  <tej@melbpc.org.au>
795         Cleanup
797         * Make-lang.in (check-treelang). Add. Remove direct dependency of
798         'check' on 'treelang.check' as redundant.
800         PCH Garbage collection regime (gengtypes.c) phase 1.
802         * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
803         gt-treelang-treelang.h gtype-treelang.h.
804         (gt-treelang-tree1.h) Depend on s-gtype.
805         (gt-treelang-treelang.h) Depend on s-gtype.
806         (gtype-treelang.h) Depend on s-gtype.
808         * config-lang.in (gtfiles): Define.
810         * lex.l (main): Remove '#if 0' dead code.
811         (main): Move undef of IN_GCC so define of tree typedef works.
812         (all): Replace token and production by prod_token_parm_item.
814         * parse.y
815         (all): Replace token and production by prod_token_parm_item.
817         * tree1.c (main): Remove include of "output.h".
818         (symbol_table): Add GTY details.
819         (symbol_table_ggc): Remove.
820         (treelang_init): Remove root definitions for garbage collection.
821         (mark_production_used): Remove.
822         (mark_token_used): Remove.
823         (main, at end): include generated garage collection routines.
825         * treelang.h (category_enum ): Add parameter_category.
826         (all): Replace token and production and parameters by union
827         prod_token_parm_item containing production_part, token_part,
828         parameter_part.
829         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
830         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
831         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
832         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
833         treetree.h.
835         * treetree.c
836         (tm_p.h): Do not include.
837         (ansidecl.h): Move include after config.h.
838         (treelang.h): Include it.
839         (ADDROOT): Remove.
840         (all): Replace token, production and parameter by prod_token_parm_item.
841         (tree_parameter_list): Move to treelang.h as part of
842         prod_token_parm_item.
843         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
844         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
845         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
846         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
847         treelang.h.
849 2002-05-19  Tim Josling  <tej@melbpc.org.au>
851         * treetree.c (warn_format_zero_length): Add.
853 2002-05-14  Tim Josling  <tej@melbpc.org.au>
855         * Make-lang.in: Fix build for .info files, add target for manpages.
856         A bug report and a suggested patch came from Magnus Fromreide
857         <magfr@lysator.liu.se>.
859 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
861         * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
863 2002-05-11  Tim Josling  <tej@melbpc.org.au>
865         * treetree.c: (cpp_define) Add.
866         (cpp_get_callbacks) Add.
868 2002-05-07  Tim Josling  <tej@melbpc.org.au>
870         * treetree.c: (cpp_get_options) Add.
872 2002-05-06  Tim Josling  <tej@melbpc.org.au>
874         * .cvsignore: Add.
876 2002-05-05  Tim Josling  <tej@melbpc.org.au>
878         * Updated for gcc3.2 experimental. Major changes throughout.
880 2002-03-31  Tim Josling  <tej@melbpc.org.au>
882         * Make-lang.in: Changes so build and check work more reliably
884 2001-07-30  Tim Josling  <tej@melbpc.org.au>
886         * root.texi: remove
887         * treelang.texi: updates based on feedback
889 2001-06-11  Tim Josling  <tej@melbpc.org.au>
891         * all (all) Revamp code to conform to GCC coding standards, fix
892         typos in texi files.
894 2001-05-11  Tim Josling  <tej@melbpc.org.au>
896         Create the new language.