OSDN Git Service

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