Shuffle ChangeLog entries into new files ChangeLog-1998,
[official-gcc.git] / gcc / treelang / ChangeLog
blobb1a80e940e0dc881b4311017e2db5978c76b4c0a
1 2005-05-02  Andrew Pinski  <pinskia@physics.uc.edu>
3         PR treelang/21345
4         * parse.y (parameters_opt): Add semicolon at the end.
6 2005-04-29  Tom Tromey  <tromey@redhat.com>
8         * treetree.c (poplevel): Updated for change to build_block.
10 2005-04-23  DJ Delorie  <dj@redhat.com>
12         * parse.y: Adjust warning() callers.
14 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
16         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
18 2005-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
20         PR treelang/20604
21         * lang-spec.c: Simplify @treelang to what the other
22         languages do.
24 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26         * treelang/treelang.texi: Fix typos.
27         * treelang/treetree.c: Fix comment typos.
29 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
31         * treetree.c (LANG_HOOKS_TRUTHVALUE_CONVERSION,
32         tree_lang_truthvalue_conversion): Remove.
33         * tree-convert.c: Don't call truthvalue_conversion.
35 2005-03-22  James A. Morrison  <phython@gcc.gnu.org>
37         * treetree.c (tree_code_if_start): Use fold_buildN. 
38         (tree_code_create_variable): Likewise.
39         (tree_code_generate_return): Likewise.
40         (tree_code_get_expression): Likewise.
41         (tree_code_add_parameter): Likewise.
43 2005-03-22  James A. Morrison  <phython@gcc.gnu.org>
45         * treelang.h (struct parameter_part): Skip WHERE_TO_PUT_VAR_TREE
46         during GC.
48 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
50         * Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
52 2005-03-06  James A. Morrison  <phython@gcc.gnu.org>
54         PR other/20326
55         * Make-lang.in (gtreelang, treelang/spec.o): New targets.
56         * spec.c: New file.
58 2005-02-27  Kazu Hirata  <kazu@cs.umass.edu>
60         * treelang.texi: Fix a typo.
62 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
64         * parse.y (function_invocation, variable-ref, make_plus_expression):
65         Pass location to tree_code_get_expression.
66         * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
67         (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
68         set EXPR_LOCATION on ret1.
69         * treetree.h (tree_code_get_expression): Take the location of the
70         expression as an argument.
72 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
74         * treelang.texi: Treelang does have warnings.
75         * treetree.c (tree_code_create_function_prototype): Don't set
76         TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
77         as few times as needed on the function declaration.
78         (tree_code_create_function_initial): Don't set TREE_USED,
79         TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
80         (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
81         (tree_code_get_expression): Set TREE_USED for variable references
82         and function calls.
84 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
86         * parse.y: Do comparisons as the type of the first expression.
87         * treetree.c (tree_code_get_integer_value): Build integer constants
88         with the proper type.
90 2005-02-26  James A. Morrison  <phython@gcc.gnu.org>
92         * Make-lang.in: Remove commented out code.
93         * lang-specs.h: Always pass -dumpbase to tree1.
95 2005-02-25  James A. Morrrison  <phython@gcc.gnu.org>
97         * treelang.texi: Remove extra contribution notice.
98         Split up some run-on sentences.  Document function parameters
99         as optional.  Indicate automatic variables can now be at any scope.
100         Mention literals are only signed if they are preceded by a unary
101         plus or minus.  Clarify interoperability with C.
103 2005-02-25  James A. Morrison  <phython@gcc.gnu.org>
105         * treelang.texi: Fix whitespacing.
107 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
109         PR other/19896
110         * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
111         TREE_PUBLIC, and TREE_STATIC for var_decl to zero.  Don't call
112         rest_of_decl_compilation on static variables.
113         (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
114         variables.
116 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
118         PR other/19897
119         * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
120         Move function parameters check from ...
121         (function): ...Here.  Update call to tree_code_create_function_initial.
122         (function_invocation): Use expressions_with_commas_opt instead of
123         expressions_with_commas.
124         (expressions_with_commas_opt): New rule.
125         * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
126         for function parameters.
127         (tree_code_create_function_initial): Remove PARMS parameter.
128         Don't create PARM_DECLs for function parameters.
129         * treetree.h (tree_code_create_function_initial): Remove PARMS
130         parameter.
132 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
134         * parse.y: Update copyright.
136 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
138         * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
139         scalar integer types.
141 2005-02-09  Richard Henderson  <rth@redhat.com>
143         * treetree.c (treelang_init_decl_processing): Call
144         build_common_builtin_nodes.
146 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
148         * treelang.texi: Don't use local treelang version number.  Don't
149         give last update date.
151 2005-02-01  James A. Morrison  <phython@gcc.gnu.org>
153         * lex.l: Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
155 2005-02-01  James A. Morrison  <phython@gcc.gnu.org>
157         * parse.y: Reformat comments.
158         * treetree.c: Likewise.
159         * treetree.h: Likewise.
161 2004-10-24  James A. Morrison  <phython@gcc.gnu.org>
163         * treetree.c (tree_code_generate_return): Wrap param declaration in
164         ENABLE_CHECKING.
166 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
168         * parse.y: Add list of diagnostic messages to insulate
169         translation template from version of yacc/bison used to
170         compile the grammar.
172 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
174         PR other/17762
175         * lex.l: Include input.h and errors.h
176         (lineno): New variable.
177         (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
178         is not defined.
179         Set column position with LINEMAP_POSITION_FOR_COLUMN.
180         Use error instead of fprintf.
181         Set input_location with the value returned by linemap_start_line when
182         USE_MAPPED_LOCATION is defined.
183         (dump_lex_value): Use LOCATION_LINE.
184         * parse.y: Include errors.h.
185         Use error and warning instead of fprintf.
186         (return): Move exp to rule scope and always set to $2.  Test against
187         exp instead of $2.
188         (init): Set $$ to $2.
189         (print_token): Use LOCATION_LINE.
190         * tree1.c (treelang_init): Call treelang_init_decl_processing last.
191         Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
192         defined.
193         (treelang_parse_file): Always start at line one.
194         Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
195         defined.
196         Leave main_input_filename when done parsing the input.
197         (insert_tree_name): Use error instead of fprintf.
198         * treetree.c (tree_code_get_expression): Wrap long line.
199         (tree_mark_addressable): Use %qD to print out DECLs.
201 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
203         * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
204         * tree1.c: Likewise.
205         * treetree.c: Likewise.
207 2004-10-02  James A. Morrison  <phython@gcc.gnu.org>
209         * lex.l: Remove random whitespace.
210         * parse.y: Reformat copyright notice.  Indent declarations.
211         Wrap long lines, unwrap short lines.
212         * tree1.c: Reformat copyright notice.  Wrap long lines.
213         Remove random whitespace.
214         (lookup_tree_name): Use LOCATION_LINE.
215         * treetree.c: Reformat copyright notice.  Wrap long lines.
216         Remove random whitespace.
218 2004-10-01  James A. Morrison  <phython@gcc.gnu.org>
220         * parse.y (ELSE): Set tok to $1.
221         * treelang.texi: Wrap comments in @r{}.  Indent example comments.
222         Use gcc when refering to the command line or website.  Update function
223         definition.
225 2004-10-01  Jan Hubicka  <jh@suse.cz>
227         * treetree.c (treeland_expand_function): Update call of
228         tree_rest_of_compilation.
230 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
231             Zack Weinberg  <zack@codesourcery.com>
233         * treetree.c: Update for new tree-class enumeration constants.
235 2004-09-15  Zack Weinberg  <zack@codesourcery.com>
237         * Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
239 2004-08-26  Nathan Sidwell  <nathan@codesourcery.com>
241         * treetree.c (tree_code_get_integer_value): Fix build_int_cst call.
243 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
245         * treelang/treetree.c (treelang_init_decl_processing): Adjust
246         build_common_tree_nodes call.
248 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
250         * treetree.c (tree_code_get_integer_value): Use build_int_cst.
252 2004-07-31  James A. Morrison  <phython@gcc.gnu.org>
254         * Make-lang.in (TREE_BE_LIBS): Remove.
255         (tree1): Depend on BACKEND and LIBDEPS.  Use BACKEND and LIBS instead
256         of TREE_BE_LIBS.
257         * parse.y: Add variable_defs_opt before statements_opt.
258         Use tree_code_get_type instead of get_type_for_numeric_type.
259         Reformat long lines.
260         (parameters_opt): New rule.
261         (function_prototype): Use parameters_opt.
262         (return): Remove calls to print_token in error cases.  Use VOID_TYPE.
263         (check_type_match): Use VOID_TYPE.
264         * lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
265         * tree1.c: Include version.h and cgraph.h
266         (treelang_parse_file): Call cgraph_finalize_compilation_unit and
267         cgraph_optimize.
268         * treelang.h (item): Remove extraneous GTY.
269         * treetree.h (get_type_for_numeric_type): Remove.
270         * treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
271         function.h, and cgraph.h.  Don't include rtl.h
272         (keep_level_p): Remove.
273         (tree_push_atomic_type_decl): Remove.
274         (get_type_for_numeric_type): Remove.
275         (tree_code_get_numeric_type): Remove.
276         (global_bindings_p): Make static.
277         (getdecls): Likewise.
278         (insert_block): Likewise.
279         (tree_code_if_start): Create a COND_EXPR and add it to the tree
280         instead of creating rtl.
281         (tree_code_if_else): Create a BIND_EXPR if any variables were created
282         in the if statement.
283         (tree_code_end_if): Likewise.
284         (tree_code_create_function_prototype): Use tree_code_get_type.
285         Don't use SET_DECL_ASSEMBLER_NAME.
286         (tree_code_create_function_initial): Set DECL_ARTIFICIAL and
287         DECL_IGNORING_P on RESULT_DECL.  Use tree_code_get_type.  Don't call
288         layout_decl on RESULT_DECL.  Don't call rtl expand functions.
289         (tree_code_create_function_wrapup): Don't call rtl expand functions.
290         Create a BIND_EXPR for each function.  Dump original and gimplified
291         copies of the function tree.  Gimplify function.
292         (tree_code_create_variable): Use tree_code_get_type.  Don't call
293         layout_decl or expand_decl.  Fold CONVERT_EXPRs.
294         (tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
295         Add RETURN_EXPR to the current statement list.  Don't call rtl expand
296         functions.
297         (tree_code_output_expression_statement): Append CODE to current
298         statement list.
299         (tree_code_get_expression): Fold expressions.  Build a pointer to
300         a FUNCTION_TYPE intead of the called functions return type.
301         (struct binding_level): Add statement list STMTS.
302         (getstmtlist): New Function.
303         (pushlevel): Make static.  Allocate an empty statement list.
304         (poplevel): Make static.  Don't clear BLOCK_NODE's BLOCK_VARS.
305         Don't use DECL_ASSEMBLER_NAME.
306         (tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
307         (treelang_init_decl_processing): Define basic types after unused types.
308         Don't call tree_push_atomic_type_decl.
309         (builtin_function): Don't call make_decl_rtl.
310         (treelang_expand_function). New Function.
312 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
314         * treetree.c (set_block): Remove.
315         (struct binding_level): Remove block_created_by_back_end.
316         (clear_binding_level): Likewise.
317         (tree_code_create_function_initial,
318         tree_code_create_function_wrapup): Call pushlevel and poplevel
319         directly rather than through hooks.
320         (poplevel): Don't handle block_created_by_back_end.
322 2004-04-07  Richard Henderson  <rth@redhat.com>
324         * treetree.c (tree_mark_addressable):  Don't put_var_into_stack.
326 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
328         * treetree.c (tree_lang_signed_or_unsigned_type): Use TYPE_UNSIGNED,
329         not TREE_UNSIGNED.
331 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
333         * treelang.texi: Update link to "G++ and GCC".
335 2004-02-20  Richard Henderson  <rth@redhat.com>
337         * Make-lang.in (treelang-warn): Add -Wno-variadic-macros.
339 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
341         * Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
343 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
345         * Make-lang.in: Replace $(docdir) with doc.
346         (treelang.info, treelang.srcinfo): New rules.
347         (treelang.man, treelang.man): Dummy entries.
349 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
351         * Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
352         (treelang/parse.o, treelang/lex.o): Look for sources in build
353         directory.  Use implicit rule.
354         (treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
355         doc directory.
356         (treelang.srcextra): Copy above back to source directory if requested.
358 2004-01-07  Zack Weinberg  <zack@codesourcery.com>
360         * parse.y (yyerror): Mark the definition static.
362 2003-12-04  James A. Morrison  <ja2morri@uwaterloo.ca>
364         * lex.l: Add \t as a whitespace character.
365         * treelang.texi (Lexical Syntax): Document a tab as whitespace.
367         * treelang.texi (What is GNU Treelang?): Fix a typo.
368         (Lexical Syntax): Create an itemize list of keywords.  Add commas to
369         paragraph defining names.
371 2003-11-26  Jason Merrill  <jason@redhat.com>
373         * Make-lang.in (treelang.tags): Create TAGS.sub files in each
374         directory and TAGS files that include them for each front end.
376 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
378         * .cvsignore: Delete.
380 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
382         * Make-lang.in (treelang.extraclean): Delete.
384 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
386         * Make-lang.in: Remove obsolete comment.
388 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
390         * Make-lang.in (dvi): Move targets to $(docobjdir).
391         (treelang.dvi): Simplify rule and adjust target.
392         (treelang.info): Simplify rule.
393         (parse.o): Correct dependencies.
394         (TREE_EXE): Delete doubled suffix append.
396 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
398         * Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.
399         (lex.o): Likewise.
401 2003-10-21  Kelley Cook  <kcook@gcc.gnu.org>
403         * Make-lang.in (parse.o): Honor $(parsedir).
404         (lex.o): Likewise.
405         (lex.c): Likewise
406         (parse.c, parse.h): Likewise.
407         ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir).
408         (dvi): Likewise.
410 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
412         * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on
413         stmp-docobjdir.
415         * Make-lang.in (info): Use docobjdir.
416         ($(srcdir)/treelang/treelang.info): Replace with ...
417         ($(docobjdir)/treelang/treelang.info): ... this.
418         (install-info): New target.
420 2003-10-12  Andreas Jaeger  <aj@suse.de>
422         * Make-lang.in (treelang.install-info): Remove reference to
423         treelang.info.
424         (treelang.): Removed.
426 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
428         * Make-lang.in (treelang.info): Replace with ...
429         (info): ... this.
430         * Make-lang.in (treelang.dvi): Replace with ...
431         (dvi): ... this.
433 2003-09-21  Richard Henderson  <rth@redhat.com>
435         * treetree.c: Revert.
437 2003-09-21  Richard Henderson  <rth@redhat.com>
439         * treetree.c: Update for DECL_SOURCE_LOCATION rename and
440         change to const.
442 2003-07-28  Andreas Jaeger  <aj@suse.de>
444         * treetree.c: Convert remaining K&R prototypes to ISO C90.
445         * tree1.c: Likewise.
446         * parse.y: Likewise.
447         * tree-convert.c: Likewise.
449 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
451         * treetree.c: Remove unnecessary casts.
453 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
455         * lang-options.h: Remove.
456         * lang.opt: Document some options.  Remove --help.
457         * tree1.c (treelang_handle_option): Remove OPT__help case.
459 2003-07-12  Andreas Jaeger  <aj@suse.de>
461         * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
463 2003-07-10  Neil Booth  <neil@daikokuya.co.uk>
465         * Make-lang.in: Update.
466         * tree1.c: Don't include c-common.h.
467         (c_language): Remove.
469 2003-07-10  Fergus Henderson  <fjh@cs.mu.oz.au>
470             Steven Bosscher  <steven@gcc.gnu.org>
472         * tree-convert.c: New file.
473         * treetree.c: Don't include c-tree.h.  Include target.h.
474         (struct lang_identifier, union lang_tree_node, struct lang_type,
475         struct lang_function): New, minimal language-specific datastructs.
476         (tree_lang_truthvalue_conversion, tree_mark_addressable,
477         tree_lang_type_for_size, tree_lang_type_for_mode,
478         tree_lang_unsigned_type, tree_lang_signed_type,
479         tree_lang_signed_or_unsigned): New functions.
480         (LANG_HOOKS_*): Don't use C front end langhooks.  Use new functions.
481         (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
482         pushdecl, getdecls, kept_level_p, tree_push_type_decl,
483         tree_push_atomic_type_decl): New functions.
484         (struct resword, struct reswords): Remove.
485         * Make-lang.in: Update.  Don't depend on C front end objects.
486         * config-lang.in: Likewise.
488 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
490         * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
491         tree_code_if_end, tree_code_create_function_initial,
492         tree_code_create_function_wrapup, tree_code_generate_return,
493         tree_code_output_expression_statement): Adjust emit_line_note
494         calls.
496 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
498         * Make-lang.in: Replace PWD with PWD_COMMAND.
500 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
502         * tree1.c (treelang_init_options): Update prototype.
503         * treelang.h (treelang_init_options): Update prototype.
505 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
507         * Make-lang.in: Update.
508         * tree1.c: Include c-common.h.  Define c_language.
510 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
512         * treetree.c (tree_code_create_function_wrapup): Adjust
513         expand_function_end call.
515 2003-06-18  Nathan Sidwell  <nathan@codesourcery.com>
517         * treetree.c (build_stmt): Remove VPARAMS.
518         (pedwarn_c99): Likewise.
520 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
522         * lang.opt: Declare Treelang.  Update.
523         * tree1.c (treelang_init_options): Update.
525 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
527         * treetree.c (tree_code_create_function_initial): Adjust
528         init_function_start call.
530 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
532         * Make-lang.in: Update to use options.c and options.h.
533         * tree1.c: Include options.h not t-options.h.
534         (treelang_init_options): New.
535         (treelang_handle_option): Abort on unrecognized switch.
536         * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
537         * treetree.h (treelang_init_options): New.
539 2003-06-12  Andreas Jaeger  <aj@suse.de>
541         * treetree.c: Remove cl_options-count and cl_options.
543 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
545         * Make-lang.in: Update for option handling.
546         * lang.opt: New.
547         * tree1.c: Include opts.h and t-options.h.
548         (treelang_decode_option): Remove.
549         (treelang_handle_option): New.
550         * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
551         (LANG_HOOKS_HANDLE_OPTION): Override.
552         * treetree.h (treelang_decode_option): Remove.
553         (treelang_handle_option): New.
555 2003-06-08  Andreas Jaeger  <aj@suse.de>
557         * Make-lang.in: Update.
558         * treetree.c: Include opts.h. Define cl_options_count and cl_options.
560 2003-06-08  Tim Josling  <tej@melbpc.org.au>
562         * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
564 2003-06-05  Jan Hubicka  <jh@suse.cz>
566         * Make-lang.in:  Add support for stageprofile and stagefeedback
568 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
570         * treetree.c (reswords): Remove __bounded__, __unbounded__.
572 2003-05-09  Tim Josling  <tej@melbpc.org.au>
574         * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
575         to link (needed by some front ends such as PPC).
577         * treetree.c (tree_code_create_function_initial): Fix long line.
578         Initialize tree_code_int_size and tree_code_char_size to
579         meaningful values.
580         (tree_code_get_numeric_type): Add check that size1 parameter is
581         valid.
583         * parse.y: Fix extra long lines in prototypes.
585         * treelang.h: Fix extra long lines in macro definitions.
587 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
589         * Make-lang.in: Set -Wno-error for treelang/lex.o.
591 2003-05-06  Nathan Sidwell  <nathan@codesourcery.com>
593         * Make-lang.in (treelang/tree1.o): Depends on input.h
594         (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
595         * treelang.h: #include input.h.
596         (in_fname): Remove.
597         (struct token_part): Remove lineno, add location.
598         * lex.l (next_tree_lineno): Remove.
599         (update_lineno_charno): Adjust.
600         (dump_lex_value): Adjust.
601         * parse.y (variable_def, function_prototype, function, statement,
602         if_statement, return, function_invocation, variable_ref): Adjust.
603         (print_token, yyerror, ensure_not_void): Adjust.
604         tree1.c (in_fname): Remove.
605         (treelang_init): Setup input_location.
606         (lookup_tree_name): Adjust.
607         (insert_tree_name): Adjust.
608         * treetree.c (tree_code_if_start): Replace filename and lineno
609         parms with loc. Adjust.
610         (tree_code_if_else, tree_code_if_end,
611         tree_code_create_function_prototype,
612         tree_code_create_function_initial,
613         tree_code_create_function_wrapup, tree_code_create_variable,
614         tree_code_output_expression_statement): Likewise.
615         * treetree.h (tree_code_if_start): Replace filename and lineno
616         parms with loc.
617         (tree_code_if_else, tree_code_if_end,
618         tree_code_create_function_prototype,
619         tree_code_create_function_initial,
620         tree_code_create_function_wrapup, tree_code_create_variable,
621         tree_code_output_expression_statement): Likewise.
623 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
625         * tree1.c (treelang_init): Rename lineno to input_line.
627 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
629         * parse.y (make_plus_expression): New function.
630         (expression production): Use make_plus_expression for PLUS,
631         MINUS, ASSIGN and EQUALS.
632         * tree1.c (treelang_decode_option): Don't fall through to
633         options that start with a different character when an option
634         was not recognized.
636 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
638         * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
639         * treetree.c: Do not #include parse.h.
641 2003-03-21  Andreas Jaeger  <aj@suse.de>
643         * treetree.c (cpp_create_reader): Follow prototype change in
644         cpplib.h.
646 2003-03-17  Andreas Jaeger  <aj@suse.de>
648         * Make-lang.in (treelang.tags): Remove duplicate entry.
650 2003-03-15  Andreas Jaeger  <aj@suse.de>
652         * treetree.c (cpp_handle_option): Remove.
654 2003-03-13  Andreas Jaeger  <aj@suse.de>
656         * Make-lang.in (tree1$(exeext)): Fix previous patch.
658 2003-03-12  Andreas Jaeger  <aj@suse.de>
660         * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
662 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
664         * tree1.c (in_fname): Fix type.
665         (treelang_init): Update prototype and use of in_fname.
666         * treelang.h (in_fname): Fix type.
667         * treetree.c (tree_code_if_start, tree_code_if_else,
668         tree_code_if_end, tree_code_create_function_prototype,
669         tree_code_create_function_initial, tree_code_create_funciton_wrapup,
670         tree_code_create_variable, tree_code_output_expression_statement)
671         : Fix prototypes and use of filenames.
672         * treetree.h: Similarly.
674 2003-03-05  Andreas Jaeger  <aj@suse.de>
676         * treetree.c (init_c_lex): Follow change to c-common.h.
678 2003-03-04  Tom Tromey  <tromey@redhat.com>
680         * Make-lang.in (treelang.tags): New target.
682 2003-03-01  Tim Josling  <tej@melbpc.org.au>
684         Name clashes with rtl.h fixed.
686         * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
687         tl_RETURN.
689         * parse.y: Ditto.
691 2003-02-24  Tim Josling  <tej@melbpc.org.au>
693         * parse.y (my_yylex): New - ensure lexer time is charged to
694         TV_LEX.
695         (yylex): redefine as invocation of my_yylex which then calls
696         flex-generated yylex.
697         (timevar.h): include.
699 2003-02-23  Tim Josling  <tej@melbpc.org.au>
701         Fix garbage collection, add more error checking, force GC always.
703         * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
704         (treelang/treetree.o): Depend on  treelang/parse.h
706         * lex.l: include "treetree.h"
708         * lex.l (update_yylval): Allocate string using get_string so GC
709         works.
711         * parse.y (function_prototype): Set category correctly so GC works.
712         (function): Set category in search so checking works.
713         (function_invocation): Ditto.
714         (variable_ref): Ditto.
716         * tree1.c (lookup_tree_name): Call sanity_check for passed
717         production and associated token and for symbol table entries.
719         * tree1.c (sanity_check): New, basic check that struct is valid.
721         * treelang.h: Prototype for sanity_check.
723 2003-01-27  Tim Josling  <tej@melbpc.org.au>
725         * treetree.c (treelang_init_decl_processing): Change memory
726         allocation to use GC.
728 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
730         * treelang.texi: Update to GFDL 1.2.
732 2003-01-26  Michael Matz  <matz@suse.de>
734         * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
736 2003-01-14  Andreas Jaeger  <aj@suse.de>
738         * Make-lang.in (treelang.install-info): Depend only on info files
739         if BUILD_INFO is set.  Fix install rules.
740         (treelang.): New.
742 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
744         * Make-lang.in (treelang.install.common.done,
745         treelang.install-info, treelang.uninstall): Prepend
746         $(DESTDIR) to destination paths in all (un)installation
747         commands.
749 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
751         * treelang.texi: Use @copying.
753 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
755         * treelang.texi: Include gcc-common.texi.
756         * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
757         Depend on gcc-common.texi.  Add other missing dependencies.
758         (treelang.dvi): Use texi2dvi.
760 2002-12-22  Joseph S. Myers  <jsm@polyomino.org.uk>
762         * treelang.texi: Use @ifnottex instead of @ifinfo.
764 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
766         * lex.l: Move "%{" below copyright notice; get rid of "/*"
767         embedded in comment.  Do not #undef IN_GCC; do not include
768         stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
769         Do include coretypes.h and tm.h.
770         * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
771         and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
772         ansidecl.h. Do include coretypes.h and tm.h.
773         * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
774         stdarg.h, string.h, or stdio.h.  Do include coretypes.h and tm.h.
775         * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
776         errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
777         or ansidecl.h.  Do include coretypes.h and tm.h.
778         * Make-lang.in: Update dependencies.
780 2002-09-09  Tim Josling  <tej@melbpc.org.au>
782         * treetree.c (objc_is_id): New.
784 2002-08-16  Tim Josling  <tej@melbpc.org.au>
786         Remove variables and functions now defined elsewhere.
788         * treetree.c (maybe_objc_comptypes): Remove.
789         (warn_format, warn_format_y2k, warn_format_extra_args,
790         warn_format_nonliteral, warn_format_security,
791         warn_format_zero_length): Remove.
792         (maybe_building_objc_message_expr): Remove.
793         (cpp_post_options): Remove.
794         (maybe_objc_check_decl): Remove.
795         (integer_types): Remove.
798 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
800         * treelang.c: Remove cpp_post_options.
802 2002-08-13  Tim Josling  <tej@melbpc.org.au>
804         * parse.y: Provide dummy definition of rtx for use by config.h.
805         * Make-lang.in (treetree.o): Remove dependency on non-existent
806         gt-treelang-treelang.h.
807         (gt-treelang-treelang.h): Remove.
809 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
811         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
813 2002-07-11  Tim Josling  <tej@melbpc.org.au>
815         Remove front end hard coding from gengtype.c.
817         * config-lang.in (gtfiles): Add files needed for this front
818         end.
820 2002-07-09  Tim Josling  <tej@melbpc.org.au>
822         Support new attributes regime (Fix for PR c++/7099).
824         * treetree.c (handle_format_attribute): Return NULL_TREE instead
825         of aborting.
826         (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
827         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
828         LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
830 2002-06-21  Andreas Jaeger  <aj@suse.de>
832         * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
833         treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
835 2002-06-19  Paolo Bonzini <bonzini@gnu.org>
837         * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
838         than STATIC.
840 2002-06-10  Tim Josling  <tej@melbpc.org.au>
842         Cleanup
844         * Make-lang.in (check-treelang). Add. Remove direct dependency of
845         'check' on 'treelang.check' as redundant.
847         PCH Garbage collection regime (gengtypes.c) phase 1.
849         * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
850         gt-treelang-treelang.h gtype-treelang.h.
851         (gt-treelang-tree1.h) Depend on s-gtype.
852         (gt-treelang-treelang.h) Depend on s-gtype.
853         (gtype-treelang.h) Depend on s-gtype.
855         * config-lang.in (gtfiles): Define.
857         * lex.l (main): Remove '#if 0' dead code.
858         (main): Move undef of IN_GCC so define of tree typedef works.
859         (all): Replace token and production by prod_token_parm_item.
861         * parse.y
862         (all): Replace token and production by prod_token_parm_item.
864         * tree1.c (main): Remove include of "output.h".
865         (symbol_table): Add GTY details.
866         (symbol_table_ggc): Remove.
867         (treelang_init): Remove root definitions for garbage collection.
868         (mark_production_used): Remove.
869         (mark_token_used): Remove.
870         (main, at end): include generated garage collection routines.
872         * treelang.h (category_enum ): Add parameter_category.
873         (all): Replace token and production and parameters by union
874         prod_token_parm_item containing production_part, token_part,
875         parameter_part.
876         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
877         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
878         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
879         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
880         treetree.h.
882         * treetree.c
883         (tm_p.h): Do not include.
884         (ansidecl.h): Move include after config.h.
885         (treelang.h): Include it.
886         (ADDROOT): Remove.
887         (all): Replace token, production and parameter by prod_token_parm_item.
888         (tree_parameter_list): Move to treelang.h as part of
889         prod_token_parm_item.
890         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
891         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
892         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
893         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
894         treelang.h.
896 2002-05-19  Tim Josling  <tej@melbpc.org.au>
898         * treetree.c (warn_format_zero_length): Add.
900 2002-05-14  Tim Josling  <tej@melbpc.org.au>
902         * Make-lang.in: Fix build for .info files, add target for manpages.
903         A bug report and a suggested patch came from Magnus Fromreide
904         <magfr@lysator.liu.se>.
906 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
908         * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
910 2002-05-11  Tim Josling  <tej@melbpc.org.au>
912         * treetree.c: (cpp_define) Add.
913         (cpp_get_callbacks) Add.
915 2002-05-07  Tim Josling  <tej@melbpc.org.au>
917         * treetree.c: (cpp_get_options) Add.
919 2002-05-06  Tim Josling  <tej@melbpc.org.au>
921         * .cvsignore: Add.
923 2002-05-05  Tim Josling  <tej@melbpc.org.au>
925         * Updated for gcc3.2 experimental. Major changes throughout.
927 2002-03-31  Tim Josling  <tej@melbpc.org.au>
929         * Make-lang.in: Changes so build and check work more reliably
931 2001-07-30  Tim Josling  <tej@melbpc.org.au>
933         * root.texi: remove
934         * treelang.texi: updates based on feedback
936 2001-06-11  Tim Josling  <tej@melbpc.org.au>
938         * all (all) Revamp code to conform to GCC coding standards, fix
939         typos in texi files.
941 2001-05-11  Tim Josling  <tej@melbpc.org.au>
943         Create the new language.