1 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
3 * Make-lang.in: Update.
4 * tree1.c: Don't include c-common.h.
7 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
8 Steven Bosscher <steven@gcc.gnu.org>
10 * tree-convert.c: New file.
11 * treetree.c: Don't include c-tree.h. Include target.h.
12 (struct lang_identifier, union lang_tree_node, struct lang_type,
13 struct lang_function): New, minimal language-specific datastructs.
14 (tree_lang_truthvalue_conversion, tree_mark_addressable,
15 tree_lang_type_for_size, tree_lang_type_for_mode,
16 tree_lang_unsigned_type, tree_lang_signed_type,
17 tree_lang_signed_or_unsigned): New functions.
18 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
19 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
20 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
21 tree_push_atomic_type_decl): New functions.
22 (struct resword, struct reswords): Remove.
23 * Make-lang.in: Update. Don't depend on C front end objects.
24 * config-lang.in: Likewise.
26 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
28 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
29 tree_code_if_end, tree_code_create_function_initial,
30 tree_code_create_function_wrapup, tree_code_generate_return,
31 tree_code_output_expression_statement): Adjust emit_line_note
34 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
36 * Make-lang.in: Replace PWD with PWD_COMMAND.
38 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
40 * tree1.c (treelang_init_options): Update prototype.
41 * treelang.h (treelang_init_options): Update prototype.
43 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
45 * Make-lang.in: Update.
46 * tree1.c: Include c-common.h. Define c_language.
48 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
50 * treetree.c (tree_code_create_function_wrapup): Adjust
51 expand_function_end call.
53 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
55 * treetree.c (build_stmt): Remove VPARAMS.
56 (pedwarn_c99): Likewise.
58 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
60 * lang.opt: Declare Treelang. Update.
61 * tree1.c (treelang_init_options): Update.
63 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
65 * treetree.c (tree_code_create_function_initial): Adjust
66 init_function_start call.
68 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
70 * Make-lang.in: Update to use options.c and options.h.
71 * tree1.c: Include options.h not t-options.h.
72 (treelang_init_options): New.
73 (treelang_handle_option): Abort on unrecognized switch.
74 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
75 * treetree.h (treelang_init_options): New.
77 2003-06-12 Andreas Jaeger <aj@suse.de>
79 * treetree.c: Remove cl_options-count and cl_options.
81 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
83 * Make-lang.in: Update for option handling.
85 * tree1.c: Include opts.h and t-options.h.
86 (treelang_decode_option): Remove.
87 (treelang_handle_option): New.
88 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
89 (LANG_HOOKS_HANDLE_OPTION): Override.
90 * treetree.h (treelang_decode_option): Remove.
91 (treelang_handle_option): New.
93 2003-06-08 Andreas Jaeger <aj@suse.de>
95 * Make-lang.in: Update.
96 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
98 2003-06-08 Tim Josling <tej@melbpc.org.au>
100 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
102 Thu Jun 5 18:33:40 CEST 2003 Jan Hubicka <jh@suse.cz>
104 * Make-lang.in: Add support for stageprofile and stagefeedback
106 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
108 * treetree.c (reswords): Remove __bounded__, __unbounded__.
110 2003-05-09 Tim Josling <tej@melbpc.org.au>
112 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
113 to link (needed by some front ends such as PPC).
115 * treetree.c (tree_code_create_function_initial): Fix long line.
116 Initialize tree_code_int_size and tree_code_char_size to
118 (tree_code_get_numeric_type): Add check that size1 parameter is
121 * parse.y: Fix extra long lines in prototypes.
123 * treelang.h: Fix extra long lines in macro definitions.
125 2003-05-07 Zack Weinberg <zack@codesourcery.com>
127 * Make-lang.in: Set -Wno-error for treelang/lex.o.
129 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
131 * Make-lang.in (treelang/tree1.o): Depends on input.h
132 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
133 * treelang.h: #include input.h.
135 (struct token_part): Remove lineno, add location.
136 * lex.l (next_tree_lineno): Remove.
137 (update_lineno_charno): Adjust.
138 (dump_lex_value): Adjust.
139 * parse.y (variable_def, function_prototype, function, statement,
140 if_statement, return, function_invocation, variable_ref): Adjust.
141 (print_token, yyerror, ensure_not_void): Adjust.
142 tree1.c (in_fname): Remove.
143 (treelang_init): Setup input_location.
144 (lookup_tree_name): Adjust.
145 (insert_tree_name): Adjust.
146 * treetree.c (tree_code_if_start): Replace filename and lineno
147 parms with loc. Adjust.
148 (tree_code_if_else, tree_code_if_end,
149 tree_code_create_function_prototype,
150 tree_code_create_function_initial,
151 tree_code_create_function_wrapup, tree_code_create_variable,
152 tree_code_output_expression_statement): Likewise.
153 * treetree.h (tree_code_if_start): Replace filename and lineno
155 (tree_code_if_else, tree_code_if_end,
156 tree_code_create_function_prototype,
157 tree_code_create_function_initial,
158 tree_code_create_function_wrapup, tree_code_create_variable,
159 tree_code_output_expression_statement): Likewise.
161 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
163 * tree1.c (treelang_init): Rename lineno to input_line.
165 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
167 * parse.y (make_plus_expression): New function.
168 (expression production): Use make_plus_expression for PLUS,
169 MINUS, ASSIGN and EQUALS.
170 * tree1.c (treelang_decode_option): Don't fall through to
171 options that start with a different character when an option
174 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
176 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
177 * treetree.c: Do not #include parse.h.
179 2003-03-21 Andreas Jaeger <aj@suse.de>
181 * treetree.c (cpp_create_reader): Follow prototype change in
184 2003-03-17 Andreas Jaeger <aj@suse.de>
186 * Make-lang.in (treelang.tags): Remove duplicate entry.
188 2003-03-15 Andreas Jaeger <aj@suse.de>
190 * treetree.c (cpp_handle_option): Remove.
192 2003-03-13 Andreas Jaeger <aj@suse.de>
194 * Make-lang.in (tree1$(exeext)): Fix previous patch.
196 2003-03-12 Andreas Jaeger <aj@suse.de>
198 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
200 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
202 * tree1.c (in_fname): Fix type.
203 (treelang_init): Update prototype and use of in_fname.
204 * treelang.h (in_fname): Fix type.
205 * treetree.c (tree_code_if_start, tree_code_if_else,
206 tree_code_if_end, tree_code_create_function_prototype,
207 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
208 tree_code_create_variable, tree_code_output_expression_statement)
209 : Fix prototypes and use of filenames.
210 * treetree.h: Similarly.
212 2003-03-05 Andreas Jaeger <aj@suse.de>
214 * treetree.c (init_c_lex): Follow change to c-common.h.
216 2003-03-04 Tom Tromey <tromey@redhat.com>
218 * Make-lang.in (treelang.tags): New target.
220 2003-03-01 Tim Josling <tej@melbpc.org.au>
222 Name clashes with rtl.h fixed.
224 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
229 2003-02-24 Tim Josling <tej@melbpc.org.au>
231 * parse.y (my_yylex): New - ensure lexer time is charged to
233 (yylex): redefine as invocation of my_yylex which then calls
234 flex-generated yylex.
235 (timevar.h): include.
237 2003-02-23 Tim Josling <tej@melbpc.org.au>
239 Fix garbage collection, add more error checking, force GC always.
241 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
242 (treelang/treetree.o): Depend on treelang/parse.h
244 * lex.l: include "treetree.h"
246 * lex.l (update_yylval): Allocate string using get_string so GC
249 * parse.y (function_prototype): Set category correctly so GC works.
250 (function): Set category in search so checking works.
251 (function_invocation): Ditto.
252 (variable_ref): Ditto.
254 * tree1.c (lookup_tree_name): Call sanity_check for passed
255 production and associated token and for symbol table entries.
257 * tree1.c (sanity_check): New, basic check that struct is valid.
259 * treelang.h: Prototype for sanity_check.
261 2003-01-27 Tim Josling <tej@melbpc.org.au>
263 * treetree.c (treelang_init_decl_processing): Change memory
264 allocation to use GC.
266 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
268 * treelang.texi: Update to GFDL 1.2.
270 2003-01-26 Michael Matz <matz@suse.de>
272 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
274 2003-01-14 Andreas Jaeger <aj@suse.de>
276 * Make-lang.in (treelang.install-info): Depend only on info files
277 if BUILD_INFO is set. Fix install rules.
280 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
282 * Make-lang.in (treelang.install.common.done,
283 treelang.install-info, treelang.uninstall): Prepend
284 $(DESTDIR) to destination paths in all (un)installation
287 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
289 * treelang.texi: Use @copying.
291 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
293 * treelang.texi: Include gcc-common.texi.
294 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
295 Depend on gcc-common.texi. Add other missing dependencies.
296 (treelang.dvi): Use texi2dvi.
298 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
300 * treelang.texi: Use @ifnottex instead of @ifinfo.
302 2002-11-30 Zack Weinberg <zack@codesourcery.com>
304 * lex.l: Move "%{" below copyright notice; get rid of "/*"
305 embedded in comment. Do not #undef IN_GCC; do not include
306 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
307 Do include coretypes.h and tm.h.
308 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
309 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
310 ansidecl.h. Do include coretypes.h and tm.h.
311 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
312 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
313 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
314 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
315 or ansidecl.h. Do include coretypes.h and tm.h.
316 * Make-lang.in: Update dependencies.
318 2002-09-09 Tim Josling <tej@melbpc.org.au>
320 * treetree.c (objc_is_id): New.
322 2002-08-16 Tim Josling <tej@melbpc.org.au>
324 Remove variables and functions now defined elsewhere.
326 * treetree.c (maybe_objc_comptypes): Remove.
327 (warn_format, warn_format_y2k, warn_format_extra_args,
328 warn_format_nonliteral, warn_format_security,
329 warn_format_zero_length): Remove.
330 (maybe_building_objc_message_expr): Remove.
331 (cpp_post_options): Remove.
332 (maybe_objc_check_decl): Remove.
333 (integer_types): Remove.
336 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
338 * treelang.c: Remove cpp_post_options.
340 2002-08-13 Tim Josling <tej@melbpc.org.au>
342 * parse.y: Provide dummy definition of rtx for use by config.h.
343 * Make-lang.in (treetree.o): Remove dependency on non-existent
344 gt-treelang-treelang.h.
345 (gt-treelang-treelang.h): Remove.
347 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
349 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
351 2002-07-11 Tim Josling <tej@melbpc.org.au>
353 Remove front end hard coding from gengtype.c.
355 * config-lang.in (gtfiles): Add files needed for this front
358 2002-07-09 Tim Josling <tej@melbpc.org.au>
360 Support new attributes regime (Fix for PR c++/7099).
362 * treetree.c (handle_format_attribute): Return NULL_TREE instead
364 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
365 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
366 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
368 2002-06-21 Andreas Jaeger <aj@suse.de>
370 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
371 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
373 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
375 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
378 2002-06-10 Tim Josling <tej@melbpc.org.au>
382 * Make-lang.in (check-treelang). Add. Remove direct dependency of
383 'check' on 'treelang.check' as redundant.
385 PCH Garbage collection regime (gengtypes.c) phase 1.
387 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
388 gt-treelang-treelang.h gtype-treelang.h.
389 (gt-treelang-tree1.h) Depend on s-gtype.
390 (gt-treelang-treelang.h) Depend on s-gtype.
391 (gtype-treelang.h) Depend on s-gtype.
393 * config-lang.in (gtfiles): Define.
395 * lex.l (main): Remove '#if 0' dead code.
396 (main): Move undef of IN_GCC so define of tree typedef works.
397 (all): Replace token and production by prod_token_parm_item.
400 (all): Replace token and production by prod_token_parm_item.
402 * tree1.c (main): Remove include of "output.h".
403 (symbol_table): Add GTY details.
404 (symbol_table_ggc): Remove.
405 (treelang_init): Remove root definitions for garbage collection.
406 (mark_production_used): Remove.
407 (mark_token_used): Remove.
408 (main, at end): include generated garage collection routines.
410 * treelang.h (category_enum ): Add parameter_category.
411 (all): Replace token and production and parameters by union
412 prod_token_parm_item containing production_part, token_part,
414 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
415 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
416 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
417 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
421 (tm_p.h): Do not include.
422 (ansidecl.h): Move include after config.h.
423 (treelang.h): Include it.
425 (all): Replace token, production and parameter by prod_token_parm_item.
426 (tree_parameter_list): Move to treelang.h as part of
427 prod_token_parm_item.
428 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
429 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
430 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
431 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
434 2002-05-19 Tim Josling <tej@melbpc.org.au>
436 * treetree.c (warn_format_zero_length): Add.
438 2002-05-14 Tim Josling <tej@melbpc.org.au>
440 * Make-lang.in: Fix build for .info files, add target for manpages.
441 A bug report and a suggested patch came from Magnus Fromreide
442 <magfr@lysator.liu.se>.
444 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
446 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
448 2002-05-11 Tim Josling <tej@melbpc.org.au>
450 * treetree.c: (cpp_define) Add.
451 (cpp_get_callbacks) Add.
453 2002-05-07 Tim Josling <tej@melbpc.org.au>
455 * treetree.c: (cpp_get_options) Add.
457 2002-05-06 Tim Josling <tej@melbpc.org.au>
461 2002-05-05 Tim Josling <tej@melbpc.org.au>
463 * Updated for gcc3.2 experimental. Major changes throughout.
465 2002-03-31 Tim Josling <tej@melbpc.org.au>
467 * Make-lang.in: Changes so build and check work more reliably
469 2001-07-30 Tim Josling <tej@melbpc.org.au>
472 * treelang.texi: updates based on feedback
474 2001-06-11 Tim Josling <tej@melbpc.org.au>
476 * all (all) Revamp code to conform to GCC coding standards, fix
479 2001-05-11 Tim Josling <tej@melbpc.org.au>
481 Create the new language.