OSDN Git Service

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