OSDN Git Service

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