OSDN Git Service

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