OSDN Git Service

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