1 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
3 * treetree.c (tree_lang_signed_or_unsigned_type): Remove.
4 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
6 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
8 * Make-lang.in: Add install-pdf target as copied from
11 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
13 * treelang.texi: Standardize title page, remove version number
16 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
18 * treetree.c (builtin_function): Remove.
20 2006-10-10 Brooks Moses <bmoses@stanford.edu>
22 * Make-lang.in: Added "treelang.pdf" target support.
24 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
26 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
28 2006-06-17 Karl Berry <karl@gnu.org>
30 * treelang.texi (@dircategory): Use "Software development"
31 instead of "Programming", following the Free Software Directory.
33 2006-06-06 Mike Stump <mrs@apple.com>
35 * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid
36 installing during build.
38 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
40 * Make-lang.in: Rename htmldir to gcc_htmldir.
42 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
45 * Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
48 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
50 * Make-lang.in (treelang/treetree.o): Add dependency on
53 2006-04-22 Matthias Klose <doko@debian.org>
55 * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
57 2006-03-29 Carlos O'Donell <caros@codesourcery.com>
59 * Make-lang.in: Rename docdir to gcc_docdir.
61 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
63 * Make-lang.in (.phony): Remove TREELANG.
66 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
68 * spec.c (lang_specific_driver): Update copyright notice date.
70 2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
72 * spec.c (lang_specific_spec_functions): Remove.
74 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
76 * Make-lang.in (treelang.distdir): Remove.
78 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
80 * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
82 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
84 * Make-lang.in: Remove all dependencies on s-gtype.
86 2005-12-05 Richard Guenther <rguenther@suse.de>
88 * treetree.c (tree_code_if_start, tree_code_create_variable,
89 tree_code_generate_return, tree_code_get_expression,
90 tree_code_add_parameter): Use fold_convert where appropriate.
92 2005-11-07 James A. Morrison <phython@gcc.gnu.org>
95 * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
96 treelang_attribute_table.
97 (handle_attribute): New function.
98 (treelang_attribute_table): New attribute table.
100 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
102 * parse.y : Changed pointer declaration from "type* var" to "type *var"
103 Removed trailing space. Wrap long lines.
105 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
107 * parse.y : Fixed two compile warnings in "error" and "warning"
108 invocations. Removed trailing periods in messages. Decapitalized the
111 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
113 * tree-convert.c (convert): Use fold_build1 instead of
116 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
119 * Make-lang.in: Remove old testing cruft.
121 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
123 * all files: Update FSF address in copyright headers.
125 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
127 * parse.y (function_invocation): Reverse parameter list.
128 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
130 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
132 * treetree.c (tree_code_get_expression): Call build_function_call_expr
133 to build function calls.
135 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
137 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
139 * treelang/Make-lang.in: Updates dependencies.
141 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
144 * parse.y (parameters_opt): Add semicolon at the end.
146 2005-04-29 Tom Tromey <tromey@redhat.com>
148 * treetree.c (poplevel): Updated for change to build_block.
150 2005-04-23 DJ Delorie <dj@redhat.com>
152 * parse.y: Adjust warning() callers.
154 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
156 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
158 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
161 * lang-spec.c: Simplify @treelang to what the other
164 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
166 * treelang/treelang.texi: Fix typos.
167 * treelang/treetree.c: Fix comment typos.
169 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
171 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
172 tree_lang_truthvalue_conversion): Remove.
173 * tree-convert.c: Don't call truthvalue_conversion.
175 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
177 * treetree.c (tree_code_if_start): Use fold_buildN.
178 (tree_code_create_variable): Likewise.
179 (tree_code_generate_return): Likewise.
180 (tree_code_get_expression): Likewise.
181 (tree_code_add_parameter): Likewise.
183 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
185 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
188 2005-03-15 Zack Weinberg <zack@codesourcery.com>
190 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
192 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
195 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
198 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
200 * treelang.texi: Fix a typo.
202 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
204 * parse.y (function_invocation, variable-ref, make_plus_expression):
205 Pass location to tree_code_get_expression.
206 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
207 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
208 set EXPR_LOCATION on ret1.
209 * treetree.h (tree_code_get_expression): Take the location of the
210 expression as an argument.
212 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
214 * treelang.texi: Treelang does have warnings.
215 * treetree.c (tree_code_create_function_prototype): Don't set
216 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
217 as few times as needed on the function declaration.
218 (tree_code_create_function_initial): Don't set TREE_USED,
219 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
220 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
221 (tree_code_get_expression): Set TREE_USED for variable references
224 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
226 * parse.y: Do comparisons as the type of the first expression.
227 * treetree.c (tree_code_get_integer_value): Build integer constants
228 with the proper type.
230 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
232 * Make-lang.in: Remove commented out code.
233 * lang-specs.h: Always pass -dumpbase to tree1.
235 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
237 * treelang.texi: Remove extra contribution notice.
238 Split up some run-on sentences. Document function parameters
239 as optional. Indicate automatic variables can now be at any scope.
240 Mention literals are only signed if they are preceded by a unary
241 plus or minus. Clarify interoperability with C.
243 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
245 * treelang.texi: Fix whitespacing.
247 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
250 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
251 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
252 rest_of_decl_compilation on static variables.
253 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
256 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
259 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
260 Move function parameters check from ...
261 (function): ...Here. Update call to tree_code_create_function_initial.
262 (function_invocation): Use expressions_with_commas_opt instead of
263 expressions_with_commas.
264 (expressions_with_commas_opt): New rule.
265 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
266 for function parameters.
267 (tree_code_create_function_initial): Remove PARMS parameter.
268 Don't create PARM_DECLs for function parameters.
269 * treetree.h (tree_code_create_function_initial): Remove PARMS
272 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
274 * parse.y: Update copyright.
276 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
278 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
279 scalar integer types.
281 2005-02-09 Richard Henderson <rth@redhat.com>
283 * treetree.c (treelang_init_decl_processing): Call
284 build_common_builtin_nodes.
286 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
288 * treelang.texi: Don't use local treelang version number. Don't
289 give last update date.
291 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
293 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
295 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
297 * parse.y: Reformat comments.
298 * treetree.c: Likewise.
299 * treetree.h: Likewise.
301 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
303 * treetree.c (tree_code_generate_return): Wrap param declaration in
306 2004-10-05 Zack Weinberg <zack@codesourcery.com>
308 * parse.y: Add list of diagnostic messages to insulate
309 translation template from version of yacc/bison used to
312 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
315 * lex.l: Include input.h and errors.h
316 (lineno): New variable.
317 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
319 Set column position with LINEMAP_POSITION_FOR_COLUMN.
320 Use error instead of fprintf.
321 Set input_location with the value returned by linemap_start_line when
322 USE_MAPPED_LOCATION is defined.
323 (dump_lex_value): Use LOCATION_LINE.
324 * parse.y: Include errors.h.
325 Use error and warning instead of fprintf.
326 (return): Move exp to rule scope and always set to $2. Test against
328 (init): Set $$ to $2.
329 (print_token): Use LOCATION_LINE.
330 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
331 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
333 (treelang_parse_file): Always start at line one.
334 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
336 Leave main_input_filename when done parsing the input.
337 (insert_tree_name): Use error instead of fprintf.
338 * treetree.c (tree_code_get_expression): Wrap long line.
339 (tree_mark_addressable): Use %qD to print out DECLs.
341 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
343 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
345 * treetree.c: Likewise.
347 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
349 * lex.l: Remove random whitespace.
350 * parse.y: Reformat copyright notice. Indent declarations.
351 Wrap long lines, unwrap short lines.
352 * tree1.c: Reformat copyright notice. Wrap long lines.
353 Remove random whitespace.
354 (lookup_tree_name): Use LOCATION_LINE.
355 * treetree.c: Reformat copyright notice. Wrap long lines.
356 Remove random whitespace.
358 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
360 * parse.y (ELSE): Set tok to $1.
361 * treelang.texi: Wrap comments in @r{}. Indent example comments.
362 Use gcc when refering to the command line or website. Update function
365 2004-10-01 Jan Hubicka <jh@suse.cz>
367 * treetree.c (treeland_expand_function): Update call of
368 tree_rest_of_compilation.
370 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
371 Zack Weinberg <zack@codesourcery.com>
373 * treetree.c: Update for new tree-class enumeration constants.
375 2004-09-15 Zack Weinberg <zack@codesourcery.com>
377 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
379 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
381 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
383 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
385 * treelang/treetree.c (treelang_init_decl_processing): Adjust
386 build_common_tree_nodes call.
388 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
390 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
392 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
394 * Make-lang.in (TREE_BE_LIBS): Remove.
395 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
397 * parse.y: Add variable_defs_opt before statements_opt.
398 Use tree_code_get_type instead of get_type_for_numeric_type.
400 (parameters_opt): New rule.
401 (function_prototype): Use parameters_opt.
402 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
403 (check_type_match): Use VOID_TYPE.
404 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
405 * tree1.c: Include version.h and cgraph.h
406 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
408 * treelang.h (item): Remove extraneous GTY.
409 * treetree.h (get_type_for_numeric_type): Remove.
410 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
411 function.h, and cgraph.h. Don't include rtl.h
412 (keep_level_p): Remove.
413 (tree_push_atomic_type_decl): Remove.
414 (get_type_for_numeric_type): Remove.
415 (tree_code_get_numeric_type): Remove.
416 (global_bindings_p): Make static.
417 (getdecls): Likewise.
418 (insert_block): Likewise.
419 (tree_code_if_start): Create a COND_EXPR and add it to the tree
420 instead of creating rtl.
421 (tree_code_if_else): Create a BIND_EXPR if any variables were created
423 (tree_code_end_if): Likewise.
424 (tree_code_create_function_prototype): Use tree_code_get_type.
425 Don't use SET_DECL_ASSEMBLER_NAME.
426 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
427 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
428 layout_decl on RESULT_DECL. Don't call rtl expand functions.
429 (tree_code_create_function_wrapup): Don't call rtl expand functions.
430 Create a BIND_EXPR for each function. Dump original and gimplified
431 copies of the function tree. Gimplify function.
432 (tree_code_create_variable): Use tree_code_get_type. Don't call
433 layout_decl or expand_decl. Fold CONVERT_EXPRs.
434 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
435 Add RETURN_EXPR to the current statement list. Don't call rtl expand
437 (tree_code_output_expression_statement): Append CODE to current
439 (tree_code_get_expression): Fold expressions. Build a pointer to
440 a FUNCTION_TYPE intead of the called functions return type.
441 (struct binding_level): Add statement list STMTS.
442 (getstmtlist): New Function.
443 (pushlevel): Make static. Allocate an empty statement list.
444 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
445 Don't use DECL_ASSEMBLER_NAME.
446 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
447 (treelang_init_decl_processing): Define basic types after unused types.
448 Don't call tree_push_atomic_type_decl.
449 (builtin_function): Don't call make_decl_rtl.
450 (treelang_expand_function). New Function.
452 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
454 * treetree.c (set_block): Remove.
455 (struct binding_level): Remove block_created_by_back_end.
456 (clear_binding_level): Likewise.
457 (tree_code_create_function_initial,
458 tree_code_create_function_wrapup): Call pushlevel and poplevel
459 directly rather than through hooks.
460 (poplevel): Don't handle block_created_by_back_end.
462 2004-04-07 Richard Henderson <rth@redhat.com>
464 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
466 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
468 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
471 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
473 * treelang.texi: Update link to "G++ and GCC".
475 2004-02-20 Richard Henderson <rth@redhat.com>
477 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
479 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
481 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
483 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
485 * Make-lang.in: Replace $(docdir) with doc.
486 (treelang.info, treelang.srcinfo): New rules.
487 (treelang.man, treelang.man): Dummy entries.
489 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
491 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
492 (treelang/parse.o, treelang/lex.o): Look for sources in build
493 directory. Use implicit rule.
494 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
496 (treelang.srcextra): Copy above back to source directory if requested.
498 2004-01-07 Zack Weinberg <zack@codesourcery.com>
500 * parse.y (yyerror): Mark the definition static.
502 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
504 * lex.l: Add \t as a whitespace character.
505 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
507 * treelang.texi (What is GNU Treelang?): Fix a typo.
508 (Lexical Syntax): Create an itemize list of keywords. Add commas to
509 paragraph defining names.
511 2003-11-26 Jason Merrill <jason@redhat.com>
513 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
514 directory and TAGS files that include them for each front end.
516 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
518 * .cvsignore: Delete.
520 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
522 * Make-lang.in (treelang.extraclean): Delete.
524 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
526 * Make-lang.in: Remove obsolete comment.
528 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
530 * Make-lang.in (dvi): Move targets to $(docobjdir).
531 (treelang.dvi): Simplify rule and adjust target.
532 (treelang.info): Simplify rule.
533 (parse.o): Correct dependencies.
534 (TREE_EXE): Delete doubled suffix append.
536 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
538 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
541 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
543 * Make-lang.in (parse.o): Honor $(parsedir).
546 (parse.c, parse.h): Likewise.
547 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
550 2003-10-20 Mark Mitchell <mark@codesourcery.com>
552 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
555 * Make-lang.in (info): Use docobjdir.
556 ($(srcdir)/treelang/treelang.info): Replace with ...
557 ($(docobjdir)/treelang/treelang.info): ... this.
558 (install-info): New target.
560 2003-10-12 Andreas Jaeger <aj@suse.de>
562 * Make-lang.in (treelang.install-info): Remove reference to
564 (treelang.): Removed.
566 2003-10-06 Mark Mitchell <mark@codesourcery.com>
568 * Make-lang.in (treelang.info): Replace with ...
570 * Make-lang.in (treelang.dvi): Replace with ...
573 2003-09-21 Richard Henderson <rth@redhat.com>
575 * treetree.c: Revert.
577 2003-09-21 Richard Henderson <rth@redhat.com>
579 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
582 2003-07-28 Andreas Jaeger <aj@suse.de>
584 * treetree.c: Convert remaining K&R prototypes to ISO C90.
587 * tree-convert.c: Likewise.
589 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
591 * treetree.c: Remove unnecessary casts.
593 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
595 * lang-options.h: Remove.
596 * lang.opt: Document some options. Remove --help.
597 * tree1.c (treelang_handle_option): Remove OPT__help case.
599 2003-07-12 Andreas Jaeger <aj@suse.de>
601 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
603 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
605 * Make-lang.in: Update.
606 * tree1.c: Don't include c-common.h.
607 (c_language): Remove.
609 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
610 Steven Bosscher <steven@gcc.gnu.org>
612 * tree-convert.c: New file.
613 * treetree.c: Don't include c-tree.h. Include target.h.
614 (struct lang_identifier, union lang_tree_node, struct lang_type,
615 struct lang_function): New, minimal language-specific datastructs.
616 (tree_lang_truthvalue_conversion, tree_mark_addressable,
617 tree_lang_type_for_size, tree_lang_type_for_mode,
618 tree_lang_unsigned_type, tree_lang_signed_type,
619 tree_lang_signed_or_unsigned): New functions.
620 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
621 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
622 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
623 tree_push_atomic_type_decl): New functions.
624 (struct resword, struct reswords): Remove.
625 * Make-lang.in: Update. Don't depend on C front end objects.
626 * config-lang.in: Likewise.
628 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
630 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
631 tree_code_if_end, tree_code_create_function_initial,
632 tree_code_create_function_wrapup, tree_code_generate_return,
633 tree_code_output_expression_statement): Adjust emit_line_note
636 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
638 * Make-lang.in: Replace PWD with PWD_COMMAND.
640 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
642 * tree1.c (treelang_init_options): Update prototype.
643 * treelang.h (treelang_init_options): Update prototype.
645 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
647 * Make-lang.in: Update.
648 * tree1.c: Include c-common.h. Define c_language.
650 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
652 * treetree.c (tree_code_create_function_wrapup): Adjust
653 expand_function_end call.
655 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
657 * treetree.c (build_stmt): Remove VPARAMS.
658 (pedwarn_c99): Likewise.
660 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
662 * lang.opt: Declare Treelang. Update.
663 * tree1.c (treelang_init_options): Update.
665 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
667 * treetree.c (tree_code_create_function_initial): Adjust
668 init_function_start call.
670 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
672 * Make-lang.in: Update to use options.c and options.h.
673 * tree1.c: Include options.h not t-options.h.
674 (treelang_init_options): New.
675 (treelang_handle_option): Abort on unrecognized switch.
676 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
677 * treetree.h (treelang_init_options): New.
679 2003-06-12 Andreas Jaeger <aj@suse.de>
681 * treetree.c: Remove cl_options-count and cl_options.
683 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
685 * Make-lang.in: Update for option handling.
687 * tree1.c: Include opts.h and t-options.h.
688 (treelang_decode_option): Remove.
689 (treelang_handle_option): New.
690 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
691 (LANG_HOOKS_HANDLE_OPTION): Override.
692 * treetree.h (treelang_decode_option): Remove.
693 (treelang_handle_option): New.
695 2003-06-08 Andreas Jaeger <aj@suse.de>
697 * Make-lang.in: Update.
698 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
700 2003-06-08 Tim Josling <tej@melbpc.org.au>
702 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
704 2003-06-05 Jan Hubicka <jh@suse.cz>
706 * Make-lang.in: Add support for stageprofile and stagefeedback
708 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
710 * treetree.c (reswords): Remove __bounded__, __unbounded__.
712 2003-05-09 Tim Josling <tej@melbpc.org.au>
714 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
715 to link (needed by some front ends such as PPC).
717 * treetree.c (tree_code_create_function_initial): Fix long line.
718 Initialize tree_code_int_size and tree_code_char_size to
720 (tree_code_get_numeric_type): Add check that size1 parameter is
723 * parse.y: Fix extra long lines in prototypes.
725 * treelang.h: Fix extra long lines in macro definitions.
727 2003-05-07 Zack Weinberg <zack@codesourcery.com>
729 * Make-lang.in: Set -Wno-error for treelang/lex.o.
731 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
733 * Make-lang.in (treelang/tree1.o): Depends on input.h
734 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
735 * treelang.h: #include input.h.
737 (struct token_part): Remove lineno, add location.
738 * lex.l (next_tree_lineno): Remove.
739 (update_lineno_charno): Adjust.
740 (dump_lex_value): Adjust.
741 * parse.y (variable_def, function_prototype, function, statement,
742 if_statement, return, function_invocation, variable_ref): Adjust.
743 (print_token, yyerror, ensure_not_void): Adjust.
744 tree1.c (in_fname): Remove.
745 (treelang_init): Setup input_location.
746 (lookup_tree_name): Adjust.
747 (insert_tree_name): Adjust.
748 * treetree.c (tree_code_if_start): Replace filename and lineno
749 parms with loc. Adjust.
750 (tree_code_if_else, tree_code_if_end,
751 tree_code_create_function_prototype,
752 tree_code_create_function_initial,
753 tree_code_create_function_wrapup, tree_code_create_variable,
754 tree_code_output_expression_statement): Likewise.
755 * treetree.h (tree_code_if_start): Replace filename and lineno
757 (tree_code_if_else, tree_code_if_end,
758 tree_code_create_function_prototype,
759 tree_code_create_function_initial,
760 tree_code_create_function_wrapup, tree_code_create_variable,
761 tree_code_output_expression_statement): Likewise.
763 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
765 * tree1.c (treelang_init): Rename lineno to input_line.
767 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
769 * parse.y (make_plus_expression): New function.
770 (expression production): Use make_plus_expression for PLUS,
771 MINUS, ASSIGN and EQUALS.
772 * tree1.c (treelang_decode_option): Don't fall through to
773 options that start with a different character when an option
776 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
778 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
779 * treetree.c: Do not #include parse.h.
781 2003-03-21 Andreas Jaeger <aj@suse.de>
783 * treetree.c (cpp_create_reader): Follow prototype change in
786 2003-03-17 Andreas Jaeger <aj@suse.de>
788 * Make-lang.in (treelang.tags): Remove duplicate entry.
790 2003-03-15 Andreas Jaeger <aj@suse.de>
792 * treetree.c (cpp_handle_option): Remove.
794 2003-03-13 Andreas Jaeger <aj@suse.de>
796 * Make-lang.in (tree1$(exeext)): Fix previous patch.
798 2003-03-12 Andreas Jaeger <aj@suse.de>
800 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
802 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
804 * tree1.c (in_fname): Fix type.
805 (treelang_init): Update prototype and use of in_fname.
806 * treelang.h (in_fname): Fix type.
807 * treetree.c (tree_code_if_start, tree_code_if_else,
808 tree_code_if_end, tree_code_create_function_prototype,
809 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
810 tree_code_create_variable, tree_code_output_expression_statement)
811 : Fix prototypes and use of filenames.
812 * treetree.h: Similarly.
814 2003-03-05 Andreas Jaeger <aj@suse.de>
816 * treetree.c (init_c_lex): Follow change to c-common.h.
818 2003-03-04 Tom Tromey <tromey@redhat.com>
820 * Make-lang.in (treelang.tags): New target.
822 2003-03-01 Tim Josling <tej@melbpc.org.au>
824 Name clashes with rtl.h fixed.
826 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
831 2003-02-24 Tim Josling <tej@melbpc.org.au>
833 * parse.y (my_yylex): New - ensure lexer time is charged to
835 (yylex): redefine as invocation of my_yylex which then calls
836 flex-generated yylex.
837 (timevar.h): include.
839 2003-02-23 Tim Josling <tej@melbpc.org.au>
841 Fix garbage collection, add more error checking, force GC always.
843 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
844 (treelang/treetree.o): Depend on treelang/parse.h
846 * lex.l: include "treetree.h"
848 * lex.l (update_yylval): Allocate string using get_string so GC
851 * parse.y (function_prototype): Set category correctly so GC works.
852 (function): Set category in search so checking works.
853 (function_invocation): Ditto.
854 (variable_ref): Ditto.
856 * tree1.c (lookup_tree_name): Call sanity_check for passed
857 production and associated token and for symbol table entries.
859 * tree1.c (sanity_check): New, basic check that struct is valid.
861 * treelang.h: Prototype for sanity_check.
863 2003-01-27 Tim Josling <tej@melbpc.org.au>
865 * treetree.c (treelang_init_decl_processing): Change memory
866 allocation to use GC.
868 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
870 * treelang.texi: Update to GFDL 1.2.
872 2003-01-26 Michael Matz <matz@suse.de>
874 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
876 2003-01-14 Andreas Jaeger <aj@suse.de>
878 * Make-lang.in (treelang.install-info): Depend only on info files
879 if BUILD_INFO is set. Fix install rules.
882 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
884 * Make-lang.in (treelang.install.common.done,
885 treelang.install-info, treelang.uninstall): Prepend
886 $(DESTDIR) to destination paths in all (un)installation
889 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
891 * treelang.texi: Use @copying.
893 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
895 * treelang.texi: Include gcc-common.texi.
896 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
897 Depend on gcc-common.texi. Add other missing dependencies.
898 (treelang.dvi): Use texi2dvi.
900 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
902 * treelang.texi: Use @ifnottex instead of @ifinfo.
904 2002-11-30 Zack Weinberg <zack@codesourcery.com>
906 * lex.l: Move "%{" below copyright notice; get rid of "/*"
907 embedded in comment. Do not #undef IN_GCC; do not include
908 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
909 Do include coretypes.h and tm.h.
910 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
911 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
912 ansidecl.h. Do include coretypes.h and tm.h.
913 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
914 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
915 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
916 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
917 or ansidecl.h. Do include coretypes.h and tm.h.
918 * Make-lang.in: Update dependencies.
920 2002-09-09 Tim Josling <tej@melbpc.org.au>
922 * treetree.c (objc_is_id): New.
924 2002-08-16 Tim Josling <tej@melbpc.org.au>
926 Remove variables and functions now defined elsewhere.
928 * treetree.c (maybe_objc_comptypes): Remove.
929 (warn_format, warn_format_y2k, warn_format_extra_args,
930 warn_format_nonliteral, warn_format_security,
931 warn_format_zero_length): Remove.
932 (maybe_building_objc_message_expr): Remove.
933 (cpp_post_options): Remove.
934 (maybe_objc_check_decl): Remove.
935 (integer_types): Remove.
938 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
940 * treelang.c: Remove cpp_post_options.
942 2002-08-13 Tim Josling <tej@melbpc.org.au>
944 * parse.y: Provide dummy definition of rtx for use by config.h.
945 * Make-lang.in (treetree.o): Remove dependency on non-existent
946 gt-treelang-treelang.h.
947 (gt-treelang-treelang.h): Remove.
949 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
951 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
953 2002-07-11 Tim Josling <tej@melbpc.org.au>
955 Remove front end hard coding from gengtype.c.
957 * config-lang.in (gtfiles): Add files needed for this front
960 2002-07-09 Tim Josling <tej@melbpc.org.au>
962 Support new attributes regime (Fix for PR c++/7099).
964 * treetree.c (handle_format_attribute): Return NULL_TREE instead
966 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
967 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
968 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
970 2002-06-21 Andreas Jaeger <aj@suse.de>
972 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
973 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
975 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
977 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
980 2002-06-10 Tim Josling <tej@melbpc.org.au>
984 * Make-lang.in (check-treelang). Add. Remove direct dependency of
985 'check' on 'treelang.check' as redundant.
987 PCH Garbage collection regime (gengtypes.c) phase 1.
989 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
990 gt-treelang-treelang.h gtype-treelang.h.
991 (gt-treelang-tree1.h) Depend on s-gtype.
992 (gt-treelang-treelang.h) Depend on s-gtype.
993 (gtype-treelang.h) Depend on s-gtype.
995 * config-lang.in (gtfiles): Define.
997 * lex.l (main): Remove '#if 0' dead code.
998 (main): Move undef of IN_GCC so define of tree typedef works.
999 (all): Replace token and production by prod_token_parm_item.
1002 (all): Replace token and production by prod_token_parm_item.
1004 * tree1.c (main): Remove include of "output.h".
1005 (symbol_table): Add GTY details.
1006 (symbol_table_ggc): Remove.
1007 (treelang_init): Remove root definitions for garbage collection.
1008 (mark_production_used): Remove.
1009 (mark_token_used): Remove.
1010 (main, at end): include generated garage collection routines.
1012 * treelang.h (category_enum ): Add parameter_category.
1013 (all): Replace token and production and parameters by union
1014 prod_token_parm_item containing production_part, token_part,
1016 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1017 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1018 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1019 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
1023 (tm_p.h): Do not include.
1024 (ansidecl.h): Move include after config.h.
1025 (treelang.h): Include it.
1027 (all): Replace token, production and parameter by prod_token_parm_item.
1028 (tree_parameter_list): Move to treelang.h as part of
1029 prod_token_parm_item.
1030 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1031 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1032 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1033 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
1036 2002-05-19 Tim Josling <tej@melbpc.org.au>
1038 * treetree.c (warn_format_zero_length): Add.
1040 2002-05-14 Tim Josling <tej@melbpc.org.au>
1042 * Make-lang.in: Fix build for .info files, add target for manpages.
1043 A bug report and a suggested patch came from Magnus Fromreide
1044 <magfr@lysator.liu.se>.
1046 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1048 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1050 2002-05-11 Tim Josling <tej@melbpc.org.au>
1052 * treetree.c: (cpp_define) Add.
1053 (cpp_get_callbacks) Add.
1055 2002-05-07 Tim Josling <tej@melbpc.org.au>
1057 * treetree.c: (cpp_get_options) Add.
1059 2002-05-06 Tim Josling <tej@melbpc.org.au>
1063 2002-05-05 Tim Josling <tej@melbpc.org.au>
1065 * Updated for gcc3.2 experimental. Major changes throughout.
1067 2002-03-31 Tim Josling <tej@melbpc.org.au>
1069 * Make-lang.in: Changes so build and check work more reliably
1071 2001-07-30 Tim Josling <tej@melbpc.org.au>
1074 * treelang.texi: updates based on feedback
1076 2001-06-11 Tim Josling <tej@melbpc.org.au>
1078 * all (all) Revamp code to conform to GCC coding standards, fix
1079 typos in texi files.
1081 2001-05-11 Tim Josling <tej@melbpc.org.au>
1083 Create the new language.