OSDN Git Service

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