OSDN Git Service

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