OSDN Git Service

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