1 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
3 * treetree.c (tree_code_create_function_wrapup): Use set_cfun.
5 2007-08-21 Paul Brook <paul@codesourcery.com>
6 Nathan Sidwell <nathan@codesourcery.com>
7 Mark Mitchell <mark@codesourcery.com>
8 Joseph Myers <joseph@codesourcery.com>
10 * tree1.c (treelang_handle_option): Use pkgversion_string.
11 * treelang.texi (which-treelang): Define to use VERSION_PACKAGE.
13 2007-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15 * lex.l (update_yylval): Constify.
16 * treelang.h (struct token_part, struct parameter_part):
18 * treetree.c (tree_code_create_function_prototype,
19 tree_code_create_variable, tree_code_get_integer_value):
21 * treetree.h (tree_code_get_integer_value,
22 tree_code_create_function_prototype, tree_code_create_variable):
25 2007-07-25 Richard Guenther <rguenther@suse.de>
27 * treetree.c (tree_code_generate_return): RETURN_EXPRs
30 2007-07-17 Nick Clifton <nickc@redhat.com>
32 * parse.y: Change copyright header to refer to version 3 of the
33 GNU General Public License and to point readers at the COPYING3
37 * lang-specs.h: Likewise.
38 * treelang.h: Likewise.
39 * config-lang.in: Likewise.
40 * tree-convert.c: Likewise.
41 * treetree.c: Likewise.
43 * Make-lang.in: Likewise.
44 * treetree.h: Likewise.
47 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
49 * treetree.c (tree_lang_signed_type): Remove.
50 (LANG_HOOKS_SIGNED_TYPE): Remove.
52 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
54 * treetree.c (tree_lang_unsigned_type): Remove.
55 (LANG_HOOKS_UNSIGNED_TYPE): Remove.
57 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
59 * treetree.c (tree_lang_signed_or_unsigned_type): Remove.
60 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
62 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
64 * Make-lang.in: Add install-pdf target as copied from
67 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
69 * treelang.texi: Standardize title page, remove version number
72 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
74 * treetree.c (builtin_function): Remove.
76 2006-10-10 Brooks Moses <bmoses@stanford.edu>
78 * Make-lang.in: Added "treelang.pdf" target support.
80 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
82 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
84 2006-06-17 Karl Berry <karl@gnu.org>
86 * treelang.texi (@dircategory): Use "Software development"
87 instead of "Programming", following the Free Software Directory.
89 2006-06-06 Mike Stump <mrs@apple.com>
91 * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid
92 installing during build.
94 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
96 * Make-lang.in: Rename htmldir to gcc_htmldir.
98 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
101 * Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
104 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
106 * Make-lang.in (treelang/treetree.o): Add dependency on
109 2006-04-22 Matthias Klose <doko@debian.org>
111 * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
113 2006-03-29 Carlos O'Donell <caros@codesourcery.com>
115 * Make-lang.in: Rename docdir to gcc_docdir.
117 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
119 * Make-lang.in (.phony): Remove TREELANG.
122 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
124 * spec.c (lang_specific_driver): Update copyright notice date.
126 2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
128 * spec.c (lang_specific_spec_functions): Remove.
130 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
132 * Make-lang.in (treelang.distdir): Remove.
134 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
136 * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
138 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
140 * Make-lang.in: Remove all dependencies on s-gtype.
142 2005-12-05 Richard Guenther <rguenther@suse.de>
144 * treetree.c (tree_code_if_start, tree_code_create_variable,
145 tree_code_generate_return, tree_code_get_expression,
146 tree_code_add_parameter): Use fold_convert where appropriate.
148 2005-11-07 James A. Morrison <phython@gcc.gnu.org>
151 * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
152 treelang_attribute_table.
153 (handle_attribute): New function.
154 (treelang_attribute_table): New attribute table.
156 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
158 * parse.y : Changed pointer declaration from "type* var" to "type *var"
159 Removed trailing space. Wrap long lines.
161 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
163 * parse.y : Fixed two compile warnings in "error" and "warning"
164 invocations. Removed trailing periods in messages. Decapitalized the
167 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
169 * tree-convert.c (convert): Use fold_build1 instead of
172 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
175 * Make-lang.in: Remove old testing cruft.
177 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
179 * all files: Update FSF address in copyright headers.
181 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
183 * parse.y (function_invocation): Reverse parameter list.
184 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
186 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
188 * treetree.c (tree_code_get_expression): Call build_function_call_expr
189 to build function calls.
191 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
193 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
195 * treelang/Make-lang.in: Updates dependencies.
197 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
200 * parse.y (parameters_opt): Add semicolon at the end.
202 2005-04-29 Tom Tromey <tromey@redhat.com>
204 * treetree.c (poplevel): Updated for change to build_block.
206 2005-04-23 DJ Delorie <dj@redhat.com>
208 * parse.y: Adjust warning() callers.
210 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
212 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
214 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
217 * lang-spec.c: Simplify @treelang to what the other
220 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
222 * treelang/treelang.texi: Fix typos.
223 * treelang/treetree.c: Fix comment typos.
225 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
227 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
228 tree_lang_truthvalue_conversion): Remove.
229 * tree-convert.c: Don't call truthvalue_conversion.
231 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
233 * treetree.c (tree_code_if_start): Use fold_buildN.
234 (tree_code_create_variable): Likewise.
235 (tree_code_generate_return): Likewise.
236 (tree_code_get_expression): Likewise.
237 (tree_code_add_parameter): Likewise.
239 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
241 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
244 2005-03-15 Zack Weinberg <zack@codesourcery.com>
246 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
248 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
251 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
254 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
256 * treelang.texi: Fix a typo.
258 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
260 * parse.y (function_invocation, variable-ref, make_plus_expression):
261 Pass location to tree_code_get_expression.
262 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
263 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
264 set EXPR_LOCATION on ret1.
265 * treetree.h (tree_code_get_expression): Take the location of the
266 expression as an argument.
268 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
270 * treelang.texi: Treelang does have warnings.
271 * treetree.c (tree_code_create_function_prototype): Don't set
272 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
273 as few times as needed on the function declaration.
274 (tree_code_create_function_initial): Don't set TREE_USED,
275 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
276 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
277 (tree_code_get_expression): Set TREE_USED for variable references
280 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
282 * parse.y: Do comparisons as the type of the first expression.
283 * treetree.c (tree_code_get_integer_value): Build integer constants
284 with the proper type.
286 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
288 * Make-lang.in: Remove commented out code.
289 * lang-specs.h: Always pass -dumpbase to tree1.
291 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
293 * treelang.texi: Remove extra contribution notice.
294 Split up some run-on sentences. Document function parameters
295 as optional. Indicate automatic variables can now be at any scope.
296 Mention literals are only signed if they are preceded by a unary
297 plus or minus. Clarify interoperability with C.
299 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
301 * treelang.texi: Fix whitespacing.
303 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
306 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
307 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
308 rest_of_decl_compilation on static variables.
309 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
312 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
315 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
316 Move function parameters check from ...
317 (function): ...Here. Update call to tree_code_create_function_initial.
318 (function_invocation): Use expressions_with_commas_opt instead of
319 expressions_with_commas.
320 (expressions_with_commas_opt): New rule.
321 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
322 for function parameters.
323 (tree_code_create_function_initial): Remove PARMS parameter.
324 Don't create PARM_DECLs for function parameters.
325 * treetree.h (tree_code_create_function_initial): Remove PARMS
328 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
330 * parse.y: Update copyright.
332 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
334 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
335 scalar integer types.
337 2005-02-09 Richard Henderson <rth@redhat.com>
339 * treetree.c (treelang_init_decl_processing): Call
340 build_common_builtin_nodes.
342 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
344 * treelang.texi: Don't use local treelang version number. Don't
345 give last update date.
347 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
349 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
351 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
353 * parse.y: Reformat comments.
354 * treetree.c: Likewise.
355 * treetree.h: Likewise.
357 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
359 * treetree.c (tree_code_generate_return): Wrap param declaration in
362 2004-10-05 Zack Weinberg <zack@codesourcery.com>
364 * parse.y: Add list of diagnostic messages to insulate
365 translation template from version of yacc/bison used to
368 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
371 * lex.l: Include input.h and errors.h
372 (lineno): New variable.
373 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
375 Set column position with LINEMAP_POSITION_FOR_COLUMN.
376 Use error instead of fprintf.
377 Set input_location with the value returned by linemap_start_line when
378 USE_MAPPED_LOCATION is defined.
379 (dump_lex_value): Use LOCATION_LINE.
380 * parse.y: Include errors.h.
381 Use error and warning instead of fprintf.
382 (return): Move exp to rule scope and always set to $2. Test against
384 (init): Set $$ to $2.
385 (print_token): Use LOCATION_LINE.
386 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
387 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
389 (treelang_parse_file): Always start at line one.
390 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
392 Leave main_input_filename when done parsing the input.
393 (insert_tree_name): Use error instead of fprintf.
394 * treetree.c (tree_code_get_expression): Wrap long line.
395 (tree_mark_addressable): Use %qD to print out DECLs.
397 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
399 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
401 * treetree.c: Likewise.
403 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
405 * lex.l: Remove random whitespace.
406 * parse.y: Reformat copyright notice. Indent declarations.
407 Wrap long lines, unwrap short lines.
408 * tree1.c: Reformat copyright notice. Wrap long lines.
409 Remove random whitespace.
410 (lookup_tree_name): Use LOCATION_LINE.
411 * treetree.c: Reformat copyright notice. Wrap long lines.
412 Remove random whitespace.
414 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
416 * parse.y (ELSE): Set tok to $1.
417 * treelang.texi: Wrap comments in @r{}. Indent example comments.
418 Use gcc when refering to the command line or website. Update function
421 2004-10-01 Jan Hubicka <jh@suse.cz>
423 * treetree.c (treeland_expand_function): Update call of
424 tree_rest_of_compilation.
426 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
427 Zack Weinberg <zack@codesourcery.com>
429 * treetree.c: Update for new tree-class enumeration constants.
431 2004-09-15 Zack Weinberg <zack@codesourcery.com>
433 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
435 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
437 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
439 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
441 * treelang/treetree.c (treelang_init_decl_processing): Adjust
442 build_common_tree_nodes call.
444 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
446 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
448 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
450 * Make-lang.in (TREE_BE_LIBS): Remove.
451 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
453 * parse.y: Add variable_defs_opt before statements_opt.
454 Use tree_code_get_type instead of get_type_for_numeric_type.
456 (parameters_opt): New rule.
457 (function_prototype): Use parameters_opt.
458 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
459 (check_type_match): Use VOID_TYPE.
460 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
461 * tree1.c: Include version.h and cgraph.h
462 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
464 * treelang.h (item): Remove extraneous GTY.
465 * treetree.h (get_type_for_numeric_type): Remove.
466 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
467 function.h, and cgraph.h. Don't include rtl.h
468 (keep_level_p): Remove.
469 (tree_push_atomic_type_decl): Remove.
470 (get_type_for_numeric_type): Remove.
471 (tree_code_get_numeric_type): Remove.
472 (global_bindings_p): Make static.
473 (getdecls): Likewise.
474 (insert_block): Likewise.
475 (tree_code_if_start): Create a COND_EXPR and add it to the tree
476 instead of creating rtl.
477 (tree_code_if_else): Create a BIND_EXPR if any variables were created
479 (tree_code_end_if): Likewise.
480 (tree_code_create_function_prototype): Use tree_code_get_type.
481 Don't use SET_DECL_ASSEMBLER_NAME.
482 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
483 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
484 layout_decl on RESULT_DECL. Don't call rtl expand functions.
485 (tree_code_create_function_wrapup): Don't call rtl expand functions.
486 Create a BIND_EXPR for each function. Dump original and gimplified
487 copies of the function tree. Gimplify function.
488 (tree_code_create_variable): Use tree_code_get_type. Don't call
489 layout_decl or expand_decl. Fold CONVERT_EXPRs.
490 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
491 Add RETURN_EXPR to the current statement list. Don't call rtl expand
493 (tree_code_output_expression_statement): Append CODE to current
495 (tree_code_get_expression): Fold expressions. Build a pointer to
496 a FUNCTION_TYPE intead of the called functions return type.
497 (struct binding_level): Add statement list STMTS.
498 (getstmtlist): New Function.
499 (pushlevel): Make static. Allocate an empty statement list.
500 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
501 Don't use DECL_ASSEMBLER_NAME.
502 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
503 (treelang_init_decl_processing): Define basic types after unused types.
504 Don't call tree_push_atomic_type_decl.
505 (builtin_function): Don't call make_decl_rtl.
506 (treelang_expand_function). New Function.
508 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
510 * treetree.c (set_block): Remove.
511 (struct binding_level): Remove block_created_by_back_end.
512 (clear_binding_level): Likewise.
513 (tree_code_create_function_initial,
514 tree_code_create_function_wrapup): Call pushlevel and poplevel
515 directly rather than through hooks.
516 (poplevel): Don't handle block_created_by_back_end.
518 2004-04-07 Richard Henderson <rth@redhat.com>
520 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
522 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
524 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
527 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
529 * treelang.texi: Update link to "G++ and GCC".
531 2004-02-20 Richard Henderson <rth@redhat.com>
533 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
535 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
537 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
539 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
541 * Make-lang.in: Replace $(docdir) with doc.
542 (treelang.info, treelang.srcinfo): New rules.
543 (treelang.man, treelang.man): Dummy entries.
545 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
547 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
548 (treelang/parse.o, treelang/lex.o): Look for sources in build
549 directory. Use implicit rule.
550 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
552 (treelang.srcextra): Copy above back to source directory if requested.
554 2004-01-07 Zack Weinberg <zack@codesourcery.com>
556 * parse.y (yyerror): Mark the definition static.
558 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
560 * lex.l: Add \t as a whitespace character.
561 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
563 * treelang.texi (What is GNU Treelang?): Fix a typo.
564 (Lexical Syntax): Create an itemize list of keywords. Add commas to
565 paragraph defining names.
567 2003-11-26 Jason Merrill <jason@redhat.com>
569 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
570 directory and TAGS files that include them for each front end.
572 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
574 * .cvsignore: Delete.
576 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
578 * Make-lang.in (treelang.extraclean): Delete.
580 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
582 * Make-lang.in: Remove obsolete comment.
584 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
586 * Make-lang.in (dvi): Move targets to $(docobjdir).
587 (treelang.dvi): Simplify rule and adjust target.
588 (treelang.info): Simplify rule.
589 (parse.o): Correct dependencies.
590 (TREE_EXE): Delete doubled suffix append.
592 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
594 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
597 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
599 * Make-lang.in (parse.o): Honor $(parsedir).
602 (parse.c, parse.h): Likewise.
603 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
606 2003-10-20 Mark Mitchell <mark@codesourcery.com>
608 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
611 * Make-lang.in (info): Use docobjdir.
612 ($(srcdir)/treelang/treelang.info): Replace with ...
613 ($(docobjdir)/treelang/treelang.info): ... this.
614 (install-info): New target.
616 2003-10-12 Andreas Jaeger <aj@suse.de>
618 * Make-lang.in (treelang.install-info): Remove reference to
620 (treelang.): Removed.
622 2003-10-06 Mark Mitchell <mark@codesourcery.com>
624 * Make-lang.in (treelang.info): Replace with ...
626 * Make-lang.in (treelang.dvi): Replace with ...
629 2003-09-21 Richard Henderson <rth@redhat.com>
631 * treetree.c: Revert.
633 2003-09-21 Richard Henderson <rth@redhat.com>
635 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
638 2003-07-28 Andreas Jaeger <aj@suse.de>
640 * treetree.c: Convert remaining K&R prototypes to ISO C90.
643 * tree-convert.c: Likewise.
645 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
647 * treetree.c: Remove unnecessary casts.
649 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
651 * lang-options.h: Remove.
652 * lang.opt: Document some options. Remove --help.
653 * tree1.c (treelang_handle_option): Remove OPT__help case.
655 2003-07-12 Andreas Jaeger <aj@suse.de>
657 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
659 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
661 * Make-lang.in: Update.
662 * tree1.c: Don't include c-common.h.
663 (c_language): Remove.
665 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
666 Steven Bosscher <steven@gcc.gnu.org>
668 * tree-convert.c: New file.
669 * treetree.c: Don't include c-tree.h. Include target.h.
670 (struct lang_identifier, union lang_tree_node, struct lang_type,
671 struct lang_function): New, minimal language-specific datastructs.
672 (tree_lang_truthvalue_conversion, tree_mark_addressable,
673 tree_lang_type_for_size, tree_lang_type_for_mode,
674 tree_lang_unsigned_type, tree_lang_signed_type,
675 tree_lang_signed_or_unsigned): New functions.
676 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
677 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
678 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
679 tree_push_atomic_type_decl): New functions.
680 (struct resword, struct reswords): Remove.
681 * Make-lang.in: Update. Don't depend on C front end objects.
682 * config-lang.in: Likewise.
684 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
686 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
687 tree_code_if_end, tree_code_create_function_initial,
688 tree_code_create_function_wrapup, tree_code_generate_return,
689 tree_code_output_expression_statement): Adjust emit_line_note
692 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
694 * Make-lang.in: Replace PWD with PWD_COMMAND.
696 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
698 * tree1.c (treelang_init_options): Update prototype.
699 * treelang.h (treelang_init_options): Update prototype.
701 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
703 * Make-lang.in: Update.
704 * tree1.c: Include c-common.h. Define c_language.
706 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
708 * treetree.c (tree_code_create_function_wrapup): Adjust
709 expand_function_end call.
711 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
713 * treetree.c (build_stmt): Remove VPARAMS.
714 (pedwarn_c99): Likewise.
716 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
718 * lang.opt: Declare Treelang. Update.
719 * tree1.c (treelang_init_options): Update.
721 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
723 * treetree.c (tree_code_create_function_initial): Adjust
724 init_function_start call.
726 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
728 * Make-lang.in: Update to use options.c and options.h.
729 * tree1.c: Include options.h not t-options.h.
730 (treelang_init_options): New.
731 (treelang_handle_option): Abort on unrecognized switch.
732 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
733 * treetree.h (treelang_init_options): New.
735 2003-06-12 Andreas Jaeger <aj@suse.de>
737 * treetree.c: Remove cl_options-count and cl_options.
739 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
741 * Make-lang.in: Update for option handling.
743 * tree1.c: Include opts.h and t-options.h.
744 (treelang_decode_option): Remove.
745 (treelang_handle_option): New.
746 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
747 (LANG_HOOKS_HANDLE_OPTION): Override.
748 * treetree.h (treelang_decode_option): Remove.
749 (treelang_handle_option): New.
751 2003-06-08 Andreas Jaeger <aj@suse.de>
753 * Make-lang.in: Update.
754 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
756 2003-06-08 Tim Josling <tej@melbpc.org.au>
758 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
760 2003-06-05 Jan Hubicka <jh@suse.cz>
762 * Make-lang.in: Add support for stageprofile and stagefeedback
764 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
766 * treetree.c (reswords): Remove __bounded__, __unbounded__.
768 2003-05-09 Tim Josling <tej@melbpc.org.au>
770 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
771 to link (needed by some front ends such as PPC).
773 * treetree.c (tree_code_create_function_initial): Fix long line.
774 Initialize tree_code_int_size and tree_code_char_size to
776 (tree_code_get_numeric_type): Add check that size1 parameter is
779 * parse.y: Fix extra long lines in prototypes.
781 * treelang.h: Fix extra long lines in macro definitions.
783 2003-05-07 Zack Weinberg <zack@codesourcery.com>
785 * Make-lang.in: Set -Wno-error for treelang/lex.o.
787 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
789 * Make-lang.in (treelang/tree1.o): Depends on input.h
790 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
791 * treelang.h: #include input.h.
793 (struct token_part): Remove lineno, add location.
794 * lex.l (next_tree_lineno): Remove.
795 (update_lineno_charno): Adjust.
796 (dump_lex_value): Adjust.
797 * parse.y (variable_def, function_prototype, function, statement,
798 if_statement, return, function_invocation, variable_ref): Adjust.
799 (print_token, yyerror, ensure_not_void): Adjust.
800 tree1.c (in_fname): Remove.
801 (treelang_init): Setup input_location.
802 (lookup_tree_name): Adjust.
803 (insert_tree_name): Adjust.
804 * treetree.c (tree_code_if_start): Replace filename and lineno
805 parms with loc. Adjust.
806 (tree_code_if_else, tree_code_if_end,
807 tree_code_create_function_prototype,
808 tree_code_create_function_initial,
809 tree_code_create_function_wrapup, tree_code_create_variable,
810 tree_code_output_expression_statement): Likewise.
811 * treetree.h (tree_code_if_start): Replace filename and lineno
813 (tree_code_if_else, tree_code_if_end,
814 tree_code_create_function_prototype,
815 tree_code_create_function_initial,
816 tree_code_create_function_wrapup, tree_code_create_variable,
817 tree_code_output_expression_statement): Likewise.
819 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
821 * tree1.c (treelang_init): Rename lineno to input_line.
823 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
825 * parse.y (make_plus_expression): New function.
826 (expression production): Use make_plus_expression for PLUS,
827 MINUS, ASSIGN and EQUALS.
828 * tree1.c (treelang_decode_option): Don't fall through to
829 options that start with a different character when an option
832 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
834 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
835 * treetree.c: Do not #include parse.h.
837 2003-03-21 Andreas Jaeger <aj@suse.de>
839 * treetree.c (cpp_create_reader): Follow prototype change in
842 2003-03-17 Andreas Jaeger <aj@suse.de>
844 * Make-lang.in (treelang.tags): Remove duplicate entry.
846 2003-03-15 Andreas Jaeger <aj@suse.de>
848 * treetree.c (cpp_handle_option): Remove.
850 2003-03-13 Andreas Jaeger <aj@suse.de>
852 * Make-lang.in (tree1$(exeext)): Fix previous patch.
854 2003-03-12 Andreas Jaeger <aj@suse.de>
856 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
858 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
860 * tree1.c (in_fname): Fix type.
861 (treelang_init): Update prototype and use of in_fname.
862 * treelang.h (in_fname): Fix type.
863 * treetree.c (tree_code_if_start, tree_code_if_else,
864 tree_code_if_end, tree_code_create_function_prototype,
865 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
866 tree_code_create_variable, tree_code_output_expression_statement)
867 : Fix prototypes and use of filenames.
868 * treetree.h: Similarly.
870 2003-03-05 Andreas Jaeger <aj@suse.de>
872 * treetree.c (init_c_lex): Follow change to c-common.h.
874 2003-03-04 Tom Tromey <tromey@redhat.com>
876 * Make-lang.in (treelang.tags): New target.
878 2003-03-01 Tim Josling <tej@melbpc.org.au>
880 Name clashes with rtl.h fixed.
882 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
887 2003-02-24 Tim Josling <tej@melbpc.org.au>
889 * parse.y (my_yylex): New - ensure lexer time is charged to
891 (yylex): redefine as invocation of my_yylex which then calls
892 flex-generated yylex.
893 (timevar.h): include.
895 2003-02-23 Tim Josling <tej@melbpc.org.au>
897 Fix garbage collection, add more error checking, force GC always.
899 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
900 (treelang/treetree.o): Depend on treelang/parse.h
902 * lex.l: include "treetree.h"
904 * lex.l (update_yylval): Allocate string using get_string so GC
907 * parse.y (function_prototype): Set category correctly so GC works.
908 (function): Set category in search so checking works.
909 (function_invocation): Ditto.
910 (variable_ref): Ditto.
912 * tree1.c (lookup_tree_name): Call sanity_check for passed
913 production and associated token and for symbol table entries.
915 * tree1.c (sanity_check): New, basic check that struct is valid.
917 * treelang.h: Prototype for sanity_check.
919 2003-01-27 Tim Josling <tej@melbpc.org.au>
921 * treetree.c (treelang_init_decl_processing): Change memory
922 allocation to use GC.
924 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
926 * treelang.texi: Update to GFDL 1.2.
928 2003-01-26 Michael Matz <matz@suse.de>
930 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
932 2003-01-14 Andreas Jaeger <aj@suse.de>
934 * Make-lang.in (treelang.install-info): Depend only on info files
935 if BUILD_INFO is set. Fix install rules.
938 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
940 * Make-lang.in (treelang.install.common.done,
941 treelang.install-info, treelang.uninstall): Prepend
942 $(DESTDIR) to destination paths in all (un)installation
945 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
947 * treelang.texi: Use @copying.
949 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
951 * treelang.texi: Include gcc-common.texi.
952 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
953 Depend on gcc-common.texi. Add other missing dependencies.
954 (treelang.dvi): Use texi2dvi.
956 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
958 * treelang.texi: Use @ifnottex instead of @ifinfo.
960 2002-11-30 Zack Weinberg <zack@codesourcery.com>
962 * lex.l: Move "%{" below copyright notice; get rid of "/*"
963 embedded in comment. Do not #undef IN_GCC; do not include
964 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
965 Do include coretypes.h and tm.h.
966 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
967 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
968 ansidecl.h. Do include coretypes.h and tm.h.
969 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
970 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
971 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
972 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
973 or ansidecl.h. Do include coretypes.h and tm.h.
974 * Make-lang.in: Update dependencies.
976 2002-09-09 Tim Josling <tej@melbpc.org.au>
978 * treetree.c (objc_is_id): New.
980 2002-08-16 Tim Josling <tej@melbpc.org.au>
982 Remove variables and functions now defined elsewhere.
984 * treetree.c (maybe_objc_comptypes): Remove.
985 (warn_format, warn_format_y2k, warn_format_extra_args,
986 warn_format_nonliteral, warn_format_security,
987 warn_format_zero_length): Remove.
988 (maybe_building_objc_message_expr): Remove.
989 (cpp_post_options): Remove.
990 (maybe_objc_check_decl): Remove.
991 (integer_types): Remove.
994 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
996 * treelang.c: Remove cpp_post_options.
998 2002-08-13 Tim Josling <tej@melbpc.org.au>
1000 * parse.y: Provide dummy definition of rtx for use by config.h.
1001 * Make-lang.in (treetree.o): Remove dependency on non-existent
1002 gt-treelang-treelang.h.
1003 (gt-treelang-treelang.h): Remove.
1005 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
1007 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
1009 2002-07-11 Tim Josling <tej@melbpc.org.au>
1011 Remove front end hard coding from gengtype.c.
1013 * config-lang.in (gtfiles): Add files needed for this front
1016 2002-07-09 Tim Josling <tej@melbpc.org.au>
1018 Support new attributes regime (Fix for PR c++/7099).
1020 * treetree.c (handle_format_attribute): Return NULL_TREE instead
1022 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
1023 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
1024 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
1026 2002-06-21 Andreas Jaeger <aj@suse.de>
1028 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
1029 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
1031 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
1033 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
1036 2002-06-10 Tim Josling <tej@melbpc.org.au>
1040 * Make-lang.in (check-treelang). Add. Remove direct dependency of
1041 'check' on 'treelang.check' as redundant.
1043 PCH Garbage collection regime (gengtypes.c) phase 1.
1045 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
1046 gt-treelang-treelang.h gtype-treelang.h.
1047 (gt-treelang-tree1.h) Depend on s-gtype.
1048 (gt-treelang-treelang.h) Depend on s-gtype.
1049 (gtype-treelang.h) Depend on s-gtype.
1051 * config-lang.in (gtfiles): Define.
1053 * lex.l (main): Remove '#if 0' dead code.
1054 (main): Move undef of IN_GCC so define of tree typedef works.
1055 (all): Replace token and production by prod_token_parm_item.
1058 (all): Replace token and production by prod_token_parm_item.
1060 * tree1.c (main): Remove include of "output.h".
1061 (symbol_table): Add GTY details.
1062 (symbol_table_ggc): Remove.
1063 (treelang_init): Remove root definitions for garbage collection.
1064 (mark_production_used): Remove.
1065 (mark_token_used): Remove.
1066 (main, at end): include generated garage collection routines.
1068 * treelang.h (category_enum ): Add parameter_category.
1069 (all): Replace token and production and parameters by union
1070 prod_token_parm_item containing production_part, token_part,
1072 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1073 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1074 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1075 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
1079 (tm_p.h): Do not include.
1080 (ansidecl.h): Move include after config.h.
1081 (treelang.h): Include it.
1083 (all): Replace token, production and parameter by prod_token_parm_item.
1084 (tree_parameter_list): Move to treelang.h as part of
1085 prod_token_parm_item.
1086 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1087 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1088 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1089 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
1092 2002-05-19 Tim Josling <tej@melbpc.org.au>
1094 * treetree.c (warn_format_zero_length): Add.
1096 2002-05-14 Tim Josling <tej@melbpc.org.au>
1098 * Make-lang.in: Fix build for .info files, add target for manpages.
1099 A bug report and a suggested patch came from Magnus Fromreide
1100 <magfr@lysator.liu.se>.
1102 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1104 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1106 2002-05-11 Tim Josling <tej@melbpc.org.au>
1108 * treetree.c: (cpp_define) Add.
1109 (cpp_get_callbacks) Add.
1111 2002-05-07 Tim Josling <tej@melbpc.org.au>
1113 * treetree.c: (cpp_get_options) Add.
1115 2002-05-06 Tim Josling <tej@melbpc.org.au>
1119 2002-05-05 Tim Josling <tej@melbpc.org.au>
1121 * Updated for gcc3.2 experimental. Major changes throughout.
1123 2002-03-31 Tim Josling <tej@melbpc.org.au>
1125 * Make-lang.in: Changes so build and check work more reliably
1127 2001-07-30 Tim Josling <tej@melbpc.org.au>
1130 * treelang.texi: updates based on feedback
1132 2001-06-11 Tim Josling <tej@melbpc.org.au>
1134 * all (all) Revamp code to conform to GCC coding standards, fix
1135 typos in texi files.
1137 2001-05-11 Tim Josling <tej@melbpc.org.au>
1139 Create the new language.