OSDN Git Service

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