OSDN Git Service

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