1 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
3 * Make-lang.in (treelang/tree1.o): Depends on input.h
4 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
5 * treelang.h: #include input.h.
7 (struct token_part): Remove lineno, add location.
8 * lex.l (next_tree_lineno): Remove.
9 (update_lineno_charno): Adjust.
10 (dump_lex_value): Adjust.
11 * parse.y (variable_def, function_prototype, function, statement,
12 if_statement, return, function_invocation, variable_ref): Adjust.
13 (print_token, yyerror, ensure_not_void): Adjust.
14 tree1.c (in_fname): Remove.
15 (treelang_init): Setup input_location.
16 (lookup_tree_name): Adjust.
17 (insert_tree_name): Adjust.
18 * treetree.c (tree_code_if_start): Replace filename and lineno
19 parms with loc. Adjust.
20 (tree_code_if_else, tree_code_if_end,
21 tree_code_create_function_prototype,
22 tree_code_create_function_initial,
23 tree_code_create_function_wrapup, tree_code_create_variable,
24 tree_code_output_expression_statement): Likewise.
25 * treetree.h (tree_code_if_start): Replace filename and lineno
27 (tree_code_if_else, tree_code_if_end,
28 tree_code_create_function_prototype,
29 tree_code_create_function_initial,
30 tree_code_create_function_wrapup, tree_code_create_variable,
31 tree_code_output_expression_statement): Likewise.
33 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
35 * tree1.c (treelang_init): Rename lineno to input_line.
37 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
39 * parse.y (make_plus_expression): New function.
40 (expression production): Use make_plus_expression for PLUS,
41 MINUS, ASSIGN and EQUALS.
42 * tree1.c (treelang_decode_option): Don't fall through to
43 options that start with a different character when an option
46 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
48 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
49 * treetree.c: Do not #include parse.h.
51 2003-03-21 Andreas Jaeger <aj@suse.de>
53 * treetree.c (cpp_create_reader): Follow prototype change in
56 2003-03-17 Andreas Jaeger <aj@suse.de>
58 * Make-lang.in (treelang.tags): Remove duplicate entry.
60 2003-03-15 Andreas Jaeger <aj@suse.de>
62 * treetree.c (cpp_handle_option): Remove.
64 2003-03-13 Andreas Jaeger <aj@suse.de>
66 * Make-lang.in (tree1$(exeext)): Fix previous patch.
68 2003-03-12 Andreas Jaeger <aj@suse.de>
70 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
72 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
74 * tree1.c (in_fname): Fix type.
75 (treelang_init): Update prototype and use of in_fname.
76 * treelang.h (in_fname): Fix type.
77 * treetree.c (tree_code_if_start, tree_code_if_else,
78 tree_code_if_end, tree_code_create_function_prototype,
79 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
80 tree_code_create_variable, tree_code_output_expression_statement)
81 : Fix prototypes and use of filenames.
82 * treetree.h: Similarly.
84 2003-03-05 Andreas Jaeger <aj@suse.de>
86 * treetree.c (init_c_lex): Follow change to c-common.h.
88 2003-03-04 Tom Tromey <tromey@redhat.com>
90 * Make-lang.in (treelang.tags): New target.
92 2003-03-01 Tim Josling <tej@melbpc.org.au>
94 Name clashes with rtl.h fixed.
96 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
101 2003-02-24 Tim Josling <tej@melbpc.org.au>
103 * parse.y (my_yylex): New - ensure lexer time is charged to
105 (yylex): redefine as invocation of my_yylex which then calls
106 flex-generated yylex.
107 (timevar.h): include.
109 2003-02-23 Tim Josling <tej@melbpc.org.au>
111 Fix garbage collection, add more error checking, force GC always.
113 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
114 (treelang/treetree.o): Depend on treelang/parse.h
116 * lex.l: include "treetree.h"
118 * lex.l (update_yylval): Allocate string using get_string so GC
121 * parse.y (function_prototype): Set category correctly so GC works.
122 (function): Set category in search so checking works.
123 (function_invocation): Ditto.
124 (variable_ref): Ditto.
126 * tree1.c (lookup_tree_name): Call sanity_check for passed
127 production and associated token and for symbol table entries.
129 * tree1.c (sanity_check): New, basic check that struct is valid.
131 * treelang.h: Prototype for sanity_check.
133 2003-01-27 Tim Josling <tej@melbpc.org.au>
135 * treetree.c (treelang_init_decl_processing): Change memory
136 allocation to use GC.
138 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
140 * treelang.texi: Update to GFDL 1.2.
142 2003-01-26 Michael Matz <matz@suse.de>
144 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
146 2003-01-14 Andreas Jaeger <aj@suse.de>
148 * Make-lang.in (treelang.install-info): Depend only on info files
149 if BUILD_INFO is set. Fix install rules.
152 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
154 * Make-lang.in (treelang.install.common.done,
155 treelang.install-info, treelang.uninstall): Prepend
156 $(DESTDIR) to destination paths in all (un)installation
159 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
161 * treelang.texi: Use @copying.
163 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
165 * treelang.texi: Include gcc-common.texi.
166 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
167 Depend on gcc-common.texi. Add other missing dependencies.
168 (treelang.dvi): Use texi2dvi.
170 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
172 * treelang.texi: Use @ifnottex instead of @ifinfo.
174 2002-11-30 Zack Weinberg <zack@codesourcery.com>
176 * lex.l: Move "%{" below copyright notice; get rid of "/*"
177 embedded in comment. Do not #undef IN_GCC; do not include
178 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
179 Do include coretypes.h and tm.h.
180 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
181 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
182 ansidecl.h. Do include coretypes.h and tm.h.
183 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
184 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
185 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
186 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
187 or ansidecl.h. Do include coretypes.h and tm.h.
188 * Make-lang.in: Update dependencies.
190 2002-09-09 Tim Josling <tej@melbpc.org.au>
192 * treetree.c (objc_is_id): New.
194 2002-08-16 Tim Josling <tej@melbpc.org.au>
196 Remove variables and functions now defined elsewhere.
198 * treetree.c (maybe_objc_comptypes): Remove.
199 (warn_format, warn_format_y2k, warn_format_extra_args,
200 warn_format_nonliteral, warn_format_security,
201 warn_format_zero_length): Remove.
202 (maybe_building_objc_message_expr): Remove.
203 (cpp_post_options): Remove.
204 (maybe_objc_check_decl): Remove.
205 (integer_types): Remove.
208 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
210 * treelang.c: Remove cpp_post_options.
212 2002-08-13 Tim Josling <tej@melbpc.org.au>
214 * parse.y: Provide dummy definition of rtx for use by config.h.
215 * Make-lang.in (treetree.o): Remove dependency on non-existent
216 gt-treelang-treelang.h.
217 (gt-treelang-treelang.h): Remove.
219 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
221 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
223 2002-07-11 Tim Josling <tej@melbpc.org.au>
225 Remove front end hard coding from gengtype.c.
227 * config-lang.in (gtfiles): Add files needed for this front
230 2002-07-09 Tim Josling <tej@melbpc.org.au>
232 Support new attributes regime (Fix for PR c++/7099).
234 * treetree.c (handle_format_attribute): Return NULL_TREE instead
236 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
237 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
238 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
240 2002-06-21 Andreas Jaeger <aj@suse.de>
242 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
243 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
245 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
247 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
250 2002-06-10 Tim Josling <tej@melbpc.org.au>
254 * Make-lang.in (check-treelang). Add. Remove direct dependency of
255 'check' on 'treelang.check' as redundant.
257 PCH Garbage collection regime (gengtypes.c) phase 1.
259 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
260 gt-treelang-treelang.h gtype-treelang.h.
261 (gt-treelang-tree1.h) Depend on s-gtype.
262 (gt-treelang-treelang.h) Depend on s-gtype.
263 (gtype-treelang.h) Depend on s-gtype.
265 * config-lang.in (gtfiles): Define.
267 * lex.l (main): Remove '#if 0' dead code.
268 (main): Move undef of IN_GCC so define of tree typedef works.
269 (all): Replace token and production by prod_token_parm_item.
272 (all): Replace token and production by prod_token_parm_item.
274 * tree1.c (main): Remove include of "output.h".
275 (symbol_table): Add GTY details.
276 (symbol_table_ggc): Remove.
277 (treelang_init): Remove root definitions for garbage collection.
278 (mark_production_used): Remove.
279 (mark_token_used): Remove.
280 (main, at end): include generated garage collection routines.
282 * treelang.h (category_enum ): Add parameter_category.
283 (all): Replace token and production and parameters by union
284 prod_token_parm_item containing production_part, token_part,
286 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
287 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
288 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
289 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
293 (tm_p.h): Do not include.
294 (ansidecl.h): Move include after config.h.
295 (treelang.h): Include it.
297 (all): Replace token, production and parameter by prod_token_parm_item.
298 (tree_parameter_list): Move to treelang.h as part of
299 prod_token_parm_item.
300 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
301 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
302 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
303 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
306 2002-05-19 Tim Josling <tej@melbpc.org.au>
308 * treetree.c (warn_format_zero_length): Add.
310 2002-05-14 Tim Josling <tej@melbpc.org.au>
312 * Make-lang.in: Fix build for .info files, add target for manpages.
313 A bug report and a suggested patch came from Magnus Fromreide
314 <magfr@lysator.liu.se>.
316 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
318 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
320 2002-05-11 Tim Josling <tej@melbpc.org.au>
322 * treetree.c: (cpp_define) Add.
323 (cpp_get_callbacks) Add.
325 2002-05-07 Tim Josling <tej@melbpc.org.au>
327 * treetree.c: (cpp_get_options) Add.
329 2002-05-06 Tim Josling <tej@melbpc.org.au>
333 2002-05-05 Tim Josling <tej@melbpc.org.au>
335 * Updated for gcc3.2 experimental. Major changes throughout.
337 2002-03-31 Tim Josling <tej@melbpc.org.au>
339 * Make-lang.in: Changes so build and check work more reliably
341 2001-07-30 Tim Josling <tej@melbpc.org.au>
344 * treelang.texi: updates based on feedback
346 2001-06-11 Tim Josling <tej@melbpc.org.au>
348 * all (all) Revamp code to conform to GCC coding standards, fix
351 2001-05-11 Tim Josling <tej@melbpc.org.au>
353 Create the new language.