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