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