OSDN Git Service

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