OSDN Git Service

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