OSDN Git Service

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