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