OSDN Git Service

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