1 2002-06-04 Bob Wilson <bob.wilson@acm.org>
3 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4 typo in function prototype and include "ggc.h" header.
6 2002-06-04 Richard Henderson <rth@redhat.com>
8 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
9 (print_operand) ['U']: Likewise.
10 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
11 (alpha_expand_unaligned_store_words): Likewise.
12 (alpha_expand_builtin_vector_binop): Fix typo.
13 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
15 (one_arg_builtins): Add cix builtins.
16 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
17 (alpha_expand_builtin): Fix typo in arity.
18 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
19 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
20 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
21 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
22 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
23 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
24 builtin_ctlz, builtin_ctpop): New.
25 * doc/extend.texi (Alpha Built-in Functions): Update.
27 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
29 * gengtype.c (write_gc_root): Don't unnecessarily prevent
30 global variable-length arrays being roots.
32 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
33 * configure.in (config_gtfiles): New variable.
34 (all_gtfiles): Initialise from config_gtfiles.
35 * configure: Regenerate.
37 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
40 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
41 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
42 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
43 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
44 win32.h (CPP_SPEC): Remove cpp_cpu.
45 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
46 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
48 2002-06-04 Janis Johnson <janis187@us.ibm.com>
50 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
52 2002-06-04 Jeff Law <law@redhat.com.
53 David Edelsohn <edelsohn@gnu.org>
54 Michael Matz <matz@kde.org>
56 * sched-int.h (struct deps): New field libcall_block_tail_insn.
57 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
58 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
59 is set, then mark the current insn as being part of a libcall
61 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
63 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
64 insns against the issue rate.
66 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
68 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
69 * final.c (final_scan_insn): Likewise.
70 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
71 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
72 * haifa-sched.c (unlink_other_notes): Likeewise.
73 (reemit_notes): Likewise.
74 * print-rtl.c (print_rtx): Likewise.
75 * sched-deps (sched-analyze): Likewise.
76 * rtl.c (note_insn_name): Likewise.
77 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
78 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
81 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
83 * varasm.c (mark_constants): Handle RTX format 'B'.
85 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
87 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
88 (struct cpp_context): Add traditional fields.
89 * cppmacro.c (paste_all_tokens, push_ptoken_context,
90 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
91 * cpptrad.c (skip_comment, lex_identifier,
92 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
94 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
96 * gbl-ctors.h: Fix formatting.
98 * gccspec.c: Likewise.
100 * gcov-io.h: Likewise.
102 * ggc-common.c: Likewise.
104 * ggc-page.c: Likewise.
105 * ggc-simple.c: Likewise.
106 * global.c: Likewise.
108 * gthr-dce.h: Likewise.
110 * gthr-posix.h: Likewise.
111 * gthr-rtems.h: Likewise.
112 * gthr-solaris.h: Likewise.
113 * gthr-win32.h: Likewise.
115 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
117 Merge from pch-branch:
119 * gengtype.h (UNION_OR_STRUCT_P): New macro.
120 * gengtype.c (write_gc_structure_fields): Use it.
121 (write_gc_root): Use it here too.
123 * gengtype.c (write_gc_structure_fields): Assume that lengths
124 of typenames fit into an 'int'; don't pass a size_t to "%d" in
126 (write_gc_marker_routine_for_structure): Likewise.
127 (write_gc_types): Likewise.
128 (write_gc_root): Likewise.
130 * varray.h (VARRAY_CLEAR): New.
131 (varray_clear): Prototype.
132 * varray.c (varray_clear): New.
133 * cselib.c (reg_values_old): New.
134 (used_regs_old): New.
135 (cselib_init): Use cached varrays if available to avoid
136 generating large amounts of garbage.
137 (cselib_finish): Don't throw away old varrays.
139 * final.c (insn_addresses_): Move out of ifdef.
141 * varray.c (uses_ggc): Make more varray kinds GCable.
142 * varray.h (union varray_data_tag): Let gengtype see
143 fields 'generic' and 'te'.
144 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
145 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
146 (reg_to_stack): Don't call VARRAY_FREE.
147 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
148 (insn_addresses_): Use gengtype to mark.
149 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
150 pointers; handle generic pointers in unused union fields.
151 (get_output_file_with_visibility): Include cselib.h,
152 insn-addr.h in gtype-desc.c.
153 * function.c (prologue): Use gengtype to mark.
154 (epilogue): Likewise.
155 (sibcall_epilogue): Likewise.
156 * dependence.c: Include gt-dependence.h, ggc.h.
157 (struct def_use): Use gengtype to mark.
158 (struct loop): Likewise.
159 (struct induction): Likewise.
160 (struct dependence): Likewise.
161 (def_use_chain): Likewise.
162 (dep_chain): Likewise.
163 (loop_chain): Likewise.
164 (induction_chain): Likewise.
165 (init_dependence_analysis): Don't free anything, just clear pointers.
166 (build_def_use): Use GGC to allocate def_use.
167 (add_loop): Use GGC to allocate loop.
168 (find_induction_variable): Use GGC to allocate induction.
169 (check_node_dependence): Use GGC to allocate induction, dependence.
170 (dump_node_dependence): Don't free varrays.
171 (end_dependence_analysis): Likewise.
172 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
173 (struct elt_loc_list): Likewise.
174 (struct elt_list): Likewise.
175 * cselib.c: Don't include obstack.h.
176 (hash_table): Use gengtype to mark.
177 (reg_values): Use gengtype to mark.
178 (used_regs): Use gengtype to mark.
179 (cselib_obstack): Delete.
180 (cselib_startobj): Delete.
181 (empty_vals): Mark as deletable.
182 (empty_elt_lists): Mark as deletable.
183 (empty_elt_loc_lists): Mark as deletable.
184 (new_elt_list): Use GGC to allocate struct elt_list.
185 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
186 (clear_table): Don't delete obstack; don't unnecessarily clear
188 (new_cselib_val): Use GGC to allocate struct cselib_val.
189 (cselib_init): Don't set up obstacks. Use GGC to allocate
191 (cselib_finish): Just clear variables, don't free anything.
192 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
193 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
194 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
195 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
196 (gt-reg-stack.h): New rule.
197 (gt-dependence.h): New rule.
198 (gtype-desc.o): Add cselib.h, insn-addr.h.
200 * varray.c: Use only necessary headers.
203 (varray_init): Take type, not size. Use GGC if appropriate.
204 (varray_grow): Update for change to struct varray_head_tag.
205 Use GGC if appropriate.
206 * varray.h (struct const_equiv_data): Use gengtype.
207 (enum varray_data_enum): New.
208 (union varray_data_tag): Use gengtype.
209 (struct varray_head_tag): Use gengtype. Replace size field with
210 enum varray_data_enum.
211 (varray_init): Update prototype.
212 (VARRAY_SCHED_INIT): Delete.
213 (VARRAY_*_INIT): Update for change to varray_init.
214 (VARRAY_SCHED): Delete.
215 (VARRAY_PUSH_SCHED): Delete.
216 (VARRAY_TOP_SCHED): Delete.
217 * tree.h: Update for change to length specifier.
218 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
219 (clone_body): Likewise.
220 * ssa.h (ssa_definition): Use gengtype to mark.
221 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
222 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
223 * rtl.h (struct rtvec_def): Update for change to length specifier.
224 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
225 (struct initial_value_struct): Update for change to length specifier.
226 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
227 (ggc_add_tree_varray_root): Delete prototype.
228 (ggc_mark_rtx_varray): Delete prototype.
229 (ggc_mark_tree_varray): Delete prototype.
230 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
231 (ggc_add_tree_varray_root): Delete.
232 (ggc_mark_rtx_varray): Delete.
233 (ggc_mark_tree_varray): Delete.
234 (ggc_mark_rtx_varray_ptr): Delete.
235 (ggc_mark_tree_varray_ptr): Delete.
236 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
237 (create_varray): Delete prototype.
238 * gengtype.c (varrays): Delete.
239 (create_varray): Delete.
240 (adjust_field_type): Detect array of string pointers.
241 (process_gc_options): Remove code to handle varray_type option.
242 (set_gc_used_type): Remove TYPE_VARRAY case.
243 (output_escaped_param): New.
244 (write_gc_structure_fields): Use output_escaped_param on all
245 parameters. Handle 'skip' with 'use_param' option. Handle
246 arrays of strings. Remove TYPE_VARRAY handling.
247 (write_gc_roots): Use boolean to detect 'length' option.
248 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
249 (struct_fields): Call adjust_field_type on array fields.
250 (type): Remove VARRAY_TYPE case.
251 (type_option): Likewise.
252 * gengtype-lex.l: Don't consider varray_type a keyword.
253 * function.h: Update for change to length specifier.
254 (free_eh_status): Delete prototype.
255 * function.c (free_after_compilation): Don't call free_eh_status.
256 (reorder_blocks): Don't use VARRAY_FREE.
257 * except.c (struct eh_status): Update for change to length specifier.
258 remove varray_type specifier.
259 (free_eh_status): Delete.
260 * dwarf2out.c: Include gt-dwarf2out.h.
261 (used_rtx_varray): Use gengtype to mark, move
263 (incomplete_types): Likewise.
264 (decl_scope_table): Likewise.
265 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
266 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
267 * c-tree.h (struct lang_type): Update for change to length specifier.
268 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
269 * c-objc-common.c: Include gt-c-objc-common.h.
270 (deferred_fns): Mark for gengtype.
271 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
272 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
273 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
274 (gtype-desc.o): Update dependencies.
275 (dwarf2out.o): Add gt-dwarf2out.h.
276 (varray.o): Update dependencies.
277 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
278 (gt-c-objc-common.h): New rule.
279 (gt-dwarf2out.h): New rule.
280 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
282 * doc/gty.texi (GTY Options): Correct spelling.
283 (GGC Roots): Likewise.
284 * Makefile.in (TEXI_CPP_FILES): New.
285 (TEXI_GCC_FILES): New.
286 (TEXI_GCCINT_FILES): New.
287 (TEXI_CPPINT_FILES): New.
288 ($(docdir)/cpp.info): Use new macros.
289 ($(docdir)/gcc.info): Likewise.
290 ($(docdir)/gccint.info): Likewise.
291 ($(docdir)/cppinternals.info): Likewise.
294 (gccint.dvi): Likewise.
295 (cppinternals.dvi): Likewise.
297 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
298 * doc/gccint.texi (Top): Include gty.texi.
299 * doc/gty.texi: New file.
301 * bitmap.c: Include ggc.h, gt-bitmap.h.
302 (bitmap_ggc_free): New.
303 (bitmap_elem_to_freelist): New.
304 (bitmap_element_free): Use bitmap_elem_to_freelist.
305 (bitmap_element_allocate): Allow use of GGC.
306 (bitmap_clear): Use bitmap_elem_to_freelist.
307 (bitmap_copy): Update for change to bitmap_element_allocate.
308 (bitmap_set_bit): Likewise.
309 (bitmap_operation): Update for changes elsewhere.
310 (bitmap_initialize): Allow to create bitmaps that will use GGC.
311 * bitmap.h (struct bitmap_element_def): Use gengtype.
312 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
313 (bitmap_initialize): Add extra parameter.
314 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
315 (BITMAP_ALLOCA): Delete.
316 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
317 (BITMAP_GGC_ALLOC): New.
318 * Makefile.in (gtype-desc.o): Add bitmap.h.
319 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
320 (GTFILES): Add bitmap.c.
321 (gt-bitmap.h): New rule.
322 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
323 * basic-block.h: Update for changes to bitmap_initialize.
324 * except.c (exception_handler_label_map): Move into...
325 (struct eh_status): Here.
326 (struct eh_region): Make 'aka' GCable.
327 (free_eh_status): Don't need to specially handle
328 exception_handler_label_map.
329 (add_ehl_entry): Update for changes to exception_handler_label_map.
330 (find_exception_handler_labels): Likewise.
331 (remove_exception_handler_label): Likewise.
332 (maybe_remove_eh_handler): Likewise.
333 (for_each_eh_label): Likewise.
334 (remove_eh_handler): Allocate 'aka' using GGC.
335 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
338 * gengtype.c (write_gc_marker_routine_for_structure): Name
339 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
340 (write_gc_types): Arrange for the tests with NULL to be inlined.
341 (write_gc_roots): Update uses of procedure pointers.
342 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
344 * Makefile.in (explow.o): Add dependency on gt-explow.h.
345 (sdbout.o): Add dependency on gt-sdbout.h.
347 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
348 (mem_attrs_htab): Likewise.
349 (init_emit_once): Don't call ggc_add_deletable_htab.
350 * fold-const.c (size_htab): Use gengtype to clear unused entries.
351 (size_int_type_wide): Don't call ggc_add_deletable_htab.
352 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
353 parameters, use them, change callers.
354 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
355 (write_gc_roots): Handle 'if_marked' option.
356 (main): Don't need to call set_gc_used_type any more.
357 * ggc.h (ggc_htab_marked_p): Delete.
358 (ggc_htab_mark): Delete.
359 (struct ggc_cache_tab): New.
360 (gt_ggc_cache_rtab): New declaration.
361 * ggc-common.c (struct d_htab_root): Delete.
362 (d_htab_roots): Delete.
363 (ggc_add_deletable_htab): Delete.
364 (ggc_htab_delete): Handle new htab-deleting mechanism.
365 (ggc_mark_roots): Use new htab-deleting mechanism.
366 * tree.c (type_hash_table): Use gengtype to clear unused entries.
368 (init_obstacks): Don't call ggc_add_deletable_htab.
370 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
371 (struct hashed_entry): Likewise.
372 (nst_method_hash_list): Likewise.
373 (cls_method_hash_list): Likewise.
374 (HASH_ALLOC_LIST_SIZE): Delete.
375 (ATTR_ALLOC_LIST_SIZE): Delete.
376 * objc/objc-act.c (hash_init): Use ggc to allocate
377 nst_method_hash_list, cls_method_hash_list.
378 (hash_enter): Use ggc to allocate; allocate one entry at a time.
379 (hash_add_attr): Likewise.
380 (ggc_mark_hash_table): Delete.
381 (objc_act_parse_init): Delete.
382 (objc_init): Delete reference to objc_act_parse_init.
383 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
384 obstack.h. Replace references to 'struct hash_table' with htab_t.
385 (struct symbol_hash_entry): Replace hash header with key field.
386 (struct file_hash_entry): Replace hash header with key field.
387 (struct demangled_hash_entry): Replace hash header with key field.
388 (hash_string_eq): New.
389 (hash_string_hash): New.
390 (symbol_hash_newfunc): Delete.
391 (symbol_hash_lookup): Modify to use htab_t.
392 (file_hash_newfunc): Delete.
393 (file_hash_lookup): Modify to use htab_t.
394 (demangled_hash_newfunc): Delete.
395 (demangled_hash_lookup): Modify to use htab_t.
396 (tlink_init): Modify to use htab_t.
399 * ggc.h: Delete forward structure declarations.
400 Delete prototypes for deleted functions.
401 * ggc-common.c: Don't include hash.h.
402 (ggc_add_tree_hash_table_root): Delete.
403 (ggc_mark_tree_hash_table_entry): Delete.
404 (ggc_mark_tree_hash_table): Delete.
405 (ggc_mark_tree_hash_table_ptr): Delete.
406 * gengtype.c (write_gc_structure_fields): Allow param_is option.
407 (write_gc_marker_routine_for_structure): Use visibility of
408 the parameter if there is one.
409 * function.c: Replace hash.h with hashtab.h. Replace references
410 to 'struct hash_table *' with htab_t.
411 (struct insns_for_mem_entry): Include a plain key.
412 (fixup_var_refs_insns_with_hash): Update to use htab_t.
413 (insns_for_mem_newfunc): Delete.
414 (insns_for_mem_hash): Update to use htab_t.
415 (insns_for_mem_comp): Likewise.
416 (insns_for_mem_walk): Likewise.
417 * c-lang.c: Include ggc.h.
418 * Makefile.in (OBJS): Remove hash.o.
419 (c-lang.o): Add GGC_H.
420 (COLLECT2_OBJS): Remove hash.o.
421 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
422 (ggc-common.o): Remove hash.h.
423 (function.o): Remove hash.h, add HASHTAB_H.
424 (genautomata.o): Remove hash.h, add HASHTAB_H.
426 * varasm.c (mark_const_str_htab_1): Delete.
427 (mark_const_str_htab): Delete.
428 (const_str_htab_del): Delete.
429 (const_str_htab): Use gengtype to mark.
430 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
432 * tree.c (mark_tree_hashtable_entry): Delete.
433 (mark_tree_hashtable): Delete.
434 * tree.h (mark_tree_hashtable): Delete prototype.
435 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
436 (ggc_mark): Likewise.
438 (htab_create_ggc): New.
439 * ggc-common.c (ggc_calloc): New.
440 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
441 (struct type): Add param_struct structure.
442 * gengtype.c (param_structs): New.
443 (adjust_field_type): Handle param_is option.
444 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
445 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
446 (write_gc_structure_fields): Add new PARAM parameter. Update
447 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
448 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
449 Use it to generate function name. Update callers.
450 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
452 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
454 (main): Define PTR as pointer-to-scalar. Don't specially
455 mark deferred_string or ehl_map_entry.
456 * gengtype-yacc.y (PARAM_IS): Add new token.
457 (externstatic): Use adjust_field_type.
458 (type_option): Add PARAM_IS.
459 * gengtype-lex.l: Add rule for typedef of function pointers.
460 Add rule for PARAM_IS.
462 * except.c (exception_handler_label_map): Use gengtype to mark.
463 (type_to_runtime_map): Likewise.
464 (mark_ehl_map_entry): Delete.
465 (mark_ehl_map): Delete.
466 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
467 (t2r_mark_1): Delete.
469 * Makefile.in (gtype-desc.o): Correct dependencies.
470 (GTFILES): Add hashtab.h.
471 (genautomata.o): Actually uses hashtab.h.
473 * Makefile.in (stringpool.o): Add $(GGC_H).
474 (dwarf2asm.o): Likewise.
475 (GTFILES): Add hashtable.h.
476 * c-common.h (struct c_common_identifier): Use gengtype.
477 * c-decl.h (c_mark_tree): Delete.
478 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
479 * c-tree.h (struct lang_identifier): Use gengtype.
480 (union lang_tree_node): New.
481 (c_mark_tree): Delete prototype.
482 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
484 * gengtype-lex.l (IWORD): Allow 'bool'.
486 * gengtype-yacc.y (ALIAS): New token.
487 (type_option): New rule.
488 (option): Use type_option.
489 * gengtype.c (process_gc_options): New.
490 (set_gc_used_type): Use it.
491 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
492 Add new variable 't' to hold the type of the field being processed.
493 Add more error checking. Use UNION_P when looking at 'desc' option.
494 Handle language-specific structures containing other
495 language-specific structures.
496 (write_gc_types): Handle 'ptr_alias' option.
497 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
498 * ggc-common.c (ggc_pending_trees): Delete.
499 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
500 (ggc_mark_trees): Delete.
501 (gt_ggc_m_tree_node): Delete.
502 * ggc.h (ggc_pending_trees): Delete.
503 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
504 * hashtable.h (ht_identifier): Use gengtype.
505 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
506 * langhooks.h (struct lang_hooks): Delete mark_tree.
507 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
509 * system.h: Poison LANG_HOOKS_MARK_TREE.
510 * tree.c (tree_node_structure): New.
511 * tree.h (struct tree_common): Use gengtype.
512 (struct tree_int_cst): Likewise.
513 (struct tree_real_cst): Likewise.
514 (struct tree_string): Likewise.
515 (struct tree_complex): Likewise.
516 (struct tree_vector): Likewise.
517 (struct tree_identifier): Likewise.
518 (struct tree_list): Likewise.
519 (struct tree_vec): Likewise.
520 (struct tree_exp): Likewise.
521 (struct tree_block): Likewise.
522 (struct tree_type): Likewise.
523 (struct tree_decl): Likewise.
524 (enum tree_structure_enum): New.
525 (union tree_node): Use gengtype, with an alias.
526 (tree_node_structure): Prototype.
527 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
529 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
530 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
531 to LANG_HOOKS_FUNCTION_FINAL.
532 * Makefile.in (GTFILES): Add bitmap.h.
533 * except.c (struct eh_region): Mark field 'aka' to be skipped.
535 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
536 (alpha_init_machine_status): Give proper type.
537 * Makefile.in (c-lang.o): Depend on gtype-c.h.
538 (optabs.o): Depend on gt-optabs.h.
539 (GTFILES): Add optabs.o.
540 (gt-optabs.h): Add rule.
541 * optabs.c: Include gt-optabs.h.
543 * gengtype.c (set_gc_used_type): Correct some errors in last change.
544 (write_gc_structure_fields): If a field which should be NULL is
546 * c-pragma.c: Move struct align_stack and variable alignment_stack
549 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
550 * config/xtensa/xtensa.c: Include gt-cris.h.
551 (struct machine_function): Use gengtype to mark.
552 * config/mmix/mmix.h (struct machine_function): Use gengtype
554 * config/cris/t-cris: Add dependencies for gt-cris.h.
555 * config/cris/cris.c: Include gt-cris.h.
556 (struct machine_function): Use gengtype to mark.
557 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
559 * doc/tm.texi (Per-Function Data): Delete references to
561 * config/ia64/ia64.c (ia64_override_options): Don't set
563 * config/i386/i386.c (override_options): Likewise.
564 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
565 * config/arm/arm.c (arm_init_expanders): Likewise.
566 * config/alpha/alpha.c (override_options): Likewise.
567 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
568 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
569 (write_gc_structure_fields): Don't handle 'really' option.
570 Handle 'maybe_null' option.
571 (write_gc_types): Handle 'maybe_null' option.
572 * function.h (struct function): Don't use "really".
573 (mark_machine_status): Delete declaration.
574 (mark_lang_status): Delete declaration.
575 (gt_ggc_mr_machine_function): Delete prototype.
576 (gt_ggc_mr_language_function): Delete prototype.
577 * function.c (mark_machine_status): Delete.
578 (mark_lang_status): Delete.
579 (gt_ggc_mr_machine_function): Delete.
580 (gt_ggc_mr_language_function): Delete.
581 * c-tree.h (mark_c_function_context): Delete prototype.
582 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
583 * c-decl.c (struct language_function): Rename from struct
584 c_language_function. Update uses. Use gengtype to mark.
585 (mark_c_function_context): Delete.
586 * c-common.h (struct c_language_function): Rename from struct
588 (mark_stmt_tree): Delete prototype.
589 (c_mark_lang_decl): Delete prototype.
590 (mark_c_language_function): Delete prototype.
591 * c-common.c (mark_stmt_tree): Delete.
592 (c_mark_lang_decl): Delete.
593 (mark_c_language_function): Delete.
595 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
596 (lang_bitmap): New typedef. Use where appropriate.
597 (struct type): Add gc_used field, lang_struct field.
598 (UNION_P): New macro.
599 (new_structure): New prototype.
600 (find_structure): Remove 'pos' parameter. Change all callers.
601 * gengtype-lex.l: Update for changes to find_structure.
602 * gengtype-yacc.y (typedef_struct): Use new_structure.
603 (yacc_ids): Suppress warning.
604 (type): Use new_structure.
605 * gengtype.c (string_type): Update for changes to struct type.
606 (find_structure): Just find a structure, don't worry about
608 (new_structure): New.
609 (note_yacc_type): Use new_structure.
610 (set_gc_used_type): New.
612 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
613 (write_gc_types): Handle TYPE_LANG_STRUCT.
614 (write_gc_marker_routine_for_structure): New.
615 (main): Call set_gc_used. Add some calls to set_gc_used_type
616 for places where GCC doesn't use gengtype properly yet.
617 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
618 (gt_ggc_m_tree_node): Likewise.
620 * varasm.c (copy_constant): Call expand_constant if we hit
621 something we can't recognise.
623 * ggc-common.c (ggc_mark_rtvec_children): Delete.
624 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
625 (lang_mark_false_label_stack): Delete.
626 * rtl.h (struct rtvec_def): Use gengtype to mark.
627 * ggc.h (ggc_mark_rtvec): Delete.
628 (gt_ggc_m_rtvec_def): Delete.
629 (ggc_mark_nonnull_tree): Delete.
630 (ggc_mark_rtvec_children): Delete prototype.
631 (lang_mark_false_label_stack): Delete declaration.
633 * gengtype.h (note_yacc_type): Add prototype.
634 * gengtype.c (note_yacc_type): New function.
635 * gengtype-lex.l: Add lexer support for yacc files.
636 * gengtype-yacc.y (start): Extract union from yacc files.
637 (yacc_union): New rule.
638 (yacc_typematch): New rule.
639 (yacc_ids): New rule.
640 (enum_items): Tweak for efficiency.
641 (optionseq): Likewise.
643 * c-common.h (struct language_function): Use gengtype.
644 (struct c_lang_decl): Likewise.
645 * c-tree.h (struct lang_decl): Likewise.
646 (struct lang_type): Likewise.
647 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
648 tree language substructures.
650 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
652 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
654 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
656 * stmt.c (struct nesting): Add discriminator. Use gengtype to
657 mark. Remove 'data.block.cleanup_ptr' field.
658 (struct stmt_status): Use usual technique to mark struct nesting.
659 (gt_ggc_mr_nesting_cond): Delete.
660 (gt_ggc_mr_nesting_loop): Delete.
661 (gt_ggc_mr_nesting_block): Delete.
662 (gt_ggc_mr_nesting_case_stmt): Delete.
663 (expand_start_cond): Set discriminator.
664 (expand_start_loop): Likewise.
665 (expand_start_null_loop): Likewise.
666 (expand_start_bindings_and_block): Set discriminator. Don't set
668 (expand_decl_cleanup): Replace 'cleanup_ptr' with
669 &thisblock->data.block.cleanups.
670 (expand_start_case): Set discriminator.
671 (expand_start_case_dummy): Set discriminator.
673 * ggc-callbacks.c: Remove.
675 * gengtype.h (struct type): Add 'u.s.bitmap' field.
676 (find_structure): Add 'pos' parameter.
677 * gengtype-lex.l: Update callers to find_structure.
678 * gengtype-yacc.y: Likewise.
679 * gengtype.c (find_structure): Allow for structures to be defined
680 in multiple language backends.
681 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
682 (counter): Rename to gc_counter.
683 (write_gc_structure_fields): Fail when writing out fields for
684 an incomplete structure. Ignore arrays of scalars. Handle
686 (write_gc_types): Reset counter for each procedure written.
688 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
689 (free_case_nodes): Delete.
690 (expand_end_case_type): Delete call to free_case_nodes.
692 * Makefile.in (cselib.o): Include gt-<filename>.h.
694 (profile.o): Likewise.
696 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
697 alphabetize backend files.
698 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
699 * alias.c: Use gengtype for roots.
700 * c-common.h (struct stmt_tree_s): Use gengtype.
701 * c-decl.c: Use gengtype for roots.
702 * cselib.c: Use gengtype for roots.
703 * expr.c: Use gengtype for roots.
704 * fold-const.c: Use gengtype for roots.
705 * gcse.c: Use gengtype for roots.
706 * gengtype-lex.l: Handle typedefs of function types.
707 Allow for empty array bounds.
708 Allow processing to stop on initialisers.
709 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
710 (semiequal): New rule.
711 * gengtype.c (create_file): Tidy output files.
712 (get_output_file_with_visibility): Fix paren warning. Fix bug
713 involving multiple input files mapping to one output file.
714 (write_gc_structure_fields): Skip arrays of scalars.
715 (write_gc_types): Tidy output files.
716 (write_gc_root): New function.
717 (write_gc_roots): Fix bugs, add support for roots that are
719 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
720 (ggc_mark_tree_ptr): Delete.
721 (ggc_add_rtx_root): Delete.
722 (ggc_add_tree_root): Delete.
723 (ggc_del_root): Delete.
724 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
725 allocate struct initial_value_struct.
726 * profile.c: Use gengtype for roots.
727 * sdbout.c: Use gengtype for roots.
728 * varasm.c (mark_weak_decls): Delete unused prototype.
729 (mark_const_hash_entry): Delete unused function.
730 * config/darwin-protos.h: Use gengtype for roots.
731 (machopic_add_gc_roots): Delete.
732 * config/arm/arm.c: Use gengtype for roots.
733 * config/arm/arm.h: Use gengtype for roots.
734 * config/c4x/c4x-protos.h: Use gengtype for roots.
735 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
736 * config/d30v/d30v-protos.h: Use gengtype for roots.
737 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
738 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
739 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
740 * config/ia64/ia64-protos.h: Use gengtype for roots.
741 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
742 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
743 * config/m68hc11/m68hc11.c (z_reg): Make global.
744 (z_reg_qi): Make global.
745 (m68hc11_add_gc_roots): Delete.
746 * config/mcore/mcore-protos.h: Use gengtype for roots.
747 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
748 * config/mips/mips.c (mips_add_gc_roots): Delete.
749 * config/mips/mips.h: Use gengtype for roots.
750 * config/mmix/mmix.c (override_options): Use gengtype for roots.
751 * config/mmix/mmix.h: Use gengtype for roots.
752 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
753 * config/mn10200/mn10200.h: Use gengtype for roots.
754 * config/pa/pa.c: Use gengtype for roots, marking.
755 (struct deferred_plabel): Use GGC, gengtype.
756 (pa_add_gc_roots): Delete.
757 (mark_deferred_plabels): Delete.
758 * config/pj/pj-protos.h: Use gengtype for roots.
759 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
760 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
761 machopic_add_gc_roots.
762 * config/rs6000/rs6000.h: Use gengtype for roots.
763 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
764 (gt-darwin.h): Add rule.
765 * config/sh/sh.c: Use gengtype for roots.
766 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
768 * config/sparc/sparc.c: Use gengtype for roots.
769 (sparc_add_gc_roots): Delete.
770 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
771 (mark_ultrasparc_pipeline_state): Delete.
772 * config/sparc/sparc.h: Use gengtype for roots.
774 * Makefile.in (c-parse.o): Update dependencies.
775 (c-common.o): Likewise.
776 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
777 Add dependencies for the files they generate.
778 * c-common.c: Replace ggc_add_* uses with GTY annotations.
779 * c-common.h: Likewise.
780 * c-decl.c: Likewise.
781 (gt_ggc_mp_binding_level): Delete.
782 * c-lang.c: Include gtype-c.h.
783 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
785 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
786 (gt_ggc_mp_align_stack): Delete.
787 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
788 * function.c: Replace ggc_add_* uses with GTY annotations.
789 (gt_ggc_mp_function): Delete.
790 * function.h: Replace ggc_add_* uses with GTY annotations.
791 * gengtype.c (lang_names): New.
792 (NUM_BASE_FILES): New.
793 (open_base_files): Create language base files.
795 (get_file_basename): New.
796 (get_base_file_bitmap): New.
797 (get_output_file_with_visibility): Rename from get_output_file.
798 Add more mappings for various C/Objc filenames.
799 (finish_root_table): New.
800 (write_gc_roots): Handle dependencies and scoping properly.
801 * gengtype.h: Add prototypes for new functions.
802 * ggc-common.c (struct deletable_root): Delete.
803 (deletables): Delete.
804 (ggc_add_deletable_root): Delete.
805 (ggc_mark_roots): No need to deal with deleted functionality.
806 * ggc.h (ggc_add_deletable_root): Delete prototype.
807 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
808 (gtype-objc.h): Add rule to create.
809 * objc/config-lang.in (gtfiles): New.
810 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
811 ggc_add_* with GTY markers. Include gtype-objc.h.
812 (ggc_mark_imp_list): Delete.
813 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
814 * objc/objc-lang.c: Random Whitespace Change.
816 * except.h (exception_handler_labels): Delete.
817 (get_exception_handler_labels): New.
818 * except.c (exception_handler_labels): Delete.
819 (struct eh_status): Add exception_handler_labels field.
820 (doing_eh): Don't add exception_handler_labels as root.
821 (free_eh_status): Don't need to free exception_handler_labels.
822 (get_exception_handler_labels): New.
823 (find_exception_handler_labels): Update for move of
824 exception_handler_labels.
825 (remove_exception_handler_label): Likewise.
826 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
827 * jump.c (rebuild_jump_labels): Likewise.
828 * loop.c (find_and_verify_loops): Likewise.
829 * sched-rgn.c (is_cfg_nonregular): Likewise.
831 * gengtype.c (write_gc_structure_fields): Handle variable-length
834 * varasm.c (struct weak_syms): Use GGC, gengtype.
835 (mark_weak_decls): Delete.
836 (weak_decls): Likewise.
837 (add_weak): Likewise.
838 (remove_from_pending_weak_list): Likewise.
839 (init_varasm_once): Likewise.
841 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
842 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
843 stor-layout.c, regclass.c, and lists.c.
844 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
845 gt-regclass.h and gt-lists.h on s-gtype.
846 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
847 * except.c: Use gengtype for roots.
848 * explow.c: Use gengtype for roots. Include gt-explow.h.
849 * expr.h (init_stor_layout_once): Delete prototype.
850 * function.c: Use gengtype for roots.
851 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
852 * gengtype-yacc.y (start): Can also be an externstatic.
853 (externstatic): New production.
854 (struct_fields): Correct array bounds inversion for 2-d arrays.
855 * gengtype.c (variables): New variable.
856 (note_variable): New function.
857 (get_output_file): Include libfuncs.h into gtype-desc.c.
858 (get_output_file_name): New function.
859 (write_gc_structure_fields): Suppress warnings.
860 (write_gc_types): Make static.
861 (put_mangled_filename): New function.
862 (write_gc_roots): New function.
863 (main): Call write_gc_roots.
864 * gengtype.h (note_variable): Prototype.
865 (get_output_file_name): Prototype.
866 (write_gc_types): Delete prototype.
867 * ggc.h: Clean up unnecessary structure predefinitions.
868 (struct ggc_root_tab): Define.
869 (gt_ggc_m_rtx_def): Make function, not macro.
870 (gt_ggc_m_tree_node): Likewise.
871 * libfuncs.h: Use gengtype for roots.
872 * lists.c: Use gengtype for roots. Include gt-lists.h.
873 (init_EXPR_INSN_LIST_cache): Delete.
874 * optabs.c: Use gengtype for roots.
875 (gt_ggc_mp_optab): Delete.
876 * optabs.h: Use gengtype for roots.
877 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
878 * rtl.h: Use gengtype for roots.
879 (init_EXPR_INSN_LIST_cache): Delete prototype.
880 * stor-layout.c: Use gengtype for roots.
881 Include gt-stor-layout.h.
882 (init_stor_layout_once): Delete.
883 * toplev.c: Use gengtype for roots. Delete calls to deleted
885 * tree.c: Use gengtype for roots.
886 * tree.h: Use gengtype for roots.
887 * varasm.c: Use gengtype for roots.
889 * Makefile.in (GTFILES): Add @all_gtfiles@.
890 * configure: Regenerate.
891 * configure.in: Construct all_gtfiles from the gtfiles definitions
893 * gengtype-yacc.y (type): Warn about duplicate structure names.
894 * gengtype.c (get_output_file): Handle .c files in language
897 * Makefile.in (GTFILES): Run gengtype on all the config files
898 and on the target .c file.
899 * except.c (mark_eh_region): Delete.
900 (init_eh_for_function): Use GGC on struct eh_status.
901 (mark_eh_status): Delete.
902 (free_eh_status): Use GGC.
903 (expand_eh_region_start): Use GGC to
904 (collect_eh_region_array): Allocate last_region_number using GGC.
905 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
906 (remove_eh_handler): Let GGC free struct eh_region.
907 (add_call_site): Use GGC to reallocate call_site_record array.
908 * function.c (init_machine_status): Update calling sequence.
909 (mark_machine_status): Likewise.
910 (mark_lang_status): Likewise.
911 (prepare_function_start): Update init_machine_status call.
912 (mark_function_status): Delete.
913 (maybe_mark_struct_function): Delete.
914 (ggc_mark_struct_function): Delete.
915 (gt_ggc_mp_function): New.
916 (gt_ggc_mr_machine_function): New.
917 (gt_ggc_mr_language_function): New.
918 (init_function_once): Use canonical names.
919 * function.h (struct function): Use gengtype.
920 (init_machine_status): Return the structure.
921 (mark_machine_status): Take a 'void *'.
922 (mark_lang_status): Likewise.
923 * ggc-common.c (ggc_mark_trees): Use canonical name for
924 ggc_mark_struct_function.
925 * tree.h (ggc_mark_struct_function): Delete prototype.
926 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
927 (alpha_init_machine_status): Likewise.
928 (override_options): Use canonical name for alpha_mark_machine_status.
929 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
930 * config/arm/arm.h (struct machine_function): Use gengtype.
931 * config/arm/arm.c (arm_mark_machine_status): Delete.
932 (arm_init_machine_status): Update calling sequence.
933 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
934 * config/cris/cris.c (cris_init_machine_status): Update
936 * config/d30v/d30v.h (struct machine_function): Use gengtype.
937 * config/d30v/d30v.c (d30v_init_machine_status): Update
939 (d30v_mark_machine_status): Delete.
940 * config/i386/i386.c: Include gt-i386.h.
941 (struct machine_function): Use gengtype.
942 (ix86_init_machine_status): Update calling sequence.
943 (ix86_mark_machine_status): Delete.
944 (override_options): Use canonical namke for ix86_mark_machine_status.
945 * config/ia64/ia64.h (struct machine_function): Use gengtype.
946 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
948 (ia64_mark_machine_status): Delete.
949 (ia64_override_options): Use canonical name for
950 ia64_mark_machine_status.
951 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
953 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
954 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
955 * gengtype.c (get_output_file): Fix warning.
956 (main): Add prototype to suppress warning.
957 * tree.c: Remove tree_hash_mark prototype.
959 * tree.h (init_stmt): Delete prototype.
960 * toplev.c (lang_independent_init): Don't call init_stmt.
961 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
962 (stmt_obstack): Delete.
963 (POPSTACK): No need to free 'struct nesting'.
964 (gt_ggc_mr_nesting_cond): Use canonical names.
965 (gt_ggc_mr_nesting_loop): Use canonical names.
966 (gt_ggc_mr_nesting_block): Use canonical names.
967 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
968 (mark_stmt_status): Delete.
970 (clear_last_expr): Clear both last_expr_type and last_expr_value.
971 Use it everywhere that last_expr_type was cleared.
972 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
974 * ggc.h (ggc_add_deletable_root): Prototype.
975 (mark_stmt_status): Remove prototype.
976 * ggc-common.c (ggc_add_deletable_root): New.
977 (ggc_mark_roots): Handle deletable roots.
978 * function.c (ggc_mark_struct_function): Use canonical name
979 for mark_stmt_status.
980 * emit-rtl.c (free_sequence_stack): New.
981 (start_sequence): Use a freelist for sequences.
982 (end_sequence): Likewise.
983 (init_emit_once): Add free_sequence_stack as a deleteable root.
984 * c-pragma.c Include gt-c-pragma.h.
985 (struct align_stack): Use gengtype.
986 (push_alignment): Use GGC for struct align_stack.
987 (mark_align_stack): Delete.
988 (gt_ggc_mp_align_stack): New.
989 (init_pragma): Use canonical name for mark_align_stack.
990 * c-decl.c: Include gt-c-decl.h.
991 (struct binding_level): Use gengtype.
992 (make_binding_level): Use GGC; handle the freelist here.
993 (pop_binding_level): New.
994 (pushlevel): Move code into make_binding_level.
995 (push_label_level): Likewise.
996 (poplevel): Move code into pop_binding_level.
997 (pop_label_level): Likewise.
998 (mark_binding_level): Delete.
999 (gt_ggc_mp_binding_level): New.
1000 (c_init_decl_processing): Use canonical name for mark_binding_level.
1001 Add free_binding_level as deletable root.
1002 (mark_c_function_context): Use canonical name for mark_binding_level.
1003 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1004 (c-pragma.o): Add gt-c-pragma.h.
1005 (GTFILES): Add c-decl.c and c-pragma.c.
1006 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1008 * tree.c (struct type_hash): Use gengtype.
1009 (init_obstacks): Use canonical name for type_hash_mark.
1010 (type_hash_mark): Delete.
1012 * rtl.h (struct mem_attrs): Use gengtype.
1013 * optabs.h (struct optab): Use gengtype.
1014 * optabs.c (expand_binop): Squish signed/unsigned warning.
1015 (mark_optab): Make local, use canonical name, use autogenerated
1017 (init_optabs): Use canonical name for mark_optab.
1018 (new_optab): Use GGC to allocate optabs.
1019 * ggc.h: Delete mark_optab prototype.
1020 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1021 mem_attrs marker procedure.
1022 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1023 explicitly rather than deducing them from file names.
1024 (write_gc_structure_fields): Handle arrays of structures.
1025 (main): Return non-zero exit code if errors occur during output.
1026 * emit-rtl.c (mem_attrs_mark): Delete.
1027 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1028 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1029 (tree.o): Depend on gt-tree.h.
1030 (GTFILES): Add rtl.h, optabs.h, tree.c.
1031 (gt-tree.h): Add it to s-gtype rule.
1033 * .cvsignore: Ignore gengtype flex/bison generated files.
1034 * Makefile.in (GGC_H): Add gtype-desc.h.
1035 (OBJS): Add gtype-desc.o.
1036 (GEN): Add gengtype.
1037 (STAGESTUFF): Add gengtype.
1038 (varasm.o): Add gt-varasm.h.
1039 (stmt.o): Add gt-stmt.h.
1040 (except.o): Add gt-except.h.
1041 (integrate.o): Add gt-integrate.h.
1043 Add new rules for new files.
1044 * configure: Regenerate.
1045 * configure.in: Correct defaults.h paths.
1046 * emit-rtl.c (mark_sequence_stack): Delete.
1047 (mark_emit_status): Delete.
1048 (start_sequence): Allocate sequence structures using GGC.
1049 (end_sequence): Allocate sequence structures using GGC.
1050 * except.c: Use gengtype for various structures. Include
1052 * expr.c (mark_expr_status): Delete.
1053 * function.c: Use gengtype for various structures. Include
1055 (mark_function_status): Use standard gt_ggc names for marker functions.
1056 (ggc_mark_struct_function): Likewise.
1057 * function.h: Use gengtype for various structures.
1058 * gengtype-lex.l: New file.
1059 * gengtype-yacc.y: New file.
1060 * gengtype.c: New file.
1061 * gengtype.h: New file.
1062 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1063 the standard names. Remove some now-unnecessary prototypes.
1064 * integrate.c: Use gengtype for various structures. Include
1066 (mark_hard_reg_initial_vals): Delete.
1067 * integrate.h (mark_hard_reg_initial_vals): Delete.
1068 * stmt.c: Use gengtype for various structures. Include
1070 (mark_case_node): Delete.
1071 (mark_goto_fixup): Delete.
1072 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1073 * system.h: Define GTY to empty. In flex/bison files,
1074 don't poison malloc or realloc, instead just define them to
1075 xmalloc and xrealloc.
1076 * varasm.c: Use gengtype for various structures. Include
1077 gt-varasm.h. Use standard gt_ggc names for marker functions.
1078 (mark_pool_constant): Delete.
1079 (mark_varasm_status): Delete.
1080 (decode_rtx_const): #if 0 out non-typesafe hack.
1082 * function.h (free_lang_status): Mark as obsolete.
1083 * function.c (free_lang_status): Mark as obsolete.
1084 * c-decl.c (push_c_function_context): Use GC to allocate and free
1085 struct language_function.
1086 (pop_c_function_context): Likewise.
1087 * c-common.c (mark_c_language_function): Mark struct
1090 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1091 Document that the machine_function structures must be allocated
1092 using GC. Update mark_machine_status documentation.
1093 * function.h: Don't declare free_machine_status.
1094 * function.c (free_machine_status): Don't define.
1095 (free_after_compilation): Don't call free_machine_status.
1096 (ggc_mark_struct_function): Mark f->machine. Call
1097 mark_machine_status only on non-NULL pointers.
1098 * system.h: Poison free_machine_status.
1099 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1100 struct machine_function.
1101 (xtensa_free_machine_status): Delete.
1102 (override_options): Don't set free_machine_status.
1103 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1104 free_machine_status.
1105 (rs6000_init_machine_status): Use GC on struct machine_function.
1106 (rs6000_free_machine_status): Delete.
1107 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1109 (ia64_mark_machine_status): Likewise.
1110 (ia64_free_machine_status): Delete.
1111 (ia64_override_options): Don't set free_machine_status.
1112 * config/i386/i386.c (override_options): Don't set
1113 free_machine_status.
1114 (ix86_init_machine_status): Use GC on struct machine_function.
1115 (ix86_mark_machine_status): Likewise.
1116 (ix86_free_machine_status): Delete.
1117 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1119 (d30v_mark_machine_status): Likewise.
1120 (d30v_free_machine_status): Delete.
1121 (d30v_init_expanders): Don't set free_machine_status.
1122 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1124 (arm_init_machine_status): Likewise.
1125 (arm_free_machine_status): Delete.
1126 (arm_init_expanders): Don't set free_machine_status.
1127 * config/alpha/alpha.c (override_options): Don't set
1128 free_machine_status.
1129 (alpha_init_machine_status): Use GC on struct machine_function.
1130 (alpha_mark_machine_status): Likewise.
1131 (alpha_free_machine_status): Delete.
1133 * varasm.c (compare_constant): Fix typo.
1135 * varasm.c: Don't include obstack.h.
1136 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1137 (struct rtx_const): Give substructures names, improve formatting.
1138 (struct constant_descriptor): Delete.
1139 (struct constant_descriptor_tree): New, based on constant_descriptor.
1140 (const_hash_table): Is a hash table of trees.
1141 (mark_const_hash_entry): Is used for hashes of trees. Mark
1142 constant_descriptor_tree structure.
1143 (mark_const_str_htab_1): Mark deferred_string structure.
1144 (compare_constant): Rewrite to compare trees.
1145 (compare_constant_1): Delete.
1146 (record_constant): Delete.
1147 (record_constant_1): Delete.
1148 (output_constant_def): Use struct constant_descriptor_tree.
1149 Don't duplicate trees twice.
1150 (struct constant_descriptor_rtx): New.
1151 (struct pool_constant): Used for rtx constants.
1152 (init_varasm_status): Update for change to struct varasm_status.
1153 (mark_varasm_status): Likewise.
1154 (free_varasm_status): Delete.
1155 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1156 (record_constant_rtx): Likewise.
1157 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1158 (force_const_mem): Likewise.
1159 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1160 * function.c (free_after_compilation): Don't use free_varasm_status.
1161 * function.h: Don't prototype free_varasm_status.
1163 * ggc-common.c (ggc_realloc): Handle X being NULL.
1165 * ggc-common.c (ggc_realloc): New function.
1166 * ggc.h: Prototype it.
1167 * emit-rtl.c (free_emit_status): Delete.
1168 (init_emit): Allocate emit subarrays using GC.
1169 (gen_reg_rtx): Reallocate subarrays using GC.
1170 (init_emit): Use GC to allocate 'struct emit_status' and its
1172 (mark_emit_status): Mark structure and its subarrays.
1173 * stmt.c (free_stmt_status): Delete.
1174 * expr.c (free_expr_status): Delete.
1175 * function.h: Remove prototypes for deleted functions.
1176 * function.c (free_after_compilation): Don't use deleted functions.
1177 Don't call free() on x_parm_reg_stack_loc.
1178 (free_after_parsing): Don't use free_stmt_status.
1179 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1180 (mark_function_status): Mark x_parm_reg_stack_loc.
1182 * varasm.c (init_varasm_status): Use GC to allocate
1183 'struct varasm_status' and its fields x_const_rtx_hash_table
1184 and x_const_rtx_sym_hash_table.
1185 (mark_varasm_status): Mark them.
1186 (free_varasm_status): Use GC to free them.
1187 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1188 (mark_expr_status): Mark the structure itself.
1189 (free_expr_status): Use GC to free the structure.
1190 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1191 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1192 (init_stmt_for_function): Allocate the structure for GC.
1194 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1195 (equate_type_number_to_die): Likewise.
1196 * tree.h (TYPE_SYMTAB_DIE): New macro.
1197 (struct die_struct): Predeclare.
1198 (struct tree_type): Add field symtab.die. Add a tag
1199 to the union type of field symtab.
1201 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1202 'struct rtvec_def *', not 'struct rtvec_def'.
1204 * function.h (original_arg_vector): Make a real rtvec.
1205 * function.c (ggc_mark_struct_function): Adjust.
1206 * integrate.c (expand_inline_function): Adjust.
1208 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1210 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1211 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1212 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1213 (TARGET_VERSION_CPU): Define according to the
1215 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1217 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1218 if TARGET_SHMEDIA64.
1219 (LINK_DEFAULT_CPU_EMUL): Define according to the
1221 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1222 (SUBTARGET_LINK_SPEC): Define.
1223 (LINK_SPEC): Use SH_LINK_SPEC.
1225 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1226 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1227 and TARGET_SHMEDIA64 which abort, for now.
1228 * config/sh/t-netbsd-sh5: New file.
1229 * config/sh/t-netbsd-sh5-32: New file.
1230 * config/sh/t-netbsd-sh5-64: New file.
1232 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1233 Richard Henderson <rth@redhat.com>
1235 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1236 (some_operand, input_operand): Accept CONST_VECTOR.
1237 (alpha_extra_constraint): Add 'W'.
1238 (alpha_expand_zap_mask): New.
1239 (alpha_expand_builtin_vector_binop): New.
1240 (enum alpha_builtin): New.
1241 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1242 (alpha_init_builtins, alpha_expand_builtin): New.
1243 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1244 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1245 (PREDICATE_CODES): Update.
1246 * config/alpha/alpha-protos.h: Update.
1247 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1248 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1249 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1250 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1251 (movv2si, movv2si_fix, movv2si_nofix): New.
1252 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1253 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1254 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1255 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1256 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1257 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1258 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1259 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1260 builtin_unpkbw, unpkbw): New.
1261 * doc/extend.texi (Alpha Built-in Functions): New.
1263 2002-06-03 Richard Henderson <rth@redhat.com>
1265 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1266 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1268 2002-06-03 Richard Henderson <rth@redhat.com>
1270 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1272 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1273 (const0_operand): New.
1274 (reg_or_fp0_operand, fp0_operand): Remove.
1275 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1276 * config/alpha/alpha-protos.h: Update.
1277 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1278 and fp0_operand with reg_or_0_operand and const0_operand.
1280 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1282 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1284 2002-06-03 Roger Sayle <roger@eyesopen.com>
1286 * gcse.c (cprop_jump): Use single_set to get the pattern
1287 from the setcc argument.
1289 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1291 * diagnostic.h (diagnostic_count): Move from output_buffer to
1293 (diagnostic_kind_count): Adjust definition.
1295 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1297 * except.c (except.c): Do not rebuild CFG.
1298 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1301 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1303 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1304 * toplev.c: Include cfglahout.h
1305 * Makefile.in (toplev.c): Add dependnecy.
1307 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1309 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1310 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1311 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1313 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1315 * config/ns32k/netbsd.h: Update copyright years.
1316 (TARGET_OS_CPP_BUILTINS): Define.
1317 (CPP_PREDEFINES): Remove.
1318 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1319 (TARGET_CPU_CPP_BUILTINS): Define.
1321 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1323 * emit-rtl.c: Fix formatting.
1324 * errors.h: Likewise.
1325 * except.c: Likewise.
1326 * explow.c: Likewise.
1327 * expmed.c: Likewise.
1331 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1333 * config/h8300/elf.h: Fix formatting.
1334 * config/h8300/rtems.h: Likewise.
1336 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1338 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1340 2002-06-02 Tom Tromey <tromey@redhat.com>
1342 * fixinc/fixincl.x: Rebuilt.
1343 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1345 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1348 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1349 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1353 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1355 * final.c (final): Allow notes to not have computed addresses;
1356 kill no longer needed STACK_REGS ifdef.
1358 2002-06-02 Richard Henderson <rth@redhat.com>
1360 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1362 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1364 * loop.c (emit_prefetch_instructions): Properly place the address
1367 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1369 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1370 (set_block_for_insn): Turn into macro.
1371 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1372 * cfglayout.c (insn_scopes): Kill.
1373 (scope_to_insns_initialize): Do not use insn_scopes.
1374 (scope_to_insns_finalize): Likewise.
1375 (duplicate_insn_chain): Likewise.
1376 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1377 * cfgrtl.c (basic_block_for_insn): Kill.
1378 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1379 (create_basic_block_structure): Use reorder_insns.
1380 (compute_bb_for_insn): Do not use basic_block_for_insn.
1381 (merge_blocks_nomove): Likewise.
1382 (update_bb_for_insn): Likewise.
1383 (verify_flow_info): Likewise.
1384 (set_block_for_insn): Kill.
1385 * combine.c (try_combine): Update gen_rtx_INSN call.
1386 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1387 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1389 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1390 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1392 (emit_insns_after): Simplify.
1393 (emit_copy_of_insn_after): Copy scope.
1394 * final.c (final_start_function): Lower scopes.
1395 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1396 * integrate.c (copy_insn_list): Cope scopes.
1397 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1398 * loop.c (loop_optimize): Do not care block notes.
1399 * print-rtl.c (print_rtx): Print BB.
1400 * recog.c (apply_change_group): Simplify.
1401 * rtl.c (copy_rtx): Handle 'B'.
1402 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1403 * rtl.h (Field accessors): Update indexes.
1404 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1405 * sched-rgn.c (schedule_insns): Likewise.
1406 * toplev.c (rest_of_compilation): Lower notes.
1407 * unroll.c (unroll_loop): Do not care scoping notes.
1408 (copy_loop_body): Copy scopes.
1410 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1413 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1415 * rtems.h: Similarly.
1416 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1417 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1418 (TARGET_CPU_CPP_BUILTINS): Use.
1420 2002-06-02 Richard Henderson <rth@redhat.com>
1422 * alias.c: Include target.h.
1423 (mark_constant_function): Use targetm.binds_local_p instead
1424 of checking TREE_PUBLIC ourselves.
1425 * Makefile.in (alias.o): Add TARGET_H.
1427 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1429 * c-lex.c: Update copyright and file description.
1431 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1433 * config/fr30/fr30.h: Update to new CPP macros.
1435 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1437 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1439 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1440 Zack Weinberg <zack@codesourcery.com>
1442 * c-common.c (c_common_init): Override cpplib's default
1443 warn_long_long setting.
1444 * c-lex.c (lex_number): Replace with interpret_integer,
1445 interpret_float, narrowest_unsigned_type and
1446 narrowest_signed_type, taking advantage of the new
1447 cpplib functionality.
1448 * cpperror.c (_cpp_begin_message): If a warning is turned
1449 into an error, avoid printing "warning:".
1450 * cppexp.c (cpp_num_sign_extend): New.
1451 * cppinit.c: Update comment.
1452 * cpplib.h (cpp_num_sign_extend): New.
1453 * tree.h: Update comment.
1455 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1457 * diagnostic.h (struct diagnostic_context): Add new member
1459 (internal_error_function): Remove declaration.
1460 * diagnostic.c (internal_error_function): Remove definition..
1461 (internal_error): Adjust use.
1463 2002-06-02 Richard Henderson <rth@redhat.com>
1465 * rtl.h (CC0_P): New.
1466 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
1467 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
1468 (bypass_block): Save old dest block for dump text.
1469 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1470 Allow only true SET insns, not single_set.
1472 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1474 * diagnostic.c (diagnostic_finish): Rename to output_flush.
1475 (clear_disgnostic_info): Rename to output_clear_data. Use false
1476 instead of 0 for boolean value.
1477 Adjust function call throughout.
1479 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1481 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1482 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1484 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1486 * d30v.h (CPP_PREDEFINES): Replace with
1487 (TARGET_CPU_CPP_BUILTINS): New.
1489 2002-06-02 Roger Sayle <roger@eyesopen.com>
1491 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1493 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
1495 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1497 2002-06-02 Richard Henderson <rth@redhat.com>
1499 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1501 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1503 Support for C++ constructors/destructors.
1504 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1505 instead of looping if main() returns.
1506 (asm_file_start): Output global symbols that cause .data and .bss
1507 initialization code to be linked in, unconditionally for now.
1508 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1509 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1510 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1512 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1513 (__tablejump__): New.
1514 (__do_copy_data, __do_clear_bss): New.
1515 (__do_global_ctors, __do_global_dtors): New.
1516 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1519 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1521 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1522 (CPP_SPEC, CPP_PREDEFINES): Kill.
1523 * c4x/rtems.h (CPP_PREDEFINES): Kill.
1524 (TARGET_OS_CPP_BUILTINS): New.
1526 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
1528 * Makefile.in (tracer.o): New.
1529 * params.def (TRACER_*): New options.
1530 * rtl.h (tracer): Declare.
1531 * timevar.def (TV_TRACER): New.
1532 * toplev.c (dump_file_index): Add DFI_tracer.
1533 (dump_file_info): Add tracer.
1535 (lang_indepdenent_options): Add tracer.
1536 (rest_of_compilation): Call tracer.
1537 * tracer.c: New file.
1538 * invoke.texi (-ftracer): Document.
1539 (--param tracer-*): Document.
1541 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
1543 * tree-inline.c (expand_call_inline): Make the statement
1544 expression we generate have a COMPOUND_STMT.
1546 2002-06-01 Roger Sayle <roger@eyesopen.com>
1548 * gcse.c (cprop_cc0_jump): Function deleted.
1549 (cprop_jump): Take an additional argument which is the possibly
1550 NULL cc setting insn immediately before the conditional jump.
1551 When a MODE_CC set is present, substitute it into the JUMP_INSN
1552 before attempting the constant propagation.
1553 (cprop_insn): Recognize cc setters followed by conditional jumps
1554 as a special case. Use cprop_jump instead of cprop_cc0_jump.
1555 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
1556 (find_bypass_set): New function based upon find_avail_set used by
1557 cprop, but finds constant expressions available at the end of
1559 (bypass_block): New function. Given a basic block that begins
1560 with a conditional jump and multiple incoming edges, perform
1561 the jump bypass optimization.
1562 (bypass_conditional_jumps): New function. Call bypass_block with
1563 each suitable basic block in the CFG using a simple single pass.
1565 2002-06-01 Roger Sayle <roger@eyesopen.com>
1567 * tree.c (real_minus_onep): New function to test for -1.0.
1568 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
1570 2002-06-01 Roger Sayle <roger@eyesopen.com>
1572 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1573 and "!p && !q" into "(p|q) == 0" under suitable conditions.
1575 2002-06-01 Andreas Jaeger <aj@suse.de>
1577 * cppexp.c (cpp_classify_number): Cast precission to int for
1578 correct printf format.
1580 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
1582 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1583 expected, but don't really exist: atmega83, atmega85, attiny10.
1584 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1585 emulations for all devices.
1586 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1587 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1589 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
1591 * config/h8300/h8300-protos.h: Add a prototype for
1592 h8300_shift_needs_scratch_p.
1593 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1594 * config/h8300/h8300.h (OK_FOR_R): New.
1595 (OK_FOR_S): Likewise.
1596 (OK_FOR_T): Likewise.
1597 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1598 * config/h8300/h8300.md (anonymous shift patterns): Use
1599 constraints R, S, and T.
1601 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1603 * basic-block.h (struct basic_block_def): New field loop_father.
1604 (BB_VISITED): New flag.
1605 (struct loop): New field pred, removed field shared.
1606 (struct loops): New field parray.
1607 (LOOP_EXITS_DOMS): Removed.
1608 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1609 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1610 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1611 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1612 verify_loop_structure): Declare.
1613 * cfg.c (entry_exit_blocks): Initialize loop_father field.
1614 * cfganal.c (dfs_enumerate_from): New function.
1615 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1616 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1617 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1618 flow_loop_dump, flow_loops_dump, flow_loops_free,
1619 flow_loop_tree_node_add, flow_loop_level_compute,
1620 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1621 flow_loop_outside_edge_p): Modified for new infrastructure.
1622 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1623 redirect_edge_with_latch_update, flow_loop_free): New static functions.
1624 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1625 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1626 find_common_loop, verify_loop_structure, loop_latch_edge,
1627 loop_preheader_edge): New functions.
1628 (flow_loops_cfg_dump): Do not show dominators, as this information
1629 does not remain up to date long.
1630 (flow_loops_find): Store results in new format.
1631 * predict.c (propagate_freq, estimate_probability,
1632 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1635 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
1637 * except.c (nothrow_function_p): Walk epilogue delay list
1638 checking the insn, not the chain for potential throws.
1640 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1642 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1643 (install): Refer to install-cpp directly.
1644 (uninstall-cpp): Folded into uninstall rule.
1645 * configure.in: Delete all code relating to --disable-cpp.
1646 * configure: Regenerate.
1647 * config/t-install-cpp: Delete.
1649 2002-05-31 Richard Henderson <rth@redhat.com>
1651 * configure.in (HAVE_AS_TLS): Add alpha tests.
1652 * configure: Rebuild.
1653 * config/alpha/alpha.c (TARGET_AS_TLS): New.
1654 (alpha_tls_size, alpha_tls_size_string): New.
1655 (overide_options): Set it. Always install machine_status hooks.
1656 (input_operand): Accept got tls predicates.
1657 (local_symbol_p): Merge into ...
1658 (local_symbolic_operand): ... here. Reject tls symbols.
1659 (global_symbolic_operand): Likewise.
1660 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1661 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1662 (tp16_symbolic_operand, tp32_symbolic_operand): New.
1663 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1664 (alpha_encode_section_info): Handle TLS symbols.
1665 (alpha_strip_name_encoding): Likewise.
1666 (alpha_legitimate_address_p): Likewise.
1667 (alpha_legitimize_address): Likewise.
1668 (alpha_expand_mov): Early exit to avoid nop moves.
1669 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
1670 (alpha_init_machine_status, alpha_mark_machine_status,
1671 alpha_free_machine_status): Always define.
1672 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1673 (print_operand, print_operand_address): Add TLS relocs.
1674 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1675 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1676 (TARGET_SWITCHES): Add -mtls-kernel.
1677 (alpha_tls_size, alpha_tls_size_string): New.
1678 (TARGET_OPTIONS): Add -mtls-size=.
1679 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1680 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1681 (ASM_OUTPUT_LABELREF): Skip %.
1682 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1683 (PREDICATE_CODES): Update.
1684 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1685 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1686 UNSPEC_TP, UNSPECV_SET_TP): New.
1687 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1688 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1689 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1690 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1691 (call_value_osf_2_er): Accept anything as op4.
1692 * config/alpha/alpha-protos.h: Update.
1693 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1695 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1697 * cppinit.c (append_include_chain): Always pay attention to
1698 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
1701 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
1703 * target.h: Fix formatting.
1704 * timevar.h: Likewise.
1705 * tlink.c: Likewise.
1706 * toplev.c: Likewise.
1707 * toplev.h: Likewise.
1709 * tree-dump.h: Likewise.
1711 * tree-inline.h: Likewise.
1712 * unroll.c: Likewise.
1713 * unwind-dw2.c: Likewise.
1714 * unwind-dw2-fde.c: Likewise.
1715 * unwind-dw2-fde-glibc.c: Likewise.
1716 * unwind-dw2-fde.h: Likewise.
1717 * unwind.h: Likewise.
1718 * unwind-sjlj.c: Likewise.
1719 * varasm.c: Likewise.
1720 * varray.h: Likewise.
1721 * vmsdbg.h: Likewise.
1722 * vmsdbgout.c: Likewise.
1723 * xcoffout.h: Likewise.
1725 2002-05-31 Igor Shevlyakov <igor@microunity.com>
1727 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
1728 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
1730 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
1732 * gcc.c (cpp_unique_options): Remove "-d" options.
1733 (cpp_debug_options): New spec string.
1734 (default_compilers): Use it.
1735 * objc/lang-specs.h: Likewise.
1737 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
1739 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
1740 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
1741 * gcc/mklibgcc.in: Likewise.
1742 * gcc/config/arc/t-arc: Likewise.
1743 * gcc/configure.in: Likewise.
1744 * gcc/configure: Regenerate.
1746 2002-05-31 Stan Shebs <shebs@apple.com>
1747 Turly O'Connor <turly@apple.com>
1749 * c-decl.c (struct binding_level): Change int field n_incomplete
1750 to tree list incomplete_list.
1751 (clear_binding_level): Init field with NULL.
1752 (pushdecl): Add incomplete type to list.
1753 (mark_binding_level): Mark the incomplete list.
1754 (finish_struct): Scan the incomplete list for types instead
1755 of all decls in the current binding level.
1757 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1759 * pa.c (output_millicode_call): Add missing '%' characters.
1760 (output_call): Likewise.
1762 2002-05-31 David Edelsohn <edelsohn@gnu.org>
1764 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
1765 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1767 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
1769 * varasm.c (mark_constant_pool): Walk epilogue delay list
1770 checking the insn, not the chain for potential constants.
1772 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
1774 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
1776 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
1778 * i386.c (classify_argument): Properly handle base types.
1780 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
1781 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
1784 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1786 * gcse.c (gcse_emit_move_after): New.
1787 (pre_delete, hoist_store): Use it.
1789 * reload1.c (emit_input_reload_insns): Use constrain_operands
1790 instead of constraint_accepts_reg_p to verify optimization.
1791 (constraint_accepts_reg_p): Kill
1793 * reload1.c (reload_cse_delete_noop_set): Kill.
1794 (reload_cse_simplify): use delte_insn_and_edges.
1796 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1798 * cfgloop.c (flow_loops_find): Initialize first and last fields
1801 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
1803 * c-common.c (builtin_define_std): Correct logic.
1805 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1807 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
1808 (output_call): Likewise.
1810 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1812 * pa.c: Move output.h include after tree.h include.
1813 (pa_asm_output_mi_thunk): Constify identifier lab.
1815 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
1817 * config/ns32k/ns32k.h: Define named constants for the
1818 bits in target_flags and use them.
1819 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
1821 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1823 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
1824 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
1825 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
1826 default scheduling model.
1827 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
1828 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
1829 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
1830 * doc/install.texi (hppa*-*-*): Document default scheduling.
1832 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1834 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
1836 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
1838 * config.gcc (ns32k-*-netbsd*): Set tm_file to
1839 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1840 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
1841 netbsd.h, or netbsd-aout.h.
1843 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
1845 * longlong.h (count_trailing_zeros): Add missing \, and clean up
1846 whitespace in __ns32000__ case.
1848 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
1850 * expr.c (expand_expr): Output partially zeroed out vectors with
1851 output_constant_def.
1853 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1855 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
1857 (shl*-*-netbsdelf*): New targets.
1858 * config/sh/netbsd-elf.h: New file.
1859 * config/sh/t-netbsd: New file.
1861 2002-05-30 Richard Henderson <rth@redhat.com>
1862 Eric Botcazou <ebotcazou@multimania.com>
1864 PR optimization/6822
1865 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
1866 to unsigned int for op1 comparisons. Use gen_int_mode.
1868 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
1870 * expmed.c (const_mult_add_overflow_p): New.
1871 * expr.h: Declare it.
1872 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
1873 Don't eliminate the biv if the giv has a constant multiplier and
1874 the rhs argument of the comparison does satisfy the predicate.
1875 Use expand_mult_add to compute the replacement constant.
1877 2002-05-30 Osku Salerma <osku@iki.fi>
1879 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
1880 (c_common_get_alias_set): Handle it.
1881 * doc/extend.texi: Document it.
1883 2002-05-30 Richard Henderson <rth@redhat.com>
1885 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
1886 * toplev.c (process_options): Don't check it.
1887 * doc/tm.texi: Don't document it.
1888 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
1889 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
1890 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
1891 frame pointer optimization if current_function_profile.
1893 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
1895 * langhooks.c: Fix formatting.
1896 * langhooks.h: Likewise.
1898 * libgcc2.c: Likewise.
1899 * lists.c: Likewise.
1900 * local-alloc.c: Likewise.
1904 2002-05-30 Marc Espie <espie@openbsd.org>
1906 * config.gcc (sparc64-*-openbsd*): New.
1907 * config/sparc/openbsd1-64.h: New.
1908 * config/sparc/openbsd64.h: New.
1910 2002-05-30 Jeff Law <law@redhat.com>
1912 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
1913 a dead insn with a REG_RETVAL note when the entire libcall is not
1914 dead and remove the associated REG_LIBCALL note at the same time.
1916 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1918 * lcm.c (output.h): #include.
1919 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
1920 as an ordinary block.
1921 (optimize_mode_switching): Don't pretend that the exit block is
1922 an ordinary block, or handle sucessors of entry block specially.
1923 Instead, split edges from entry block and to exit block, and
1924 put a computing definition on the thus gained post-entry-block,
1925 and a need on the pre-exit-block.
1927 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1929 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
1930 * rtl.texi: Document 'B'
1932 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1934 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
1936 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
1938 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
1940 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
1941 const0_rtx instead of NULL_RTX when in error.
1942 (altivec_expand_abs_builtin): Same.
1943 (rs6000_expand_binop_builtin): Same.
1944 (altivec_expand_predicate_builtin): Same.
1945 (altivec_expand_stv_builtin): Same.
1946 (rs6000_expand_ternop_builtin): Same.
1947 (altivec_expand_builtin): Same.
1949 2002-05-29 David S. Miller <davem@redhat.com>
1951 * rtl.h (clear_emit_caches): Delete.
1952 * integrate.c (output_inline_function): Don't call it.
1953 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
1954 (clear_emit_caches): Delete definition.
1955 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
1957 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
1959 * config/mmix/mmix.c: Include real.h.
1960 (mmix_constant_address_p): Remove redundant test before switch.
1962 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1964 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
1965 only if not already defined.
1967 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
1969 * config/h8300/h8300-protos.h: Remove prototypes for
1970 ok_for_bclr and small_power_of_two.
1971 * config/h8300/h8300.c (small_power_of_two): Remove.
1972 (ok_for_blcr): Likewise.
1973 (fix_bit_operand): Make WHAT deal with an integer instead of a
1974 constraint character.
1975 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
1976 (CONST_OK_FOR_P): Likewise.
1977 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
1978 CONST_OK_FOR_P any more.
1979 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
1984 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1986 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
1987 (CPP_PREDEFINES): Make sure this is undefined.
1988 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
1989 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
1990 or -U__MIPSEB__ before defining one or the other. Instead,
1991 use %(subtarget_endian_default) if neither -EB nor -EL are
1993 (SUBTARGET_EXTRA_SPECS): Define.
1994 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
1997 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
1999 * doc/md.texi (Patterns): Note pattern condition pitfall
2002 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
2004 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2005 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2006 ternary operations from here...
2007 (rs6000_expand_builtin): ...to here.
2008 New argument expandedp.
2009 Change all instances of altivec_expand_binop_builtin to
2010 rs6000_expand_binop_builtin.
2011 (altivec_expand_unop_builtin): Rename to
2012 rs6000_expand_unop_builtin.
2013 (altivec_expand_binop_builtin): Rename to
2014 rs6000_expand_binop_builtin.
2015 (altivec_expand_ternop_builtin): Rename to
2016 rs6000_expand_ternop_builtin.
2018 2002-05-29 Richard Henderson <rth@redhat.com>
2020 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2021 (TARGET_BI_ARCH): Likewise.
2022 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2023 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2024 (TARGET_64BIT_DEFAULT): Default to 0.
2025 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2027 2002-05-29 Richard Henderson <rth@redhat.com>
2029 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2030 (get_pc_thunk_name): New.
2031 (output_set_got): Use it.
2032 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2033 into linkonce sections.
2035 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2037 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2038 (CPP_PREDEFINES): Make sure this is undefined.
2039 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2040 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2041 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2042 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2043 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2044 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2045 (CPP_PREDEFINES): Make sure this is undefined.
2046 (SUBTARGET_EXTRA_SPECS): Define.
2047 (CPP_SPEC): Use %(netbsd_cpp_spec).
2049 2002-05-29 Jeff Law <law@redhat.com>
2051 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2053 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2054 contains a REG_RETVAL note.
2056 * haifa-sched (sched_analyze): Remove another useless clearing
2057 of SCHED_GROUP_P I missed yesterday.
2059 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2060 * pa.c (pa_asm_output_mi_thunk): New function.
2061 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2063 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2064 Marek Michalkiewicz <marekm@amelek.gda.pl>
2066 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2067 (avr_asm_only_p): Make non-static.
2068 (enum avr_arch): Remove.
2069 (avr_arch_types): New.
2070 (avr_mcu_types): Update.
2071 (avr_override_options): Use avr_arch_types table instead of switch.
2072 * avr.h (CPP_PREDEFINES): Die.
2073 (avr_base_arch_macro, avr_extra_arch_macro): New.
2074 (TARGET_CPU_CPP_BUILTINS): New.
2075 (CPP_SPEC, EXTRA_SPECS): Simplify.
2076 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2077 CPP_AVR5_SPEC): Die.
2079 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2081 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2082 NETBSD_OS_CPP_BUILTINS_AOUT.
2083 (SUBTARGET_EXTRA_SPECS): Define.
2084 (CPP_SPEC): Use %(netbsd_cpp_spec).
2086 2002-05-29 Richard Henderson <rth@redhat.com>
2088 * config/i386/i386.c (ix86_output_function_epilogue): New.
2089 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2090 (pic_label_name): Remove.
2091 (pic_labels_used): New.
2092 (ix86_asm_file_end): Emit one pc load stub for each register used.
2093 (output_set_got): Generate deep pc load to any register.
2094 (ix86_select_alt_pic_regnum): New.
2095 (ix86_save_reg): Don't save pic register if we can find a valid
2096 call-clobbered replacement.
2097 (ix86_expand_prologue): If we found a valid replacement, renumber
2098 pic_offset_table_rtx.
2099 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2100 pic_offset_table_rtx after reload.
2101 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2102 * config/i386/i386.md (set_got): Make insn, not expander.
2103 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2105 2002-05-29 Richard Henderson <rth@redhat.com>
2107 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2108 alignment for alloca.
2110 2002-05-29 Richard Henderson <rth@redhat.com>
2112 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2113 (print_operand_address): Only add rip for symbolic addresses
2114 for which we do not have another relocation type.
2116 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2118 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2119 (EXTRA_SPECS): Add netbsd_cpp_spec.
2120 (CPP_SPEC): Use %(netbsd_cpp_spec).
2121 (CPP_PREDEFINES): Remove.
2122 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2123 (EXTRA_SPECS): Define.
2124 (CPP_SPEC): Use %(netbsd_cpp_spec).
2125 (CPP_PREDEFINES): Remove.
2127 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2129 PR preprocessor/6844
2130 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2133 2002-05-29 Eric Christopher <echristo@redhat.com>
2135 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2136 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2138 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2140 * config/fr30/fr30.md: Remove previous restriction on splits.
2141 Enforce conformance through gen_lowpart and cont_int_operand.
2142 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2143 as the assembler does not support ".bss".
2145 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2147 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2148 (CPP_PREDEFINES): Remove.
2149 (SUBTARGET_EXTRA_SPECS): Define.
2150 (CPP_SPEC): Use %(netbsd_cpp_spec).
2151 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2152 (CPP_PREDEFINES): Remove.
2153 (SUBTARGET_EXTRA_SPECS): Define.
2154 (CPP_SPEC): Use %(netbsd_cpp_spec).
2155 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2156 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2157 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2158 Add netbsd_cpp_spec.
2159 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2161 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2162 Zack Weinberg <zack@codesourcery.com>
2164 * cppexp.c (cpp_num): Move to cpplib.h.
2165 (CPP_ERROR): Remove.
2166 (interpret_float_suffix, interpret_int_suffix): New.
2167 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2168 (cpp_classify_number, cpp_interpret_integer): New.
2169 (interpret_number): Remove.
2170 (eval_token): Update to use new routines.
2171 * cpphash.h (cpp_num_part): Move to cpplib.h.
2172 * cppinit.c (cpp_post_options): Set warn_long_long.
2173 * cpplib.h (struct cpp_options): Add warn_long_long.
2174 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2175 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2176 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2177 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2178 cpp_interpret_integer): New.
2180 2002-05-29 Joel Sherrill <joel@OARcorp.com>
2182 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2184 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2186 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2187 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2188 (CPP_SUBTARGET_SPEC): Define.
2189 (SUBTARGET_EXTRA_SPECS): Define.
2192 2002-05-29 Chris Lattner <sabre@nondot.org>
2194 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2195 prevent confusion if/when the register is defined.
2197 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2200 * config/cris/cris.md: Fix typos and thinkos in comments.
2201 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2203 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2204 ("*mov_sideqi_mem"): Similar, but for operand 3.
2205 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2206 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2207 Remove spurious mode specifier on operand 2.
2209 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2211 * config/h8300/h8300-protos.h: Remove the prototype for
2213 Add prototypes for single_one_operand and single_zero_operand.
2214 * config/h8300/h8300.c (o_operand): Remove.
2215 (single_one_operand): New.
2216 (single_zero_operand): Likewise.
2217 (print_operand): For 'V' operand, and the operand with 0xff.
2218 For 'V' and 'W' operands, do not and the bit position with 7.
2219 * config/h8300/h8300.md (various anonymous patterns): Replace
2220 use of exact_log2 with single_one_operand/single_zero_operand.
2222 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2224 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2226 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2228 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2229 accept symbolic LARL operands.
2230 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2233 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2235 * config/s390/s390.md (cmpstr_64/31): Mark whole
2236 input registers as used.
2238 2002-05-28 Richard Henderson <rth@redhat.com>
2240 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2241 not current_function_uses_pic_offset_table and
2242 current_function_uses_const_pool; examine current_function_profile.
2243 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2244 input to blockage if needed.
2245 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2246 (legitimize_pic_address): Likewise. Set regs_ever_live for
2247 pic_offset_table_rtx when invoked during reload.
2248 * config/i386/i386.h (FINALIZE_PIC): Remove.
2249 * config/i386/i386.md (tablejump): Reformat. Do not set
2250 current_function_uses_pic_offset_table.
2251 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2252 (blockage): Accept anything as operand 0.
2254 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2256 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2257 common CPP built-ins for all NetBSD a.out targets.
2258 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2259 common CPP built-ins for all NetBSD ELF targets.
2260 * config/netbsd.h: Add missing notice.
2261 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2262 for all NetBSD targets.
2263 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2264 for all NetBSD targets using an LP64 code model.
2265 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2268 2002-05-28 Richard Henderson <rth@redhat.com>
2270 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2271 update if UPDATE_LIFE_LOCAL.
2273 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2275 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2277 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2278 Jason R. Thorpe <thorpej@wasabisystems.com>
2280 config/sh reorganization to factor out endianness and coff:
2282 * config/sh/little.h: New file.
2283 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2284 defined, define to 0 to select big-endian.
2285 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2286 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2287 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2288 * config/sh/t-be: New file.
2289 * config/sh/t-le: New file.
2291 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2292 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2293 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2294 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2295 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2296 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2297 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2298 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2299 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2300 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2301 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2302 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2303 (LINK_SPEC): Define to SH_LINK_SPEC.
2304 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2305 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2306 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2307 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2308 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2309 * config/sh/coff.h: New file.
2310 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2311 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2312 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2313 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2314 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2315 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2316 (PTRDIFF_TYPE): Likewise.
2317 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2318 (CPP_PREDEFINES): Don't define.
2319 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2320 (LINK_SPEC): Define to SH_LINK_SPEC.
2321 (LINK_EMUL_PREFIX): Redefine.
2322 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2323 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2324 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2325 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2326 (TARGET_OS_CPP_BUILTINS): Define.
2327 (TARGET_DEFAULT): Redefine.
2328 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2329 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2330 (LINK_SPEC): Don't redefine.
2331 (LINK_DEFAULT_CPU_EMUL): Redefine.
2332 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2333 * sh.c (sh_asm_named_section): Don't declare / define.
2334 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2335 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2336 (sh64-*-elf* tm_file): Likewise.
2337 (sh-*-rtemself* tm_file): Likewise.
2338 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2339 (sh-*-linux* tmake_file): Add sh/t-le.
2340 (sh-*-rtems* tm_file): Add sh/coff.h
2341 (sh-*-* tm_file): Likewise.
2343 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2345 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2346 CONSTANT_POOL_ADDRESS_P.
2348 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2350 2002-05-28 David Edelsohn <edelsohn@gnu.org>
2351 Jeff Law <law@redhat.com>
2353 * optabs.c (expand_binop): Fix nwords sign warnings.
2354 generate pseudo for add_optab.
2356 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2357 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2359 2002-05-28 Marc Espie <espie@openbsd.org>
2361 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
2362 inherited from gas.h.
2363 (ASM_QUAD): Undef. OpenBSD does not support it.
2365 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2367 * doc/install.texi (binaries): Change mingw binaries
2368 link to www.mingw.org.
2370 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2372 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2374 2002-05-28 Richard Henderson <rth@redhat.com>
2376 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2377 bottom alignment for leaf functions.
2379 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2381 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2382 config/sparc/sol2-g1.asm: Delete unused files.
2384 2002-05-28 Richard Henderson <rth@redhat.com>
2386 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2388 * flow.c (calculate_global_regs_live): Rename call_used to
2389 invalidated_by_call. Initialize from regs_invalidated_by_call
2390 instead of call_used_regs.
2392 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2395 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2397 * tree.h: Don't include real.h.
2398 Forward-declare struct realvaluetype.
2399 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2401 (TREE_REAL_CST_PTR): New accessor.
2402 (TREE_REAL_CST): Update.
2403 * real.h: Include machmode.h.
2404 (realvaluetype): Make it struct realvaluetype, not a typedef.
2405 (build_real): Prototype here.
2407 * tree.c: Include real.h.
2408 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2409 object in GC memory, set TREE_REAL_CST_PTR to point to it.
2410 (build_real_from_int_cst): Use build_real.
2411 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2414 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2415 fold-const.c, print-tree.c, real.c: Include real.h.
2416 * Makefile.in: Update dependency lists.
2418 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2420 * basic-block.h (last_basic_block): Declare.
2421 (expunge_block_nocompact): Declaration removed.
2422 (compact_blocks): Declare.
2423 * cfg.c (last_basic_block): New variable.
2424 (expunge_block_nocompact): Removed.
2425 (expunge_block): Do not compact basic blocks.
2426 (compact_blocks): New.
2427 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2429 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2431 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2432 real positions of blocks.
2433 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2435 (cleanup_cfg): Compact blocks.
2436 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2437 basic_block_info varray.
2438 (flow_delete_block): Comment update.
2439 (back_edge_of_syntactic_loop_p): Modify position check code.
2440 (verify_flow_info): Update checking.
2441 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2442 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2443 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2444 indices no longer change.
2445 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2447 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2448 * profile.c (branch_prob): Compact blocks.
2449 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2452 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2454 * config/h8300/h8300.md (two anonymous patterns): New.
2456 2002-05-28 David S. Miller <davem@redhat.com>
2458 * config/sparc/sparc.md (cpu): Tidy.
2459 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2461 (in_call_delay): Delete reference to 'return' type.
2462 (eligible_for_return_delay, in_return_delay, define_delay
2463 referencing those): Delete.
2464 (rest of file): Use new type attributes as appropriate.
2465 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2466 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2467 * config/sparc/ultra1_2.md (us1_single): New reservation.
2468 (us1_ialuX): Likewise.
2469 * config/sparc/ultra3.md (us3_single): Likewise.
2470 (us3_ialuX): Likewise.
2471 (us3_imul, us3_idiv): Tweak.
2473 2002-05-28 Richard Henderson <rth@redhat.com>
2475 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2478 2002-05-28 Richard Henderson <rth@redhat.com>
2480 * config.gcc: Obsolete mn10200.
2482 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
2484 * cppexp.c (interpret_number): Optimize for single-digit
2485 and less-than-half-precision cases.
2486 (num_trim, num_positive, num_div_op): Cast constants.
2488 2002-05-27 Bo Thorsen <bo@suse.de>
2490 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2491 3.1 branch. The file was made by Jakub Jelinek.
2492 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2493 support so multilib doesn't break. And don't define this at all
2494 when -Dinhibit_libc is used.
2495 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2496 * config/i386/t-linux64: Implement full multilib support. Patch
2497 originally done by Andreas Jaeger and Jakub Jelinek.
2499 2002-05-27 Roger Sayle <roger@eyesopen.com>
2501 * c-common.c: Add support for __attribute__((nothrow)) to specify
2502 that a function cannot throw an exception (using TREE_NOTHROW).
2503 (handle_nothrow_attribute): New function to process this attribute.
2505 * doc/extend.texi: Document the new nothrow function attribute.
2507 2002-05-27 H.J. Lu (hjl@gnu.org)
2509 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2510 (num_positive): Likewise.
2511 (num_div_op): Likewise.
2513 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2515 * c-common.c (c_common_init): Always use intmax_t.
2517 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2519 * c-common.c (c_common_init): Use intmax_t for now.
2521 2002-05-24 Andrew Haley <aph@redhat.com>
2523 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2524 if T is a boolean type.
2526 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2528 * basic-block.h (last_basic_block): Defined as synonym for
2530 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2531 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2532 flow_dfs_compute_reverse_init): Replaced relevant occurences of
2533 n_basic_blocks with last_basic_block.
2534 * cfgbuild.c (make_edges): Likewise.
2535 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2536 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2537 * combine.c (combine_instructions): Likewise.
2538 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2539 iterative_dataflow_bitmap): Likewise.
2540 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2541 calc_idoms, idoms_to_doms): Likewise.
2542 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2544 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2545 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2546 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2547 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2548 delete_null_pointer_checks, compute_code_hoist_vbeinout,
2549 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2550 compute_store_table, build_store_vectors): Likewise.
2551 * haifa-sched.c (sched_init): Likewise.
2552 * ifcvt.c (if_convert): Likewise.
2553 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2554 pre_edge_lcm, compute_available, compute_nearerout,
2555 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2557 * predict.c (estimate_probability, process_note_prediction,
2558 note_prediction_to_br_prob): Likewise.
2559 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2560 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2561 * regrename.c (copyprop_hardreg_forward): Likewise.
2562 * resource.c (init_resource_info): Likewise.
2563 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2564 init_regions, schedule_insns): Likewise.
2565 * ssa-ccp.c (ssa_const_prop): Likewise.
2566 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2567 * ssa.c (compute_dominance_frontiers,
2568 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2570 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2571 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2574 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2576 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2578 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2579 hoist_insn_after, hoist_insn_to_edge): New.
2581 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
2583 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2584 (PROP_FINAL): Include.
2585 * flow.c (life_analysis, update_life_info,
2586 init_propagate_block_info, mark_set_1, mark_used_rgs):
2587 Support SCAN_DEAD_STORE.
2589 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2591 * c-common.c (c_common_init): Set CPP arithmetic precision.
2592 * cppexp.c (cpp_num_part): Move typedef ...
2593 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2594 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2595 (sanity_checks): Update.
2597 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
2599 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2600 (mkheaders): New rule.
2601 (install-mkheaders): New rule.
2602 * configure.in (all_outputs): Add mkheaders.
2603 * configure: Regenerate.
2604 * mkheaders.in: New file.
2606 2002-05-26 Jakub Jelinek <jakub@redhat.com>
2608 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2610 2002-05-26 Andreas Jaeger <aj@suse.de>
2612 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2614 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
2616 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2617 right_shift): Remove.
2618 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2620 (struct op): Use cpp_num.
2621 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2622 num_part_mul, num_unary_op, num_binary_op, num_negate,
2623 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2624 num_div_op, num_lshift, num_rshift, append_digit): New.
2625 (interpret_number, parse_defined, eval_token, reduce): Update
2626 for two-integer arithmetic.
2627 (binary_handler): New typedef.
2629 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2630 (_cpp_parse_expr, reduce): Update to handle two-integers.
2631 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2633 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2635 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2636 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2637 branch insn into account, do not assume 1.
2638 (avr_out_sbxx_branch): New function. Optimize cases of skipping
2639 over single word insn. Handle upper half of I/O space too.
2640 * config/avr/avr.md (*sbrx_branch): Use it.
2641 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2642 (*sbix_branch, *sbix_branch_bit7): Likewise.
2643 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2644 Use RTL peepholes to optimize register operand sign tests.
2646 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2648 * config/avr/avr.c (avr_asm_only_p): New variable.
2649 (avr_override_options): Set it here if AVR1.
2650 (asm_file_start): Test it here, report an error if set.
2652 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
2654 * alias.c: Fix formatting.
2655 * attribs.c: Likewise.
2656 * bb-reorder.c: Likewise.
2657 * bitmap.c: Likewise.
2658 * bitmap.h: Likewise.
2659 * builtins.c: Likewise.
2661 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2663 * reload.c (find_valid_class): Accept new argument DEST,
2664 choose class accordingly.
2665 (push_reload): Update callers.
2667 2002-05-26 Andreas Jaeger <aj@suse.de>
2669 * combine.c (combine_instructions): Do not indent #if for
2672 2002-05-25 Richard Henderson <rth@redhat.com>
2674 * c-pragma.c (apply_pragma_weak): Convert value identifier to
2675 string for decl_attributes.
2676 (handle_pragma_weak): Call assemble_alias if we're modifying
2679 2002-05-25 Richard Henderson <rth@redhat.com>
2682 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2683 using rtl instead of fprintf.
2684 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2685 * config/sparc/sparc-protos.h: Update.
2687 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
2689 * Makefile.in (C_COMMON_H): Fix.
2690 Update other targets.
2691 * c-common.c: Don't include c-lex.h.
2692 (builtin_define_with_value): Make static and prototype.
2693 (builtin_define_std): Move from c-lex.h.
2694 * c-common.h (init_c_lex): Move from c-lex.h.
2695 * c-decl.c: Don't include c-lex.h.
2696 (make_pointer_declarator): Move from c-parse.in.
2697 * c-lex.c: Don't include c-lex.h.
2699 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2700 (make_pointer_declarator): Move to c-decl.c.
2701 * c-pragma.c: Don't include c-lex.h.
2702 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
2703 * c-tree.h (make_pointer_declarator): New.
2705 * passes.texi, tm.texi: Update.
2707 * Make-lang.in: Update and correct.
2708 * objc-act.c: Don't include c-lex.h or cpplib.h.
2710 * treetree.c: Don't include c-lex.h.
2712 * darwin-c.c: Don't include c-lex.h.
2713 * c4x/c4x-c.c: Don't include c-lex.h.
2714 * c4x/t-c4x: Update.
2715 * i370/i370-c.c: Don't include c-lex.h.
2716 * i370/t-i370: Update.
2717 * i960/i960-c.c: Don't include c-lex.h.
2718 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
2719 * i960/t-960bare: Update.
2720 * i960/t-vxworks: Update.
2721 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
2722 * rs6000/t-darwin: Update.
2723 * rs6000/t-rs6000-c-rule: Update.
2724 * v850/v850-c.c: Don't include c-lex.h.
2725 * v850/v850.c: Don't include c-lex.h or cpplib.h.
2728 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2730 * tree.def: Fix typos.
2731 * doc/install.texi: Likewise.
2733 2002-05-25 Richard Henderson <rth@redhat.com>
2735 * configure.in (HAVE_AS_TLS): Add ia64 test.
2736 * configure: Rebuild.
2737 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
2738 (override_options): Set it.
2739 (TARGET_HAVE_TLS): New.
2740 (sdata_symbolic_operand): Look for 's'.
2741 (tls_symbolic_operand): New.
2742 (ia64_expand_load_address): Abort for tls symbols.
2743 (gen_tls_get_addr): New.
2744 (gen_thread_pointer): New.
2745 (ia64_expand_move): Split out from movdi. Handle tls symbols.
2746 (rtx_needs_barrier): Add new unspecs.
2747 (ia64_encode_section_info): Handle tls symbols.
2748 (ia64_strip_name_encoding): Strip two encoding chars.
2749 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
2750 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
2751 (TARGET_OPTIONS): Add tls-size.
2752 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
2753 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
2754 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
2755 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
2756 (movsf, movdf): Likewise.
2757 (movdi_symbolic): Use match_scratch. Don't split if we won't
2758 have a scratch availiable.
2759 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
2760 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
2761 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
2762 * config/ia64/ia64-protos.h: Update.
2763 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2764 sdata_symbolic_operand.
2765 (ASM_OUTPUT_LABELREF): Strip two characters.
2767 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2769 * combine.c (simplify_set): Remove an unnecessary subreg.
2771 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
2773 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
2775 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
2777 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
2779 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
2781 2002-05-25 Roger Sayle <roger@eyesopen.com>
2783 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
2784 (cond (compare x y) 0) into the equivalent (cond x y).
2786 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
2788 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
2790 2002-05-24 Zack Weinberg <zack@codesourcery.com>
2792 * config.gcc: Remove all stanzas for previously obsoleted
2793 systems. Where necessary, add explicit error stanzas to
2794 prevent removed systems from being misidentified as something
2795 else. Begin a fresh obsoletions list, with the systems that
2796 were reprieved last round.
2797 * doc/install.texi: Remove all mention of dead targets.
2798 * fixinc/mkfixinc.sh: Likewise.
2800 * config/arm/arm.h: Bit 31 of target_flags is no longer
2803 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
2804 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
2805 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
2806 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
2807 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
2808 config/alpha/osf12.h, config/alpha/osf2or3.h,
2809 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
2810 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
2811 config/clipper/clipper-protos.h, config/clipper/clipper.c,
2812 config/clipper/clipper.h, config/clipper/clipper.md,
2813 config/clipper/clix.h, config/convex/convex-protos.h,
2814 config/convex/convex.c, config/convex/convex.h,
2815 config/convex/convex.md, config/convex/fixinc.convex,
2816 config/convex/proto.h, config/elxsi/elxsi-protos.h,
2817 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
2818 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
2819 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
2820 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
2821 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
2822 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
2823 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
2824 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
2825 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
2826 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
2827 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
2828 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
2829 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
2830 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
2831 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
2832 config/m68k/altos3068.h, config/m68k/apollo68.h,
2833 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
2834 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
2835 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
2836 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
2837 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
2838 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
2839 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
2840 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
2841 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
2842 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
2843 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
2844 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
2845 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
2846 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
2847 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
2848 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
2849 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
2850 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
2851 config/mips/dec-osf1.h, config/mips/elflorion.h,
2852 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
2853 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
2854 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
2855 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
2856 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
2857 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
2858 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
2859 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
2860 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
2861 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
2862 config/ns32k/sequent.h, config/ns32k/tek6000.h,
2863 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
2864 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
2865 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
2866 config/sparc/rtems.h, config/we32k/we32k-protos.h,
2867 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
2870 2002-05-24 Richard Henderson <rth@redhat.com>
2872 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
2873 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
2874 * config/i386/i386.c (tls_model_chars): Add leading space.
2875 (tls_symbolic_operand): Don't bias by 1.
2876 (legitimize_address): Don't unbias by 1.
2878 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2880 * lcm.c (optimize_mode_switching): Change bb used as indices
2883 2002-05-24 Richard Henderson <rth@redhat.com>
2885 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
2886 of update_life_info_in_dirty_blocks.
2888 2002-05-24 Jakub Jelinek <jakub@redhat.com>
2891 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
2893 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
2895 PR preprocessor/6780
2896 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
2898 2002-05-24 Jim Blandy <jimb@redhat.com>
2900 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
2901 entry with a type code of zero, marking the end of the compilation
2904 2002-05-24 Richard Henderson <rth@redhat.com>
2906 * varasm.c (asm_output_bss): Always output one byte.
2907 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
2909 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2911 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
2914 2002-05-24 Andreas Jaeger <aj@suse.de>
2916 * ggc-page.c (alloc_page): Cast variables of type size_t to
2917 unsigned long, adjust printf format string.
2918 (ggc_alloc): Likewise.
2919 (ggc_print_statistics): Likewise.
2920 (ggc_print_statistics): Correct printf format string for SCALE to
2923 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
2925 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
2927 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
2928 Zack Weinberg <zack@codesourcery.com>
2930 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
2932 * dwarf2out.c (lookup_filename): Properly quote filename in .file
2933 directive in assembly file.
2934 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
2935 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
2936 * config/pj/pj.h (ASM_FILE_START): Likewise.
2937 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
2938 * config/avr/avr.c (asm_file_end): Likewise.
2939 * toplev.c (output_quoted_string): Handle possibly signed plain
2941 * toplev.h (output_clean_symbol_name): Declare
2942 * toplev.c (output_clean_symbol_name): Define.
2943 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
2944 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
2946 2002-05-24 Alan Modra <amodra@bigpond.net.au>
2948 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
2950 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
2952 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
2953 of size of unsigned.
2955 2002-05-23 Richard Henderson <rth@redhat.com>
2957 * configure.in (HAVE_AS_TLS): New test.
2958 * config.in, configure: Rebuild.
2959 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
2960 (ix86_tls_dialect_string, ix86_tls_dialect): New.
2961 (override_options): Set it.
2962 (tls_model_chars, tls_symbolic_operand): New.
2963 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
2964 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
2965 (local_exec_symbolic_operand): New.
2966 (get_pic_label_name): Merge into output_set_got.
2967 (ix86_asm_file_end): Emit pic_label_name if defined.
2968 (legitimate_constant_p, constant_address_p): New.
2969 (legitimate_pic_operand_p): New.
2970 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
2971 (legitimate_address_p): Likewise.
2972 (ix86_encode_section_info): Rename from i386_; handle tls decls.
2973 (ix86_strip_name_encoding): New.
2974 (get_thread_pointer): New.
2975 (legitimize_address): Handle tls symbols.
2976 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
2978 (struct machine_function): Add some_ld_name.
2979 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
2980 (print_operand) [&]: Use it. Handle UNSPEC_TP.
2981 (output_addr_const_extra): New.
2982 (maybe_get_pool_constant): New.
2983 (ix86_split_to_parts): Use it.
2984 (ix86_expand_move): Handle tls symbols.
2985 (ix86_tls_get_addr): New.
2986 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
2987 (TARGET_OPTIONS): Add tls-dialect.
2988 (CONSTANT_ADDRESS_P): Use new out-of-line function.
2989 (LEGITIMATE_CONSTANT_P): Likewise.
2990 (LEGITIMATE_PIC_OPERAND_P): Likewise.
2991 (TARGET_STRIP_NAME_ENCODING): New.
2992 (ASM_OUTPUT_LABELREF): New.
2993 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
2994 (OUTPUT_ADDR_CONST_EXTRA): New.
2995 (PREDICATE_CODES): Update.
2996 (ix86_tls_dialect, ix86_tls_dialect_string): New.
2997 * config/i386/i386.md: Regroup and renumber unspec constants.
2998 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
2999 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3000 (tls_global_dynamic, tls_local_dynamic_base): New.
3001 (tls_local_dynamic_once): New.
3002 * config/i386/i386-protos.h: Update.
3004 2002-05-23 Richard Henderson <rth@redhat.com>
3006 * genemit.c (gen_insn): Print file:lineno comment before function.
3008 * gensupport.c (struct queue_elem): Add filename member.
3009 (queue_pattern): Initialize it; update all callers.
3010 (process_include): Don't free filename.
3011 (read_md_rtx): Set read_rtx_filename.
3013 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
3015 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3017 2002-05-23 Richard Henderson <rth@redhat.com>
3019 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3021 2002-05-23 Richard Henderson <rth@redhat.com>
3023 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3024 commentary from Mark.
3026 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3028 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3029 Use FOR_EACH_BB macros to iterate over basic block chain.
3030 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3031 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3033 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3034 find_unreachable_blocks, create_edge_list, verify_edge_list,
3035 remove_fake_edges, add_noreturn_fake_exit_edges,
3036 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3038 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3039 find_sub_basic_blocks): Likewise.
3040 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3042 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3044 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3046 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3047 commit_edge_insertions, commit_edge_insertions_watch_calls,
3048 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3049 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3050 * conflict.c (conflict_graph_compute): Likewise.
3051 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3052 df_modified_p, df_refs_unlink, df_dump): Likewise.
3053 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3054 * final.c (compute_alignments): Likewise.
3055 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3056 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3057 count_or_remove_death_notes): Likewise.
3058 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3059 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3060 classic_gcse, compute_transp, cprop, compute_pre_data,
3061 compute_transpout, invalidate_nonnull_info,
3062 delete_null_pointer_checks_1, delete_null_pointer_checks,
3063 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3064 compute_store_table, build_store_vectors, store_motion): Likewise.
3065 * global.c (global_conflicts, mark_elimination): Likewise.
3066 * graph.c (print_rtl_graph_with_bb): Likewise.
3067 * haifa-sched.c (sched_init): Likewise.
3068 * ifcvt.c (if_convert): Likewise.
3069 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3070 compute_available, compute_nearerout, compute_rev_insert_delete,
3071 optimize_mode_switching): Likewise.
3072 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3073 * predict.c (estimate_probability, note_prediction_to_br_prob,
3074 propagate_freq, counts_to_freqs, expensive_function_p,
3075 estimate_bb_frequencies): Likewise.
3076 * profile.c (instrument_edges, get_exec_counts,
3077 compute_branch_probabilities, compute_checksum, branch_prob,
3078 find_spanning_tree): Likewise.
3079 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3080 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3082 * regclass.c (scan_one_insn, regclass): Likewise.
3083 * regmove.c (mark_flags_life_zones, regmove_optimize,
3084 record_stack_memrefs): Likewise.
3085 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3086 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3087 * resource.c (find_basic_block): Likewise.
3088 * sched-ebb.c (schedule_ebbs): Likewise.
3089 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3090 find_single_block_region, find_rgns, schedule_insns)
3091 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3092 * ssa-ccp.c (optimize_unexecutable_edges,
3093 ssa_ccp_df_delete_unreachable_insns): Likewise.
3094 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3095 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3096 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3097 compute_coalesced_reg_partition, rename_equivalent_regs,
3098 convert_from_ssa): Likewise.
3099 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3100 process_for_unwind_directive): Likewise.
3102 * df.c (FOR_ALL_BBS): Removed.
3103 * gcse.c (struct null_pointer_info): Type of current_block field
3105 (struct reg_avail_info): Type of last_bb field changed.
3106 * config/ia64/ia64.c (block_num): Removed.
3107 (need_copy_state): Type changed.
3110 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3112 * cppinit.c (mark_named_operators): Split out from init_builtins.
3113 (cpp_finish_options): Call it from here instead.
3115 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3117 * builtin-attrs.def: Update copyright years.
3118 (ATTR_NONNULL): New attribute identifier.
3119 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3120 attribute tree lists.
3121 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3123 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3124 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3125 attribute lists. Chain the appropriate nonnull attribute.
3126 * c-format.c (check_format_arg): Remove null format string
3128 * testsuite/gcc.dg/format/null-1.c: New test.
3130 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3132 * Makefile.in (ADAC): Define.
3134 (.SUFFIXES): Move before language makefile fragments.
3135 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3137 2002-05-23 Mark Mitchell <mark@codesourcery.com>
3139 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3142 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3144 * cfg.c (dump_flow_info): Print results of
3145 maybe_hot/probably_never_executed predicates.
3146 * toplev.c (open_dump_file): Print function frequency.
3148 2002-05-23 David S. Miller <davem@redhat.com>
3150 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3153 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3155 * c-common.c (warn_nonnull): Declare.
3156 (c_common_attribute_table): Add "nonnull" attribute.
3157 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3158 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3159 check_function_arguments_recurse): New functions.
3160 * c-common.h (warn_nonnull): Declare extern.
3161 (check_function_arguments, check_function_arguments_recurse): New
3163 * c-decl.c (c_decode_option): Add -Wnonnull option.
3164 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3166 (format_check_context): New structure.
3167 (check_format_info_recurse): Remove recursion and rename to...
3168 (check_format_arg): ...this. Update comment.
3169 (check_format_info): Use check_function_arguments_recurse.
3170 * c-typeck.c (build_function_call): Call check_function_arguments
3171 instead of check_function_format.
3172 * doc/extend.texi: Document "nonnull" attribute.
3173 * doc/invoke.texi: Docuemnt -Wnonnull option.
3174 * testsuite/gcc.dg/nonnull-1.c: New test.
3175 * testsuite/gcc.dg/nonnull-2.c: New test.
3177 2002-05-23 David S. Miller <davem@redhat.com>
3179 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3180 * cfgcleanup.c (cleanup_cfg): If it is set do not
3181 attempt to delete trivially dead insns.
3182 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3183 * toplev.c (rest_of_compilation): Document non-trivial aspect
3184 the RTL before optimize_save_area_alloca is run.
3186 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3188 * c-lex.c (indent_level): Remove.
3189 (cb_file_change, c_lex): Remove indent level handling.
3190 * c-lex.h (indent_level): Remove.
3191 * input.h (struct file_stack): Remove indent_level.
3192 * toplev.c (push_srcloc): Remove indent_level handling.
3194 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3197 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3198 of x in constraints for clarity.
3199 (sse_mov?fcc split): abort if op2 == op3.
3200 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3201 sse_movsfcc_const0_4): Add earlyclobber.
3202 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3203 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3204 Use Y instead of x in constraints.
3206 2002-05-23 Richard Henderson <rth@redhat.com>
3208 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3209 (C++98 Thread-Local Edits): New subsection.
3211 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3212 (ix86_arch): Set type to enum processor_type.
3214 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3215 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3217 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3219 * configure.in: Fix as version test for binutils 2.12.1 releases
3221 * configure: Rebuilt.
3223 2002-05-23 Richard Henderson <rth@redhat.com>
3225 * config/i386/i386.c (get_pic_label_name): New.
3226 (load_pic_register): Remove.
3227 (output_set_got): New.
3228 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3229 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3230 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3231 (prologue_set_got, prologue_get_pc): Remove.
3232 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3233 (builtin_setjmp_receiver): Use gen_set_got.
3234 * config/i386/i386-protos.h: Update.
3236 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3238 * gcse.c (hash_expr): Do not use alias set for hashing.
3240 2002-05-22 Kevin Buettner <kevinb@redhat.com>
3242 * dbxout.c (dbxout_class_name_qualifiers): New function.
3243 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3245 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3247 * cpperror.c (_cpp_begin_message): No special casing
3249 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3250 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3251 * cpplib.c (do_include_common): Use DL_ERROR.
3252 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3254 * fix-header.c (read_scan_file): Update.
3256 2002-05-22 Richard Henderson <rth@redhat.com>
3258 * config/i386/i386.c (ix86_expand_call): New function, extracted
3259 from md call patterns. Add pic_offset_table_rtx to
3260 CALL_INSN_FUNCTION_USAGE when needed.
3261 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3262 (call_value_pop, call_value, untyped_call): Likewise.
3263 (call_exp, call_value_exp): Remove.
3264 * config/i386/i386-protos.h: Update.
3266 2002-05-22 Richard Henderson <rth@redhat.com>
3268 * varasm.c (default_section_type_flags): Check for VAR_DECL
3269 before using DECL_THREAD_LOCAL.
3271 2002-05-22 David Edelsohn <edelsohn@gnu.org>
3273 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3274 (STARTFILE_SPEC): Delete PE crt0.o.
3275 * config/rs6000/aix51.h: Same.
3276 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3277 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3278 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3279 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3280 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3282 2002-05-22 Richard Henderson <rth@redhat.com>
3284 * varasm.c (default_section_type_flags): Handle tls data and
3286 (default_unique_section): Handle tls sections.
3288 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3290 * configure.in (CROSS): Define NATIVE_CROSS.
3291 * configure: Regenerate.
3292 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3293 (startfile_prefix_spec): New var.
3294 (static_specs): Add startfile_prefix_spec.
3295 (do_spec_2): Split out from..
3297 (main): Process startfile_prefix_spec.
3298 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3300 (STARTFILE_PREFIX_SPEC): Define.
3301 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3304 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3306 * cpperror.c: Fix formatting.
3307 * cppexp.c: Likewise.
3308 * cppfiles.c: Likewise.
3309 * cpphash.c: Likewise.
3310 * cpphash.h: Likewise.
3311 * cppinit.c: Likewise.
3312 * cpplex.c: Likewise.
3313 * cpplib.c: Likewise.
3314 * cppmacro.c: Likewise.
3315 * cppmain.c: Likewise.
3316 * cppspec.c: Likewise.
3318 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3320 * combine.c (force_to_mode): Use gen_int_mode.
3321 Don't clear CONST_INT bits outside of mode.
3323 2002-05-22 Richard Henderson <rth@redhat.com>
3325 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3326 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3328 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3331 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3332 if DECL_SIZE_UNIT is INTEGER_CST.
3334 2002-05-22 Richard Henderson <rth@redhat.com>
3336 * flow.c (life_analysis): Delete broken reg_label check.
3338 2002-05-22 Richard Henderson <rth@redhat.com>
3340 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3341 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3343 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3345 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3346 (embed-bb.c): New rule.
3347 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3348 * config/sh/embed_bb.c: Delete.
3350 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3352 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3354 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3356 * config/h8300/h8300.md (*andorqi3): New.
3358 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3360 PR preprocessor/6517
3361 * Makefile.in: Update.
3362 * c-common.c (c_common_post_options): Add preprocessor
3363 errors to the error count.
3364 * c-lang.c (c_post_options): Kill.
3365 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3366 * hooks.h: Add header guards.
3367 * langhooks-def.h: Include hooks.h.
3368 (LANG_HOOKS_POST_OPTIONS): Update.
3369 * langhooks.h (struct lang_hooks): Update post_options.
3370 * toplev.c (parse_options_and_default_flags): Update.
3372 * objc-lang.c (objc_post_options): Kill.
3373 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3375 2002-05-21 Bruce Korb <bkorb@gnu.org>