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