OSDN Git Service

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