OSDN Git Service

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