OSDN Git Service

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