1 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
5 * treelang/Make-lang.in: Updates dependencies.
7 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
10 * parse.y (parameters_opt): Add semicolon at the end.
12 2005-04-29 Tom Tromey <tromey@redhat.com>
14 * treetree.c (poplevel): Updated for change to build_block.
16 2005-04-23 DJ Delorie <dj@redhat.com>
18 * parse.y: Adjust warning() callers.
20 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
22 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
24 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
27 * lang-spec.c: Simplify @treelang to what the other
30 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
32 * treelang/treelang.texi: Fix typos.
33 * treelang/treetree.c: Fix comment typos.
35 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
37 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
38 tree_lang_truthvalue_conversion): Remove.
39 * tree-convert.c: Don't call truthvalue_conversion.
41 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
43 * treetree.c (tree_code_if_start): Use fold_buildN.
44 (tree_code_create_variable): Likewise.
45 (tree_code_generate_return): Likewise.
46 (tree_code_get_expression): Likewise.
47 (tree_code_add_parameter): Likewise.
49 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
51 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
54 2005-03-15 Zack Weinberg <zack@codesourcery.com>
56 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
58 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
61 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
64 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
66 * treelang.texi: Fix a typo.
68 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
70 * parse.y (function_invocation, variable-ref, make_plus_expression):
71 Pass location to tree_code_get_expression.
72 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
73 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
74 set EXPR_LOCATION on ret1.
75 * treetree.h (tree_code_get_expression): Take the location of the
76 expression as an argument.
78 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
80 * treelang.texi: Treelang does have warnings.
81 * treetree.c (tree_code_create_function_prototype): Don't set
82 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
83 as few times as needed on the function declaration.
84 (tree_code_create_function_initial): Don't set TREE_USED,
85 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
86 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
87 (tree_code_get_expression): Set TREE_USED for variable references
90 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
92 * parse.y: Do comparisons as the type of the first expression.
93 * treetree.c (tree_code_get_integer_value): Build integer constants
96 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
98 * Make-lang.in: Remove commented out code.
99 * lang-specs.h: Always pass -dumpbase to tree1.
101 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
103 * treelang.texi: Remove extra contribution notice.
104 Split up some run-on sentences. Document function parameters
105 as optional. Indicate automatic variables can now be at any scope.
106 Mention literals are only signed if they are preceded by a unary
107 plus or minus. Clarify interoperability with C.
109 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
111 * treelang.texi: Fix whitespacing.
113 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
116 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
117 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
118 rest_of_decl_compilation on static variables.
119 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
122 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
125 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
126 Move function parameters check from ...
127 (function): ...Here. Update call to tree_code_create_function_initial.
128 (function_invocation): Use expressions_with_commas_opt instead of
129 expressions_with_commas.
130 (expressions_with_commas_opt): New rule.
131 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
132 for function parameters.
133 (tree_code_create_function_initial): Remove PARMS parameter.
134 Don't create PARM_DECLs for function parameters.
135 * treetree.h (tree_code_create_function_initial): Remove PARMS
138 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
140 * parse.y: Update copyright.
142 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
144 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
145 scalar integer types.
147 2005-02-09 Richard Henderson <rth@redhat.com>
149 * treetree.c (treelang_init_decl_processing): Call
150 build_common_builtin_nodes.
152 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
154 * treelang.texi: Don't use local treelang version number. Don't
155 give last update date.
157 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
159 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
161 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
163 * parse.y: Reformat comments.
164 * treetree.c: Likewise.
165 * treetree.h: Likewise.
167 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
169 * treetree.c (tree_code_generate_return): Wrap param declaration in
172 2004-10-05 Zack Weinberg <zack@codesourcery.com>
174 * parse.y: Add list of diagnostic messages to insulate
175 translation template from version of yacc/bison used to
178 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
181 * lex.l: Include input.h and errors.h
182 (lineno): New variable.
183 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
185 Set column position with LINEMAP_POSITION_FOR_COLUMN.
186 Use error instead of fprintf.
187 Set input_location with the value returned by linemap_start_line when
188 USE_MAPPED_LOCATION is defined.
189 (dump_lex_value): Use LOCATION_LINE.
190 * parse.y: Include errors.h.
191 Use error and warning instead of fprintf.
192 (return): Move exp to rule scope and always set to $2. Test against
194 (init): Set $$ to $2.
195 (print_token): Use LOCATION_LINE.
196 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
197 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
199 (treelang_parse_file): Always start at line one.
200 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
202 Leave main_input_filename when done parsing the input.
203 (insert_tree_name): Use error instead of fprintf.
204 * treetree.c (tree_code_get_expression): Wrap long line.
205 (tree_mark_addressable): Use %qD to print out DECLs.
207 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
209 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
211 * treetree.c: Likewise.
213 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
215 * lex.l: Remove random whitespace.
216 * parse.y: Reformat copyright notice. Indent declarations.
217 Wrap long lines, unwrap short lines.
218 * tree1.c: Reformat copyright notice. Wrap long lines.
219 Remove random whitespace.
220 (lookup_tree_name): Use LOCATION_LINE.
221 * treetree.c: Reformat copyright notice. Wrap long lines.
222 Remove random whitespace.
224 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
226 * parse.y (ELSE): Set tok to $1.
227 * treelang.texi: Wrap comments in @r{}. Indent example comments.
228 Use gcc when refering to the command line or website. Update function
231 2004-10-01 Jan Hubicka <jh@suse.cz>
233 * treetree.c (treeland_expand_function): Update call of
234 tree_rest_of_compilation.
236 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
237 Zack Weinberg <zack@codesourcery.com>
239 * treetree.c: Update for new tree-class enumeration constants.
241 2004-09-15 Zack Weinberg <zack@codesourcery.com>
243 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
245 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
247 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
249 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
251 * treelang/treetree.c (treelang_init_decl_processing): Adjust
252 build_common_tree_nodes call.
254 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
256 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
258 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
260 * Make-lang.in (TREE_BE_LIBS): Remove.
261 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
263 * parse.y: Add variable_defs_opt before statements_opt.
264 Use tree_code_get_type instead of get_type_for_numeric_type.
266 (parameters_opt): New rule.
267 (function_prototype): Use parameters_opt.
268 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
269 (check_type_match): Use VOID_TYPE.
270 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
271 * tree1.c: Include version.h and cgraph.h
272 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
274 * treelang.h (item): Remove extraneous GTY.
275 * treetree.h (get_type_for_numeric_type): Remove.
276 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
277 function.h, and cgraph.h. Don't include rtl.h
278 (keep_level_p): Remove.
279 (tree_push_atomic_type_decl): Remove.
280 (get_type_for_numeric_type): Remove.
281 (tree_code_get_numeric_type): Remove.
282 (global_bindings_p): Make static.
283 (getdecls): Likewise.
284 (insert_block): Likewise.
285 (tree_code_if_start): Create a COND_EXPR and add it to the tree
286 instead of creating rtl.
287 (tree_code_if_else): Create a BIND_EXPR if any variables were created
289 (tree_code_end_if): Likewise.
290 (tree_code_create_function_prototype): Use tree_code_get_type.
291 Don't use SET_DECL_ASSEMBLER_NAME.
292 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
293 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
294 layout_decl on RESULT_DECL. Don't call rtl expand functions.
295 (tree_code_create_function_wrapup): Don't call rtl expand functions.
296 Create a BIND_EXPR for each function. Dump original and gimplified
297 copies of the function tree. Gimplify function.
298 (tree_code_create_variable): Use tree_code_get_type. Don't call
299 layout_decl or expand_decl. Fold CONVERT_EXPRs.
300 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
301 Add RETURN_EXPR to the current statement list. Don't call rtl expand
303 (tree_code_output_expression_statement): Append CODE to current
305 (tree_code_get_expression): Fold expressions. Build a pointer to
306 a FUNCTION_TYPE intead of the called functions return type.
307 (struct binding_level): Add statement list STMTS.
308 (getstmtlist): New Function.
309 (pushlevel): Make static. Allocate an empty statement list.
310 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
311 Don't use DECL_ASSEMBLER_NAME.
312 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
313 (treelang_init_decl_processing): Define basic types after unused types.
314 Don't call tree_push_atomic_type_decl.
315 (builtin_function): Don't call make_decl_rtl.
316 (treelang_expand_function). New Function.
318 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
320 * treetree.c (set_block): Remove.
321 (struct binding_level): Remove block_created_by_back_end.
322 (clear_binding_level): Likewise.
323 (tree_code_create_function_initial,
324 tree_code_create_function_wrapup): Call pushlevel and poplevel
325 directly rather than through hooks.
326 (poplevel): Don't handle block_created_by_back_end.
328 2004-04-07 Richard Henderson <rth@redhat.com>
330 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
332 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
334 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
337 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
339 * treelang.texi: Update link to "G++ and GCC".
341 2004-02-20 Richard Henderson <rth@redhat.com>
343 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
345 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
347 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
349 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
351 * Make-lang.in: Replace $(docdir) with doc.
352 (treelang.info, treelang.srcinfo): New rules.
353 (treelang.man, treelang.man): Dummy entries.
355 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
357 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
358 (treelang/parse.o, treelang/lex.o): Look for sources in build
359 directory. Use implicit rule.
360 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
362 (treelang.srcextra): Copy above back to source directory if requested.
364 2004-01-07 Zack Weinberg <zack@codesourcery.com>
366 * parse.y (yyerror): Mark the definition static.
368 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
370 * lex.l: Add \t as a whitespace character.
371 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
373 * treelang.texi (What is GNU Treelang?): Fix a typo.
374 (Lexical Syntax): Create an itemize list of keywords. Add commas to
375 paragraph defining names.
377 2003-11-26 Jason Merrill <jason@redhat.com>
379 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
380 directory and TAGS files that include them for each front end.
382 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
384 * .cvsignore: Delete.
386 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
388 * Make-lang.in (treelang.extraclean): Delete.
390 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
392 * Make-lang.in: Remove obsolete comment.
394 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
396 * Make-lang.in (dvi): Move targets to $(docobjdir).
397 (treelang.dvi): Simplify rule and adjust target.
398 (treelang.info): Simplify rule.
399 (parse.o): Correct dependencies.
400 (TREE_EXE): Delete doubled suffix append.
402 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
404 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
407 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
409 * Make-lang.in (parse.o): Honor $(parsedir).
412 (parse.c, parse.h): Likewise.
413 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
416 2003-10-20 Mark Mitchell <mark@codesourcery.com>
418 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
421 * Make-lang.in (info): Use docobjdir.
422 ($(srcdir)/treelang/treelang.info): Replace with ...
423 ($(docobjdir)/treelang/treelang.info): ... this.
424 (install-info): New target.
426 2003-10-12 Andreas Jaeger <aj@suse.de>
428 * Make-lang.in (treelang.install-info): Remove reference to
430 (treelang.): Removed.
432 2003-10-06 Mark Mitchell <mark@codesourcery.com>
434 * Make-lang.in (treelang.info): Replace with ...
436 * Make-lang.in (treelang.dvi): Replace with ...
439 2003-09-21 Richard Henderson <rth@redhat.com>
441 * treetree.c: Revert.
443 2003-09-21 Richard Henderson <rth@redhat.com>
445 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
448 2003-07-28 Andreas Jaeger <aj@suse.de>
450 * treetree.c: Convert remaining K&R prototypes to ISO C90.
453 * tree-convert.c: Likewise.
455 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
457 * treetree.c: Remove unnecessary casts.
459 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
461 * lang-options.h: Remove.
462 * lang.opt: Document some options. Remove --help.
463 * tree1.c (treelang_handle_option): Remove OPT__help case.
465 2003-07-12 Andreas Jaeger <aj@suse.de>
467 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
469 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
471 * Make-lang.in: Update.
472 * tree1.c: Don't include c-common.h.
473 (c_language): Remove.
475 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
476 Steven Bosscher <steven@gcc.gnu.org>
478 * tree-convert.c: New file.
479 * treetree.c: Don't include c-tree.h. Include target.h.
480 (struct lang_identifier, union lang_tree_node, struct lang_type,
481 struct lang_function): New, minimal language-specific datastructs.
482 (tree_lang_truthvalue_conversion, tree_mark_addressable,
483 tree_lang_type_for_size, tree_lang_type_for_mode,
484 tree_lang_unsigned_type, tree_lang_signed_type,
485 tree_lang_signed_or_unsigned): New functions.
486 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
487 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
488 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
489 tree_push_atomic_type_decl): New functions.
490 (struct resword, struct reswords): Remove.
491 * Make-lang.in: Update. Don't depend on C front end objects.
492 * config-lang.in: Likewise.
494 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
496 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
497 tree_code_if_end, tree_code_create_function_initial,
498 tree_code_create_function_wrapup, tree_code_generate_return,
499 tree_code_output_expression_statement): Adjust emit_line_note
502 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
504 * Make-lang.in: Replace PWD with PWD_COMMAND.
506 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
508 * tree1.c (treelang_init_options): Update prototype.
509 * treelang.h (treelang_init_options): Update prototype.
511 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
513 * Make-lang.in: Update.
514 * tree1.c: Include c-common.h. Define c_language.
516 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
518 * treetree.c (tree_code_create_function_wrapup): Adjust
519 expand_function_end call.
521 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
523 * treetree.c (build_stmt): Remove VPARAMS.
524 (pedwarn_c99): Likewise.
526 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
528 * lang.opt: Declare Treelang. Update.
529 * tree1.c (treelang_init_options): Update.
531 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
533 * treetree.c (tree_code_create_function_initial): Adjust
534 init_function_start call.
536 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
538 * Make-lang.in: Update to use options.c and options.h.
539 * tree1.c: Include options.h not t-options.h.
540 (treelang_init_options): New.
541 (treelang_handle_option): Abort on unrecognized switch.
542 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
543 * treetree.h (treelang_init_options): New.
545 2003-06-12 Andreas Jaeger <aj@suse.de>
547 * treetree.c: Remove cl_options-count and cl_options.
549 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
551 * Make-lang.in: Update for option handling.
553 * tree1.c: Include opts.h and t-options.h.
554 (treelang_decode_option): Remove.
555 (treelang_handle_option): New.
556 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
557 (LANG_HOOKS_HANDLE_OPTION): Override.
558 * treetree.h (treelang_decode_option): Remove.
559 (treelang_handle_option): New.
561 2003-06-08 Andreas Jaeger <aj@suse.de>
563 * Make-lang.in: Update.
564 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
566 2003-06-08 Tim Josling <tej@melbpc.org.au>
568 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
570 2003-06-05 Jan Hubicka <jh@suse.cz>
572 * Make-lang.in: Add support for stageprofile and stagefeedback
574 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
576 * treetree.c (reswords): Remove __bounded__, __unbounded__.
578 2003-05-09 Tim Josling <tej@melbpc.org.au>
580 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
581 to link (needed by some front ends such as PPC).
583 * treetree.c (tree_code_create_function_initial): Fix long line.
584 Initialize tree_code_int_size and tree_code_char_size to
586 (tree_code_get_numeric_type): Add check that size1 parameter is
589 * parse.y: Fix extra long lines in prototypes.
591 * treelang.h: Fix extra long lines in macro definitions.
593 2003-05-07 Zack Weinberg <zack@codesourcery.com>
595 * Make-lang.in: Set -Wno-error for treelang/lex.o.
597 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
599 * Make-lang.in (treelang/tree1.o): Depends on input.h
600 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
601 * treelang.h: #include input.h.
603 (struct token_part): Remove lineno, add location.
604 * lex.l (next_tree_lineno): Remove.
605 (update_lineno_charno): Adjust.
606 (dump_lex_value): Adjust.
607 * parse.y (variable_def, function_prototype, function, statement,
608 if_statement, return, function_invocation, variable_ref): Adjust.
609 (print_token, yyerror, ensure_not_void): Adjust.
610 tree1.c (in_fname): Remove.
611 (treelang_init): Setup input_location.
612 (lookup_tree_name): Adjust.
613 (insert_tree_name): Adjust.
614 * treetree.c (tree_code_if_start): Replace filename and lineno
615 parms with loc. Adjust.
616 (tree_code_if_else, tree_code_if_end,
617 tree_code_create_function_prototype,
618 tree_code_create_function_initial,
619 tree_code_create_function_wrapup, tree_code_create_variable,
620 tree_code_output_expression_statement): Likewise.
621 * treetree.h (tree_code_if_start): Replace filename and lineno
623 (tree_code_if_else, tree_code_if_end,
624 tree_code_create_function_prototype,
625 tree_code_create_function_initial,
626 tree_code_create_function_wrapup, tree_code_create_variable,
627 tree_code_output_expression_statement): Likewise.
629 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
631 * tree1.c (treelang_init): Rename lineno to input_line.
633 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
635 * parse.y (make_plus_expression): New function.
636 (expression production): Use make_plus_expression for PLUS,
637 MINUS, ASSIGN and EQUALS.
638 * tree1.c (treelang_decode_option): Don't fall through to
639 options that start with a different character when an option
642 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
644 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
645 * treetree.c: Do not #include parse.h.
647 2003-03-21 Andreas Jaeger <aj@suse.de>
649 * treetree.c (cpp_create_reader): Follow prototype change in
652 2003-03-17 Andreas Jaeger <aj@suse.de>
654 * Make-lang.in (treelang.tags): Remove duplicate entry.
656 2003-03-15 Andreas Jaeger <aj@suse.de>
658 * treetree.c (cpp_handle_option): Remove.
660 2003-03-13 Andreas Jaeger <aj@suse.de>
662 * Make-lang.in (tree1$(exeext)): Fix previous patch.
664 2003-03-12 Andreas Jaeger <aj@suse.de>
666 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
668 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
670 * tree1.c (in_fname): Fix type.
671 (treelang_init): Update prototype and use of in_fname.
672 * treelang.h (in_fname): Fix type.
673 * treetree.c (tree_code_if_start, tree_code_if_else,
674 tree_code_if_end, tree_code_create_function_prototype,
675 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
676 tree_code_create_variable, tree_code_output_expression_statement)
677 : Fix prototypes and use of filenames.
678 * treetree.h: Similarly.
680 2003-03-05 Andreas Jaeger <aj@suse.de>
682 * treetree.c (init_c_lex): Follow change to c-common.h.
684 2003-03-04 Tom Tromey <tromey@redhat.com>
686 * Make-lang.in (treelang.tags): New target.
688 2003-03-01 Tim Josling <tej@melbpc.org.au>
690 Name clashes with rtl.h fixed.
692 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
697 2003-02-24 Tim Josling <tej@melbpc.org.au>
699 * parse.y (my_yylex): New - ensure lexer time is charged to
701 (yylex): redefine as invocation of my_yylex which then calls
702 flex-generated yylex.
703 (timevar.h): include.
705 2003-02-23 Tim Josling <tej@melbpc.org.au>
707 Fix garbage collection, add more error checking, force GC always.
709 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
710 (treelang/treetree.o): Depend on treelang/parse.h
712 * lex.l: include "treetree.h"
714 * lex.l (update_yylval): Allocate string using get_string so GC
717 * parse.y (function_prototype): Set category correctly so GC works.
718 (function): Set category in search so checking works.
719 (function_invocation): Ditto.
720 (variable_ref): Ditto.
722 * tree1.c (lookup_tree_name): Call sanity_check for passed
723 production and associated token and for symbol table entries.
725 * tree1.c (sanity_check): New, basic check that struct is valid.
727 * treelang.h: Prototype for sanity_check.
729 2003-01-27 Tim Josling <tej@melbpc.org.au>
731 * treetree.c (treelang_init_decl_processing): Change memory
732 allocation to use GC.
734 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
736 * treelang.texi: Update to GFDL 1.2.
738 2003-01-26 Michael Matz <matz@suse.de>
740 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
742 2003-01-14 Andreas Jaeger <aj@suse.de>
744 * Make-lang.in (treelang.install-info): Depend only on info files
745 if BUILD_INFO is set. Fix install rules.
748 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
750 * Make-lang.in (treelang.install.common.done,
751 treelang.install-info, treelang.uninstall): Prepend
752 $(DESTDIR) to destination paths in all (un)installation
755 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
757 * treelang.texi: Use @copying.
759 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
761 * treelang.texi: Include gcc-common.texi.
762 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
763 Depend on gcc-common.texi. Add other missing dependencies.
764 (treelang.dvi): Use texi2dvi.
766 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
768 * treelang.texi: Use @ifnottex instead of @ifinfo.
770 2002-11-30 Zack Weinberg <zack@codesourcery.com>
772 * lex.l: Move "%{" below copyright notice; get rid of "/*"
773 embedded in comment. Do not #undef IN_GCC; do not include
774 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
775 Do include coretypes.h and tm.h.
776 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
777 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
778 ansidecl.h. Do include coretypes.h and tm.h.
779 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
780 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
781 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
782 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
783 or ansidecl.h. Do include coretypes.h and tm.h.
784 * Make-lang.in: Update dependencies.
786 2002-09-09 Tim Josling <tej@melbpc.org.au>
788 * treetree.c (objc_is_id): New.
790 2002-08-16 Tim Josling <tej@melbpc.org.au>
792 Remove variables and functions now defined elsewhere.
794 * treetree.c (maybe_objc_comptypes): Remove.
795 (warn_format, warn_format_y2k, warn_format_extra_args,
796 warn_format_nonliteral, warn_format_security,
797 warn_format_zero_length): Remove.
798 (maybe_building_objc_message_expr): Remove.
799 (cpp_post_options): Remove.
800 (maybe_objc_check_decl): Remove.
801 (integer_types): Remove.
804 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
806 * treelang.c: Remove cpp_post_options.
808 2002-08-13 Tim Josling <tej@melbpc.org.au>
810 * parse.y: Provide dummy definition of rtx for use by config.h.
811 * Make-lang.in (treetree.o): Remove dependency on non-existent
812 gt-treelang-treelang.h.
813 (gt-treelang-treelang.h): Remove.
815 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
817 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
819 2002-07-11 Tim Josling <tej@melbpc.org.au>
821 Remove front end hard coding from gengtype.c.
823 * config-lang.in (gtfiles): Add files needed for this front
826 2002-07-09 Tim Josling <tej@melbpc.org.au>
828 Support new attributes regime (Fix for PR c++/7099).
830 * treetree.c (handle_format_attribute): Return NULL_TREE instead
832 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
833 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
834 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
836 2002-06-21 Andreas Jaeger <aj@suse.de>
838 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
839 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
841 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
843 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
846 2002-06-10 Tim Josling <tej@melbpc.org.au>
850 * Make-lang.in (check-treelang). Add. Remove direct dependency of
851 'check' on 'treelang.check' as redundant.
853 PCH Garbage collection regime (gengtypes.c) phase 1.
855 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
856 gt-treelang-treelang.h gtype-treelang.h.
857 (gt-treelang-tree1.h) Depend on s-gtype.
858 (gt-treelang-treelang.h) Depend on s-gtype.
859 (gtype-treelang.h) Depend on s-gtype.
861 * config-lang.in (gtfiles): Define.
863 * lex.l (main): Remove '#if 0' dead code.
864 (main): Move undef of IN_GCC so define of tree typedef works.
865 (all): Replace token and production by prod_token_parm_item.
868 (all): Replace token and production by prod_token_parm_item.
870 * tree1.c (main): Remove include of "output.h".
871 (symbol_table): Add GTY details.
872 (symbol_table_ggc): Remove.
873 (treelang_init): Remove root definitions for garbage collection.
874 (mark_production_used): Remove.
875 (mark_token_used): Remove.
876 (main, at end): include generated garage collection routines.
878 * treelang.h (category_enum ): Add parameter_category.
879 (all): Replace token and production and parameters by union
880 prod_token_parm_item containing production_part, token_part,
882 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
883 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
884 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
885 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
889 (tm_p.h): Do not include.
890 (ansidecl.h): Move include after config.h.
891 (treelang.h): Include it.
893 (all): Replace token, production and parameter by prod_token_parm_item.
894 (tree_parameter_list): Move to treelang.h as part of
895 prod_token_parm_item.
896 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
897 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
898 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
899 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
902 2002-05-19 Tim Josling <tej@melbpc.org.au>
904 * treetree.c (warn_format_zero_length): Add.
906 2002-05-14 Tim Josling <tej@melbpc.org.au>
908 * Make-lang.in: Fix build for .info files, add target for manpages.
909 A bug report and a suggested patch came from Magnus Fromreide
910 <magfr@lysator.liu.se>.
912 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
914 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
916 2002-05-11 Tim Josling <tej@melbpc.org.au>
918 * treetree.c: (cpp_define) Add.
919 (cpp_get_callbacks) Add.
921 2002-05-07 Tim Josling <tej@melbpc.org.au>
923 * treetree.c: (cpp_get_options) Add.
925 2002-05-06 Tim Josling <tej@melbpc.org.au>
929 2002-05-05 Tim Josling <tej@melbpc.org.au>
931 * Updated for gcc3.2 experimental. Major changes throughout.
933 2002-03-31 Tim Josling <tej@melbpc.org.au>
935 * Make-lang.in: Changes so build and check work more reliably
937 2001-07-30 Tim Josling <tej@melbpc.org.au>
940 * treelang.texi: updates based on feedback
942 2001-06-11 Tim Josling <tej@melbpc.org.au>
944 * all (all) Revamp code to conform to GCC coding standards, fix
947 2001-05-11 Tim Josling <tej@melbpc.org.au>
949 Create the new language.