OSDN Git Service

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