OSDN Git Service

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