OSDN Git Service

* Make-lang.in (treelang.tags): Create TAGS.sub files in each
[pf3gnuchains/gcc-fork.git] / gcc / treelang / ChangeLog
1 2003-11-26  Jason Merrill  <jason@redhat.com>
2
3         * Make-lang.in (treelang.tags): Create TAGS.sub files in each
4         directory and TAGS files that include them for each front end.
5
6 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
7
8         * .cvsignore: Delete.
9
10 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
11
12         * Make-lang.in (treelang.extraclean): Delete.
13
14 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
15
16         * Make-lang.in: Remove obsolete comment.
17
18 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
19
20         * Make-lang.in (dvi): Move targets to $(docobjdir).
21         (treelang.dvi): Simplify rule and adjust target.
22         (treelang.info): Simplify rule.
23         (parse.o): Correct dependencies.
24         (TREE_EXE): Delete doubled suffix append.
25
26 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
27
28         * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
29         (lex.o): Likewise.
30
31 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
32
33         * Make-lang.in (parse.o): Honor $(parsedir).
34         (lex.o): Likewise.
35         (lex.c): Likewise
36         (parse.c, parse.h): Likewise.
37         ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
38         (dvi): Likewise.
39
40 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
41
42         * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
43         stmp-docobjdir.
44
45         * Make-lang.in (info): Use docobjdir.
46         ($(srcdir)/treelang/treelang.info): Replace with ...
47         ($(docobjdir)/treelang/treelang.info): ... this.
48         (install-info): New target.
49
50 2003-10-12  Andreas Jaeger  <aj@suse.de>
51
52         * Make-lang.in (treelang.install-info): Remove reference to
53         treelang.info.
54         (treelang.): Removed.
55
56 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
57
58         * Make-lang.in (treelang.info): Replace with ...
59         (info): ... this.
60         * Make-lang.in (treelang.dvi): Replace with ...
61         (dvi): ... this.
62
63 2003-09-21  Richard Henderson  <rth@redhat.com>
64
65         * treetree.c: Revert.
66
67 2003-09-21  Richard Henderson  <rth@redhat.com>
68
69         * treetree.c: Update for DECL_SOURCE_LOCATION rename and
70         change to const.
71
72 2003-07-28  Andreas Jaeger  <aj@suse.de>
73
74         * treetree.c: Convert remaining K&R prototypes to ISO C90.
75         * tree1.c: Likewise.
76         * parse.y: Likewise.
77         * tree-convert.c: Likewise.
78
79 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
80
81         * treetree.c: Remove unnecessary casts.
82
83 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
84
85         * lang-options.h: Remove.
86         * lang.opt: Document some options.  Remove --help.
87         * tree1.c (treelang_handle_option): Remove OPT__help case.
88
89 2003-07-12  Andreas Jaeger  <aj@suse.de>
90
91         * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
92
93 2003-07-10  Neil Booth  <neil@daikokuya.co.uk>
94
95         * Make-lang.in: Update.
96         * tree1.c: Don't include c-common.h.
97         (c_language): Remove.
98
99 2003-07-10  Fergus Henderson  <fjh@cs.mu.oz.au>
100             Steven Bosscher  <steven@gcc.gnu.org>
101
102         * tree-convert.c: New file.
103         * treetree.c: Don't include c-tree.h.  Include target.h.
104         (struct lang_identifier, union lang_tree_node, struct lang_type,
105         struct lang_function): New, minimal language-specific datastructs.
106         (tree_lang_truthvalue_conversion, tree_mark_addressable,
107         tree_lang_type_for_size, tree_lang_type_for_mode,
108         tree_lang_unsigned_type, tree_lang_signed_type,
109         tree_lang_signed_or_unsigned): New functions.
110         (LANG_HOOKS_*): Don't use C front end langhooks.  Use new functions.
111         (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
112         pushdecl, getdecls, kept_level_p, tree_push_type_decl,
113         tree_push_atomic_type_decl): New functions.
114         (struct resword, struct reswords): Remove.
115         * Make-lang.in: Update.  Don't depend on C front end objects.
116         * config-lang.in: Likewise.
117
118 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
119
120         * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
121         tree_code_if_end, tree_code_create_function_initial,
122         tree_code_create_function_wrapup, tree_code_generate_return,
123         tree_code_output_expression_statement): Adjust emit_line_note
124         calls.
125
126 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
127
128         * Make-lang.in: Replace PWD with PWD_COMMAND.
129
130 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
131
132         * tree1.c (treelang_init_options): Update prototype.
133         * treelang.h (treelang_init_options): Update prototype.
134
135 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
136
137         * Make-lang.in: Update.
138         * tree1.c: Include c-common.h.  Define c_language.
139
140 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
141
142         * treetree.c (tree_code_create_function_wrapup): Adjust
143         expand_function_end call.
144
145 2003-06-18  Nathan Sidwell  <nathan@codesourcery.com>
146
147         * treetree.c (build_stmt): Remove VPARAMS.
148         (pedwarn_c99): Likewise.
149
150 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
151
152         * lang.opt: Declare Treelang.  Update.
153         * tree1.c (treelang_init_options): Update.
154
155 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
156
157         * treetree.c (tree_code_create_function_initial): Adjust
158         init_function_start call.
159
160 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
161
162         * Make-lang.in: Update to use options.c and options.h.
163         * tree1.c: Include options.h not t-options.h.
164         (treelang_init_options): New.
165         (treelang_handle_option): Abort on unrecognized switch.
166         * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
167         * treetree.h (treelang_init_options): New.
168
169 2003-06-12  Andreas Jaeger  <aj@suse.de>
170
171         * treetree.c: Remove cl_options-count and cl_options.
172
173 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
174
175         * Make-lang.in: Update for option handling.
176         * lang.opt: New.
177         * tree1.c: Include opts.h and t-options.h.
178         (treelang_decode_option): Remove.
179         (treelang_handle_option): New.
180         * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
181         (LANG_HOOKS_HANDLE_OPTION): Override.
182         * treetree.h (treelang_decode_option): Remove.
183         (treelang_handle_option): New.
184
185 2003-06-08  Andreas Jaeger  <aj@suse.de>
186
187         * Make-lang.in: Update.
188         * treetree.c: Include opts.h. Define cl_options_count and cl_options.
189
190 2003-06-08  Tim Josling  <tej@melbpc.org.au>
191
192         * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
193
194 2003-06-05  Jan Hubicka  <jh@suse.cz>
195
196         * Make-lang.in:  Add support for stageprofile and stagefeedback
197
198 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
199
200         * treetree.c (reswords): Remove __bounded__, __unbounded__.
201
202 2003-05-09  Tim Josling  <tej@melbpc.org.au>
203
204         * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
205         to link (needed by some front ends such as PPC).
206
207         * treetree.c (tree_code_create_function_initial): Fix long line.
208         Initialize tree_code_int_size and tree_code_char_size to
209         meaningful values.
210         (tree_code_get_numeric_type): Add check that size1 parameter is
211         valid.
212
213         * parse.y: Fix extra long lines in prototypes.
214
215         * treelang.h: Fix extra long lines in macro definitions.
216
217 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
218
219         * Make-lang.in: Set -Wno-error for treelang/lex.o.
220
221 2003-05-06  Nathan Sidwell  <nathan@codesourcery.com>
222
223         * Make-lang.in (treelang/tree1.o): Depends on input.h
224         (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
225         * treelang.h: #include input.h.
226         (in_fname): Remove.
227         (struct token_part): Remove lineno, add location.
228         * lex.l (next_tree_lineno): Remove.
229         (update_lineno_charno): Adjust.
230         (dump_lex_value): Adjust.
231         * parse.y (variable_def, function_prototype, function, statement,
232         if_statement, return, function_invocation, variable_ref): Adjust.
233         (print_token, yyerror, ensure_not_void): Adjust.
234         tree1.c (in_fname): Remove.
235         (treelang_init): Setup input_location.
236         (lookup_tree_name): Adjust.
237         (insert_tree_name): Adjust.
238         * treetree.c (tree_code_if_start): Replace filename and lineno
239         parms with loc. Adjust.
240         (tree_code_if_else, tree_code_if_end,
241         tree_code_create_function_prototype,
242         tree_code_create_function_initial,
243         tree_code_create_function_wrapup, tree_code_create_variable,
244         tree_code_output_expression_statement): Likewise.
245         * treetree.h (tree_code_if_start): Replace filename and lineno
246         parms with loc.
247         (tree_code_if_else, tree_code_if_end,
248         tree_code_create_function_prototype,
249         tree_code_create_function_initial,
250         tree_code_create_function_wrapup, tree_code_create_variable,
251         tree_code_output_expression_statement): Likewise.
252
253 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
254
255         * tree1.c (treelang_init): Rename lineno to input_line.
256
257 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
258
259         * parse.y (make_plus_expression): New function.
260         (expression production): Use make_plus_expression for PLUS,
261         MINUS, ASSIGN and EQUALS.
262         * tree1.c (treelang_decode_option): Don't fall through to
263         options that start with a different character when an option
264         was not recognized.
265
266 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
267
268         * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
269         * treetree.c: Do not #include parse.h.
270
271 2003-03-21  Andreas Jaeger  <aj@suse.de>
272
273         * treetree.c (cpp_create_reader): Follow prototype change in
274         cpplib.h.
275
276 2003-03-17  Andreas Jaeger  <aj@suse.de>
277
278         * Make-lang.in (treelang.tags): Remove duplicate entry.
279
280 2003-03-15  Andreas Jaeger  <aj@suse.de>
281
282         * treetree.c (cpp_handle_option): Remove.
283
284 2003-03-13  Andreas Jaeger  <aj@suse.de>
285
286         * Make-lang.in (tree1$(exeext)): Fix previous patch.
287
288 2003-03-12  Andreas Jaeger  <aj@suse.de>
289
290         * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
291
292 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
293
294         * tree1.c (in_fname): Fix type.
295         (treelang_init): Update prototype and use of in_fname.
296         * treelang.h (in_fname): Fix type.
297         * treetree.c (tree_code_if_start, tree_code_if_else,
298         tree_code_if_end, tree_code_create_function_prototype,
299         tree_code_create_function_initial, tree_code_create_funciton_wrapup,
300         tree_code_create_variable, tree_code_output_expression_statement)
301         : Fix prototypes and use of filenames.
302         * treetree.h: Similarly.
303
304 2003-03-05  Andreas Jaeger  <aj@suse.de>
305
306         * treetree.c (init_c_lex): Follow change to c-common.h.
307
308 2003-03-04  Tom Tromey  <tromey@redhat.com>
309
310         * Make-lang.in (treelang.tags): New target.
311
312 2003-03-01  Tim Josling  <tej@melbpc.org.au>
313
314         Name clashes with rtl.h fixed.
315
316         * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
317         tl_RETURN.
318
319         * parse.y: Ditto.
320
321 2003-02-24  Tim Josling  <tej@melbpc.org.au>
322
323         * parse.y (my_yylex): New - ensure lexer time is charged to
324         TV_LEX.
325         (yylex): redefine as invocation of my_yylex which then calls
326         flex-generated yylex.
327         (timevar.h): include.
328
329 2003-02-23  Tim Josling  <tej@melbpc.org.au>
330
331         Fix garbage collection, add more error checking, force GC always.
332
333         * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
334         (treelang/treetree.o): Depend on  treelang/parse.h
335
336         * lex.l: include "treetree.h"
337
338         * lex.l (update_yylval): Allocate string using get_string so GC
339         works.
340
341         * parse.y (function_prototype): Set category correctly so GC works.
342         (function): Set category in search so checking works.
343         (function_invocation): Ditto.
344         (variable_ref): Ditto.
345
346         * tree1.c (lookup_tree_name): Call sanity_check for passed
347         production and associated token and for symbol table entries.
348
349         * tree1.c (sanity_check): New, basic check that struct is valid.
350
351         * treelang.h: Prototype for sanity_check.
352
353 2003-01-27  Tim Josling  <tej@melbpc.org.au>
354
355         * treetree.c (treelang_init_decl_processing): Change memory
356         allocation to use GC.
357
358 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
359
360         * treelang.texi: Update to GFDL 1.2.
361
362 2003-01-26  Michael Matz  <matz@suse.de>
363
364         * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
365
366 2003-01-14  Andreas Jaeger  <aj@suse.de>
367
368         * Make-lang.in (treelang.install-info): Depend only on info files
369         if BUILD_INFO is set.  Fix install rules.
370         (treelang.): New.
371
372 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
373
374         * Make-lang.in (treelang.install.common.done,
375         treelang.install-info, treelang.uninstall): Prepend
376         $(DESTDIR) to destination paths in all (un)installation
377         commands.
378
379 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
380
381         * treelang.texi: Use @copying.
382
383 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
384
385         * treelang.texi: Include gcc-common.texi.
386         * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
387         Depend on gcc-common.texi.  Add other missing dependencies.
388         (treelang.dvi): Use texi2dvi.
389
390 2002-12-22  Joseph S. Myers  <jsm@polyomino.org.uk>
391
392         * treelang.texi: Use @ifnottex instead of @ifinfo.
393
394 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
395
396         * lex.l: Move "%{" below copyright notice; get rid of "/*"
397         embedded in comment.  Do not #undef IN_GCC; do not include
398         stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
399         Do include coretypes.h and tm.h.
400         * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
401         and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
402         ansidecl.h. Do include coretypes.h and tm.h.
403         * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
404         stdarg.h, string.h, or stdio.h.  Do include coretypes.h and tm.h.
405         * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
406         errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
407         or ansidecl.h.  Do include coretypes.h and tm.h.
408         * Make-lang.in: Update dependencies.
409
410 2002-09-09  Tim Josling  <tej@melbpc.org.au>
411
412         * treetree.c (objc_is_id): New.
413
414 2002-08-16  Tim Josling  <tej@melbpc.org.au>
415
416         Remove variables and functions now defined elsewhere.
417
418         * treetree.c (maybe_objc_comptypes): Remove.
419         (warn_format, warn_format_y2k, warn_format_extra_args,
420         warn_format_nonliteral, warn_format_security,
421         warn_format_zero_length): Remove.
422         (maybe_building_objc_message_expr): Remove.
423         (cpp_post_options): Remove.
424         (maybe_objc_check_decl): Remove.
425         (integer_types): Remove.
426
427
428 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
429
430         * treelang.c: Remove cpp_post_options.
431
432 2002-08-13  Tim Josling  <tej@melbpc.org.au>
433
434         * parse.y: Provide dummy definition of rtx for use by config.h.
435         * Make-lang.in (treetree.o): Remove dependency on non-existent
436         gt-treelang-treelang.h.
437         (gt-treelang-treelang.h): Remove.
438
439 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
440
441         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
442
443 2002-07-11  Tim Josling  <tej@melbpc.org.au>
444
445         Remove front end hard coding from gengtype.c.
446
447         * config-lang.in (gtfiles): Add files needed for this front
448         end.
449
450 2002-07-09  Tim Josling  <tej@melbpc.org.au>
451
452         Support new attributes regime (Fix for PR c++/7099).
453
454         * treetree.c (handle_format_attribute): Return NULL_TREE instead
455         of aborting.
456         (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
457         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
458         LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
459
460 2002-06-21  Andreas Jaeger  <aj@suse.de>
461
462         * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
463         treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
464
465 2002-06-19  Paolo Bonzini <bonzini@gnu.org>
466
467         * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
468         than STATIC.
469
470 2002-06-10  Tim Josling  <tej@melbpc.org.au>
471
472         Cleanup
473
474         * Make-lang.in (check-treelang). Add. Remove direct dependency of
475         'check' on 'treelang.check' as redundant.
476
477         PCH Garbage collection regime (gengtypes.c) phase 1.
478
479         * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
480         gt-treelang-treelang.h gtype-treelang.h.
481         (gt-treelang-tree1.h) Depend on s-gtype.
482         (gt-treelang-treelang.h) Depend on s-gtype.
483         (gtype-treelang.h) Depend on s-gtype.
484
485         * config-lang.in (gtfiles): Define.
486
487         * lex.l (main): Remove '#if 0' dead code.
488         (main): Move undef of IN_GCC so define of tree typedef works.
489         (all): Replace token and production by prod_token_parm_item.
490
491         * parse.y
492         (all): Replace token and production by prod_token_parm_item.
493
494         * tree1.c (main): Remove include of "output.h".
495         (symbol_table): Add GTY details.
496         (symbol_table_ggc): Remove.
497         (treelang_init): Remove root definitions for garbage collection.
498         (mark_production_used): Remove.
499         (mark_token_used): Remove.
500         (main, at end): include generated garage collection routines.
501
502         * treelang.h (category_enum ): Add parameter_category.
503         (all): Replace token and production and parameters by union
504         prod_token_parm_item containing production_part, token_part,
505         parameter_part.
506         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
507         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
508         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
509         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
510         treetree.h.
511
512         * treetree.c
513         (tm_p.h): Do not include.
514         (ansidecl.h): Move include after config.h.
515         (treelang.h): Include it.
516         (ADDROOT): Remove.
517         (all): Replace token, production and parameter by prod_token_parm_item.
518         (tree_parameter_list): Move to treelang.h as part of
519         prod_token_parm_item.
520         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
521         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
522         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
523         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
524         treelang.h.
525
526 2002-05-19  Tim Josling  <tej@melbpc.org.au>
527
528         * treetree.c (warn_format_zero_length): Add.
529
530 2002-05-14  Tim Josling  <tej@melbpc.org.au>
531
532         * Make-lang.in: Fix build for .info files, add target for manpages.
533         A bug report and a suggested patch came from Magnus Fromreide
534         <magfr@lysator.liu.se>.
535
536 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
537
538         * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
539
540 2002-05-11  Tim Josling  <tej@melbpc.org.au>
541
542         * treetree.c: (cpp_define) Add.
543         (cpp_get_callbacks) Add.
544
545 2002-05-07  Tim Josling  <tej@melbpc.org.au>
546
547         * treetree.c: (cpp_get_options) Add.
548
549 2002-05-06  Tim Josling  <tej@melbpc.org.au>
550
551         * .cvsignore: Add.
552
553 2002-05-05  Tim Josling  <tej@melbpc.org.au>
554
555         * Updated for gcc3.2 experimental. Major changes throughout.
556
557 2002-03-31  Tim Josling  <tej@melbpc.org.au>
558
559         * Make-lang.in: Changes so build and check work more reliably
560
561 2001-07-30  Tim Josling  <tej@melbpc.org.au>
562
563         * root.texi: remove
564         * treelang.texi: updates based on feedback
565
566 2001-06-11  Tim Josling  <tej@melbpc.org.au>
567
568         * all (all) Revamp code to conform to GCC coding standards, fix
569         typos in texi files.
570
571 2001-05-11  Tim Josling  <tej@melbpc.org.au>
572
573         Create the new language.