OSDN Git Service

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