OSDN Git Service

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