OSDN Git Service

* Makefile.in (install-info): Simplify.
[pf3gnuchains/gcc-fork.git] / gcc / treelang / ChangeLog
1 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
2
3         * Make-lang.in (info): Use docobjdir.
4         ($(srcdir)/treelang/treelang.info): Replace with ...
5         ($(docobjdir)/treelang/treelang.info): ... this.
6         (install-info): New target.
7
8 2003-10-12  Andreas Jaeger  <aj@suse.de>
9
10         * Make-lang.in (treelang.install-info): Remove reference to
11         treelang.info.
12         (treelang.): Removed.
13
14 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
15
16         * Make-lang.in (treelang.info): Replace with ...
17         (info): ... this.
18         * Make-lang.in (treelang.dvi): Replace with ...
19         (dvi): ... this.
20
21 2003-09-21  Richard Henderson  <rth@redhat.com>
22
23         * treetree.c: Revert.
24
25 2003-09-21  Richard Henderson  <rth@redhat.com>
26
27         * treetree.c: Update for DECL_SOURCE_LOCATION rename and
28         change to const.
29
30 2003-07-28  Andreas Jaeger  <aj@suse.de>
31
32         * treetree.c: Convert remaining K&R prototypes to ISO C90.
33         * tree1.c: Likewise.
34         * parse.y: Likewise.
35         * tree-convert.c: Likewise.
36
37 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38
39         * treetree.c: Remove unnecessary casts.
40
41 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
42
43         * lang-options.h: Remove.
44         * lang.opt: Document some options.  Remove --help.
45         * tree1.c (treelang_handle_option): Remove OPT__help case.
46
47 2003-07-12  Andreas Jaeger  <aj@suse.de>
48
49         * Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
50
51 2003-07-10  Neil Booth  <neil@daikokuya.co.uk>
52
53         * Make-lang.in: Update.
54         * tree1.c: Don't include c-common.h.
55         (c_language): Remove.
56
57 2003-07-10  Fergus Henderson  <fjh@cs.mu.oz.au>
58             Steven Bosscher  <steven@gcc.gnu.org>
59
60         * tree-convert.c: New file.
61         * treetree.c: Don't include c-tree.h.  Include target.h.
62         (struct lang_identifier, union lang_tree_node, struct lang_type,
63         struct lang_function): New, minimal language-specific datastructs.
64         (tree_lang_truthvalue_conversion, tree_mark_addressable,
65         tree_lang_type_for_size, tree_lang_type_for_mode,
66         tree_lang_unsigned_type, tree_lang_signed_type,
67         tree_lang_signed_or_unsigned): New functions.
68         (LANG_HOOKS_*): Don't use C front end langhooks.  Use new functions.
69         (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
70         pushdecl, getdecls, kept_level_p, tree_push_type_decl,
71         tree_push_atomic_type_decl): New functions.
72         (struct resword, struct reswords): Remove.
73         * Make-lang.in: Update.  Don't depend on C front end objects.
74         * config-lang.in: Likewise.
75
76 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
77
78         * treelang/treetree.c (tree_code_if_start, tree_code_if_else,
79         tree_code_if_end, tree_code_create_function_initial,
80         tree_code_create_function_wrapup, tree_code_generate_return,
81         tree_code_output_expression_statement): Adjust emit_line_note
82         calls.
83
84 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
85
86         * Make-lang.in: Replace PWD with PWD_COMMAND.
87
88 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
89
90         * tree1.c (treelang_init_options): Update prototype.
91         * treelang.h (treelang_init_options): Update prototype.
92
93 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
94
95         * Make-lang.in: Update.
96         * tree1.c: Include c-common.h.  Define c_language.
97
98 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
99
100         * treetree.c (tree_code_create_function_wrapup): Adjust
101         expand_function_end call.
102
103 2003-06-18  Nathan Sidwell  <nathan@codesourcery.com>
104
105         * treetree.c (build_stmt): Remove VPARAMS.
106         (pedwarn_c99): Likewise.
107
108 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
109
110         * lang.opt: Declare Treelang.  Update.
111         * tree1.c (treelang_init_options): Update.
112
113 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
114
115         * treetree.c (tree_code_create_function_initial): Adjust
116         init_function_start call.
117
118 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
119
120         * Make-lang.in: Update to use options.c and options.h.
121         * tree1.c: Include options.h not t-options.h.
122         (treelang_init_options): New.
123         (treelang_handle_option): Abort on unrecognized switch.
124         * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
125         * treetree.h (treelang_init_options): New.
126
127 2003-06-12  Andreas Jaeger  <aj@suse.de>
128
129         * treetree.c: Remove cl_options-count and cl_options.
130
131 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
132
133         * Make-lang.in: Update for option handling.
134         * lang.opt: New.
135         * tree1.c: Include opts.h and t-options.h.
136         (treelang_decode_option): Remove.
137         (treelang_handle_option): New.
138         * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
139         (LANG_HOOKS_HANDLE_OPTION): Override.
140         * treetree.h (treelang_decode_option): Remove.
141         (treelang_handle_option): New.
142
143 2003-06-08  Andreas Jaeger  <aj@suse.de>
144
145         * Make-lang.in: Update.
146         * treetree.c: Include opts.h. Define cl_options_count and cl_options.
147
148 2003-06-08  Tim Josling  <tej@melbpc.org.au>
149
150         * treetree.c (c_lex): Add fake routine to satisfy RS6000 backend.
151
152 2003-06-05  Jan Hubicka  <jh@suse.cz>
153
154         * Make-lang.in:  Add support for stageprofile and stagefeedback
155
156 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
157
158         * treetree.c (reswords): Remove __bounded__, __unbounded__.
159
160 2003-05-09  Tim Josling  <tej@melbpc.org.au>
161
162         * Make-lang.in (TREE_BE_LIBS): Add C_TARGET_OBJS to object files
163         to link (needed by some front ends such as PPC).
164
165         * treetree.c (tree_code_create_function_initial): Fix long line.
166         Initialize tree_code_int_size and tree_code_char_size to
167         meaningful values.
168         (tree_code_get_numeric_type): Add check that size1 parameter is
169         valid.
170
171         * parse.y: Fix extra long lines in prototypes.
172
173         * treelang.h: Fix extra long lines in macro definitions.
174
175 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
176
177         * Make-lang.in: Set -Wno-error for treelang/lex.o.
178
179 2003-05-06  Nathan Sidwell  <nathan@codesourcery.com>
180
181         * Make-lang.in (treelang/tree1.o): Depends on input.h
182         (treelang/treetree.o, treelang/parse.o, treelang/lex.o): Likewise.
183         * treelang.h: #include input.h.
184         (in_fname): Remove.
185         (struct token_part): Remove lineno, add location.
186         * lex.l (next_tree_lineno): Remove.
187         (update_lineno_charno): Adjust.
188         (dump_lex_value): Adjust.
189         * parse.y (variable_def, function_prototype, function, statement,
190         if_statement, return, function_invocation, variable_ref): Adjust.
191         (print_token, yyerror, ensure_not_void): Adjust.
192         tree1.c (in_fname): Remove.
193         (treelang_init): Setup input_location.
194         (lookup_tree_name): Adjust.
195         (insert_tree_name): Adjust.
196         * treetree.c (tree_code_if_start): Replace filename and lineno
197         parms with loc. Adjust.
198         (tree_code_if_else, tree_code_if_end,
199         tree_code_create_function_prototype,
200         tree_code_create_function_initial,
201         tree_code_create_function_wrapup, tree_code_create_variable,
202         tree_code_output_expression_statement): Likewise.
203         * treetree.h (tree_code_if_start): Replace filename and lineno
204         parms with loc.
205         (tree_code_if_else, tree_code_if_end,
206         tree_code_create_function_prototype,
207         tree_code_create_function_initial,
208         tree_code_create_function_wrapup, tree_code_create_variable,
209         tree_code_output_expression_statement): Likewise.
210
211 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
212
213         * tree1.c (treelang_init): Rename lineno to input_line.
214
215 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
216
217         * parse.y (make_plus_expression): New function.
218         (expression production): Use make_plus_expression for PLUS,
219         MINUS, ASSIGN and EQUALS.
220         * tree1.c (treelang_decode_option): Don't fall through to
221         options that start with a different character when an option
222         was not recognized.
223
224 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
225
226         * Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
227         * treetree.c: Do not #include parse.h.
228
229 2003-03-21  Andreas Jaeger  <aj@suse.de>
230
231         * treetree.c (cpp_create_reader): Follow prototype change in
232         cpplib.h.
233
234 2003-03-17  Andreas Jaeger  <aj@suse.de>
235
236         * Make-lang.in (treelang.tags): Remove duplicate entry.
237
238 2003-03-15  Andreas Jaeger  <aj@suse.de>
239
240         * treetree.c (cpp_handle_option): Remove.
241
242 2003-03-13  Andreas Jaeger  <aj@suse.de>
243
244         * Make-lang.in (tree1$(exeext)): Fix previous patch.
245
246 2003-03-12  Andreas Jaeger  <aj@suse.de>
247
248         * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
249
250 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
251
252         * tree1.c (in_fname): Fix type.
253         (treelang_init): Update prototype and use of in_fname.
254         * treelang.h (in_fname): Fix type.
255         * treetree.c (tree_code_if_start, tree_code_if_else,
256         tree_code_if_end, tree_code_create_function_prototype,
257         tree_code_create_function_initial, tree_code_create_funciton_wrapup,
258         tree_code_create_variable, tree_code_output_expression_statement)
259         : Fix prototypes and use of filenames.
260         * treetree.h: Similarly.
261
262 2003-03-05  Andreas Jaeger  <aj@suse.de>
263
264         * treetree.c (init_c_lex): Follow change to c-common.h.
265
266 2003-03-04  Tom Tromey  <tromey@redhat.com>
267
268         * Make-lang.in (treelang.tags): New target.
269
270 2003-03-01  Tim Josling  <tej@melbpc.org.au>
271
272         Name clashes with rtl.h fixed.
273
274         * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
275         tl_RETURN.
276
277         * parse.y: Ditto.
278
279 2003-02-24  Tim Josling  <tej@melbpc.org.au>
280
281         * parse.y (my_yylex): New - ensure lexer time is charged to
282         TV_LEX.
283         (yylex): redefine as invocation of my_yylex which then calls
284         flex-generated yylex.
285         (timevar.h): include.
286
287 2003-02-23  Tim Josling  <tej@melbpc.org.au>
288
289         Fix garbage collection, add more error checking, force GC always.
290
291         * Make-lang.in (treelang/tree1.o): Depend on treelang/treetree.h
292         (treelang/treetree.o): Depend on  treelang/parse.h
293
294         * lex.l: include "treetree.h"
295
296         * lex.l (update_yylval): Allocate string using get_string so GC
297         works.
298
299         * parse.y (function_prototype): Set category correctly so GC works.
300         (function): Set category in search so checking works.
301         (function_invocation): Ditto.
302         (variable_ref): Ditto.
303
304         * tree1.c (lookup_tree_name): Call sanity_check for passed
305         production and associated token and for symbol table entries.
306
307         * tree1.c (sanity_check): New, basic check that struct is valid.
308
309         * treelang.h: Prototype for sanity_check.
310
311 2003-01-27  Tim Josling  <tej@melbpc.org.au>
312
313         * treetree.c (treelang_init_decl_processing): Change memory
314         allocation to use GC.
315
316 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
317
318         * treelang.texi: Update to GFDL 1.2.
319
320 2003-01-26  Michael Matz  <matz@suse.de>
321
322         * Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
323
324 2003-01-14  Andreas Jaeger  <aj@suse.de>
325
326         * Make-lang.in (treelang.install-info): Depend only on info files
327         if BUILD_INFO is set.  Fix install rules.
328         (treelang.): New.
329
330 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
331
332         * Make-lang.in (treelang.install.common.done,
333         treelang.install-info, treelang.uninstall): Prepend
334         $(DESTDIR) to destination paths in all (un)installation
335         commands.
336
337 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
338
339         * treelang.texi: Use @copying.
340
341 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
342
343         * treelang.texi: Include gcc-common.texi.
344         * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
345         Depend on gcc-common.texi.  Add other missing dependencies.
346         (treelang.dvi): Use texi2dvi.
347
348 2002-12-22  Joseph S. Myers  <jsm@polyomino.org.uk>
349
350         * treelang.texi: Use @ifnottex instead of @ifinfo.
351
352 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
353
354         * lex.l: Move "%{" below copyright notice; get rid of "/*"
355         embedded in comment.  Do not #undef IN_GCC; do not include
356         stdio.h, memory.h, or ansidecl.h; do not include config.h twice.
357         Do include coretypes.h and tm.h.
358         * parse.y: Do not #undef IN_GCC, provide bogus definitions of tree
359         and rtx typedefs, or include stdio.h, stdlib.h, string.h, or
360         ansidecl.h. Do include coretypes.h and tm.h.
361         * tree1.c: Do not include ansidecl.h, stdlib.h, unistd.h, ctype.h,
362         stdarg.h, string.h, or stdio.h.  Do include coretypes.h and tm.h.
363         * treetree.c: Do not include stdlib.h, unistd.h, safe-ctype.h,
364         errno.h. stdarg.h, limits.h, string.h, fcntl.h, getopt.h. stdio.h,
365         or ansidecl.h.  Do include coretypes.h and tm.h.
366         * Make-lang.in: Update dependencies.
367
368 2002-09-09  Tim Josling  <tej@melbpc.org.au>
369
370         * treetree.c (objc_is_id): New.
371
372 2002-08-16  Tim Josling  <tej@melbpc.org.au>
373
374         Remove variables and functions now defined elsewhere.
375
376         * treetree.c (maybe_objc_comptypes): Remove.
377         (warn_format, warn_format_y2k, warn_format_extra_args,
378         warn_format_nonliteral, warn_format_security,
379         warn_format_zero_length): Remove.
380         (maybe_building_objc_message_expr): Remove.
381         (cpp_post_options): Remove.
382         (maybe_objc_check_decl): Remove.
383         (integer_types): Remove.
384
385
386 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
387
388         * treelang.c: Remove cpp_post_options.
389
390 2002-08-13  Tim Josling  <tej@melbpc.org.au>
391
392         * parse.y: Provide dummy definition of rtx for use by config.h.
393         * Make-lang.in (treetree.o): Remove dependency on non-existent
394         gt-treelang-treelang.h.
395         (gt-treelang-treelang.h): Remove.
396
397 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
398
399         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files.
400
401 2002-07-11  Tim Josling  <tej@melbpc.org.au>
402
403         Remove front end hard coding from gengtype.c.
404
405         * config-lang.in (gtfiles): Add files needed for this front
406         end.
407
408 2002-07-09  Tim Josling  <tej@melbpc.org.au>
409
410         Support new attributes regime (Fix for PR c++/7099).
411
412         * treetree.c (handle_format_attribute): Return NULL_TREE instead
413         of aborting.
414         (top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
415         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
416         LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
417
418 2002-06-21  Andreas Jaeger  <aj@suse.de>
419
420         * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
421         treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).
422
423 2002-06-19  Paolo Bonzini <bonzini@gnu.org>
424
425         * lex.l (yyparse) Return AUTOMATIC for 'automatic' token rather
426         than STATIC.
427
428 2002-06-10  Tim Josling  <tej@melbpc.org.au>
429
430         Cleanup
431
432         * Make-lang.in (check-treelang). Add. Remove direct dependency of
433         'check' on 'treelang.check' as redundant.
434
435         PCH Garbage collection regime (gengtypes.c) phase 1.
436
437         * Make-lang.in (treelang/tree1.o). Depend on gt-treelang-tree1.h
438         gt-treelang-treelang.h gtype-treelang.h.
439         (gt-treelang-tree1.h) Depend on s-gtype.
440         (gt-treelang-treelang.h) Depend on s-gtype.
441         (gtype-treelang.h) Depend on s-gtype.
442
443         * config-lang.in (gtfiles): Define.
444
445         * lex.l (main): Remove '#if 0' dead code.
446         (main): Move undef of IN_GCC so define of tree typedef works.
447         (all): Replace token and production by prod_token_parm_item.
448
449         * parse.y
450         (all): Replace token and production by prod_token_parm_item.
451
452         * tree1.c (main): Remove include of "output.h".
453         (symbol_table): Add GTY details.
454         (symbol_table_ggc): Remove.
455         (treelang_init): Remove root definitions for garbage collection.
456         (mark_production_used): Remove.
457         (mark_token_used): Remove.
458         (main, at end): include generated garage collection routines.
459
460         * treelang.h (category_enum ): Add parameter_category.
461         (all): Replace token and production and parameters by union
462         prod_token_parm_item containing production_part, token_part,
463         parameter_part.
464         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
465         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
466         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
467         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move here from
468         treetree.h.
469
470         * treetree.c
471         (tm_p.h): Do not include.
472         (ansidecl.h): Move include after config.h.
473         (treelang.h): Include it.
474         (ADDROOT): Remove.
475         (all): Replace token, production and parameter by prod_token_parm_item.
476         (tree_parameter_list): Move to treelang.h as part of
477         prod_token_parm_item.
478         (STATIC_STORAGE AUTOMATIC_STORAGE EXTERNAL_REFERENCE_STORAGE
479         EXTERNAL_DEFINITION_STORAGE SIGNED_CHAR UNSIGNED_CHAR SIGNED_INT
480         UNSIGNED_INT VOID_TYPE EXP_PLUS EXP_REFERENCE EXP_ASSIGN
481         EXP_FUNCTION_INVOCATION EXP_MINUS EXP_EQUALS): Move from here to
482         treelang.h.
483
484 2002-05-19  Tim Josling  <tej@melbpc.org.au>
485
486         * treetree.c (warn_format_zero_length): Add.
487
488 2002-05-14  Tim Josling  <tej@melbpc.org.au>
489
490         * Make-lang.in: Fix build for .info files, add target for manpages.
491         A bug report and a suggested patch came from Magnus Fromreide
492         <magfr@lysator.liu.se>.
493
494 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
495
496         * Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
497
498 2002-05-11  Tim Josling  <tej@melbpc.org.au>
499
500         * treetree.c: (cpp_define) Add.
501         (cpp_get_callbacks) Add.
502
503 2002-05-07  Tim Josling  <tej@melbpc.org.au>
504
505         * treetree.c: (cpp_get_options) Add.
506
507 2002-05-06  Tim Josling  <tej@melbpc.org.au>
508
509         * .cvsignore: Add.
510
511 2002-05-05  Tim Josling  <tej@melbpc.org.au>
512
513         * Updated for gcc3.2 experimental. Major changes throughout.
514
515 2002-03-31  Tim Josling  <tej@melbpc.org.au>
516
517         * Make-lang.in: Changes so build and check work more reliably
518
519 2001-07-30  Tim Josling  <tej@melbpc.org.au>
520
521         * root.texi: remove
522         * treelang.texi: updates based on feedback
523
524 2001-06-11  Tim Josling  <tej@melbpc.org.au>
525
526         * all (all) Revamp code to conform to GCC coding standards, fix
527         typos in texi files.
528
529 2001-05-11  Tim Josling  <tej@melbpc.org.au>
530
531         Create the new language.