OSDN Git Service

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