OSDN Git Service

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