OSDN Git Service

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