1 2007-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3 * lex.l (update_yylval): Constify.
4 * treelang.h (struct token_part, struct parameter_part):
6 * treetree.c (tree_code_create_function_prototype,
7 tree_code_create_variable, tree_code_get_integer_value):
9 * treetree.h (tree_code_get_integer_value,
10 tree_code_create_function_prototype, tree_code_create_variable):
13 2007-07-25 Richard Guenther <rguenther@suse.de>
15 * treetree.c (tree_code_generate_return): RETURN_EXPRs
18 2007-07-17 Nick Clifton <nickc@redhat.com>
20 * parse.y: Change copyright header to refer to version 3 of the
21 GNU General Public License and to point readers at the COPYING3
25 * lang-specs.h: Likewise.
26 * treelang.h: Likewise.
27 * config-lang.in: Likewise.
28 * tree-convert.c: Likewise.
29 * treetree.c: Likewise.
31 * Make-lang.in: Likewise.
32 * treetree.h: Likewise.
35 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
37 * treetree.c (tree_lang_signed_type): Remove.
38 (LANG_HOOKS_SIGNED_TYPE): Remove.
40 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
42 * treetree.c (tree_lang_unsigned_type): Remove.
43 (LANG_HOOKS_UNSIGNED_TYPE): Remove.
45 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
47 * treetree.c (tree_lang_signed_or_unsigned_type): Remove.
48 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
50 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
52 * Make-lang.in: Add install-pdf target as copied from
55 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
57 * treelang.texi: Standardize title page, remove version number
60 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
62 * treetree.c (builtin_function): Remove.
64 2006-10-10 Brooks Moses <bmoses@stanford.edu>
66 * Make-lang.in: Added "treelang.pdf" target support.
68 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
70 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
72 2006-06-17 Karl Berry <karl@gnu.org>
74 * treelang.texi (@dircategory): Use "Software development"
75 instead of "Programming", following the Free Software Directory.
77 2006-06-06 Mike Stump <mrs@apple.com>
79 * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid
80 installing during build.
82 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
84 * Make-lang.in: Rename htmldir to gcc_htmldir.
86 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
89 * Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
92 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
94 * Make-lang.in (treelang/treetree.o): Add dependency on
97 2006-04-22 Matthias Klose <doko@debian.org>
99 * Make-lang.in (treelang.check): Don't set and pass TRANSFORM.
101 2006-03-29 Carlos O'Donell <caros@codesourcery.com>
103 * Make-lang.in: Rename docdir to gcc_docdir.
105 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
107 * Make-lang.in (.phony): Remove TREELANG.
110 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
112 * spec.c (lang_specific_driver): Update copyright notice date.
114 2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
116 * spec.c (lang_specific_spec_functions): Remove.
118 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
120 * Make-lang.in (treelang.distdir): Remove.
122 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
124 * Make-lang.in (treelang.all.build, treelang.install-normal): Remove.
126 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
128 * Make-lang.in: Remove all dependencies on s-gtype.
130 2005-12-05 Richard Guenther <rguenther@suse.de>
132 * treetree.c (tree_code_if_start, tree_code_create_variable,
133 tree_code_generate_return, tree_code_get_expression,
134 tree_code_add_parameter): Use fold_convert where appropriate.
136 2005-11-07 James A. Morrison <phython@gcc.gnu.org>
139 * treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
140 treelang_attribute_table.
141 (handle_attribute): New function.
142 (treelang_attribute_table): New attribute table.
144 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
146 * parse.y : Changed pointer declaration from "type* var" to "type *var"
147 Removed trailing space. Wrap long lines.
149 2005-09-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
151 * parse.y : Fixed two compile warnings in "error" and "warning"
152 invocations. Removed trailing periods in messages. Decapitalized the
155 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
157 * tree-convert.c (convert): Use fold_build1 instead of
160 2005-08-06 James A. Morrison <phython@gcc.gnu.org>
163 * Make-lang.in: Remove old testing cruft.
165 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
167 * all files: Update FSF address in copyright headers.
169 2005-06-15 James A. Morrison <phython@gcc.gnu.org>
171 * parse.y (function_invocation): Reverse parameter list.
172 * treetree.c (tree_code_get_expression): Don't reverse parameter list.
174 2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
176 * treetree.c (tree_code_get_expression): Call build_function_call_expr
177 to build function calls.
179 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
181 * treelang/lex.l, treelang/parse.y: Don't include errors.h and
183 * treelang/Make-lang.in: Updates dependencies.
185 2005-05-02 Andrew Pinski <pinskia@physics.uc.edu>
188 * parse.y (parameters_opt): Add semicolon at the end.
190 2005-04-29 Tom Tromey <tromey@redhat.com>
192 * treetree.c (poplevel): Updated for change to build_block.
194 2005-04-23 DJ Delorie <dj@redhat.com>
196 * parse.y: Adjust warning() callers.
198 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
200 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
202 2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
205 * lang-spec.c: Simplify @treelang to what the other
208 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
210 * treelang/treelang.texi: Fix typos.
211 * treelang/treetree.c: Fix comment typos.
213 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
215 * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
216 tree_lang_truthvalue_conversion): Remove.
217 * tree-convert.c: Don't call truthvalue_conversion.
219 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
221 * treetree.c (tree_code_if_start): Use fold_buildN.
222 (tree_code_create_variable): Likewise.
223 (tree_code_generate_return): Likewise.
224 (tree_code_get_expression): Likewise.
225 (tree_code_add_parameter): Likewise.
227 2005-03-22 James A. Morrison <phython@gcc.gnu.org>
229 * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
232 2005-03-15 Zack Weinberg <zack@codesourcery.com>
234 * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
236 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
239 * Make-lang.in (gtreelang, treelang/spec.o): New targets.
242 2005-02-27 Kazu Hirata <kazu@cs.umass.edu>
244 * treelang.texi: Fix a typo.
246 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
248 * parse.y (function_invocation, variable-ref, make_plus_expression):
249 Pass location to tree_code_get_expression.
250 * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
251 (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
252 set EXPR_LOCATION on ret1.
253 * treetree.h (tree_code_get_expression): Take the location of the
254 expression as an argument.
256 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
258 * treelang.texi: Treelang does have warnings.
259 * treetree.c (tree_code_create_function_prototype): Don't set
260 TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
261 as few times as needed on the function declaration.
262 (tree_code_create_function_initial): Don't set TREE_USED,
263 TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
264 (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
265 (tree_code_get_expression): Set TREE_USED for variable references
268 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
270 * parse.y: Do comparisons as the type of the first expression.
271 * treetree.c (tree_code_get_integer_value): Build integer constants
272 with the proper type.
274 2005-02-26 James A. Morrison <phython@gcc.gnu.org>
276 * Make-lang.in: Remove commented out code.
277 * lang-specs.h: Always pass -dumpbase to tree1.
279 2005-02-25 James A. Morrrison <phython@gcc.gnu.org>
281 * treelang.texi: Remove extra contribution notice.
282 Split up some run-on sentences. Document function parameters
283 as optional. Indicate automatic variables can now be at any scope.
284 Mention literals are only signed if they are preceded by a unary
285 plus or minus. Clarify interoperability with C.
287 2005-02-25 James A. Morrison <phython@gcc.gnu.org>
289 * treelang.texi: Fix whitespacing.
291 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
294 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
295 TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call
296 rest_of_decl_compilation on static variables.
297 (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
300 2005-02-24 James A. Morrison <phython@gcc.gnu.org>
303 * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
304 Move function parameters check from ...
305 (function): ...Here. Update call to tree_code_create_function_initial.
306 (function_invocation): Use expressions_with_commas_opt instead of
307 expressions_with_commas.
308 (expressions_with_commas_opt): New rule.
309 * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
310 for function parameters.
311 (tree_code_create_function_initial): Remove PARMS parameter.
312 Don't create PARM_DECLs for function parameters.
313 * treetree.h (tree_code_create_function_initial): Remove PARMS
316 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
318 * parse.y: Update copyright.
320 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
322 * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
323 scalar integer types.
325 2005-02-09 Richard Henderson <rth@redhat.com>
327 * treetree.c (treelang_init_decl_processing): Call
328 build_common_builtin_nodes.
330 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
332 * treelang.texi: Don't use local treelang version number. Don't
333 give last update date.
335 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
337 * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
339 2005-02-01 James A. Morrison <phython@gcc.gnu.org>
341 * parse.y: Reformat comments.
342 * treetree.c: Likewise.
343 * treetree.h: Likewise.
345 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
347 * treetree.c (tree_code_generate_return): Wrap param declaration in
350 2004-10-05 Zack Weinberg <zack@codesourcery.com>
352 * parse.y: Add list of diagnostic messages to insulate
353 translation template from version of yacc/bison used to
356 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
359 * lex.l: Include input.h and errors.h
360 (lineno): New variable.
361 (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
363 Set column position with LINEMAP_POSITION_FOR_COLUMN.
364 Use error instead of fprintf.
365 Set input_location with the value returned by linemap_start_line when
366 USE_MAPPED_LOCATION is defined.
367 (dump_lex_value): Use LOCATION_LINE.
368 * parse.y: Include errors.h.
369 Use error and warning instead of fprintf.
370 (return): Move exp to rule scope and always set to $2. Test against
372 (init): Set $$ to $2.
373 (print_token): Use LOCATION_LINE.
374 * tree1.c (treelang_init): Call treelang_init_decl_processing last.
375 Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
377 (treelang_parse_file): Always start at line one.
378 Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
380 Leave main_input_filename when done parsing the input.
381 (insert_tree_name): Use error instead of fprintf.
382 * treetree.c (tree_code_get_expression): Wrap long line.
383 (tree_mark_addressable): Use %qD to print out DECLs.
385 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
387 * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
389 * treetree.c: Likewise.
391 2004-10-02 James A. Morrison <phython@gcc.gnu.org>
393 * lex.l: Remove random whitespace.
394 * parse.y: Reformat copyright notice. Indent declarations.
395 Wrap long lines, unwrap short lines.
396 * tree1.c: Reformat copyright notice. Wrap long lines.
397 Remove random whitespace.
398 (lookup_tree_name): Use LOCATION_LINE.
399 * treetree.c: Reformat copyright notice. Wrap long lines.
400 Remove random whitespace.
402 2004-10-01 James A. Morrison <phython@gcc.gnu.org>
404 * parse.y (ELSE): Set tok to $1.
405 * treelang.texi: Wrap comments in @r{}. Indent example comments.
406 Use gcc when refering to the command line or website. Update function
409 2004-10-01 Jan Hubicka <jh@suse.cz>
411 * treetree.c (treeland_expand_function): Update call of
412 tree_rest_of_compilation.
414 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
415 Zack Weinberg <zack@codesourcery.com>
417 * treetree.c: Update for new tree-class enumeration constants.
419 2004-09-15 Zack Weinberg <zack@codesourcery.com>
421 * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
423 2004-08-26 Nathan Sidwell <nathan@codesourcery.com>
425 * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
427 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
429 * treelang/treetree.c (treelang_init_decl_processing): Adjust
430 build_common_tree_nodes call.
432 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
434 * treetree.c (tree_code_get_integer_value): Use build_int_cst.
436 2004-07-31 James A. Morrison <phython@gcc.gnu.org>
438 * Make-lang.in (TREE_BE_LIBS): Remove.
439 (tree1): Depend on BACKEND and LIBDEPS. Use BACKEND and LIBS instead
441 * parse.y: Add variable_defs_opt before statements_opt.
442 Use tree_code_get_type instead of get_type_for_numeric_type.
444 (parameters_opt): New rule.
445 (function_prototype): Use parameters_opt.
446 (return): Remove calls to print_token in error cases. Use VOID_TYPE.
447 (check_type_match): Use VOID_TYPE.
448 * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
449 * tree1.c: Include version.h and cgraph.h
450 (treelang_parse_file): Call cgraph_finalize_compilation_unit and
452 * treelang.h (item): Remove extraneous GTY.
453 * treetree.h (get_type_for_numeric_type): Remove.
454 * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
455 function.h, and cgraph.h. Don't include rtl.h
456 (keep_level_p): Remove.
457 (tree_push_atomic_type_decl): Remove.
458 (get_type_for_numeric_type): Remove.
459 (tree_code_get_numeric_type): Remove.
460 (global_bindings_p): Make static.
461 (getdecls): Likewise.
462 (insert_block): Likewise.
463 (tree_code_if_start): Create a COND_EXPR and add it to the tree
464 instead of creating rtl.
465 (tree_code_if_else): Create a BIND_EXPR if any variables were created
467 (tree_code_end_if): Likewise.
468 (tree_code_create_function_prototype): Use tree_code_get_type.
469 Don't use SET_DECL_ASSEMBLER_NAME.
470 (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
471 DECL_IGNORING_P on RESULT_DECL. Use tree_code_get_type. Don't call
472 layout_decl on RESULT_DECL. Don't call rtl expand functions.
473 (tree_code_create_function_wrapup): Don't call rtl expand functions.
474 Create a BIND_EXPR for each function. Dump original and gimplified
475 copies of the function tree. Gimplify function.
476 (tree_code_create_variable): Use tree_code_get_type. Don't call
477 layout_decl or expand_decl. Fold CONVERT_EXPRs.
478 (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
479 Add RETURN_EXPR to the current statement list. Don't call rtl expand
481 (tree_code_output_expression_statement): Append CODE to current
483 (tree_code_get_expression): Fold expressions. Build a pointer to
484 a FUNCTION_TYPE intead of the called functions return type.
485 (struct binding_level): Add statement list STMTS.
486 (getstmtlist): New Function.
487 (pushlevel): Make static. Allocate an empty statement list.
488 (poplevel): Make static. Don't clear BLOCK_NODE's BLOCK_VARS.
489 Don't use DECL_ASSEMBLER_NAME.
490 (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
491 (treelang_init_decl_processing): Define basic types after unused types.
492 Don't call tree_push_atomic_type_decl.
493 (builtin_function): Don't call make_decl_rtl.
494 (treelang_expand_function). New Function.
496 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
498 * treetree.c (set_block): Remove.
499 (struct binding_level): Remove block_created_by_back_end.
500 (clear_binding_level): Likewise.
501 (tree_code_create_function_initial,
502 tree_code_create_function_wrapup): Call pushlevel and poplevel
503 directly rather than through hooks.
504 (poplevel): Don't handle block_created_by_back_end.
506 2004-04-07 Richard Henderson <rth@redhat.com>
508 * treetree.c (tree_mark_addressable): Don't put_var_into_stack.
510 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
512 * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
515 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
517 * treelang.texi: Update link to "G++ and GCC".
519 2004-02-20 Richard Henderson <rth@redhat.com>
521 * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
523 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
525 * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
527 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
529 * Make-lang.in: Replace $(docdir) with doc.
530 (treelang.info, treelang.srcinfo): New rules.
531 (treelang.man, treelang.man): Dummy entries.
533 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
535 * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
536 (treelang/parse.o, treelang/lex.o): Look for sources in build
537 directory. Use implicit rule.
538 (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
540 (treelang.srcextra): Copy above back to source directory if requested.
542 2004-01-07 Zack Weinberg <zack@codesourcery.com>
544 * parse.y (yyerror): Mark the definition static.
546 2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
548 * lex.l: Add \t as a whitespace character.
549 * treelang.texi (Lexical Syntax): Document a tab as whitespace.
551 * treelang.texi (What is GNU Treelang?): Fix a typo.
552 (Lexical Syntax): Create an itemize list of keywords. Add commas to
553 paragraph defining names.
555 2003-11-26 Jason Merrill <jason@redhat.com>
557 * Make-lang.in (treelang.tags): Create TAGS.sub files in each
558 directory and TAGS files that include them for each front end.
560 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
562 * .cvsignore: Delete.
564 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
566 * Make-lang.in (treelang.extraclean): Delete.
568 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
570 * Make-lang.in: Remove obsolete comment.
572 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
574 * Make-lang.in (dvi): Move targets to $(docobjdir).
575 (treelang.dvi): Simplify rule and adjust target.
576 (treelang.info): Simplify rule.
577 (parse.o): Correct dependencies.
578 (TREE_EXE): Delete doubled suffix append.
580 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
582 * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
585 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
587 * Make-lang.in (parse.o): Honor $(parsedir).
590 (parse.c, parse.h): Likewise.
591 ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
594 2003-10-20 Mark Mitchell <mark@codesourcery.com>
596 * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
599 * Make-lang.in (info): Use docobjdir.
600 ($(srcdir)/treelang/treelang.info): Replace with ...
601 ($(docobjdir)/treelang/treelang.info): ... this.
602 (install-info): New target.
604 2003-10-12 Andreas Jaeger <aj@suse.de>
606 * Make-lang.in (treelang.install-info): Remove reference to
608 (treelang.): Removed.
610 2003-10-06 Mark Mitchell <mark@codesourcery.com>
612 * Make-lang.in (treelang.info): Replace with ...
614 * Make-lang.in (treelang.dvi): Replace with ...
617 2003-09-21 Richard Henderson <rth@redhat.com>
619 * treetree.c: Revert.
621 2003-09-21 Richard Henderson <rth@redhat.com>
623 * treetree.c: Update for DECL_SOURCE_LOCATION rename and
626 2003-07-28 Andreas Jaeger <aj@suse.de>
628 * treetree.c: Convert remaining K&R prototypes to ISO C90.
631 * tree-convert.c: Likewise.
633 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
635 * treetree.c: Remove unnecessary casts.
637 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
639 * lang-options.h: Remove.
640 * lang.opt: Document some options. Remove --help.
641 * tree1.c (treelang_handle_option): Remove OPT__help case.
643 2003-07-12 Andreas Jaeger <aj@suse.de>
645 * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
647 2003-07-10 Neil Booth <neil@daikokuya.co.uk>
649 * Make-lang.in: Update.
650 * tree1.c: Don't include c-common.h.
651 (c_language): Remove.
653 2003-07-10 Fergus Henderson <fjh@cs.mu.oz.au>
654 Steven Bosscher <steven@gcc.gnu.org>
656 * tree-convert.c: New file.
657 * treetree.c: Don't include c-tree.h. Include target.h.
658 (struct lang_identifier, union lang_tree_node, struct lang_type,
659 struct lang_function): New, minimal language-specific datastructs.
660 (tree_lang_truthvalue_conversion, tree_mark_addressable,
661 tree_lang_type_for_size, tree_lang_type_for_mode,
662 tree_lang_unsigned_type, tree_lang_signed_type,
663 tree_lang_signed_or_unsigned): New functions.
664 (LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
665 (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
666 pushdecl, getdecls, kept_level_p, tree_push_type_decl,
667 tree_push_atomic_type_decl): New functions.
668 (struct resword, struct reswords): Remove.
669 * Make-lang.in: Update. Don't depend on C front end objects.
670 * config-lang.in: Likewise.
672 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
674 * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
675 tree_code_if_end, tree_code_create_function_initial,
676 tree_code_create_function_wrapup, tree_code_generate_return,
677 tree_code_output_expression_statement): Adjust emit_line_note
680 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
682 * Make-lang.in: Replace PWD with PWD_COMMAND.
684 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
686 * tree1.c (treelang_init_options): Update prototype.
687 * treelang.h (treelang_init_options): Update prototype.
689 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
691 * Make-lang.in: Update.
692 * tree1.c: Include c-common.h. Define c_language.
694 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
696 * treetree.c (tree_code_create_function_wrapup): Adjust
697 expand_function_end call.
699 2003-06-18 Nathan Sidwell <nathan@codesourcery.com>
701 * treetree.c (build_stmt): Remove VPARAMS.
702 (pedwarn_c99): Likewise.
704 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
706 * lang.opt: Declare Treelang. Update.
707 * tree1.c (treelang_init_options): Update.
709 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
711 * treetree.c (tree_code_create_function_initial): Adjust
712 init_function_start call.
714 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
716 * Make-lang.in: Update to use options.c and options.h.
717 * tree1.c: Include options.h not t-options.h.
718 (treelang_init_options): New.
719 (treelang_handle_option): Abort on unrecognized switch.
720 * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
721 * treetree.h (treelang_init_options): New.
723 2003-06-12 Andreas Jaeger <aj@suse.de>
725 * treetree.c: Remove cl_options-count and cl_options.
727 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
729 * Make-lang.in: Update for option handling.
731 * tree1.c: Include opts.h and t-options.h.
732 (treelang_decode_option): Remove.
733 (treelang_handle_option): New.
734 * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
735 (LANG_HOOKS_HANDLE_OPTION): Override.
736 * treetree.h (treelang_decode_option): Remove.
737 (treelang_handle_option): New.
739 2003-06-08 Andreas Jaeger <aj@suse.de>
741 * Make-lang.in: Update.
742 * treetree.c: Include opts.h. Define cl_options_count and cl_options.
744 2003-06-08 Tim Josling <tej@melbpc.org.au>
746 * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
748 2003-06-05 Jan Hubicka <jh@suse.cz>
750 * Make-lang.in: Add support for stageprofile and stagefeedback
752 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
754 * treetree.c (reswords): Remove __bounded__, __unbounded__.
756 2003-05-09 Tim Josling <tej@melbpc.org.au>
758 * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
759 to link (needed by some front ends such as PPC).
761 * treetree.c (tree_code_create_function_initial): Fix long line.
762 Initialize tree_code_int_size and tree_code_char_size to
764 (tree_code_get_numeric_type): Add check that size1 parameter is
767 * parse.y: Fix extra long lines in prototypes.
769 * treelang.h: Fix extra long lines in macro definitions.
771 2003-05-07 Zack Weinberg <zack@codesourcery.com>
773 * Make-lang.in: Set -Wno-error for treelang/lex.o.
775 2003-05-06 Nathan Sidwell <nathan@codesourcery.com>
777 * Make-lang.in (treelang/tree1.o): Depends on input.h
778 (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
779 * treelang.h: #include input.h.
781 (struct token_part): Remove lineno, add location.
782 * lex.l (next_tree_lineno): Remove.
783 (update_lineno_charno): Adjust.
784 (dump_lex_value): Adjust.
785 * parse.y (variable_def, function_prototype, function, statement,
786 if_statement, return, function_invocation, variable_ref): Adjust.
787 (print_token, yyerror, ensure_not_void): Adjust.
788 tree1.c (in_fname): Remove.
789 (treelang_init): Setup input_location.
790 (lookup_tree_name): Adjust.
791 (insert_tree_name): Adjust.
792 * treetree.c (tree_code_if_start): Replace filename and lineno
793 parms with loc. Adjust.
794 (tree_code_if_else, tree_code_if_end,
795 tree_code_create_function_prototype,
796 tree_code_create_function_initial,
797 tree_code_create_function_wrapup, tree_code_create_variable,
798 tree_code_output_expression_statement): Likewise.
799 * treetree.h (tree_code_if_start): Replace filename and lineno
801 (tree_code_if_else, tree_code_if_end,
802 tree_code_create_function_prototype,
803 tree_code_create_function_initial,
804 tree_code_create_function_wrapup, tree_code_create_variable,
805 tree_code_output_expression_statement): Likewise.
807 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
809 * tree1.c (treelang_init): Rename lineno to input_line.
811 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
813 * parse.y (make_plus_expression): New function.
814 (expression production): Use make_plus_expression for PLUS,
815 MINUS, ASSIGN and EQUALS.
816 * tree1.c (treelang_decode_option): Don't fall through to
817 options that start with a different character when an option
820 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
822 * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
823 * treetree.c: Do not #include parse.h.
825 2003-03-21 Andreas Jaeger <aj@suse.de>
827 * treetree.c (cpp_create_reader): Follow prototype change in
830 2003-03-17 Andreas Jaeger <aj@suse.de>
832 * Make-lang.in (treelang.tags): Remove duplicate entry.
834 2003-03-15 Andreas Jaeger <aj@suse.de>
836 * treetree.c (cpp_handle_option): Remove.
838 2003-03-13 Andreas Jaeger <aj@suse.de>
840 * Make-lang.in (tree1$(exeext)): Fix previous patch.
842 2003-03-12 Andreas Jaeger <aj@suse.de>
844 * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
846 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
848 * tree1.c (in_fname): Fix type.
849 (treelang_init): Update prototype and use of in_fname.
850 * treelang.h (in_fname): Fix type.
851 * treetree.c (tree_code_if_start, tree_code_if_else,
852 tree_code_if_end, tree_code_create_function_prototype,
853 tree_code_create_function_initial, tree_code_create_funciton_wrapup,
854 tree_code_create_variable, tree_code_output_expression_statement)
855 : Fix prototypes and use of filenames.
856 * treetree.h: Similarly.
858 2003-03-05 Andreas Jaeger <aj@suse.de>
860 * treetree.c (init_c_lex): Follow change to c-common.h.
862 2003-03-04 Tom Tromey <tromey@redhat.com>
864 * Make-lang.in (treelang.tags): New target.
866 2003-03-01 Tim Josling <tej@melbpc.org.au>
868 Name clashes with rtl.h fixed.
870 * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
875 2003-02-24 Tim Josling <tej@melbpc.org.au>
877 * parse.y (my_yylex): New - ensure lexer time is charged to
879 (yylex): redefine as invocation of my_yylex which then calls
880 flex-generated yylex.
881 (timevar.h): include.
883 2003-02-23 Tim Josling <tej@melbpc.org.au>
885 Fix garbage collection, add more error checking, force GC always.
887 * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
888 (treelang/treetree.o): Depend on treelang/parse.h
890 * lex.l: include "treetree.h"
892 * lex.l (update_yylval): Allocate string using get_string so GC
895 * parse.y (function_prototype): Set category correctly so GC works.
896 (function): Set category in search so checking works.
897 (function_invocation): Ditto.
898 (variable_ref): Ditto.
900 * tree1.c (lookup_tree_name): Call sanity_check for passed
901 production and associated token and for symbol table entries.
903 * tree1.c (sanity_check): New, basic check that struct is valid.
905 * treelang.h: Prototype for sanity_check.
907 2003-01-27 Tim Josling <tej@melbpc.org.au>
909 * treetree.c (treelang_init_decl_processing): Change memory
910 allocation to use GC.
912 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
914 * treelang.texi: Update to GFDL 1.2.
916 2003-01-26 Michael Matz <matz@suse.de>
918 * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
920 2003-01-14 Andreas Jaeger <aj@suse.de>
922 * Make-lang.in (treelang.install-info): Depend only on info files
923 if BUILD_INFO is set. Fix install rules.
926 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
928 * Make-lang.in (treelang.install.common.done,
929 treelang.install-info, treelang.uninstall): Prepend
930 $(DESTDIR) to destination paths in all (un)installation
933 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
935 * treelang.texi: Use @copying.
937 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
939 * treelang.texi: Include gcc-common.texi.
940 * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
941 Depend on gcc-common.texi. Add other missing dependencies.
942 (treelang.dvi): Use texi2dvi.
944 2002-12-22 Joseph S. Myers <jsm@polyomino.org.uk>
946 * treelang.texi: Use @ifnottex instead of @ifinfo.
948 2002-11-30 Zack Weinberg <zack@codesourcery.com>
950 * lex.l: Move "%{" below copyright notice; get rid of "/*"
951 embedded in comment. Do not #undef IN_GCC; do not include
952 stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
953 Do include coretypes.h and tm.h.
954 * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
955 and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
956 ansidecl.h. Do include coretypes.h and tm.h.
957 * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
958 stdarg.h, string.h, or stdio.h. Do include coretypes.h and tm.h.
959 * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
960 errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
961 or ansidecl.h. Do include coretypes.h and tm.h.
962 * Make-lang.in: Update dependencies.
964 2002-09-09 Tim Josling <tej@melbpc.org.au>
966 * treetree.c (objc_is_id): New.
968 2002-08-16 Tim Josling <tej@melbpc.org.au>
970 Remove variables and functions now defined elsewhere.
972 * treetree.c (maybe_objc_comptypes): Remove.
973 (warn_format, warn_format_y2k, warn_format_extra_args,
974 warn_format_nonliteral, warn_format_security,
975 warn_format_zero_length): Remove.
976 (maybe_building_objc_message_expr): Remove.
977 (cpp_post_options): Remove.
978 (maybe_objc_check_decl): Remove.
979 (integer_types): Remove.
982 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
984 * treelang.c: Remove cpp_post_options.
986 2002-08-13 Tim Josling <tej@melbpc.org.au>
988 * parse.y: Provide dummy definition of rtx for use by config.h.
989 * Make-lang.in (treetree.o): Remove dependency on non-existent
990 gt-treelang-treelang.h.
991 (gt-treelang-treelang.h): Remove.
993 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
995 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
997 2002-07-11 Tim Josling <tej@melbpc.org.au>
999 Remove front end hard coding from gengtype.c.
1001 * config-lang.in (gtfiles): Add files needed for this front
1004 2002-07-09 Tim Josling <tej@melbpc.org.au>
1006 Support new attributes regime (Fix for PR c++/7099).
1008 * treetree.c (handle_format_attribute): Return NULL_TREE instead
1010 (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
1011 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
1012 LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
1014 2002-06-21 Andreas Jaeger <aj@suse.de>
1016 * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
1017 treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
1019 2002-06-19 Paolo Bonzini <bonzini@gnu.org>
1021 * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
1024 2002-06-10 Tim Josling <tej@melbpc.org.au>
1028 * Make-lang.in (check-treelang). Add. Remove direct dependency of
1029 'check' on 'treelang.check' as redundant.
1031 PCH Garbage collection regime (gengtypes.c) phase 1.
1033 * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
1034 gt-treelang-treelang.h gtype-treelang.h.
1035 (gt-treelang-tree1.h) Depend on s-gtype.
1036 (gt-treelang-treelang.h) Depend on s-gtype.
1037 (gtype-treelang.h) Depend on s-gtype.
1039 * config-lang.in (gtfiles): Define.
1041 * lex.l (main): Remove '#if 0' dead code.
1042 (main): Move undef of IN_GCC so define of tree typedef works.
1043 (all): Replace token and production by prod_token_parm_item.
1046 (all): Replace token and production by prod_token_parm_item.
1048 * tree1.c (main): Remove include of "output.h".
1049 (symbol_table): Add GTY details.
1050 (symbol_table_ggc): Remove.
1051 (treelang_init): Remove root definitions for garbage collection.
1052 (mark_production_used): Remove.
1053 (mark_token_used): Remove.
1054 (main, at end): include generated garage collection routines.
1056 * treelang.h (category_enum ): Add parameter_category.
1057 (all): Replace token and production and parameters by union
1058 prod_token_parm_item containing production_part, token_part,
1060 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1061 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1062 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1063 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
1067 (tm_p.h): Do not include.
1068 (ansidecl.h): Move include after config.h.
1069 (treelang.h): Include it.
1071 (all): Replace token, production and parameter by prod_token_parm_item.
1072 (tree_parameter_list): Move to treelang.h as part of
1073 prod_token_parm_item.
1074 (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
1075 EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
1076 UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
1077 EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
1080 2002-05-19 Tim Josling <tej@melbpc.org.au>
1082 * treetree.c (warn_format_zero_length): Add.
1084 2002-05-14 Tim Josling <tej@melbpc.org.au>
1086 * Make-lang.in: Fix build for .info files, add target for manpages.
1087 A bug report and a suggested patch came from Magnus Fromreide
1088 <magfr@lysator.liu.se>.
1090 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1092 * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
1094 2002-05-11 Tim Josling <tej@melbpc.org.au>
1096 * treetree.c: (cpp_define) Add.
1097 (cpp_get_callbacks) Add.
1099 2002-05-07 Tim Josling <tej@melbpc.org.au>
1101 * treetree.c: (cpp_get_options) Add.
1103 2002-05-06 Tim Josling <tej@melbpc.org.au>
1107 2002-05-05 Tim Josling <tej@melbpc.org.au>
1109 * Updated for gcc3.2 experimental. Major changes throughout.
1111 2002-03-31 Tim Josling <tej@melbpc.org.au>
1113 * Make-lang.in: Changes so build and check work more reliably
1115 2001-07-30 Tim Josling <tej@melbpc.org.au>
1118 * treelang.texi: updates based on feedback
1120 2001-06-11 Tim Josling <tej@melbpc.org.au>
1122 * all (all) Revamp code to conform to GCC coding standards, fix
1123 typos in texi files.
1125 2001-05-11 Tim Josling <tej@melbpc.org.au>
1127 Create the new language.