OSDN Git Service

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