OSDN Git Service

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