OSDN Git Service

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