1 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
3 * treetree.c (tree_code_create_function_initial): Adjust
4 init_function_start call.
6 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
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.
15 2003-06-12 Andreas Jaeger <aj@suse.de>
17 * treetree.c: Remove cl_options-count and cl_options.
19 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
21 * Make-lang.in: Update for option handling.
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.
31 2003-06-08 Andreas Jaeger <aj@suse.de>
33 * Make-lang.in: Update.
34 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
36 2003-06-08 Tim Josling <tej@melbpc.org.au>
38 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
40 Thu Jun 5 18:33:40 CEST 2003 Jan Hubicka <jh@suse.cz>
42 * Make-lang.in: Add support for stageprofile and stagefeedback
44 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
46 * treetree.c (reswords): Remove __bounded__, __unbounded__.
48 2003-05-09 Tim Josling <tej@melbpc.org.au>
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).
53 * treetree.c (tree_code_create_function_initial): Fix long line.
54 Initialize tree_code_int_size and tree_code_char_size to
56 (tree_code_get_numeric_type): Add check that size1 parameter is
59 * parse.y: Fix extra long lines in prototypes.
61 * treelang.h: Fix extra long lines in macro definitions.
63 2003-05-07 Zack Weinberg <zack@codesourcery.com>
65 * Make-lang.in: Set -Wno-error for treelang/lex.o.
67 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
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.
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
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.
99 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
101 * tree1.c (treelang_init): Rename lineno to input_line.
103 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
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
112 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
114 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
115 * treetree.c: Do not #include parse.h.
117 2003-03-21 Andreas Jaeger <aj@suse.de>
119 * treetree.c (cpp_create_reader): Follow prototype change in
122 2003-03-17 Andreas Jaeger <aj@suse.de>
124 * Make-lang.in (treelang.tags): Remove duplicate entry.
126 2003-03-15 Andreas Jaeger <aj@suse.de>
128 * treetree.c (cpp_handle_option): Remove.
130 2003-03-13 Andreas Jaeger <aj@suse.de>
132 * Make-lang.in (tree1$(exeext)): Fix previous patch.
134 2003-03-12 Andreas Jaeger <aj@suse.de>
136 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
138 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
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.
150 2003-03-05 Andreas Jaeger <aj@suse.de>
152 * treetree.c (init_c_lex): Follow change to c-common.h.
154 2003-03-04 Tom Tromey <tromey@redhat.com>
156 * Make-lang.in (treelang.tags): New target.
158 2003-03-01 Tim Josling <tej@melbpc.org.au>
160 Name clashes with rtl.h fixed.
162 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
167 2003-02-24 Tim Josling <tej@melbpc.org.au>
169 * parse.y (my_yylex): New - ensure lexer time is charged to
171 (yylex): redefine as invocation of my_yylex which then calls
172 flex-generated yylex.
173 (timevar.h): include.
175 2003-02-23 Tim Josling <tej@melbpc.org.au>
177 Fix garbage collection, add more error checking, force GC always.
179 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
180 (treelang/treetree.o): Depend on treelang/parse.h
182 * lex.l: include "treetree.h"
184 * lex.l (update_yylval): Allocate string using get_string so GC
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.
192 * tree1.c (lookup_tree_name): Call sanity_check for passed
193 production and associated token and for symbol table entries.
195 * tree1.c (sanity_check): New, basic check that struct is valid.
197 * treelang.h: Prototype for sanity_check.
199 2003-01-27 Tim Josling <tej@melbpc.org.au>
201 * treetree.c (treelang_init_decl_processing): Change memory
202 allocation to use GC.
204 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
206 * treelang.texi: Update to GFDL 1.2.
208 2003-01-26 Michael Matz <matz@suse.de>
210 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
212 2003-01-14 Andreas Jaeger <aj@suse.de>
214 * Make-lang.in (treelang.install-info): Depend only on info files
215 if BUILD_INFO is set. Fix install rules.
218 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
220 * Make-lang.in (treelang.install.common.done,
221 treelang.install-info, treelang.uninstall): Prepend
222 $(DESTDIR) to destination paths in all (un)installation
225 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
227 * treelang.texi: Use @copying.
229 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
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.
236 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
238 * treelang.texi: Use @ifnottex instead of @ifinfo.
240 2002-11-30 Zack Weinberg <zack@codesourcery.com>
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.
256 2002-09-09 Tim Josling <tej@melbpc.org.au>
258 * treetree.c (objc_is_id): New.
260 2002-08-16 Tim Josling <tej@melbpc.org.au>
262 Remove variables and functions now defined elsewhere.
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.
274 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
276 * treelang.c: Remove cpp_post_options.
278 2002-08-13 Tim Josling <tej@melbpc.org.au>
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.
285 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
287 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
289 2002-07-11 Tim Josling <tej@melbpc.org.au>
291 Remove front end hard coding from gengtype.c.
293 * config-lang.in (gtfiles): Add files needed for this front
296 2002-07-09 Tim Josling <tej@melbpc.org.au>
298 Support new attributes regime (Fix for PR c++/7099).
300 * treetree.c (handle_format_attribute): Return NULL_TREE instead
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.
306 2002-06-21 Andreas Jaeger <aj@suse.de>
308 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
309 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
311 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
313 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
316 2002-06-10 Tim Josling <tej@melbpc.org.au>
320 * Make-lang.in (check-treelang). Add. Remove direct dependency of
321 'check' on 'treelang.check' as redundant.
323 PCH Garbage collection regime (gengtypes.c) phase 1.
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.
331 * config-lang.in (gtfiles): Define.
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.
338 (all): Replace token and production by prod_token_parm_item.
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.
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,
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
359 (tm_p.h): Do not include.
360 (ansidecl.h): Move include after config.h.
361 (treelang.h): Include it.
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
372 2002-05-19 Tim Josling <tej@melbpc.org.au>
374 * treetree.c (warn_format_zero_length): Add.
376 2002-05-14 Tim Josling <tej@melbpc.org.au>
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>.
382 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
384 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
386 2002-05-11 Tim Josling <tej@melbpc.org.au>
388 * treetree.c: (cpp_define) Add.
389 (cpp_get_callbacks) Add.
391 2002-05-07 Tim Josling <tej@melbpc.org.au>
393 * treetree.c: (cpp_get_options) Add.
395 2002-05-06 Tim Josling <tej@melbpc.org.au>
399 2002-05-05 Tim Josling <tej@melbpc.org.au>
401 * Updated for gcc3.2 experimental. Major changes throughout.
403 2002-03-31 Tim Josling <tej@melbpc.org.au>
405 * Make-lang.in: Changes so build and check work more reliably
407 2001-07-30 Tim Josling <tej@melbpc.org.au>
410 * treelang.texi: updates based on feedback
412 2001-06-11 Tim Josling <tej@melbpc.org.au>
414 * all (all) Revamp code to conform to GCC coding standards, fix
417 2001-05-11 Tim Josling <tej@melbpc.org.au>
419 Create the new language.