OSDN Git Service

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