OSDN Git Service

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