OSDN Git Service

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