OSDN Git Service

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