1 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4 from and add t-sh64 to ${tmake_file}.
5 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
6 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
7 * config/sh/t-netbsd-sh5-32: Remove.
8 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
10 (MULTILIB_DIRNAMES): Define.
12 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
14 * i386.md (and promoting splitters): Disable QI to SImode promoting
15 when doing so changes immediate to be 32bit.
17 * rtl.h (emit_*_scope): Declare.
18 * emit-rtl.c (emit_*_scope): New global functions.
19 (try_split): Copy scope.
20 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
21 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
22 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
23 noce_process_if_block, find_cond_trap): Copy scopes.
24 * recog.c (peephole2_optimize): likewise.
26 2002-06-06 Jeffrey Law <law@redhat.com>
28 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
30 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
32 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
34 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
37 ($(docdir)/gccinstall.info): New target.
39 (gccinstall.dvi): New target.
41 * doc/.cvsignore: Ignore new info files.
42 * doc/install.texi (@setfilename): Reflect new info filename.
44 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
46 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
49 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
52 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
53 c_common_get_alias_set.
54 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
56 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
58 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
60 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
61 * avr/avr.c (avr_output_function_epilogue): Use above to determine
63 * pa/pa.c (pa_output_function_prologue): Likewise.
65 2002-06-05 David S. Miller <davem@redhat.com>
67 * integrate.c (subst_constants): Handle 'B' RTL format.
69 2002-06-05 Eric Christopher <echristo@redhat.com>
71 * varasm.c (make_decl_rtl): Fix comment for removed
74 2002-06-05 Eric Christopher <echristo@redhat.com>
76 * Makefile.in: Remove missed halfpic bits.
78 2002-06-05 Eric Christopher <echristo@redhat.com>
80 * toplev.c: Remove half-pic.
81 * config/mips/mips.c: Ditto.
82 * config/mips/mips.h: Ditto. Remove unused defines.
83 * config/mips/openbsd.h: Update comment to reflect above.
84 * config/mips/mips.md: Remove half-pic constraints.
88 2002-06-05 Jeffrey Law <law@redhat.com>
90 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
91 rejects (mem (lo_sum (reg) (unspec))), but will allow
92 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
94 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
96 * cpphash.h (_cpp_create_definition): Update prototype.
97 (_cpp_push_text_context, _cpp_create_trad_definition): New.
98 ( cpp_lex_identifier_trad): New.
99 (_cpp_set_trad_context): New.
100 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
101 * cpplib.c (SEEN_EOL): Update.
102 (lex_macro_node): Update for -traditional.
103 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
104 * cppmacro.c (_cpp_create_definition): Split into
105 create_iso_definition() and _cpp_create_trad_definition().
106 (warn_of_redefinition): Update prototype; handle traditional
108 (_cpp_push_text_context): New.
109 * cpptrad.c (skip_whitespace, push_replacement_text): New.
110 (lex_identifier): Call ht_lookup with correct start.
111 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
112 _cpp_set_trad_context): New.
113 (scan_out_logical_line): Update to handle changing contexts.
115 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
117 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
119 * config/sh/t-be (MULTILIB_ENDIAN): Set.
120 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
121 * t-sh (MULTILIB_ENDIAN): Set.
122 (MULTILIB_OPTIONS): Use it.
123 * t-sh64 (MULTILIB_OPTIONS): Likewise.
124 (MULTILIB_DIRNAMES): Likewise.
126 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
128 * toplev.h (report_error_function): Remove.
130 * diagnostic.h (location_t): New datatype.
131 (text_info): Likewise.
132 (diagnostic_info): Likewise.
133 (output_prefix): New macro.
134 (diagnostic_last_function_changed): Likewise.
135 (diagnostic_set_last_function): Likewise.
136 (diagnostic_last_module_changed): Likewise.
137 (diagnostic_set_last_module): Likewise.
138 (report_diagnostic): Now macro.
139 (diagnostic_set_info): Declare.
141 * diagnostic.c (report_problematic_module): Rename to
142 diagnostic_repor_current_module.
143 (set_diagnostic_context): Remove.
144 (count_error): Rename to diagnostic_error_count.
145 (error_function_changed): Remove.
146 (record_last_error_function): Likewise.
147 (error_module_changed): Likewise.
148 (record_last_error_module): Likewise.
149 (context_as_prefix): Rename to diagnostic_build_prefix.
150 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
151 (diagnostic_set_info): New function.
153 * objc/objc-act.c: #include diagnostic.h
154 (error_with_ivar): Adjust call to count_error.
155 (warn_with_method): Likewise.
156 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
158 2002-06-05 Bob Wilson <bob.wilson@acm.org>
160 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
161 lang_hooks.types.make_type instead of make_node; set up
162 __va_list_tag type decl.
163 (xtensa_builtin_saveregs): Remove broken use of
164 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
165 for saved registers; add varargs alias set.
167 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
170 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
171 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
172 CPP_PREDEFINES and part of CPP_SPEC.
173 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
174 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
176 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
178 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
180 2002-06-05 Alan Modra <amodra@bigpond.net.au>
182 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
184 2002-06-04 Zack Weinberg <zack@codesourcery.com>
186 * gengtype-yacc.y: Make sure all rules end with a semicolon.
188 2002-06-04 Bob Wilson <bob.wilson@acm.org>
190 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
191 typo in function prototype and include "ggc.h" header.
193 2002-06-04 Richard Henderson <rth@redhat.com>
195 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
196 (print_operand) ['U']: Likewise.
197 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
198 (alpha_expand_unaligned_store_words): Likewise.
199 (alpha_expand_builtin_vector_binop): Fix typo.
200 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
201 umulh, and cix insns.
202 (one_arg_builtins): Add cix builtins.
203 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
204 (alpha_expand_builtin): Fix typo in arity.
205 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
206 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
207 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
208 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
209 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
210 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
211 builtin_ctlz, builtin_ctpop): New.
212 * doc/extend.texi (Alpha Built-in Functions): Update.
214 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
216 * gengtype.c (write_gc_root): Don't unnecessarily prevent
217 global variable-length arrays being roots.
219 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
220 * configure.in (config_gtfiles): New variable.
221 (all_gtfiles): Initialise from config_gtfiles.
222 * configure: Regenerate.
224 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
227 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
228 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
229 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
230 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
231 win32.h (CPP_SPEC): Remove cpp_cpu.
232 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
233 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
235 2002-06-04 Janis Johnson <janis187@us.ibm.com>
237 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
239 2002-06-04 Jeff Law <law@redhat.com.
240 David Edelsohn <edelsohn@gnu.org>
241 Michael Matz <matz@kde.org>
243 * sched-int.h (struct deps): New field libcall_block_tail_insn.
244 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
245 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
246 is set, then mark the current insn as being part of a libcall
248 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
250 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
251 insns against the issue rate.
253 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
255 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
256 * final.c (final_scan_insn): Likewise.
257 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
258 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
259 * haifa-sched.c (unlink_other_notes): Likeewise.
260 (reemit_notes): Likewise.
261 * print-rtl.c (print_rtx): Likewise.
262 * sched-deps (sched-analyze): Likewise.
263 * rtl.c (note_insn_name): Likewise.
264 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
265 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
268 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
270 * varasm.c (mark_constants): Handle RTX format 'B'.
272 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
274 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
275 (struct cpp_context): Add traditional fields.
276 * cppmacro.c (paste_all_tokens, push_ptoken_context,
277 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
278 * cpptrad.c (skip_comment, lex_identifier,
279 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
281 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
283 * gbl-ctors.h: Fix formatting.
285 * gccspec.c: Likewise.
287 * gcov-io.h: Likewise.
289 * ggc-common.c: Likewise.
291 * ggc-page.c: Likewise.
292 * ggc-simple.c: Likewise.
293 * global.c: Likewise.
295 * gthr-dce.h: Likewise.
297 * gthr-posix.h: Likewise.
298 * gthr-rtems.h: Likewise.
299 * gthr-solaris.h: Likewise.
300 * gthr-win32.h: Likewise.
302 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
304 Merge from pch-branch:
306 * gengtype.h (UNION_OR_STRUCT_P): New macro.
307 * gengtype.c (write_gc_structure_fields): Use it.
308 (write_gc_root): Use it here too.
310 * gengtype.c (write_gc_structure_fields): Assume that lengths
311 of typenames fit into an 'int'; don't pass a size_t to "%d" in
313 (write_gc_marker_routine_for_structure): Likewise.
314 (write_gc_types): Likewise.
315 (write_gc_root): Likewise.
317 * varray.h (VARRAY_CLEAR): New.
318 (varray_clear): Prototype.
319 * varray.c (varray_clear): New.
320 * cselib.c (reg_values_old): New.
321 (used_regs_old): New.
322 (cselib_init): Use cached varrays if available to avoid
323 generating large amounts of garbage.
324 (cselib_finish): Don't throw away old varrays.
326 * final.c (insn_addresses_): Move out of ifdef.
328 * varray.c (uses_ggc): Make more varray kinds GCable.
329 * varray.h (union varray_data_tag): Let gengtype see
330 fields 'generic' and 'te'.
331 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
332 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
333 (reg_to_stack): Don't call VARRAY_FREE.
334 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
335 (insn_addresses_): Use gengtype to mark.
336 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
337 pointers; handle generic pointers in unused union fields.
338 (get_output_file_with_visibility): Include cselib.h,
339 insn-addr.h in gtype-desc.c.
340 * function.c (prologue): Use gengtype to mark.
341 (epilogue): Likewise.
342 (sibcall_epilogue): Likewise.
343 * dependence.c: Include gt-dependence.h, ggc.h.
344 (struct def_use): Use gengtype to mark.
345 (struct loop): Likewise.
346 (struct induction): Likewise.
347 (struct dependence): Likewise.
348 (def_use_chain): Likewise.
349 (dep_chain): Likewise.
350 (loop_chain): Likewise.
351 (induction_chain): Likewise.
352 (init_dependence_analysis): Don't free anything, just clear pointers.
353 (build_def_use): Use GGC to allocate def_use.
354 (add_loop): Use GGC to allocate loop.
355 (find_induction_variable): Use GGC to allocate induction.
356 (check_node_dependence): Use GGC to allocate induction, dependence.
357 (dump_node_dependence): Don't free varrays.
358 (end_dependence_analysis): Likewise.
359 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
360 (struct elt_loc_list): Likewise.
361 (struct elt_list): Likewise.
362 * cselib.c: Don't include obstack.h.
363 (hash_table): Use gengtype to mark.
364 (reg_values): Use gengtype to mark.
365 (used_regs): Use gengtype to mark.
366 (cselib_obstack): Delete.
367 (cselib_startobj): Delete.
368 (empty_vals): Mark as deletable.
369 (empty_elt_lists): Mark as deletable.
370 (empty_elt_loc_lists): Mark as deletable.
371 (new_elt_list): Use GGC to allocate struct elt_list.
372 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
373 (clear_table): Don't delete obstack; don't unnecessarily clear
375 (new_cselib_val): Use GGC to allocate struct cselib_val.
376 (cselib_init): Don't set up obstacks. Use GGC to allocate
378 (cselib_finish): Just clear variables, don't free anything.
379 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
380 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
381 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
382 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
383 (gt-reg-stack.h): New rule.
384 (gt-dependence.h): New rule.
385 (gtype-desc.o): Add cselib.h, insn-addr.h.
387 * varray.c: Use only necessary headers.
390 (varray_init): Take type, not size. Use GGC if appropriate.
391 (varray_grow): Update for change to struct varray_head_tag.
392 Use GGC if appropriate.
393 * varray.h (struct const_equiv_data): Use gengtype.
394 (enum varray_data_enum): New.
395 (union varray_data_tag): Use gengtype.
396 (struct varray_head_tag): Use gengtype. Replace size field with
397 enum varray_data_enum.
398 (varray_init): Update prototype.
399 (VARRAY_SCHED_INIT): Delete.
400 (VARRAY_*_INIT): Update for change to varray_init.
401 (VARRAY_SCHED): Delete.
402 (VARRAY_PUSH_SCHED): Delete.
403 (VARRAY_TOP_SCHED): Delete.
404 * tree.h: Update for change to length specifier.
405 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
406 (clone_body): Likewise.
407 * ssa.h (ssa_definition): Use gengtype to mark.
408 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
409 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
410 * rtl.h (struct rtvec_def): Update for change to length specifier.
411 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
412 (struct initial_value_struct): Update for change to length specifier.
413 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
414 (ggc_add_tree_varray_root): Delete prototype.
415 (ggc_mark_rtx_varray): Delete prototype.
416 (ggc_mark_tree_varray): Delete prototype.
417 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
418 (ggc_add_tree_varray_root): Delete.
419 (ggc_mark_rtx_varray): Delete.
420 (ggc_mark_tree_varray): Delete.
421 (ggc_mark_rtx_varray_ptr): Delete.
422 (ggc_mark_tree_varray_ptr): Delete.
423 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
424 (create_varray): Delete prototype.
425 * gengtype.c (varrays): Delete.
426 (create_varray): Delete.
427 (adjust_field_type): Detect array of string pointers.
428 (process_gc_options): Remove code to handle varray_type option.
429 (set_gc_used_type): Remove TYPE_VARRAY case.
430 (output_escaped_param): New.
431 (write_gc_structure_fields): Use output_escaped_param on all
432 parameters. Handle 'skip' with 'use_param' option. Handle
433 arrays of strings. Remove TYPE_VARRAY handling.
434 (write_gc_roots): Use boolean to detect 'length' option.
435 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
436 (struct_fields): Call adjust_field_type on array fields.
437 (type): Remove VARRAY_TYPE case.
438 (type_option): Likewise.
439 * gengtype-lex.l: Don't consider varray_type a keyword.
440 * function.h: Update for change to length specifier.
441 (free_eh_status): Delete prototype.
442 * function.c (free_after_compilation): Don't call free_eh_status.
443 (reorder_blocks): Don't use VARRAY_FREE.
444 * except.c (struct eh_status): Update for change to length specifier.
445 remove varray_type specifier.
446 (free_eh_status): Delete.
447 * dwarf2out.c: Include gt-dwarf2out.h.
448 (used_rtx_varray): Use gengtype to mark, move
450 (incomplete_types): Likewise.
451 (decl_scope_table): Likewise.
452 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
453 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
454 * c-tree.h (struct lang_type): Update for change to length specifier.
455 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
456 * c-objc-common.c: Include gt-c-objc-common.h.
457 (deferred_fns): Mark for gengtype.
458 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
459 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
460 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
461 (gtype-desc.o): Update dependencies.
462 (dwarf2out.o): Add gt-dwarf2out.h.
463 (varray.o): Update dependencies.
464 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
465 (gt-c-objc-common.h): New rule.
466 (gt-dwarf2out.h): New rule.
467 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
469 * doc/gty.texi (GTY Options): Correct spelling.
470 (GGC Roots): Likewise.
471 * Makefile.in (TEXI_CPP_FILES): New.
472 (TEXI_GCC_FILES): New.
473 (TEXI_GCCINT_FILES): New.
474 (TEXI_CPPINT_FILES): New.
475 ($(docdir)/cpp.info): Use new macros.
476 ($(docdir)/gcc.info): Likewise.
477 ($(docdir)/gccint.info): Likewise.
478 ($(docdir)/cppinternals.info): Likewise.
481 (gccint.dvi): Likewise.
482 (cppinternals.dvi): Likewise.
484 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
485 * doc/gccint.texi (Top): Include gty.texi.
486 * doc/gty.texi: New file.
488 * bitmap.c: Include ggc.h, gt-bitmap.h.
489 (bitmap_ggc_free): New.
490 (bitmap_elem_to_freelist): New.
491 (bitmap_element_free): Use bitmap_elem_to_freelist.
492 (bitmap_element_allocate): Allow use of GGC.
493 (bitmap_clear): Use bitmap_elem_to_freelist.
494 (bitmap_copy): Update for change to bitmap_element_allocate.
495 (bitmap_set_bit): Likewise.
496 (bitmap_operation): Update for changes elsewhere.
497 (bitmap_initialize): Allow to create bitmaps that will use GGC.
498 * bitmap.h (struct bitmap_element_def): Use gengtype.
499 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
500 (bitmap_initialize): Add extra parameter.
501 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
502 (BITMAP_ALLOCA): Delete.
503 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
504 (BITMAP_GGC_ALLOC): New.
505 * Makefile.in (gtype-desc.o): Add bitmap.h.
506 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
507 (GTFILES): Add bitmap.c.
508 (gt-bitmap.h): New rule.
509 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
510 * basic-block.h: Update for changes to bitmap_initialize.
511 * except.c (exception_handler_label_map): Move into...
512 (struct eh_status): Here.
513 (struct eh_region): Make 'aka' GCable.
514 (free_eh_status): Don't need to specially handle
515 exception_handler_label_map.
516 (add_ehl_entry): Update for changes to exception_handler_label_map.
517 (find_exception_handler_labels): Likewise.
518 (remove_exception_handler_label): Likewise.
519 (maybe_remove_eh_handler): Likewise.
520 (for_each_eh_label): Likewise.
521 (remove_eh_handler): Allocate 'aka' using GGC.
522 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
525 * gengtype.c (write_gc_marker_routine_for_structure): Name
526 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
527 (write_gc_types): Arrange for the tests with NULL to be inlined.
528 (write_gc_roots): Update uses of procedure pointers.
529 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
531 * Makefile.in (explow.o): Add dependency on gt-explow.h.
532 (sdbout.o): Add dependency on gt-sdbout.h.
534 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
535 (mem_attrs_htab): Likewise.
536 (init_emit_once): Don't call ggc_add_deletable_htab.
537 * fold-const.c (size_htab): Use gengtype to clear unused entries.
538 (size_int_type_wide): Don't call ggc_add_deletable_htab.
539 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
540 parameters, use them, change callers.
541 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
542 (write_gc_roots): Handle 'if_marked' option.
543 (main): Don't need to call set_gc_used_type any more.
544 * ggc.h (ggc_htab_marked_p): Delete.
545 (ggc_htab_mark): Delete.
546 (struct ggc_cache_tab): New.
547 (gt_ggc_cache_rtab): New declaration.
548 * ggc-common.c (struct d_htab_root): Delete.
549 (d_htab_roots): Delete.
550 (ggc_add_deletable_htab): Delete.
551 (ggc_htab_delete): Handle new htab-deleting mechanism.
552 (ggc_mark_roots): Use new htab-deleting mechanism.
553 * tree.c (type_hash_table): Use gengtype to clear unused entries.
555 (init_obstacks): Don't call ggc_add_deletable_htab.
557 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
558 (struct hashed_entry): Likewise.
559 (nst_method_hash_list): Likewise.
560 (cls_method_hash_list): Likewise.
561 (HASH_ALLOC_LIST_SIZE): Delete.
562 (ATTR_ALLOC_LIST_SIZE): Delete.
563 * objc/objc-act.c (hash_init): Use ggc to allocate
564 nst_method_hash_list, cls_method_hash_list.
565 (hash_enter): Use ggc to allocate; allocate one entry at a time.
566 (hash_add_attr): Likewise.
567 (ggc_mark_hash_table): Delete.
568 (objc_act_parse_init): Delete.
569 (objc_init): Delete reference to objc_act_parse_init.
570 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
571 obstack.h. Replace references to 'struct hash_table' with htab_t.
572 (struct symbol_hash_entry): Replace hash header with key field.
573 (struct file_hash_entry): Replace hash header with key field.
574 (struct demangled_hash_entry): Replace hash header with key field.
575 (hash_string_eq): New.
576 (hash_string_hash): New.
577 (symbol_hash_newfunc): Delete.
578 (symbol_hash_lookup): Modify to use htab_t.
579 (file_hash_newfunc): Delete.
580 (file_hash_lookup): Modify to use htab_t.
581 (demangled_hash_newfunc): Delete.
582 (demangled_hash_lookup): Modify to use htab_t.
583 (tlink_init): Modify to use htab_t.
586 * ggc.h: Delete forward structure declarations.
587 Delete prototypes for deleted functions.
588 * ggc-common.c: Don't include hash.h.
589 (ggc_add_tree_hash_table_root): Delete.
590 (ggc_mark_tree_hash_table_entry): Delete.
591 (ggc_mark_tree_hash_table): Delete.
592 (ggc_mark_tree_hash_table_ptr): Delete.
593 * gengtype.c (write_gc_structure_fields): Allow param_is option.
594 (write_gc_marker_routine_for_structure): Use visibility of
595 the parameter if there is one.
596 * function.c: Replace hash.h with hashtab.h. Replace references
597 to 'struct hash_table *' with htab_t.
598 (struct insns_for_mem_entry): Include a plain key.
599 (fixup_var_refs_insns_with_hash): Update to use htab_t.
600 (insns_for_mem_newfunc): Delete.
601 (insns_for_mem_hash): Update to use htab_t.
602 (insns_for_mem_comp): Likewise.
603 (insns_for_mem_walk): Likewise.
604 * c-lang.c: Include ggc.h.
605 * Makefile.in (OBJS): Remove hash.o.
606 (c-lang.o): Add GGC_H.
607 (COLLECT2_OBJS): Remove hash.o.
608 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
609 (ggc-common.o): Remove hash.h.
610 (function.o): Remove hash.h, add HASHTAB_H.
611 (genautomata.o): Remove hash.h, add HASHTAB_H.
613 * varasm.c (mark_const_str_htab_1): Delete.
614 (mark_const_str_htab): Delete.
615 (const_str_htab_del): Delete.
616 (const_str_htab): Use gengtype to mark.
617 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
619 * tree.c (mark_tree_hashtable_entry): Delete.
620 (mark_tree_hashtable): Delete.
621 * tree.h (mark_tree_hashtable): Delete prototype.
622 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
623 (ggc_mark): Likewise.
625 (htab_create_ggc): New.
626 * ggc-common.c (ggc_calloc): New.
627 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
628 (struct type): Add param_struct structure.
629 * gengtype.c (param_structs): New.
630 (adjust_field_type): Handle param_is option.
631 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
632 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
633 (write_gc_structure_fields): Add new PARAM parameter. Update
634 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
635 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
636 Use it to generate function name. Update callers.
637 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
639 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
641 (main): Define PTR as pointer-to-scalar. Don't specially
642 mark deferred_string or ehl_map_entry.
643 * gengtype-yacc.y (PARAM_IS): Add new token.
644 (externstatic): Use adjust_field_type.
645 (type_option): Add PARAM_IS.
646 * gengtype-lex.l: Add rule for typedef of function pointers.
647 Add rule for PARAM_IS.
649 * except.c (exception_handler_label_map): Use gengtype to mark.
650 (type_to_runtime_map): Likewise.
651 (mark_ehl_map_entry): Delete.
652 (mark_ehl_map): Delete.
653 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
654 (t2r_mark_1): Delete.
656 * Makefile.in (gtype-desc.o): Correct dependencies.
657 (GTFILES): Add hashtab.h.
658 (genautomata.o): Actually uses hashtab.h.
660 * Makefile.in (stringpool.o): Add $(GGC_H).
661 (dwarf2asm.o): Likewise.
662 (GTFILES): Add hashtable.h.
663 * c-common.h (struct c_common_identifier): Use gengtype.
664 * c-decl.h (c_mark_tree): Delete.
665 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
666 * c-tree.h (struct lang_identifier): Use gengtype.
667 (union lang_tree_node): New.
668 (c_mark_tree): Delete prototype.
669 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
671 * gengtype-lex.l (IWORD): Allow 'bool'.
673 * gengtype-yacc.y (ALIAS): New token.
674 (type_option): New rule.
675 (option): Use type_option.
676 * gengtype.c (process_gc_options): New.
677 (set_gc_used_type): Use it.
678 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
679 Add new variable 't' to hold the type of the field being processed.
680 Add more error checking. Use UNION_P when looking at 'desc' option.
681 Handle language-specific structures containing other
682 language-specific structures.
683 (write_gc_types): Handle 'ptr_alias' option.
684 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
685 * ggc-common.c (ggc_pending_trees): Delete.
686 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
687 (ggc_mark_trees): Delete.
688 (gt_ggc_m_tree_node): Delete.
689 * ggc.h (ggc_pending_trees): Delete.
690 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
691 * hashtable.h (ht_identifier): Use gengtype.
692 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
693 * langhooks.h (struct lang_hooks): Delete mark_tree.
694 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
696 * system.h: Poison LANG_HOOKS_MARK_TREE.
697 * tree.c (tree_node_structure): New.
698 * tree.h (struct tree_common): Use gengtype.
699 (struct tree_int_cst): Likewise.
700 (struct tree_real_cst): Likewise.
701 (struct tree_string): Likewise.
702 (struct tree_complex): Likewise.
703 (struct tree_vector): Likewise.
704 (struct tree_identifier): Likewise.
705 (struct tree_list): Likewise.
706 (struct tree_vec): Likewise.
707 (struct tree_exp): Likewise.
708 (struct tree_block): Likewise.
709 (struct tree_type): Likewise.
710 (struct tree_decl): Likewise.
711 (enum tree_structure_enum): New.
712 (union tree_node): Use gengtype, with an alias.
713 (tree_node_structure): Prototype.
714 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
716 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
717 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
718 to LANG_HOOKS_FUNCTION_FINAL.
719 * Makefile.in (GTFILES): Add bitmap.h.
720 * except.c (struct eh_region): Mark field 'aka' to be skipped.
722 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
723 (alpha_init_machine_status): Give proper type.
724 * Makefile.in (c-lang.o): Depend on gtype-c.h.
725 (optabs.o): Depend on gt-optabs.h.
726 (GTFILES): Add optabs.o.
727 (gt-optabs.h): Add rule.
728 * optabs.c: Include gt-optabs.h.
730 * gengtype.c (set_gc_used_type): Correct some errors in last change.
731 (write_gc_structure_fields): If a field which should be NULL is
733 * c-pragma.c: Move struct align_stack and variable alignment_stack
736 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
737 * config/xtensa/xtensa.c: Include gt-cris.h.
738 (struct machine_function): Use gengtype to mark.
739 * config/mmix/mmix.h (struct machine_function): Use gengtype
741 * config/cris/t-cris: Add dependencies for gt-cris.h.
742 * config/cris/cris.c: Include gt-cris.h.
743 (struct machine_function): Use gengtype to mark.
744 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
746 * doc/tm.texi (Per-Function Data): Delete references to
748 * config/ia64/ia64.c (ia64_override_options): Don't set
750 * config/i386/i386.c (override_options): Likewise.
751 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
752 * config/arm/arm.c (arm_init_expanders): Likewise.
753 * config/alpha/alpha.c (override_options): Likewise.
754 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
755 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
756 (write_gc_structure_fields): Don't handle 'really' option.
757 Handle 'maybe_null' option.
758 (write_gc_types): Handle 'maybe_null' option.
759 * function.h (struct function): Don't use "really".
760 (mark_machine_status): Delete declaration.
761 (mark_lang_status): Delete declaration.
762 (gt_ggc_mr_machine_function): Delete prototype.
763 (gt_ggc_mr_language_function): Delete prototype.
764 * function.c (mark_machine_status): Delete.
765 (mark_lang_status): Delete.
766 (gt_ggc_mr_machine_function): Delete.
767 (gt_ggc_mr_language_function): Delete.
768 * c-tree.h (mark_c_function_context): Delete prototype.
769 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
770 * c-decl.c (struct language_function): Rename from struct
771 c_language_function. Update uses. Use gengtype to mark.
772 (mark_c_function_context): Delete.
773 * c-common.h (struct c_language_function): Rename from struct
775 (mark_stmt_tree): Delete prototype.
776 (c_mark_lang_decl): Delete prototype.
777 (mark_c_language_function): Delete prototype.
778 * c-common.c (mark_stmt_tree): Delete.
779 (c_mark_lang_decl): Delete.
780 (mark_c_language_function): Delete.
782 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
783 (lang_bitmap): New typedef. Use where appropriate.
784 (struct type): Add gc_used field, lang_struct field.
785 (UNION_P): New macro.
786 (new_structure): New prototype.
787 (find_structure): Remove 'pos' parameter. Change all callers.
788 * gengtype-lex.l: Update for changes to find_structure.
789 * gengtype-yacc.y (typedef_struct): Use new_structure.
790 (yacc_ids): Suppress warning.
791 (type): Use new_structure.
792 * gengtype.c (string_type): Update for changes to struct type.
793 (find_structure): Just find a structure, don't worry about
795 (new_structure): New.
796 (note_yacc_type): Use new_structure.
797 (set_gc_used_type): New.
799 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
800 (write_gc_types): Handle TYPE_LANG_STRUCT.
801 (write_gc_marker_routine_for_structure): New.
802 (main): Call set_gc_used. Add some calls to set_gc_used_type
803 for places where GCC doesn't use gengtype properly yet.
804 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
805 (gt_ggc_m_tree_node): Likewise.
807 * varasm.c (copy_constant): Call expand_constant if we hit
808 something we can't recognise.
810 * ggc-common.c (ggc_mark_rtvec_children): Delete.
811 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
812 (lang_mark_false_label_stack): Delete.
813 * rtl.h (struct rtvec_def): Use gengtype to mark.
814 * ggc.h (ggc_mark_rtvec): Delete.
815 (gt_ggc_m_rtvec_def): Delete.
816 (ggc_mark_nonnull_tree): Delete.
817 (ggc_mark_rtvec_children): Delete prototype.
818 (lang_mark_false_label_stack): Delete declaration.
820 * gengtype.h (note_yacc_type): Add prototype.
821 * gengtype.c (note_yacc_type): New function.
822 * gengtype-lex.l: Add lexer support for yacc files.
823 * gengtype-yacc.y (start): Extract union from yacc files.
824 (yacc_union): New rule.
825 (yacc_typematch): New rule.
826 (yacc_ids): New rule.
827 (enum_items): Tweak for efficiency.
828 (optionseq): Likewise.
830 * c-common.h (struct language_function): Use gengtype.
831 (struct c_lang_decl): Likewise.
832 * c-tree.h (struct lang_decl): Likewise.
833 (struct lang_type): Likewise.
834 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
835 tree language substructures.
837 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
839 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
841 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
843 * stmt.c (struct nesting): Add discriminator. Use gengtype to
844 mark. Remove 'data.block.cleanup_ptr' field.
845 (struct stmt_status): Use usual technique to mark struct nesting.
846 (gt_ggc_mr_nesting_cond): Delete.
847 (gt_ggc_mr_nesting_loop): Delete.
848 (gt_ggc_mr_nesting_block): Delete.
849 (gt_ggc_mr_nesting_case_stmt): Delete.
850 (expand_start_cond): Set discriminator.
851 (expand_start_loop): Likewise.
852 (expand_start_null_loop): Likewise.
853 (expand_start_bindings_and_block): Set discriminator. Don't set
855 (expand_decl_cleanup): Replace 'cleanup_ptr' with
856 &thisblock->data.block.cleanups.
857 (expand_start_case): Set discriminator.
858 (expand_start_case_dummy): Set discriminator.
860 * ggc-callbacks.c: Remove.
862 * gengtype.h (struct type): Add 'u.s.bitmap' field.
863 (find_structure): Add 'pos' parameter.
864 * gengtype-lex.l: Update callers to find_structure.
865 * gengtype-yacc.y: Likewise.
866 * gengtype.c (find_structure): Allow for structures to be defined
867 in multiple language backends.
868 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
869 (counter): Rename to gc_counter.
870 (write_gc_structure_fields): Fail when writing out fields for
871 an incomplete structure. Ignore arrays of scalars. Handle
873 (write_gc_types): Reset counter for each procedure written.
875 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
876 (free_case_nodes): Delete.
877 (expand_end_case_type): Delete call to free_case_nodes.
879 * Makefile.in (cselib.o): Include gt-<filename>.h.
881 (profile.o): Likewise.
883 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
884 alphabetize backend files.
885 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
886 * alias.c: Use gengtype for roots.
887 * c-common.h (struct stmt_tree_s): Use gengtype.
888 * c-decl.c: Use gengtype for roots.
889 * cselib.c: Use gengtype for roots.
890 * expr.c: Use gengtype for roots.
891 * fold-const.c: Use gengtype for roots.
892 * gcse.c: Use gengtype for roots.
893 * gengtype-lex.l: Handle typedefs of function types.
894 Allow for empty array bounds.
895 Allow processing to stop on initialisers.
896 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
897 (semiequal): New rule.
898 * gengtype.c (create_file): Tidy output files.
899 (get_output_file_with_visibility): Fix paren warning. Fix bug
900 involving multiple input files mapping to one output file.
901 (write_gc_structure_fields): Skip arrays of scalars.
902 (write_gc_types): Tidy output files.
903 (write_gc_root): New function.
904 (write_gc_roots): Fix bugs, add support for roots that are
906 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
907 (ggc_mark_tree_ptr): Delete.
908 (ggc_add_rtx_root): Delete.
909 (ggc_add_tree_root): Delete.
910 (ggc_del_root): Delete.
911 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
912 allocate struct initial_value_struct.
913 * profile.c: Use gengtype for roots.
914 * sdbout.c: Use gengtype for roots.
915 * varasm.c (mark_weak_decls): Delete unused prototype.
916 (mark_const_hash_entry): Delete unused function.
917 * config/darwin-protos.h: Use gengtype for roots.
918 (machopic_add_gc_roots): Delete.
919 * config/arm/arm.c: Use gengtype for roots.
920 * config/arm/arm.h: Use gengtype for roots.
921 * config/c4x/c4x-protos.h: Use gengtype for roots.
922 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
923 * config/d30v/d30v-protos.h: Use gengtype for roots.
924 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
925 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
926 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
927 * config/ia64/ia64-protos.h: Use gengtype for roots.
928 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
929 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
930 * config/m68hc11/m68hc11.c (z_reg): Make global.
931 (z_reg_qi): Make global.
932 (m68hc11_add_gc_roots): Delete.
933 * config/mcore/mcore-protos.h: Use gengtype for roots.
934 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
935 * config/mips/mips.c (mips_add_gc_roots): Delete.
936 * config/mips/mips.h: Use gengtype for roots.
937 * config/mmix/mmix.c (override_options): Use gengtype for roots.
938 * config/mmix/mmix.h: Use gengtype for roots.
939 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
940 * config/mn10200/mn10200.h: Use gengtype for roots.
941 * config/pa/pa.c: Use gengtype for roots, marking.
942 (struct deferred_plabel): Use GGC, gengtype.
943 (pa_add_gc_roots): Delete.
944 (mark_deferred_plabels): Delete.
945 * config/pj/pj-protos.h: Use gengtype for roots.
946 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
947 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
948 machopic_add_gc_roots.
949 * config/rs6000/rs6000.h: Use gengtype for roots.
950 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
951 (gt-darwin.h): Add rule.
952 * config/sh/sh.c: Use gengtype for roots.
953 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
955 * config/sparc/sparc.c: Use gengtype for roots.
956 (sparc_add_gc_roots): Delete.
957 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
958 (mark_ultrasparc_pipeline_state): Delete.
959 * config/sparc/sparc.h: Use gengtype for roots.
961 * Makefile.in (c-parse.o): Update dependencies.
962 (c-common.o): Likewise.
963 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
964 Add dependencies for the files they generate.
965 * c-common.c: Replace ggc_add_* uses with GTY annotations.
966 * c-common.h: Likewise.
967 * c-decl.c: Likewise.
968 (gt_ggc_mp_binding_level): Delete.
969 * c-lang.c: Include gtype-c.h.
970 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
972 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
973 (gt_ggc_mp_align_stack): Delete.
974 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
975 * function.c: Replace ggc_add_* uses with GTY annotations.
976 (gt_ggc_mp_function): Delete.
977 * function.h: Replace ggc_add_* uses with GTY annotations.
978 * gengtype.c (lang_names): New.
979 (NUM_BASE_FILES): New.
980 (open_base_files): Create language base files.
982 (get_file_basename): New.
983 (get_base_file_bitmap): New.
984 (get_output_file_with_visibility): Rename from get_output_file.
985 Add more mappings for various C/Objc filenames.
986 (finish_root_table): New.
987 (write_gc_roots): Handle dependencies and scoping properly.
988 * gengtype.h: Add prototypes for new functions.
989 * ggc-common.c (struct deletable_root): Delete.
990 (deletables): Delete.
991 (ggc_add_deletable_root): Delete.
992 (ggc_mark_roots): No need to deal with deleted functionality.
993 * ggc.h (ggc_add_deletable_root): Delete prototype.
994 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
995 (gtype-objc.h): Add rule to create.
996 * objc/config-lang.in (gtfiles): New.
997 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
998 ggc_add_* with GTY markers. Include gtype-objc.h.
999 (ggc_mark_imp_list): Delete.
1000 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1001 * objc/objc-lang.c: Random Whitespace Change.
1003 * except.h (exception_handler_labels): Delete.
1004 (get_exception_handler_labels): New.
1005 * except.c (exception_handler_labels): Delete.
1006 (struct eh_status): Add exception_handler_labels field.
1007 (doing_eh): Don't add exception_handler_labels as root.
1008 (free_eh_status): Don't need to free exception_handler_labels.
1009 (get_exception_handler_labels): New.
1010 (find_exception_handler_labels): Update for move of
1011 exception_handler_labels.
1012 (remove_exception_handler_label): Likewise.
1013 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1014 * jump.c (rebuild_jump_labels): Likewise.
1015 * loop.c (find_and_verify_loops): Likewise.
1016 * sched-rgn.c (is_cfg_nonregular): Likewise.
1018 * gengtype.c (write_gc_structure_fields): Handle variable-length
1021 * varasm.c (struct weak_syms): Use GGC, gengtype.
1022 (mark_weak_decls): Delete.
1023 (weak_decls): Likewise.
1024 (add_weak): Likewise.
1025 (remove_from_pending_weak_list): Likewise.
1026 (init_varasm_once): Likewise.
1028 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1029 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1030 stor-layout.c, regclass.c, and lists.c.
1031 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1032 gt-regclass.h and gt-lists.h on s-gtype.
1033 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1034 * except.c: Use gengtype for roots.
1035 * explow.c: Use gengtype for roots. Include gt-explow.h.
1036 * expr.h (init_stor_layout_once): Delete prototype.
1037 * function.c: Use gengtype for roots.
1038 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1039 * gengtype-yacc.y (start): Can also be an externstatic.
1040 (externstatic): New production.
1041 (struct_fields): Correct array bounds inversion for 2-d arrays.
1042 * gengtype.c (variables): New variable.
1043 (note_variable): New function.
1044 (get_output_file): Include libfuncs.h into gtype-desc.c.
1045 (get_output_file_name): New function.
1046 (write_gc_structure_fields): Suppress warnings.
1047 (write_gc_types): Make static.
1048 (put_mangled_filename): New function.
1049 (write_gc_roots): New function.
1050 (main): Call write_gc_roots.
1051 * gengtype.h (note_variable): Prototype.
1052 (get_output_file_name): Prototype.
1053 (write_gc_types): Delete prototype.
1054 * ggc.h: Clean up unnecessary structure predefinitions.
1055 (struct ggc_root_tab): Define.
1056 (gt_ggc_m_rtx_def): Make function, not macro.
1057 (gt_ggc_m_tree_node): Likewise.
1058 * libfuncs.h: Use gengtype for roots.
1059 * lists.c: Use gengtype for roots. Include gt-lists.h.
1060 (init_EXPR_INSN_LIST_cache): Delete.
1061 * optabs.c: Use gengtype for roots.
1062 (gt_ggc_mp_optab): Delete.
1063 * optabs.h: Use gengtype for roots.
1064 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1065 * rtl.h: Use gengtype for roots.
1066 (init_EXPR_INSN_LIST_cache): Delete prototype.
1067 * stor-layout.c: Use gengtype for roots.
1068 Include gt-stor-layout.h.
1069 (init_stor_layout_once): Delete.
1070 * toplev.c: Use gengtype for roots. Delete calls to deleted
1072 * tree.c: Use gengtype for roots.
1073 * tree.h: Use gengtype for roots.
1074 * varasm.c: Use gengtype for roots.
1076 * Makefile.in (GTFILES): Add @all_gtfiles@.
1077 * configure: Regenerate.
1078 * configure.in: Construct all_gtfiles from the gtfiles definitions
1080 * gengtype-yacc.y (type): Warn about duplicate structure names.
1081 * gengtype.c (get_output_file): Handle .c files in language
1084 * Makefile.in (GTFILES): Run gengtype on all the config files
1085 and on the target .c file.
1086 * except.c (mark_eh_region): Delete.
1087 (init_eh_for_function): Use GGC on struct eh_status.
1088 (mark_eh_status): Delete.
1089 (free_eh_status): Use GGC.
1090 (expand_eh_region_start): Use GGC to
1091 (collect_eh_region_array): Allocate last_region_number using GGC.
1092 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1093 (remove_eh_handler): Let GGC free struct eh_region.
1094 (add_call_site): Use GGC to reallocate call_site_record array.
1095 * function.c (init_machine_status): Update calling sequence.
1096 (mark_machine_status): Likewise.
1097 (mark_lang_status): Likewise.
1098 (prepare_function_start): Update init_machine_status call.
1099 (mark_function_status): Delete.
1100 (maybe_mark_struct_function): Delete.
1101 (ggc_mark_struct_function): Delete.
1102 (gt_ggc_mp_function): New.
1103 (gt_ggc_mr_machine_function): New.
1104 (gt_ggc_mr_language_function): New.
1105 (init_function_once): Use canonical names.
1106 * function.h (struct function): Use gengtype.
1107 (init_machine_status): Return the structure.
1108 (mark_machine_status): Take a 'void *'.
1109 (mark_lang_status): Likewise.
1110 * ggc-common.c (ggc_mark_trees): Use canonical name for
1111 ggc_mark_struct_function.
1112 * tree.h (ggc_mark_struct_function): Delete prototype.
1113 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1114 (alpha_init_machine_status): Likewise.
1115 (override_options): Use canonical name for alpha_mark_machine_status.
1116 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1117 * config/arm/arm.h (struct machine_function): Use gengtype.
1118 * config/arm/arm.c (arm_mark_machine_status): Delete.
1119 (arm_init_machine_status): Update calling sequence.
1120 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1121 * config/cris/cris.c (cris_init_machine_status): Update
1123 * config/d30v/d30v.h (struct machine_function): Use gengtype.
1124 * config/d30v/d30v.c (d30v_init_machine_status): Update
1126 (d30v_mark_machine_status): Delete.
1127 * config/i386/i386.c: Include gt-i386.h.
1128 (struct machine_function): Use gengtype.
1129 (ix86_init_machine_status): Update calling sequence.
1130 (ix86_mark_machine_status): Delete.
1131 (override_options): Use canonical namke for ix86_mark_machine_status.
1132 * config/ia64/ia64.h (struct machine_function): Use gengtype.
1133 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1135 (ia64_mark_machine_status): Delete.
1136 (ia64_override_options): Use canonical name for
1137 ia64_mark_machine_status.
1138 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1140 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1141 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1142 * gengtype.c (get_output_file): Fix warning.
1143 (main): Add prototype to suppress warning.
1144 * tree.c: Remove tree_hash_mark prototype.
1146 * tree.h (init_stmt): Delete prototype.
1147 * toplev.c (lang_independent_init): Don't call init_stmt.
1148 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1149 (stmt_obstack): Delete.
1150 (POPSTACK): No need to free 'struct nesting'.
1151 (gt_ggc_mr_nesting_cond): Use canonical names.
1152 (gt_ggc_mr_nesting_loop): Use canonical names.
1153 (gt_ggc_mr_nesting_block): Use canonical names.
1154 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1155 (mark_stmt_status): Delete.
1156 (init_stmt): Delete.
1157 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1158 Use it everywhere that last_expr_type was cleared.
1159 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1160 (zap_lists): Delete.
1161 * ggc.h (ggc_add_deletable_root): Prototype.
1162 (mark_stmt_status): Remove prototype.
1163 * ggc-common.c (ggc_add_deletable_root): New.
1164 (ggc_mark_roots): Handle deletable roots.
1165 * function.c (ggc_mark_struct_function): Use canonical name
1166 for mark_stmt_status.
1167 * emit-rtl.c (free_sequence_stack): New.
1168 (start_sequence): Use a freelist for sequences.
1169 (end_sequence): Likewise.
1170 (init_emit_once): Add free_sequence_stack as a deleteable root.
1171 * c-pragma.c Include gt-c-pragma.h.
1172 (struct align_stack): Use gengtype.
1173 (push_alignment): Use GGC for struct align_stack.
1174 (mark_align_stack): Delete.
1175 (gt_ggc_mp_align_stack): New.
1176 (init_pragma): Use canonical name for mark_align_stack.
1177 * c-decl.c: Include gt-c-decl.h.
1178 (struct binding_level): Use gengtype.
1179 (make_binding_level): Use GGC; handle the freelist here.
1180 (pop_binding_level): New.
1181 (pushlevel): Move code into make_binding_level.
1182 (push_label_level): Likewise.
1183 (poplevel): Move code into pop_binding_level.
1184 (pop_label_level): Likewise.
1185 (mark_binding_level): Delete.
1186 (gt_ggc_mp_binding_level): New.
1187 (c_init_decl_processing): Use canonical name for mark_binding_level.
1188 Add free_binding_level as deletable root.
1189 (mark_c_function_context): Use canonical name for mark_binding_level.
1190 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1191 (c-pragma.o): Add gt-c-pragma.h.
1192 (GTFILES): Add c-decl.c and c-pragma.c.
1193 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1195 * tree.c (struct type_hash): Use gengtype.
1196 (init_obstacks): Use canonical name for type_hash_mark.
1197 (type_hash_mark): Delete.
1199 * rtl.h (struct mem_attrs): Use gengtype.
1200 * optabs.h (struct optab): Use gengtype.
1201 * optabs.c (expand_binop): Squish signed/unsigned warning.
1202 (mark_optab): Make local, use canonical name, use autogenerated
1204 (init_optabs): Use canonical name for mark_optab.
1205 (new_optab): Use GGC to allocate optabs.
1206 * ggc.h: Delete mark_optab prototype.
1207 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1208 mem_attrs marker procedure.
1209 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1210 explicitly rather than deducing them from file names.
1211 (write_gc_structure_fields): Handle arrays of structures.
1212 (main): Return non-zero exit code if errors occur during output.
1213 * emit-rtl.c (mem_attrs_mark): Delete.
1214 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1215 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1216 (tree.o): Depend on gt-tree.h.
1217 (GTFILES): Add rtl.h, optabs.h, tree.c.
1218 (gt-tree.h): Add it to s-gtype rule.
1220 * .cvsignore: Ignore gengtype flex/bison generated files.
1221 * Makefile.in (GGC_H): Add gtype-desc.h.
1222 (OBJS): Add gtype-desc.o.
1223 (GEN): Add gengtype.
1224 (STAGESTUFF): Add gengtype.
1225 (varasm.o): Add gt-varasm.h.
1226 (stmt.o): Add gt-stmt.h.
1227 (except.o): Add gt-except.h.
1228 (integrate.o): Add gt-integrate.h.
1230 Add new rules for new files.
1231 * configure: Regenerate.
1232 * configure.in: Correct defaults.h paths.
1233 * emit-rtl.c (mark_sequence_stack): Delete.
1234 (mark_emit_status): Delete.
1235 (start_sequence): Allocate sequence structures using GGC.
1236 (end_sequence): Allocate sequence structures using GGC.
1237 * except.c: Use gengtype for various structures. Include
1239 * expr.c (mark_expr_status): Delete.
1240 * function.c: Use gengtype for various structures. Include
1242 (mark_function_status): Use standard gt_ggc names for marker functions.
1243 (ggc_mark_struct_function): Likewise.
1244 * function.h: Use gengtype for various structures.
1245 * gengtype-lex.l: New file.
1246 * gengtype-yacc.y: New file.
1247 * gengtype.c: New file.
1248 * gengtype.h: New file.
1249 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1250 the standard names. Remove some now-unnecessary prototypes.
1251 * integrate.c: Use gengtype for various structures. Include
1253 (mark_hard_reg_initial_vals): Delete.
1254 * integrate.h (mark_hard_reg_initial_vals): Delete.
1255 * stmt.c: Use gengtype for various structures. Include
1257 (mark_case_node): Delete.
1258 (mark_goto_fixup): Delete.
1259 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1260 * system.h: Define GTY to empty. In flex/bison files,
1261 don't poison malloc or realloc, instead just define them to
1262 xmalloc and xrealloc.
1263 * varasm.c: Use gengtype for various structures. Include
1264 gt-varasm.h. Use standard gt_ggc names for marker functions.
1265 (mark_pool_constant): Delete.
1266 (mark_varasm_status): Delete.
1267 (decode_rtx_const): #if 0 out non-typesafe hack.
1269 * function.h (free_lang_status): Mark as obsolete.
1270 * function.c (free_lang_status): Mark as obsolete.
1271 * c-decl.c (push_c_function_context): Use GC to allocate and free
1272 struct language_function.
1273 (pop_c_function_context): Likewise.
1274 * c-common.c (mark_c_language_function): Mark struct
1277 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1278 Document that the machine_function structures must be allocated
1279 using GC. Update mark_machine_status documentation.
1280 * function.h: Don't declare free_machine_status.
1281 * function.c (free_machine_status): Don't define.
1282 (free_after_compilation): Don't call free_machine_status.
1283 (ggc_mark_struct_function): Mark f->machine. Call
1284 mark_machine_status only on non-NULL pointers.
1285 * system.h: Poison free_machine_status.
1286 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1287 struct machine_function.
1288 (xtensa_free_machine_status): Delete.
1289 (override_options): Don't set free_machine_status.
1290 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1291 free_machine_status.
1292 (rs6000_init_machine_status): Use GC on struct machine_function.
1293 (rs6000_free_machine_status): Delete.
1294 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1296 (ia64_mark_machine_status): Likewise.
1297 (ia64_free_machine_status): Delete.
1298 (ia64_override_options): Don't set free_machine_status.
1299 * config/i386/i386.c (override_options): Don't set
1300 free_machine_status.
1301 (ix86_init_machine_status): Use GC on struct machine_function.
1302 (ix86_mark_machine_status): Likewise.
1303 (ix86_free_machine_status): Delete.
1304 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1306 (d30v_mark_machine_status): Likewise.
1307 (d30v_free_machine_status): Delete.
1308 (d30v_init_expanders): Don't set free_machine_status.
1309 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1311 (arm_init_machine_status): Likewise.
1312 (arm_free_machine_status): Delete.
1313 (arm_init_expanders): Don't set free_machine_status.
1314 * config/alpha/alpha.c (override_options): Don't set
1315 free_machine_status.
1316 (alpha_init_machine_status): Use GC on struct machine_function.
1317 (alpha_mark_machine_status): Likewise.
1318 (alpha_free_machine_status): Delete.
1320 * varasm.c (compare_constant): Fix typo.
1322 * varasm.c: Don't include obstack.h.
1323 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1324 (struct rtx_const): Give substructures names, improve formatting.
1325 (struct constant_descriptor): Delete.
1326 (struct constant_descriptor_tree): New, based on constant_descriptor.
1327 (const_hash_table): Is a hash table of trees.
1328 (mark_const_hash_entry): Is used for hashes of trees. Mark
1329 constant_descriptor_tree structure.
1330 (mark_const_str_htab_1): Mark deferred_string structure.
1331 (compare_constant): Rewrite to compare trees.
1332 (compare_constant_1): Delete.
1333 (record_constant): Delete.
1334 (record_constant_1): Delete.
1335 (output_constant_def): Use struct constant_descriptor_tree.
1336 Don't duplicate trees twice.
1337 (struct constant_descriptor_rtx): New.
1338 (struct pool_constant): Used for rtx constants.
1339 (init_varasm_status): Update for change to struct varasm_status.
1340 (mark_varasm_status): Likewise.
1341 (free_varasm_status): Delete.
1342 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1343 (record_constant_rtx): Likewise.
1344 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1345 (force_const_mem): Likewise.
1346 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1347 * function.c (free_after_compilation): Don't use free_varasm_status.
1348 * function.h: Don't prototype free_varasm_status.
1350 * ggc-common.c (ggc_realloc): Handle X being NULL.
1352 * ggc-common.c (ggc_realloc): New function.
1353 * ggc.h: Prototype it.
1354 * emit-rtl.c (free_emit_status): Delete.
1355 (init_emit): Allocate emit subarrays using GC.
1356 (gen_reg_rtx): Reallocate subarrays using GC.
1357 (init_emit): Use GC to allocate 'struct emit_status' and its
1359 (mark_emit_status): Mark structure and its subarrays.
1360 * stmt.c (free_stmt_status): Delete.
1361 * expr.c (free_expr_status): Delete.
1362 * function.h: Remove prototypes for deleted functions.
1363 * function.c (free_after_compilation): Don't use deleted functions.
1364 Don't call free() on x_parm_reg_stack_loc.
1365 (free_after_parsing): Don't use free_stmt_status.
1366 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1367 (mark_function_status): Mark x_parm_reg_stack_loc.
1369 * varasm.c (init_varasm_status): Use GC to allocate
1370 'struct varasm_status' and its fields x_const_rtx_hash_table
1371 and x_const_rtx_sym_hash_table.
1372 (mark_varasm_status): Mark them.
1373 (free_varasm_status): Use GC to free them.
1374 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1375 (mark_expr_status): Mark the structure itself.
1376 (free_expr_status): Use GC to free the structure.
1377 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1378 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1379 (init_stmt_for_function): Allocate the structure for GC.
1381 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1382 (equate_type_number_to_die): Likewise.
1383 * tree.h (TYPE_SYMTAB_DIE): New macro.
1384 (struct die_struct): Predeclare.
1385 (struct tree_type): Add field symtab.die. Add a tag
1386 to the union type of field symtab.
1388 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1389 'struct rtvec_def *', not 'struct rtvec_def'.
1391 * function.h (original_arg_vector): Make a real rtvec.
1392 * function.c (ggc_mark_struct_function): Adjust.
1393 * integrate.c (expand_inline_function): Adjust.
1395 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1397 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1398 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1399 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1400 (TARGET_VERSION_CPU): Define according to the
1402 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1404 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1405 if TARGET_SHMEDIA64.
1406 (LINK_DEFAULT_CPU_EMUL): Define according to the
1408 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1409 (SUBTARGET_LINK_SPEC): Define.
1410 (LINK_SPEC): Use SH_LINK_SPEC.
1412 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1413 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1414 and TARGET_SHMEDIA64 which abort, for now.
1415 * config/sh/t-netbsd-sh5: New file.
1416 * config/sh/t-netbsd-sh5-32: New file.
1417 * config/sh/t-netbsd-sh5-64: New file.
1419 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1420 Richard Henderson <rth@redhat.com>
1422 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1423 (some_operand, input_operand): Accept CONST_VECTOR.
1424 (alpha_extra_constraint): Add 'W'.
1425 (alpha_expand_zap_mask): New.
1426 (alpha_expand_builtin_vector_binop): New.
1427 (enum alpha_builtin): New.
1428 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1429 (alpha_init_builtins, alpha_expand_builtin): New.
1430 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1431 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1432 (PREDICATE_CODES): Update.
1433 * config/alpha/alpha-protos.h: Update.
1434 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1435 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1436 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1437 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1438 (movv2si, movv2si_fix, movv2si_nofix): New.
1439 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1440 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1441 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1442 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1443 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1444 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1445 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1446 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1447 builtin_unpkbw, unpkbw): New.
1448 * doc/extend.texi (Alpha Built-in Functions): New.
1450 2002-06-03 Richard Henderson <rth@redhat.com>
1452 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1453 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1455 2002-06-03 Richard Henderson <rth@redhat.com>
1457 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1459 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1460 (const0_operand): New.
1461 (reg_or_fp0_operand, fp0_operand): Remove.
1462 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1463 * config/alpha/alpha-protos.h: Update.
1464 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1465 and fp0_operand with reg_or_0_operand and const0_operand.
1467 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1469 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1471 2002-06-03 Roger Sayle <roger@eyesopen.com>
1473 * gcse.c (cprop_jump): Use single_set to get the pattern
1474 from the setcc argument.
1476 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1478 * diagnostic.h (diagnostic_count): Move from output_buffer to
1480 (diagnostic_kind_count): Adjust definition.
1482 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1484 * except.c (except.c): Do not rebuild CFG.
1485 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1488 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1490 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1491 * toplev.c: Include cfglahout.h
1492 * Makefile.in (toplev.c): Add dependnecy.
1494 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1496 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1497 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1498 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1500 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1502 * config/ns32k/netbsd.h: Update copyright years.
1503 (TARGET_OS_CPP_BUILTINS): Define.
1504 (CPP_PREDEFINES): Remove.
1505 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1506 (TARGET_CPU_CPP_BUILTINS): Define.
1508 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1510 * emit-rtl.c: Fix formatting.
1511 * errors.h: Likewise.
1512 * except.c: Likewise.
1513 * explow.c: Likewise.
1514 * expmed.c: Likewise.
1518 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1520 * config/h8300/elf.h: Fix formatting.
1521 * config/h8300/rtems.h: Likewise.
1523 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1525 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1527 2002-06-02 Tom Tromey <tromey@redhat.com>
1529 * fixinc/fixincl.x: Rebuilt.
1530 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1532 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1535 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1536 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1540 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1542 * final.c (final): Allow notes to not have computed addresses;
1543 kill no longer needed STACK_REGS ifdef.
1545 2002-06-02 Richard Henderson <rth@redhat.com>
1547 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1549 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1551 * loop.c (emit_prefetch_instructions): Properly place the address
1554 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1556 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1557 (set_block_for_insn): Turn into macro.
1558 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1559 * cfglayout.c (insn_scopes): Kill.
1560 (scope_to_insns_initialize): Do not use insn_scopes.
1561 (scope_to_insns_finalize): Likewise.
1562 (duplicate_insn_chain): Likewise.
1563 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1564 * cfgrtl.c (basic_block_for_insn): Kill.
1565 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1566 (create_basic_block_structure): Use reorder_insns.
1567 (compute_bb_for_insn): Do not use basic_block_for_insn.
1568 (merge_blocks_nomove): Likewise.
1569 (update_bb_for_insn): Likewise.
1570 (verify_flow_info): Likewise.
1571 (set_block_for_insn): Kill.
1572 * combine.c (try_combine): Update gen_rtx_INSN call.
1573 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1574 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1576 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1577 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1579 (emit_insns_after): Simplify.
1580 (emit_copy_of_insn_after): Copy scope.
1581 * final.c (final_start_function): Lower scopes.
1582 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1583 * integrate.c (copy_insn_list): Cope scopes.
1584 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1585 * loop.c (loop_optimize): Do not care block notes.
1586 * print-rtl.c (print_rtx): Print BB.
1587 * recog.c (apply_change_group): Simplify.
1588 * rtl.c (copy_rtx): Handle 'B'.
1589 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1590 * rtl.h (Field accessors): Update indexes.
1591 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1592 * sched-rgn.c (schedule_insns): Likewise.
1593 * toplev.c (rest_of_compilation): Lower notes.
1594 * unroll.c (unroll_loop): Do not care scoping notes.
1595 (copy_loop_body): Copy scopes.
1597 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1600 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1602 * rtems.h: Similarly.
1603 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1604 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1605 (TARGET_CPU_CPP_BUILTINS): Use.
1607 2002-06-02 Richard Henderson <rth@redhat.com>
1609 * alias.c: Include target.h.
1610 (mark_constant_function): Use targetm.binds_local_p instead
1611 of checking TREE_PUBLIC ourselves.
1612 * Makefile.in (alias.o): Add TARGET_H.
1614 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1616 * c-lex.c: Update copyright and file description.
1618 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1620 * config/fr30/fr30.h: Update to new CPP macros.
1622 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1624 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1626 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1627 Zack Weinberg <zack@codesourcery.com>
1629 * c-common.c (c_common_init): Override cpplib's default
1630 warn_long_long setting.
1631 * c-lex.c (lex_number): Replace with interpret_integer,
1632 interpret_float, narrowest_unsigned_type and
1633 narrowest_signed_type, taking advantage of the new
1634 cpplib functionality.
1635 * cpperror.c (_cpp_begin_message): If a warning is turned
1636 into an error, avoid printing "warning:".
1637 * cppexp.c (cpp_num_sign_extend): New.
1638 * cppinit.c: Update comment.
1639 * cpplib.h (cpp_num_sign_extend): New.
1640 * tree.h: Update comment.
1642 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1644 * diagnostic.h (struct diagnostic_context): Add new member
1646 (internal_error_function): Remove declaration.
1647 * diagnostic.c (internal_error_function): Remove definition..
1648 (internal_error): Adjust use.
1650 2002-06-02 Richard Henderson <rth@redhat.com>
1652 * rtl.h (CC0_P): New.
1653 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
1654 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
1655 (bypass_block): Save old dest block for dump text.
1656 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1657 Allow only true SET insns, not single_set.
1659 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1661 * diagnostic.c (diagnostic_finish): Rename to output_flush.
1662 (clear_disgnostic_info): Rename to output_clear_data. Use false
1663 instead of 0 for boolean value.
1664 Adjust function call throughout.
1666 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1668 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1669 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1671 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1673 * d30v.h (CPP_PREDEFINES): Replace with
1674 (TARGET_CPU_CPP_BUILTINS): New.
1676 2002-06-02 Roger Sayle <roger@eyesopen.com>
1678 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1680 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
1682 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1684 2002-06-02 Richard Henderson <rth@redhat.com>
1686 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1688 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1690 Support for C++ constructors/destructors.
1691 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1692 instead of looping if main() returns.
1693 (asm_file_start): Output global symbols that cause .data and .bss
1694 initialization code to be linked in, unconditionally for now.
1695 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1696 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1697 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1699 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1700 (__tablejump__): New.
1701 (__do_copy_data, __do_clear_bss): New.
1702 (__do_global_ctors, __do_global_dtors): New.
1703 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1706 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1708 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1709 (CPP_SPEC, CPP_PREDEFINES): Kill.
1710 * c4x/rtems.h (CPP_PREDEFINES): Kill.
1711 (TARGET_OS_CPP_BUILTINS): New.
1713 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
1715 * Makefile.in (tracer.o): New.
1716 * params.def (TRACER_*): New options.
1717 * rtl.h (tracer): Declare.
1718 * timevar.def (TV_TRACER): New.
1719 * toplev.c (dump_file_index): Add DFI_tracer.
1720 (dump_file_info): Add tracer.
1722 (lang_indepdenent_options): Add tracer.
1723 (rest_of_compilation): Call tracer.
1724 * tracer.c: New file.
1725 * invoke.texi (-ftracer): Document.
1726 (--param tracer-*): Document.
1728 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
1730 * tree-inline.c (expand_call_inline): Make the statement
1731 expression we generate have a COMPOUND_STMT.
1733 2002-06-01 Roger Sayle <roger@eyesopen.com>
1735 * gcse.c (cprop_cc0_jump): Function deleted.
1736 (cprop_jump): Take an additional argument which is the possibly
1737 NULL cc setting insn immediately before the conditional jump.
1738 When a MODE_CC set is present, substitute it into the JUMP_INSN
1739 before attempting the constant propagation.
1740 (cprop_insn): Recognize cc setters followed by conditional jumps
1741 as a special case. Use cprop_jump instead of cprop_cc0_jump.
1742 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
1743 (find_bypass_set): New function based upon find_avail_set used by
1744 cprop, but finds constant expressions available at the end of
1746 (bypass_block): New function. Given a basic block that begins
1747 with a conditional jump and multiple incoming edges, perform
1748 the jump bypass optimization.
1749 (bypass_conditional_jumps): New function. Call bypass_block with
1750 each suitable basic block in the CFG using a simple single pass.
1752 2002-06-01 Roger Sayle <roger@eyesopen.com>
1754 * tree.c (real_minus_onep): New function to test for -1.0.
1755 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
1757 2002-06-01 Roger Sayle <roger@eyesopen.com>
1759 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1760 and "!p && !q" into "(p|q) == 0" under suitable conditions.
1762 2002-06-01 Andreas Jaeger <aj@suse.de>
1764 * cppexp.c (cpp_classify_number): Cast precission to int for
1765 correct printf format.
1767 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
1769 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1770 expected, but don't really exist: atmega83, atmega85, attiny10.
1771 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1772 emulations for all devices.
1773 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1774 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1776 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
1778 * config/h8300/h8300-protos.h: Add a prototype for
1779 h8300_shift_needs_scratch_p.
1780 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1781 * config/h8300/h8300.h (OK_FOR_R): New.
1782 (OK_FOR_S): Likewise.
1783 (OK_FOR_T): Likewise.
1784 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1785 * config/h8300/h8300.md (anonymous shift patterns): Use
1786 constraints R, S, and T.
1788 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1790 * basic-block.h (struct basic_block_def): New field loop_father.
1791 (BB_VISITED): New flag.
1792 (struct loop): New field pred, removed field shared.
1793 (struct loops): New field parray.
1794 (LOOP_EXITS_DOMS): Removed.
1795 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1796 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1797 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1798 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1799 verify_loop_structure): Declare.
1800 * cfg.c (entry_exit_blocks): Initialize loop_father field.
1801 * cfganal.c (dfs_enumerate_from): New function.
1802 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1803 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1804 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1805 flow_loop_dump, flow_loops_dump, flow_loops_free,
1806 flow_loop_tree_node_add, flow_loop_level_compute,
1807 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1808 flow_loop_outside_edge_p): Modified for new infrastructure.
1809 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1810 redirect_edge_with_latch_update, flow_loop_free): New static functions.
1811 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1812 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1813 find_common_loop, verify_loop_structure, loop_latch_edge,
1814 loop_preheader_edge): New functions.
1815 (flow_loops_cfg_dump): Do not show dominators, as this information
1816 does not remain up to date long.
1817 (flow_loops_find): Store results in new format.
1818 * predict.c (propagate_freq, estimate_probability,
1819 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1822 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
1824 * except.c (nothrow_function_p): Walk epilogue delay list
1825 checking the insn, not the chain for potential throws.
1827 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1829 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1830 (install): Refer to install-cpp directly.
1831 (uninstall-cpp): Folded into uninstall rule.
1832 * configure.in: Delete all code relating to --disable-cpp.
1833 * configure: Regenerate.
1834 * config/t-install-cpp: Delete.
1836 2002-05-31 Richard Henderson <rth@redhat.com>
1838 * configure.in (HAVE_AS_TLS): Add alpha tests.
1839 * configure: Rebuild.
1840 * config/alpha/alpha.c (TARGET_AS_TLS): New.
1841 (alpha_tls_size, alpha_tls_size_string): New.
1842 (overide_options): Set it. Always install machine_status hooks.
1843 (input_operand): Accept got tls predicates.
1844 (local_symbol_p): Merge into ...
1845 (local_symbolic_operand): ... here. Reject tls symbols.
1846 (global_symbolic_operand): Likewise.
1847 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1848 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1849 (tp16_symbolic_operand, tp32_symbolic_operand): New.
1850 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1851 (alpha_encode_section_info): Handle TLS symbols.
1852 (alpha_strip_name_encoding): Likewise.
1853 (alpha_legitimate_address_p): Likewise.
1854 (alpha_legitimize_address): Likewise.
1855 (alpha_expand_mov): Early exit to avoid nop moves.
1856 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
1857 (alpha_init_machine_status, alpha_mark_machine_status,
1858 alpha_free_machine_status): Always define.
1859 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1860 (print_operand, print_operand_address): Add TLS relocs.
1861 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1862 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1863 (TARGET_SWITCHES): Add -mtls-kernel.
1864 (alpha_tls_size, alpha_tls_size_string): New.
1865 (TARGET_OPTIONS): Add -mtls-size=.
1866 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1867 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1868 (ASM_OUTPUT_LABELREF): Skip %.
1869 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1870 (PREDICATE_CODES): Update.
1871 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1872 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1873 UNSPEC_TP, UNSPECV_SET_TP): New.
1874 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1875 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1876 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1877 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1878 (call_value_osf_2_er): Accept anything as op4.
1879 * config/alpha/alpha-protos.h: Update.
1880 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1882 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1884 * cppinit.c (append_include_chain): Always pay attention to
1885 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
1888 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
1890 * target.h: Fix formatting.
1891 * timevar.h: Likewise.
1892 * tlink.c: Likewise.
1893 * toplev.c: Likewise.
1894 * toplev.h: Likewise.
1896 * tree-dump.h: Likewise.
1898 * tree-inline.h: Likewise.
1899 * unroll.c: Likewise.
1900 * unwind-dw2.c: Likewise.
1901 * unwind-dw2-fde.c: Likewise.
1902 * unwind-dw2-fde-glibc.c: Likewise.
1903 * unwind-dw2-fde.h: Likewise.
1904 * unwind.h: Likewise.
1905 * unwind-sjlj.c: Likewise.
1906 * varasm.c: Likewise.
1907 * varray.h: Likewise.
1908 * vmsdbg.h: Likewise.
1909 * vmsdbgout.c: Likewise.
1910 * xcoffout.h: Likewise.
1912 2002-05-31 Igor Shevlyakov <igor@microunity.com>
1914 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
1915 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
1917 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
1919 * gcc.c (cpp_unique_options): Remove "-d" options.
1920 (cpp_debug_options): New spec string.
1921 (default_compilers): Use it.
1922 * objc/lang-specs.h: Likewise.
1924 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
1926 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
1927 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
1928 * gcc/mklibgcc.in: Likewise.
1929 * gcc/config/arc/t-arc: Likewise.
1930 * gcc/configure.in: Likewise.
1931 * gcc/configure: Regenerate.
1933 2002-05-31 Stan Shebs <shebs@apple.com>
1934 Turly O'Connor <turly@apple.com>
1936 * c-decl.c (struct binding_level): Change int field n_incomplete
1937 to tree list incomplete_list.
1938 (clear_binding_level): Init field with NULL.
1939 (pushdecl): Add incomplete type to list.
1940 (mark_binding_level): Mark the incomplete list.
1941 (finish_struct): Scan the incomplete list for types instead
1942 of all decls in the current binding level.
1944 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1946 * pa.c (output_millicode_call): Add missing '%' characters.
1947 (output_call): Likewise.
1949 2002-05-31 David Edelsohn <edelsohn@gnu.org>
1951 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
1952 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1954 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
1956 * varasm.c (mark_constant_pool): Walk epilogue delay list
1957 checking the insn, not the chain for potential constants.
1959 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
1961 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
1963 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
1965 * i386.c (classify_argument): Properly handle base types.
1967 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
1968 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
1971 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1973 * gcse.c (gcse_emit_move_after): New.
1974 (pre_delete, hoist_store): Use it.
1976 * reload1.c (emit_input_reload_insns): Use constrain_operands
1977 instead of constraint_accepts_reg_p to verify optimization.
1978 (constraint_accepts_reg_p): Kill
1980 * reload1.c (reload_cse_delete_noop_set): Kill.
1981 (reload_cse_simplify): use delte_insn_and_edges.
1983 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1985 * cfgloop.c (flow_loops_find): Initialize first and last fields
1988 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
1990 * c-common.c (builtin_define_std): Correct logic.
1992 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1994 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
1995 (output_call): Likewise.
1997 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1999 * pa.c: Move output.h include after tree.h include.
2000 (pa_asm_output_mi_thunk): Constify identifier lab.
2002 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2004 * config/ns32k/ns32k.h: Define named constants for the
2005 bits in target_flags and use them.
2006 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2008 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2010 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2011 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2012 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2013 default scheduling model.
2014 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2015 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2016 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2017 * doc/install.texi (hppa*-*-*): Document default scheduling.
2019 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2021 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2023 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2025 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2026 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2027 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2028 netbsd.h, or netbsd-aout.h.
2030 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2032 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2033 whitespace in __ns32000__ case.
2035 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
2037 * expr.c (expand_expr): Output partially zeroed out vectors with
2038 output_constant_def.
2040 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2042 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2044 (shl*-*-netbsdelf*): New targets.
2045 * config/sh/netbsd-elf.h: New file.
2046 * config/sh/t-netbsd: New file.
2048 2002-05-30 Richard Henderson <rth@redhat.com>
2049 Eric Botcazou <ebotcazou@multimania.com>
2051 PR optimization/6822
2052 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2053 to unsigned int for op1 comparisons. Use gen_int_mode.
2055 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2057 * expmed.c (const_mult_add_overflow_p): New.
2058 * expr.h: Declare it.
2059 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2060 Don't eliminate the biv if the giv has a constant multiplier and
2061 the rhs argument of the comparison does satisfy the predicate.
2062 Use expand_mult_add to compute the replacement constant.
2064 2002-05-30 Osku Salerma <osku@iki.fi>
2066 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2067 (c_common_get_alias_set): Handle it.
2068 * doc/extend.texi: Document it.
2070 2002-05-30 Richard Henderson <rth@redhat.com>
2072 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2073 * toplev.c (process_options): Don't check it.
2074 * doc/tm.texi: Don't document it.
2075 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2076 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2077 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2078 frame pointer optimization if current_function_profile.
2080 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2082 * langhooks.c: Fix formatting.
2083 * langhooks.h: Likewise.
2085 * libgcc2.c: Likewise.
2086 * lists.c: Likewise.
2087 * local-alloc.c: Likewise.
2091 2002-05-30 Marc Espie <espie@openbsd.org>
2093 * config.gcc (sparc64-*-openbsd*): New.
2094 * config/sparc/openbsd1-64.h: New.
2095 * config/sparc/openbsd64.h: New.
2097 2002-05-30 Jeff Law <law@redhat.com>
2099 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2100 a dead insn with a REG_RETVAL note when the entire libcall is not
2101 dead and remove the associated REG_LIBCALL note at the same time.
2103 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2105 * lcm.c (output.h): #include.
2106 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2107 as an ordinary block.
2108 (optimize_mode_switching): Don't pretend that the exit block is
2109 an ordinary block, or handle sucessors of entry block specially.
2110 Instead, split edges from entry block and to exit block, and
2111 put a computing definition on the thus gained post-entry-block,
2112 and a need on the pre-exit-block.
2114 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2116 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2117 * rtl.texi: Document 'B'
2119 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2121 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2123 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2125 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
2127 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2128 const0_rtx instead of NULL_RTX when in error.
2129 (altivec_expand_abs_builtin): Same.
2130 (rs6000_expand_binop_builtin): Same.
2131 (altivec_expand_predicate_builtin): Same.
2132 (altivec_expand_stv_builtin): Same.
2133 (rs6000_expand_ternop_builtin): Same.
2134 (altivec_expand_builtin): Same.
2136 2002-05-29 David S. Miller <davem@redhat.com>
2138 * rtl.h (clear_emit_caches): Delete.
2139 * integrate.c (output_inline_function): Don't call it.
2140 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2141 (clear_emit_caches): Delete definition.
2142 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2144 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2146 * config/mmix/mmix.c: Include real.h.
2147 (mmix_constant_address_p): Remove redundant test before switch.
2149 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2151 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2152 only if not already defined.
2154 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2156 * config/h8300/h8300-protos.h: Remove prototypes for
2157 ok_for_bclr and small_power_of_two.
2158 * config/h8300/h8300.c (small_power_of_two): Remove.
2159 (ok_for_blcr): Likewise.
2160 (fix_bit_operand): Make WHAT deal with an integer instead of a
2161 constraint character.
2162 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2163 (CONST_OK_FOR_P): Likewise.
2164 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2165 CONST_OK_FOR_P any more.
2166 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2171 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2173 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2174 (CPP_PREDEFINES): Make sure this is undefined.
2175 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2176 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2177 or -U__MIPSEB__ before defining one or the other. Instead,
2178 use %(subtarget_endian_default) if neither -EB nor -EL are
2180 (SUBTARGET_EXTRA_SPECS): Define.
2181 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2184 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2186 * doc/md.texi (Patterns): Note pattern condition pitfall
2189 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
2191 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2192 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2193 ternary operations from here...
2194 (rs6000_expand_builtin): ...to here.
2195 New argument expandedp.
2196 Change all instances of altivec_expand_binop_builtin to
2197 rs6000_expand_binop_builtin.
2198 (altivec_expand_unop_builtin): Rename to
2199 rs6000_expand_unop_builtin.
2200 (altivec_expand_binop_builtin): Rename to
2201 rs6000_expand_binop_builtin.
2202 (altivec_expand_ternop_builtin): Rename to
2203 rs6000_expand_ternop_builtin.
2205 2002-05-29 Richard Henderson <rth@redhat.com>
2207 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2208 (TARGET_BI_ARCH): Likewise.
2209 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2210 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2211 (TARGET_64BIT_DEFAULT): Default to 0.
2212 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2214 2002-05-29 Richard Henderson <rth@redhat.com>
2216 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2217 (get_pc_thunk_name): New.
2218 (output_set_got): Use it.
2219 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2220 into linkonce sections.
2222 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2224 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2225 (CPP_PREDEFINES): Make sure this is undefined.
2226 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2227 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2228 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2229 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2230 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2231 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2232 (CPP_PREDEFINES): Make sure this is undefined.
2233 (SUBTARGET_EXTRA_SPECS): Define.
2234 (CPP_SPEC): Use %(netbsd_cpp_spec).
2236 2002-05-29 Jeff Law <law@redhat.com>
2238 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2240 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2241 contains a REG_RETVAL note.
2243 * haifa-sched (sched_analyze): Remove another useless clearing
2244 of SCHED_GROUP_P I missed yesterday.
2246 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2247 * pa.c (pa_asm_output_mi_thunk): New function.
2248 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2250 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2251 Marek Michalkiewicz <marekm@amelek.gda.pl>
2253 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2254 (avr_asm_only_p): Make non-static.
2255 (enum avr_arch): Remove.
2256 (avr_arch_types): New.
2257 (avr_mcu_types): Update.
2258 (avr_override_options): Use avr_arch_types table instead of switch.
2259 * avr.h (CPP_PREDEFINES): Die.
2260 (avr_base_arch_macro, avr_extra_arch_macro): New.
2261 (TARGET_CPU_CPP_BUILTINS): New.
2262 (CPP_SPEC, EXTRA_SPECS): Simplify.
2263 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2264 CPP_AVR5_SPEC): Die.
2266 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2268 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2269 NETBSD_OS_CPP_BUILTINS_AOUT.
2270 (SUBTARGET_EXTRA_SPECS): Define.
2271 (CPP_SPEC): Use %(netbsd_cpp_spec).
2273 2002-05-29 Richard Henderson <rth@redhat.com>
2275 * config/i386/i386.c (ix86_output_function_epilogue): New.
2276 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2277 (pic_label_name): Remove.
2278 (pic_labels_used): New.
2279 (ix86_asm_file_end): Emit one pc load stub for each register used.
2280 (output_set_got): Generate deep pc load to any register.
2281 (ix86_select_alt_pic_regnum): New.
2282 (ix86_save_reg): Don't save pic register if we can find a valid
2283 call-clobbered replacement.
2284 (ix86_expand_prologue): If we found a valid replacement, renumber
2285 pic_offset_table_rtx.
2286 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2287 pic_offset_table_rtx after reload.
2288 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2289 * config/i386/i386.md (set_got): Make insn, not expander.
2290 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2292 2002-05-29 Richard Henderson <rth@redhat.com>
2294 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2295 alignment for alloca.
2297 2002-05-29 Richard Henderson <rth@redhat.com>
2299 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2300 (print_operand_address): Only add rip for symbolic addresses
2301 for which we do not have another relocation type.
2303 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2305 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2306 (EXTRA_SPECS): Add netbsd_cpp_spec.
2307 (CPP_SPEC): Use %(netbsd_cpp_spec).
2308 (CPP_PREDEFINES): Remove.
2309 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2310 (EXTRA_SPECS): Define.
2311 (CPP_SPEC): Use %(netbsd_cpp_spec).
2312 (CPP_PREDEFINES): Remove.
2314 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2316 PR preprocessor/6844
2317 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2320 2002-05-29 Eric Christopher <echristo@redhat.com>
2322 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2323 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2325 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2327 * config/fr30/fr30.md: Remove previous restriction on splits.
2328 Enforce conformance through gen_lowpart and cont_int_operand.
2329 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2330 as the assembler does not support ".bss".
2332 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2334 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2335 (CPP_PREDEFINES): Remove.
2336 (SUBTARGET_EXTRA_SPECS): Define.
2337 (CPP_SPEC): Use %(netbsd_cpp_spec).
2338 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2339 (CPP_PREDEFINES): Remove.
2340 (SUBTARGET_EXTRA_SPECS): Define.
2341 (CPP_SPEC): Use %(netbsd_cpp_spec).
2342 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2343 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2344 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2345 Add netbsd_cpp_spec.
2346 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2348 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2349 Zack Weinberg <zack@codesourcery.com>
2351 * cppexp.c (cpp_num): Move to cpplib.h.
2352 (CPP_ERROR): Remove.
2353 (interpret_float_suffix, interpret_int_suffix): New.
2354 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2355 (cpp_classify_number, cpp_interpret_integer): New.
2356 (interpret_number): Remove.
2357 (eval_token): Update to use new routines.
2358 * cpphash.h (cpp_num_part): Move to cpplib.h.
2359 * cppinit.c (cpp_post_options): Set warn_long_long.
2360 * cpplib.h (struct cpp_options): Add warn_long_long.
2361 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2362 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2363 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2364 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2365 cpp_interpret_integer): New.
2367 2002-05-29 Joel Sherrill <joel@OARcorp.com>
2369 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2371 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2373 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2374 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2375 (CPP_SUBTARGET_SPEC): Define.
2376 (SUBTARGET_EXTRA_SPECS): Define.
2379 2002-05-29 Chris Lattner <sabre@nondot.org>
2381 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2382 prevent confusion if/when the register is defined.
2384 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2387 * config/cris/cris.md: Fix typos and thinkos in comments.
2388 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2390 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2391 ("*mov_sideqi_mem"): Similar, but for operand 3.
2392 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2393 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2394 Remove spurious mode specifier on operand 2.
2396 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2398 * config/h8300/h8300-protos.h: Remove the prototype for
2400 Add prototypes for single_one_operand and single_zero_operand.
2401 * config/h8300/h8300.c (o_operand): Remove.
2402 (single_one_operand): New.
2403 (single_zero_operand): Likewise.
2404 (print_operand): For 'V' operand, and the operand with 0xff.
2405 For 'V' and 'W' operands, do not and the bit position with 7.
2406 * config/h8300/h8300.md (various anonymous patterns): Replace
2407 use of exact_log2 with single_one_operand/single_zero_operand.
2409 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2411 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2413 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2415 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2416 accept symbolic LARL operands.
2417 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2420 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2422 * config/s390/s390.md (cmpstr_64/31): Mark whole
2423 input registers as used.
2425 2002-05-28 Richard Henderson <rth@redhat.com>
2427 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2428 not current_function_uses_pic_offset_table and
2429 current_function_uses_const_pool; examine current_function_profile.
2430 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2431 input to blockage if needed.
2432 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2433 (legitimize_pic_address): Likewise. Set regs_ever_live for
2434 pic_offset_table_rtx when invoked during reload.
2435 * config/i386/i386.h (FINALIZE_PIC): Remove.
2436 * config/i386/i386.md (tablejump): Reformat. Do not set
2437 current_function_uses_pic_offset_table.
2438 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2439 (blockage): Accept anything as operand 0.
2441 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2443 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2444 common CPP built-ins for all NetBSD a.out targets.
2445 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2446 common CPP built-ins for all NetBSD ELF targets.
2447 * config/netbsd.h: Add missing notice.
2448 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2449 for all NetBSD targets.
2450 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2451 for all NetBSD targets using an LP64 code model.
2452 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2455 2002-05-28 Richard Henderson <rth@redhat.com>
2457 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2458 update if UPDATE_LIFE_LOCAL.
2460 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2462 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2464 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2465 Jason R. Thorpe <thorpej@wasabisystems.com>
2467 config/sh reorganization to factor out endianness and coff:
2469 * config/sh/little.h: New file.
2470 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2471 defined, define to 0 to select big-endian.
2472 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2473 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2474 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2475 * config/sh/t-be: New file.
2476 * config/sh/t-le: New file.
2478 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2479 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2480 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2481 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2482 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2483 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2484 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2485 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2486 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2487 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2488 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2489 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2490 (LINK_SPEC): Define to SH_LINK_SPEC.
2491 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2492 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2493 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2494 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2495 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2496 * config/sh/coff.h: New file.
2497 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2498 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2499 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2500 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2501 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2502 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2503 (PTRDIFF_TYPE): Likewise.
2504 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2505 (CPP_PREDEFINES): Don't define.
2506 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2507 (LINK_SPEC): Define to SH_LINK_SPEC.
2508 (LINK_EMUL_PREFIX): Redefine.
2509 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2510 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2511 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2512 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2513 (TARGET_OS_CPP_BUILTINS): Define.
2514 (TARGET_DEFAULT): Redefine.
2515 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2516 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2517 (LINK_SPEC): Don't redefine.
2518 (LINK_DEFAULT_CPU_EMUL): Redefine.
2519 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2520 * sh.c (sh_asm_named_section): Don't declare / define.
2521 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2522 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2523 (sh64-*-elf* tm_file): Likewise.
2524 (sh-*-rtemself* tm_file): Likewise.
2525 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2526 (sh-*-linux* tmake_file): Add sh/t-le.
2527 (sh-*-rtems* tm_file): Add sh/coff.h
2528 (sh-*-* tm_file): Likewise.
2530 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2532 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2533 CONSTANT_POOL_ADDRESS_P.
2535 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2537 2002-05-28 David Edelsohn <edelsohn@gnu.org>
2538 Jeff Law <law@redhat.com>
2540 * optabs.c (expand_binop): Fix nwords sign warnings.
2541 generate pseudo for add_optab.
2543 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2544 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2546 2002-05-28 Marc Espie <espie@openbsd.org>
2548 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
2549 inherited from gas.h.
2550 (ASM_QUAD): Undef. OpenBSD does not support it.
2552 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2554 * doc/install.texi (binaries): Change mingw binaries
2555 link to www.mingw.org.
2557 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2559 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2561 2002-05-28 Richard Henderson <rth@redhat.com>
2563 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2564 bottom alignment for leaf functions.
2566 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2568 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2569 config/sparc/sol2-g1.asm: Delete unused files.
2571 2002-05-28 Richard Henderson <rth@redhat.com>
2573 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2575 * flow.c (calculate_global_regs_live): Rename call_used to
2576 invalidated_by_call. Initialize from regs_invalidated_by_call
2577 instead of call_used_regs.
2579 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2582 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2584 * tree.h: Don't include real.h.
2585 Forward-declare struct realvaluetype.
2586 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2588 (TREE_REAL_CST_PTR): New accessor.
2589 (TREE_REAL_CST): Update.
2590 * real.h: Include machmode.h.
2591 (realvaluetype): Make it struct realvaluetype, not a typedef.
2592 (build_real): Prototype here.
2594 * tree.c: Include real.h.
2595 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2596 object in GC memory, set TREE_REAL_CST_PTR to point to it.
2597 (build_real_from_int_cst): Use build_real.
2598 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2601 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2602 fold-const.c, print-tree.c, real.c: Include real.h.
2603 * Makefile.in: Update dependency lists.
2605 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2607 * basic-block.h (last_basic_block): Declare.
2608 (expunge_block_nocompact): Declaration removed.
2609 (compact_blocks): Declare.
2610 * cfg.c (last_basic_block): New variable.
2611 (expunge_block_nocompact): Removed.
2612 (expunge_block): Do not compact basic blocks.
2613 (compact_blocks): New.
2614 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2616 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2618 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2619 real positions of blocks.
2620 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2622 (cleanup_cfg): Compact blocks.
2623 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2624 basic_block_info varray.
2625 (flow_delete_block): Comment update.
2626 (back_edge_of_syntactic_loop_p): Modify position check code.
2627 (verify_flow_info): Update checking.
2628 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2629 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2630 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2631 indices no longer change.
2632 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2634 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2635 * profile.c (branch_prob): Compact blocks.
2636 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2639 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2641 * config/h8300/h8300.md (two anonymous patterns): New.
2643 2002-05-28 David S. Miller <davem@redhat.com>
2645 * config/sparc/sparc.md (cpu): Tidy.
2646 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2648 (in_call_delay): Delete reference to 'return' type.
2649 (eligible_for_return_delay, in_return_delay, define_delay
2650 referencing those): Delete.
2651 (rest of file): Use new type attributes as appropriate.
2652 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2653 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2654 * config/sparc/ultra1_2.md (us1_single): New reservation.
2655 (us1_ialuX): Likewise.
2656 * config/sparc/ultra3.md (us3_single): Likewise.
2657 (us3_ialuX): Likewise.
2658 (us3_imul, us3_idiv): Tweak.
2660 2002-05-28 Richard Henderson <rth@redhat.com>
2662 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2665 2002-05-28 Richard Henderson <rth@redhat.com>
2667 * config.gcc: Obsolete mn10200.
2669 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
2671 * cppexp.c (interpret_number): Optimize for single-digit
2672 and less-than-half-precision cases.
2673 (num_trim, num_positive, num_div_op): Cast constants.
2675 2002-05-27 Bo Thorsen <bo@suse.de>
2677 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2678 3.1 branch. The file was made by Jakub Jelinek.
2679 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2680 support so multilib doesn't break. And don't define this at all
2681 when -Dinhibit_libc is used.
2682 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2683 * config/i386/t-linux64: Implement full multilib support. Patch
2684 originally done by Andreas Jaeger and Jakub Jelinek.
2686 2002-05-27 Roger Sayle <roger@eyesopen.com>
2688 * c-common.c: Add support for __attribute__((nothrow)) to specify
2689 that a function cannot throw an exception (using TREE_NOTHROW).
2690 (handle_nothrow_attribute): New function to process this attribute.
2692 * doc/extend.texi: Document the new nothrow function attribute.
2694 2002-05-27 H.J. Lu (hjl@gnu.org)
2696 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2697 (num_positive): Likewise.
2698 (num_div_op): Likewise.
2700 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2702 * c-common.c (c_common_init): Always use intmax_t.
2704 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2706 * c-common.c (c_common_init): Use intmax_t for now.
2708 2002-05-24 Andrew Haley <aph@redhat.com>
2710 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2711 if T is a boolean type.
2713 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2715 * basic-block.h (last_basic_block): Defined as synonym for
2717 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2718 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2719 flow_dfs_compute_reverse_init): Replaced relevant occurences of
2720 n_basic_blocks with last_basic_block.
2721 * cfgbuild.c (make_edges): Likewise.
2722 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2723 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2724 * combine.c (combine_instructions): Likewise.
2725 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2726 iterative_dataflow_bitmap): Likewise.
2727 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2728 calc_idoms, idoms_to_doms): Likewise.
2729 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2731 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2732 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2733 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2734 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2735 delete_null_pointer_checks, compute_code_hoist_vbeinout,
2736 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2737 compute_store_table, build_store_vectors): Likewise.
2738 * haifa-sched.c (sched_init): Likewise.
2739 * ifcvt.c (if_convert): Likewise.
2740 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2741 pre_edge_lcm, compute_available, compute_nearerout,
2742 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2744 * predict.c (estimate_probability, process_note_prediction,
2745 note_prediction_to_br_prob): Likewise.
2746 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2747 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2748 * regrename.c (copyprop_hardreg_forward): Likewise.
2749 * resource.c (init_resource_info): Likewise.
2750 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2751 init_regions, schedule_insns): Likewise.
2752 * ssa-ccp.c (ssa_const_prop): Likewise.
2753 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2754 * ssa.c (compute_dominance_frontiers,
2755 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2757 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2758 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2761 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2763 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2765 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2766 hoist_insn_after, hoist_insn_to_edge): New.
2768 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
2770 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2771 (PROP_FINAL): Include.
2772 * flow.c (life_analysis, update_life_info,
2773 init_propagate_block_info, mark_set_1, mark_used_rgs):
2774 Support SCAN_DEAD_STORE.
2776 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2778 * c-common.c (c_common_init): Set CPP arithmetic precision.
2779 * cppexp.c (cpp_num_part): Move typedef ...
2780 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2781 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2782 (sanity_checks): Update.
2784 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
2786 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2787 (mkheaders): New rule.
2788 (install-mkheaders): New rule.
2789 * configure.in (all_outputs): Add mkheaders.
2790 * configure: Regenerate.
2791 * mkheaders.in: New file.
2793 2002-05-26 Jakub Jelinek <jakub@redhat.com>
2795 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2797 2002-05-26 Andreas Jaeger <aj@suse.de>
2799 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2801 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
2803 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2804 right_shift): Remove.
2805 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2807 (struct op): Use cpp_num.
2808 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2809 num_part_mul, num_unary_op, num_binary_op, num_negate,
2810 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2811 num_div_op, num_lshift, num_rshift, append_digit): New.
2812 (interpret_number, parse_defined, eval_token, reduce): Update
2813 for two-integer arithmetic.
2814 (binary_handler): New typedef.
2816 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2817 (_cpp_parse_expr, reduce): Update to handle two-integers.
2818 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2820 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2822 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2823 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2824 branch insn into account, do not assume 1.
2825 (avr_out_sbxx_branch): New function. Optimize cases of skipping
2826 over single word insn. Handle upper half of I/O space too.
2827 * config/avr/avr.md (*sbrx_branch): Use it.
2828 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2829 (*sbix_branch, *sbix_branch_bit7): Likewise.
2830 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2831 Use RTL peepholes to optimize register operand sign tests.
2833 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2835 * config/avr/avr.c (avr_asm_only_p): New variable.
2836 (avr_override_options): Set it here if AVR1.
2837 (asm_file_start): Test it here, report an error if set.
2839 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
2841 * alias.c: Fix formatting.
2842 * attribs.c: Likewise.
2843 * bb-reorder.c: Likewise.
2844 * bitmap.c: Likewise.
2845 * bitmap.h: Likewise.
2846 * builtins.c: Likewise.
2848 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2850 * reload.c (find_valid_class): Accept new argument DEST,
2851 choose class accordingly.
2852 (push_reload): Update callers.
2854 2002-05-26 Andreas Jaeger <aj@suse.de>
2856 * combine.c (combine_instructions): Do not indent #if for
2859 2002-05-25 Richard Henderson <rth@redhat.com>
2861 * c-pragma.c (apply_pragma_weak): Convert value identifier to
2862 string for decl_attributes.
2863 (handle_pragma_weak): Call assemble_alias if we're modifying
2866 2002-05-25 Richard Henderson <rth@redhat.com>
2869 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2870 using rtl instead of fprintf.
2871 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2872 * config/sparc/sparc-protos.h: Update.
2874 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
2876 * Makefile.in (C_COMMON_H): Fix.
2877 Update other targets.
2878 * c-common.c: Don't include c-lex.h.
2879 (builtin_define_with_value): Make static and prototype.
2880 (builtin_define_std): Move from c-lex.h.
2881 * c-common.h (init_c_lex): Move from c-lex.h.
2882 * c-decl.c: Don't include c-lex.h.
2883 (make_pointer_declarator): Move from c-parse.in.
2884 * c-lex.c: Don't include c-lex.h.
2886 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2887 (make_pointer_declarator): Move to c-decl.c.
2888 * c-pragma.c: Don't include c-lex.h.
2889 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
2890 * c-tree.h (make_pointer_declarator): New.
2892 * passes.texi, tm.texi: Update.
2894 * Make-lang.in: Update and correct.
2895 * objc-act.c: Don't include c-lex.h or cpplib.h.
2897 * treetree.c: Don't include c-lex.h.
2899 * darwin-c.c: Don't include c-lex.h.
2900 * c4x/c4x-c.c: Don't include c-lex.h.
2901 * c4x/t-c4x: Update.
2902 * i370/i370-c.c: Don't include c-lex.h.
2903 * i370/t-i370: Update.
2904 * i960/i960-c.c: Don't include c-lex.h.
2905 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
2906 * i960/t-960bare: Update.
2907 * i960/t-vxworks: Update.
2908 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
2909 * rs6000/t-darwin: Update.
2910 * rs6000/t-rs6000-c-rule: Update.
2911 * v850/v850-c.c: Don't include c-lex.h.
2912 * v850/v850.c: Don't include c-lex.h or cpplib.h.
2915 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2917 * tree.def: Fix typos.
2918 * doc/install.texi: Likewise.
2920 2002-05-25 Richard Henderson <rth@redhat.com>
2922 * configure.in (HAVE_AS_TLS): Add ia64 test.
2923 * configure: Rebuild.
2924 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
2925 (override_options): Set it.
2926 (TARGET_HAVE_TLS): New.
2927 (sdata_symbolic_operand): Look for 's'.
2928 (tls_symbolic_operand): New.
2929 (ia64_expand_load_address): Abort for tls symbols.
2930 (gen_tls_get_addr): New.
2931 (gen_thread_pointer): New.
2932 (ia64_expand_move): Split out from movdi. Handle tls symbols.
2933 (rtx_needs_barrier): Add new unspecs.
2934 (ia64_encode_section_info): Handle tls symbols.
2935 (ia64_strip_name_encoding): Strip two encoding chars.
2936 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
2937 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
2938 (TARGET_OPTIONS): Add tls-size.
2939 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
2940 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
2941 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
2942 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
2943 (movsf, movdf): Likewise.
2944 (movdi_symbolic): Use match_scratch. Don't split if we won't
2945 have a scratch availiable.
2946 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
2947 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
2948 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
2949 * config/ia64/ia64-protos.h: Update.
2950 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2951 sdata_symbolic_operand.
2952 (ASM_OUTPUT_LABELREF): Strip two characters.
2954 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2956 * combine.c (simplify_set): Remove an unnecessary subreg.
2958 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
2960 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
2962 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
2964 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
2966 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
2968 2002-05-25 Roger Sayle <roger@eyesopen.com>
2970 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
2971 (cond (compare x y) 0) into the equivalent (cond x y).
2973 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
2975 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
2977 2002-05-24 Zack Weinberg <zack@codesourcery.com>
2979 * config.gcc: Remove all stanzas for previously obsoleted
2980 systems. Where necessary, add explicit error stanzas to
2981 prevent removed systems from being misidentified as something
2982 else. Begin a fresh obsoletions list, with the systems that
2983 were reprieved last round.
2984 * doc/install.texi: Remove all mention of dead targets.
2985 * fixinc/mkfixinc.sh: Likewise.
2987 * config/arm/arm.h: Bit 31 of target_flags is no longer
2990 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
2991 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
2992 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
2993 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
2994 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
2995 config/alpha/osf12.h, config/alpha/osf2or3.h,
2996 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
2997 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
2998 config/clipper/clipper-protos.h, config/clipper/clipper.c,
2999 config/clipper/clipper.h, config/clipper/clipper.md,
3000 config/clipper/clix.h, config/convex/convex-protos.h,
3001 config/convex/convex.c, config/convex/convex.h,
3002 config/convex/convex.md, config/convex/fixinc.convex,
3003 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3004 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3005 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3006 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3007 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3008 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3009 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3010 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3011 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3012 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3013 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3014 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3015 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3016 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3017 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3018 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3019 config/m68k/altos3068.h, config/m68k/apollo68.h,
3020 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3021 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3022 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3023 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3024 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3025 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3026 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3027 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3028 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3029 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3030 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3031 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3032 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3033 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3034 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3035 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3036 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3037 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3038 config/mips/dec-osf1.h, config/mips/elflorion.h,
3039 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3040 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3041 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3042 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3043 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3044 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3045 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3046 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3047 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3048 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3049 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3050 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3051 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3052 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3053 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3054 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3057 2002-05-24 Richard Henderson <rth@redhat.com>
3059 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3060 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3061 * config/i386/i386.c (tls_model_chars): Add leading space.
3062 (tls_symbolic_operand): Don't bias by 1.
3063 (legitimize_address): Don't unbias by 1.
3065 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3067 * lcm.c (optimize_mode_switching): Change bb used as indices
3070 2002-05-24 Richard Henderson <rth@redhat.com>
3072 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3073 of update_life_info_in_dirty_blocks.
3075 2002-05-24 Jakub Jelinek <jakub@redhat.com>
3078 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3080 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3082 PR preprocessor/6780
3083 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3085 2002-05-24 Jim Blandy <jimb@redhat.com>
3087 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3088 entry with a type code of zero, marking the end of the compilation
3091 2002-05-24 Richard Henderson <rth@redhat.com>
3093 * varasm.c (asm_output_bss): Always output one byte.
3094 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3096 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3098 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3101 2002-05-24 Andreas Jaeger <aj@suse.de>
3103 * ggc-page.c (alloc_page): Cast variables of type size_t to
3104 unsigned long, adjust printf format string.
3105 (ggc_alloc): Likewise.
3106 (ggc_print_statistics): Likewise.
3107 (ggc_print_statistics): Correct printf format string for SCALE to
3110 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3112 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3114 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
3115 Zack Weinberg <zack@codesourcery.com>
3117 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3119 * dwarf2out.c (lookup_filename): Properly quote filename in .file
3120 directive in assembly file.
3121 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3122 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3123 * config/pj/pj.h (ASM_FILE_START): Likewise.
3124 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3125 * config/avr/avr.c (asm_file_end): Likewise.
3126 * toplev.c (output_quoted_string): Handle possibly signed plain
3128 * toplev.h (output_clean_symbol_name): Declare
3129 * toplev.c (output_clean_symbol_name): Define.
3130 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3131 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3133 2002-05-24 Alan Modra <amodra@bigpond.net.au>
3135 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3137 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3139 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3140 of size of unsigned.
3142 2002-05-23 Richard Henderson <rth@redhat.com>
3144 * configure.in (HAVE_AS_TLS): New test.
3145 * config.in, configure: Rebuild.
3146 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3147 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3148 (override_options): Set it.
3149 (tls_model_chars, tls_symbolic_operand): New.
3150 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3151 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3152 (local_exec_symbolic_operand): New.
3153 (get_pic_label_name): Merge into output_set_got.
3154 (ix86_asm_file_end): Emit pic_label_name if defined.
3155 (legitimate_constant_p, constant_address_p): New.
3156 (legitimate_pic_operand_p): New.
3157 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3158 (legitimate_address_p): Likewise.
3159 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3160 (ix86_strip_name_encoding): New.
3161 (get_thread_pointer): New.
3162 (legitimize_address): Handle tls symbols.
3163 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3165 (struct machine_function): Add some_ld_name.
3166 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3167 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3168 (output_addr_const_extra): New.
3169 (maybe_get_pool_constant): New.
3170 (ix86_split_to_parts): Use it.
3171 (ix86_expand_move): Handle tls symbols.
3172 (ix86_tls_get_addr): New.
3173 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3174 (TARGET_OPTIONS): Add tls-dialect.
3175 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3176 (LEGITIMATE_CONSTANT_P): Likewise.
3177 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3178 (TARGET_STRIP_NAME_ENCODING): New.
3179 (ASM_OUTPUT_LABELREF): New.
3180 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3181 (OUTPUT_ADDR_CONST_EXTRA): New.
3182 (PREDICATE_CODES): Update.
3183 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3184 * config/i386/i386.md: Regroup and renumber unspec constants.
3185 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3186 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3187 (tls_global_dynamic, tls_local_dynamic_base): New.
3188 (tls_local_dynamic_once): New.
3189 * config/i386/i386-protos.h: Update.
3191 2002-05-23 Richard Henderson <rth@redhat.com>
3193 * genemit.c (gen_insn): Print file:lineno comment before function.
3195 * gensupport.c (struct queue_elem): Add filename member.
3196 (queue_pattern): Initialize it; update all callers.
3197 (process_include): Don't free filename.
3198 (read_md_rtx): Set read_rtx_filename.
3200 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
3202 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3204 2002-05-23 Richard Henderson <rth@redhat.com>
3206 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3208 2002-05-23 Richard Henderson <rth@redhat.com>
3210 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3211 commentary from Mark.
3213 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3215 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3216 Use FOR_EACH_BB macros to iterate over basic block chain.
3217 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3218 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3220 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3221 find_unreachable_blocks, create_edge_list, verify_edge_list,
3222 remove_fake_edges, add_noreturn_fake_exit_edges,
3223 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3225 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3226 find_sub_basic_blocks): Likewise.
3227 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3229 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3231 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3233 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3234 commit_edge_insertions, commit_edge_insertions_watch_calls,
3235 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3236 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3237 * conflict.c (conflict_graph_compute): Likewise.
3238 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3239 df_modified_p, df_refs_unlink, df_dump): Likewise.
3240 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3241 * final.c (compute_alignments): Likewise.
3242 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3243 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3244 count_or_remove_death_notes): Likewise.
3245 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3246 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3247 classic_gcse, compute_transp, cprop, compute_pre_data,
3248 compute_transpout, invalidate_nonnull_info,
3249 delete_null_pointer_checks_1, delete_null_pointer_checks,
3250 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3251 compute_store_table, build_store_vectors, store_motion): Likewise.
3252 * global.c (global_conflicts, mark_elimination): Likewise.
3253 * graph.c (print_rtl_graph_with_bb): Likewise.
3254 * haifa-sched.c (sched_init): Likewise.
3255 * ifcvt.c (if_convert): Likewise.
3256 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3257 compute_available, compute_nearerout, compute_rev_insert_delete,
3258 optimize_mode_switching): Likewise.
3259 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3260 * predict.c (estimate_probability, note_prediction_to_br_prob,
3261 propagate_freq, counts_to_freqs, expensive_function_p,
3262 estimate_bb_frequencies): Likewise.
3263 * profile.c (instrument_edges, get_exec_counts,
3264 compute_branch_probabilities, compute_checksum, branch_prob,
3265 find_spanning_tree): Likewise.
3266 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3267 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3269 * regclass.c (scan_one_insn, regclass): Likewise.
3270 * regmove.c (mark_flags_life_zones, regmove_optimize,
3271 record_stack_memrefs): Likewise.
3272 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3273 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3274 * resource.c (find_basic_block): Likewise.
3275 * sched-ebb.c (schedule_ebbs): Likewise.
3276 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3277 find_single_block_region, find_rgns, schedule_insns)
3278 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3279 * ssa-ccp.c (optimize_unexecutable_edges,
3280 ssa_ccp_df_delete_unreachable_insns): Likewise.
3281 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3282 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3283 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3284 compute_coalesced_reg_partition, rename_equivalent_regs,
3285 convert_from_ssa): Likewise.
3286 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3287 process_for_unwind_directive): Likewise.
3289 * df.c (FOR_ALL_BBS): Removed.
3290 * gcse.c (struct null_pointer_info): Type of current_block field
3292 (struct reg_avail_info): Type of last_bb field changed.
3293 * config/ia64/ia64.c (block_num): Removed.
3294 (need_copy_state): Type changed.
3297 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3299 * cppinit.c (mark_named_operators): Split out from init_builtins.
3300 (cpp_finish_options): Call it from here instead.
3302 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3304 * builtin-attrs.def: Update copyright years.
3305 (ATTR_NONNULL): New attribute identifier.
3306 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3307 attribute tree lists.
3308 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3310 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3311 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3312 attribute lists. Chain the appropriate nonnull attribute.
3313 * c-format.c (check_format_arg): Remove null format string
3315 * testsuite/gcc.dg/format/null-1.c: New test.
3317 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3319 * Makefile.in (ADAC): Define.
3321 (.SUFFIXES): Move before language makefile fragments.
3322 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3324 2002-05-23 Mark Mitchell <mark@codesourcery.com>
3326 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3329 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3331 * cfg.c (dump_flow_info): Print results of
3332 maybe_hot/probably_never_executed predicates.
3333 * toplev.c (open_dump_file): Print function frequency.
3335 2002-05-23 David S. Miller <davem@redhat.com>
3337 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3340 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3342 * c-common.c (warn_nonnull): Declare.
3343 (c_common_attribute_table): Add "nonnull" attribute.
3344 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3345 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3346 check_function_arguments_recurse): New functions.
3347 * c-common.h (warn_nonnull): Declare extern.
3348 (check_function_arguments, check_function_arguments_recurse): New
3350 * c-decl.c (c_decode_option): Add -Wnonnull option.
3351 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3353 (format_check_context): New structure.
3354 (check_format_info_recurse): Remove recursion and rename to...
3355 (check_format_arg): ...this. Update comment.
3356 (check_format_info): Use check_function_arguments_recurse.
3357 * c-typeck.c (build_function_call): Call check_function_arguments
3358 instead of check_function_format.
3359 * doc/extend.texi: Document "nonnull" attribute.
3360 * doc/invoke.texi: Docuemnt -Wnonnull option.
3361 * testsuite/gcc.dg/nonnull-1.c: New test.
3362 * testsuite/gcc.dg/nonnull-2.c: New test.
3364 2002-05-23 David S. Miller <davem@redhat.com>
3366 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3367 * cfgcleanup.c (cleanup_cfg): If it is set do not
3368 attempt to delete trivially dead insns.
3369 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3370 * toplev.c (rest_of_compilation): Document non-trivial aspect
3371 the RTL before optimize_save_area_alloca is run.
3373 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3375 * c-lex.c (indent_level): Remove.
3376 (cb_file_change, c_lex): Remove indent level handling.
3377 * c-lex.h (indent_level): Remove.
3378 * input.h (struct file_stack): Remove indent_level.
3379 * toplev.c (push_srcloc): Remove indent_level handling.
3381 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3384 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3385 of x in constraints for clarity.
3386 (sse_mov?fcc split): abort if op2 == op3.
3387 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3388 sse_movsfcc_const0_4): Add earlyclobber.
3389 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3390 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3391 Use Y instead of x in constraints.
3393 2002-05-23 Richard Henderson <rth@redhat.com>
3395 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3396 (C++98 Thread-Local Edits): New subsection.
3398 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3399 (ix86_arch): Set type to enum processor_type.
3401 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3402 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3404 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3406 * configure.in: Fix as version test for binutils 2.12.1 releases
3408 * configure: Rebuilt.
3410 2002-05-23 Richard Henderson <rth@redhat.com>
3412 * config/i386/i386.c (get_pic_label_name): New.
3413 (load_pic_register): Remove.
3414 (output_set_got): New.
3415 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3416 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3417 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3418 (prologue_set_got, prologue_get_pc): Remove.
3419 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3420 (builtin_setjmp_receiver): Use gen_set_got.
3421 * config/i386/i386-protos.h: Update.
3423 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3425 * gcse.c (hash_expr): Do not use alias set for hashing.
3427 2002-05-22 Kevin Buettner <kevinb@redhat.com>
3429 * dbxout.c (dbxout_class_name_qualifiers): New function.
3430 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3432 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3434 * cpperror.c (_cpp_begin_message): No special casing
3436 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3437 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3438 * cpplib.c (do_include_common): Use DL_ERROR.
3439 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3441 * fix-header.c (read_scan_file): Update.
3443 2002-05-22 Richard Henderson <rth@redhat.com>
3445 * config/i386/i386.c (ix86_expand_call): New function, extracted
3446 from md call patterns. Add pic_offset_table_rtx to
3447 CALL_INSN_FUNCTION_USAGE when needed.
3448 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3449 (call_value_pop, call_value, untyped_call): Likewise.
3450 (call_exp, call_value_exp): Remove.
3451 * config/i386/i386-protos.h: Update.
3453 2002-05-22 Richard Henderson <rth@redhat.com>
3455 * varasm.c (default_section_type_flags): Check for VAR_DECL
3456 before using DECL_THREAD_LOCAL.
3458 2002-05-22 David Edelsohn <edelsohn@gnu.org>
3460 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3461 (STARTFILE_SPEC): Delete PE crt0.o.
3462 * config/rs6000/aix51.h: Same.
3463 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3464 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3465 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3466 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3467 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3469 2002-05-22 Richard Henderson <rth@redhat.com>
3471 * varasm.c (default_section_type_flags): Handle tls data and
3473 (default_unique_section): Handle tls sections.
3475 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3477 * configure.in (CROSS): Define NATIVE_CROSS.
3478 * configure: Regenerate.
3479 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3480 (startfile_prefix_spec): New var.
3481 (static_specs): Add startfile_prefix_spec.
3482 (do_spec_2): Split out from..
3484 (main): Process startfile_prefix_spec.
3485 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3487 (STARTFILE_PREFIX_SPEC): Define.
3488 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3491 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3493 * cpperror.c: Fix formatting.
3494 * cppexp.c: Likewise.
3495 * cppfiles.c: Likewise.
3496 * cpphash.c: Likewise.
3497 * cpphash.h: Likewise.
3498 * cppinit.c: Likewise.
3499 * cpplex.c: Likewise.
3500 * cpplib.c: Likewise.
3501 * cppmacro.c: Likewise.
3502 * cppmain.c: Likewise.
3503 * cppspec.c: Likewise.
3505 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3507 * combine.c (force_to_mode): Use gen_int_mode.
3508 Don't clear CONST_INT bits outside of mode.
3510 2002-05-22 Richard Henderson <rth@redhat.com>
3512 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3513 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3515 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3518 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3519 if DECL_SIZE_UNIT is INTEGER_CST.
3521 2002-05-22 Richard Henderson <rth@redhat.com>
3523 * flow.c (life_analysis): Delete broken reg_label check.
3525 2002-05-22 Richard Henderson <rth@redhat.com>
3527 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3528 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3530 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3532 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3533 (embed-bb.c): New rule.
3534 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3535 * config/sh/embed_bb.c: Delete.
3537 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3539 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3541 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3543 * config/h8300/h8300.md (*andorqi3): New.
3545 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3547 PR preprocessor/6517
3548 * Makefile.in: Update.
3549 * c-common.c (c_common_post_options): Add preprocessor
3550 errors to the error count.
3551 * c-lang.c (c_post_options): Kill.
3552 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3553 * hooks.h: Add header guards.
3554 * langhooks-def.h: Include hooks.h.
3555 (LANG_HOOKS_POST_OPTIONS): Update.
3556 * langhooks.h (struct lang_hooks): Update post_options.
3557 * toplev.c (parse_options_and_default_flags): Update.
3559 * objc-lang.c (objc_post_options): Kill.
3560 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3562 2002-05-21 Bruce Korb <bkorb@gnu.org>
3564 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3565 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3566 * fixinc/fixincl.x: regen.
3568 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3570 * cfgbuild.c: Fix formatting.
3572 * cfgcleanup.c: Likewise.
3573 * cfglayout.c: Likewise.
3574 * cfgloop.c: Likewise.
3575 * cfgrtl.c: Likewise.
3577 2002-05-21 Richard Henderson <rth@redhat.com>
3579 * c-common.h (enum rid): Add RID_THREAD.
3580 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3581 (grokdeclarator): Grok __thread.
3582 * c-parse.in (reswords): Add __thread.
3583 (rid_to_yy): Add RID_THREAD.
3585 * tree.h (DECL_THREAD_LOCAL): New.
3586 (struct tree_decl): Add thread_local_flag.
3587 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3588 * tree.c (staticp): TLS variables are not static.
3590 * target-def.h (TARGET_HAVE_TLS): New.
3591 * target.h (have_tls): New.
3592 * output.h (SECTION_TLS): New.
3593 * varasm.c (assemble_variable): TLS variables can't be common for now.
3594 (default_section_type_flags): Handle .tdata and .tbss.
3595 (default_elf_asm_named_section): Handle SECTION_TLS.
3596 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3598 * flags.h (flag_tls_default): Declare.
3599 * toplev.c (flag_tls_default): Define.
3600 (display_help): Display help for it.
3601 (decode_f_option): Set it.
3603 * doc/extend.texi (Thread-Local): New node describing language-level
3604 thread-local storage.
3605 * doc/invoke.texi (-ftls-model): Document.
3607 * fixinc/inclhack.def (thread_keyword): New.
3608 * fixinc/fixincl.x: Rebuild.
3610 2002-05-21 Jeffrey A Law <law@redhat.com>
3612 * optabs.c (expand_binop): For double-word integer multiplies,
3613 do not compute intermediate results into something that is
3614 not a register (such as a SUBREG or MEM).
3616 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3617 (ix86_sched_reorder): Make sure to initialize scheduling
3618 data even when there's only one insn in the ready queue.
3620 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3622 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3624 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3626 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3627 set_el_t. Transform the hash value into unsigned.
3628 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3629 (transform_3): Add code to process `(A,B)+(D,E)'.
3631 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3633 * reload1.c (do_output_reload): Run delete_output_reload
3636 2002-05-21 Roger Sayle <roger@eyesopen.com>
3639 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3640 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3641 (can_store_by_pieces): ... and here to limit the largest mode used.
3642 Add a comment to document this function.
3644 2002-05-21 Richard Henderson <rth@redhat.com>
3646 * flow.c (life_analysis): Fix test for deleted label.
3648 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
3650 * doc/tm.texi: Fix typo.
3652 2002-05-21 Zack Weinberg <zack@codesourcery.com>
3654 * c-common.c (c_common_init): Set options->unsigned_char from
3656 (cb_register_builtins): Define __STRICT_ANSI__ and
3657 __CHAR_UNSIGNED__ here...
3658 * cppinit.c (init_builtins): Not here.
3659 (cpp_create_reader): unsigned_char option defaults to 0, not
3660 !DEFAULT_SIGNED_CHAR.
3661 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3662 and -funsigned-char.
3664 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3665 * cpphash.c (_cpp_init_hashtable): Don't set it.
3666 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3667 directly. Clarify comment.
3669 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3671 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3672 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
3673 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
3674 BASIC_BLOCK (n_basic_blocks - 1).
3675 * cfganal.c (can_fallthru, flow_call_edges_add,
3676 flow_preorder_transversal_compute): Too.
3677 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3678 find_sub_basic_blocks): Too.
3679 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
3680 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
3681 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3682 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
3683 * combine.c (this_basic_block): Type changed to basic_block.
3684 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3685 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3686 get_last_value, distribute_notes, distribute_links): Too.
3687 * final.c (compute_alignments): Too.
3688 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3689 * function.c (thread_prologue_and_epilogue_insns): Too.
3690 * gcse.c (compute_code_hoist_vbeinout): Too.
3691 * global.c (build_insn_chain): Too.
3692 * ifcvt.c (find_if_block, find_cond_trap): Too.
3693 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3694 * regmove.c (regmove_optimize): Too.
3695 * resource.c (find_basic_block): Too.
3696 * sched-ebb.c (schedule_ebbs): Too.
3697 * ssa-dce.c (find_control_dependence, find_pdom): Too.
3699 2002-05-21 Andreas Jaeger <aj@suse.de>
3701 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3703 2002-05-21 Richard Henderson <rth@redhat.com>
3705 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3706 unspec names, not numbers.
3708 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
3710 * doc/sourcebuild.texi: Mention snapshot-README and
3711 snapshot-index.html as needing updating for new front ends.
3713 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3715 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3716 disabling checking, and avoid multiple evaluation of RTX.
3718 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
3720 * bitmap.c (bitmap_find_bit): Return early if we have the correct
3723 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3725 * profile.c (gen_edge_profiler): Set alias set before the memory is
3728 2002-05-20 David S. Miller <davem@redhat.com>
3730 * cselib.c (max_value_regs): New.
3731 (cselib_lookup, cselib_invalidate_regno): Initialize it when
3732 adding new entries to the REG_VALUES table and we are dealing with
3734 (clear_table): Initialize it.
3735 (cselib_invalidate_regno): Use it to determine which hard
3736 registers to scan when mode is not VOIDmode.
3738 2002-05-20 Duraid Madina <duraid@fl.net.au>
3740 * tradcpp.c (fixup_newlines): Use old-style function header.
3742 2002-05-20 Krister Walfridsson <cato@df.lth.se>
3744 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3746 2002-05-20 H.J. Lu (hjl@gnu.org)
3748 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3750 * config/mips/mips.h (DFMODE_NAN): Defined.
3751 (SFMODE_NAN): Likewise.
3753 2002-05-20 Dale Johannesen <dalej@apple.com>
3755 * combine.c (cant_combine_insn_p): Back out my
3758 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3760 * params.c: Fix formatting.
3761 * params.h: Likewise.
3762 * predict.c: Likewise.
3763 * prefix.c: Likewise.
3764 * print-rtl.c: Likewise.
3765 * print-tree.c: Likewise.
3766 * profile.c: Likewise.
3768 2002-05-20 H.J. Lu (hjl@gnu.org)
3770 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3772 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3774 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3775 switches straight on to the assembler, do not abbreviate them.
3776 * config/arm/elf.h (ASM_SPEC): As above.
3777 * config/arm/semi.h (ASM_SPEC): As above.
3778 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3779 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3780 -mcpu=xscale on to the assembler by default.
3781 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3783 2002-05-20 Richard Henderson <rth@redhat.com>
3785 * cse.c (canon_hash): Reorder do_not_record test. Always
3786 allow pic_offset_table_rtx.
3788 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
3790 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3791 (expand_binop): Ditto (3 times).
3793 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
3795 * Makefile.in (distclean): Remove QMTest stuff.
3796 (QMTEST_PATH): New variable.
3797 (QMTESTFLAGS): Likewise.
3798 (QMTESTRUNFLAGS): Likewise.
3800 (QMTEST_GPP_TESTS): Likewise.
3801 (QMTEST_DIR): Likewise.
3802 (QMTEST_DIR/context): New target.
3803 (qmtest-g++): Likeise.
3804 (qmtest-gui): Likewise.
3805 (QMTEST_DIR/gpp-expected.qmr): Likewise.
3807 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
3809 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3810 an altivec register if TARGET_ALTIVEC.
3812 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3813 to ALTIVEC_VECTOR_MODE.
3814 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
3815 (rs6000_va_arg): Vectors may go in registers if they are not
3818 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
3820 * protoize.c: Fix formatting.
3822 2002-05-19 Richard Henderson <rth@redhat.com>
3824 * gensupport.c (init_include_reader): Merge into ...
3825 (process_include): ... here. Simplify composite path creation.
3826 Plug memory leaks. Fix file/line number tracking. Do not
3827 process_define_cond_exec. Return void.
3828 (process_rtx): Don't check process_include return value.
3830 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3832 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
3834 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3835 traversing basic block chain.
3836 (create_basic_block_structure, create_basic_block): Declaration changed.
3837 (link_block, unlink_block): Declare.
3838 * cfg.c (entry_exit_blocks): Initialize new fields.
3839 (link_block, unlink_block): New.
3840 (expunge_block_nocompact): Unlink basic block.
3841 (dump_flow_info): Print prev_bb/next_bb fields.
3842 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
3843 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
3844 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
3845 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3846 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
3847 (verify_flow_info): Check that list agrees with numbering.
3849 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
3851 * c-common.c (preprocessing_asm): New macro.
3852 * c-lex.h (builtin_define, builtin_assert): Use pfile.
3856 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
3857 (CPP_SPEC): Simplify.
3858 (TARGET_CPU_CPP_BUILTINS): Update.
3859 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
3860 (CPP_SPEC): Simplify.
3861 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
3862 (TARGET_OS_CPP_BUILTINS): Update.
3863 * osf.h (CPP_XFLOAT_SPEC): Kill.
3864 (TARGET_OS_CPP_BUILTINS): Update.
3865 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
3866 * osf5.h (CPP_XFLOAT_SPEC): Kill.
3867 * vms.h (CPP_SUBTARGET_SPEC): Kill.
3868 (TARGET_OS_CPP_BUILTINS): Update.
3870 2002-05-19 Richard Henderson <rth@redhat.com>
3872 * varasm.c (default_binds_local_p): Fix typo.
3874 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
3876 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
3877 CONST_INT operand to the correct mode after adding 1 to it.
3879 2002-05-19 Mark Mitchell <mark@codesourcery.com>
3881 * config.gcc (powerpc-wrs-windiss*): New target.
3883 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3885 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
3888 2002-05-18 Mark Mitchell <mark@codesourcery.com>
3890 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
3892 * config.in: Regenerated.
3893 * configure: Regenerated.
3895 2002-05-19 Richard Henderson <rth@redhat.com>
3897 * target-def.h (TARGET_BINDS_LOCAL_P): New.
3898 * target.h (struct gcc_target): Move boolean fields to the end.
3900 * varasm.c (default_binds_local_p): New.
3901 * output.h: Declare it.
3903 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
3904 * config/cris/cris.c (cris_encode_section_info): Likewise.
3905 * config/i386/i386.c (i386_encode_section_info): Likewise.
3906 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
3907 * config/sh/sh.c (sh_encode_section_info): Likewise.
3909 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
3910 (TARGET_BINDS_LOCAL_P): New.
3912 2002-05-19 Richard Henderson <rth@redhat.com>
3914 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
3915 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
3916 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
3918 * toplev.c (display_help): Kill -a -ax help.
3920 * config/1750a/1750a.h, config/alpha/alpha.h,
3921 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
3922 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
3923 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
3924 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
3926 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
3927 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
3929 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
3930 (ix86_output_function_block_profiler): Kill.
3931 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
3932 (m68hc11_function_block_profiler): Kill.
3933 * config/m68hc11/m68hc11-protos.h: Update.
3934 * config/m88k/m88k.c (output_block_profiler): Kill.
3935 (output_function_block_profiler): Kill.
3936 * config/m88k/m88k-protos.h: Update.
3938 2002-05-19 Richard Henderson <rth@redhat.com>
3940 * system.h (STRIP_NAME_ENCODING): Poison it.
3941 * output.h (STRIP_NAME_ENCODING): Remove.
3942 (default_strip_name_encoding): Declare.
3943 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
3944 * target.h (strip_name_encoding): New.
3945 * varasm.c (default_strip_name_encoding): New.
3947 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
3948 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
3949 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
3950 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
3951 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
3952 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
3953 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
3954 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
3955 config/v850/v850.h: Use the hook, not the macro.
3957 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3958 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
3959 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
3960 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
3961 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
3962 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
3963 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
3964 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
3965 config/v850/v850.c, config/v850/v850.h:
3966 Move STRIP_NAME_ENCODING to out-of-line function and add
3967 TARGET_STRIP_NAME_ENCODING.
3969 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
3970 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
3971 with TARGET_STRIP_NAME_ENCODING referencing existing function;
3972 make function static.
3974 * xcoffout.c: Include target.h
3975 * Makefile.in (xcoffout.o): Update.
3977 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
3978 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
3979 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
3980 reloc argument unused.
3981 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
3983 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
3984 STRIP_NAME_ENCODING docs.
3986 2002-05-19 Andreas Jaeger <aj@suse.de>
3988 * gengenrtl.c: Add prototype for excluded_rtx.
3990 * real.h: Add prototype for exact_real_truncate.
3992 2002-05-18 Richard Henderson <rth@redhat.com>
3994 * system.h (ENCODE_SECTION_INFO): Poison it.
3995 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
3996 * target.h (encode_section_info): New.
3997 * varasm.c (make_decl_rtl, output_constant_def): Use it.
3998 * hooks.c (hook_tree_int_void): New.
3999 * hooks.h: Declare it.
4001 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4002 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4003 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4004 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4005 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4006 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4007 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4008 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4009 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4010 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4011 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4012 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4013 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4014 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4015 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4016 referencing existing function. Make function static.
4018 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4019 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4020 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4021 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4022 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4023 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4024 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4025 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4026 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4027 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4028 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4029 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4030 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4031 Move ENCODE_SECTION_INFO to out-of-line function and add
4032 TARGET_ENCODE_SECTION_INFO.
4034 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4035 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4037 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4039 (switch_to_section): Replace in_rdata case with in_readonly_data.
4041 * config/h8300/h8300.c (h8300_encode_label): Make static.
4042 * config/h8300/h8300-protos.h: Update.
4044 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4045 from rs6000_encode_section_info; make static.
4046 (rs6000_xcoff_encode_section_info): New.
4048 * config/v850/v850.c (v850_encode_data_area): Make static.
4049 * config/v850/v850-protos.h: Update.
4051 * config/vax/vax.c: Include flags.h.
4052 (vms_select_section): Fix typo.
4054 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4055 ENCODE_SECTION_INFO docs.
4057 2002-05-18 Richard Henderson <rth@redhat.com>
4059 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4060 REGISTER_TARGET_PRAGMAS.
4061 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4063 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4065 2002-05-18 Richard Henderson <rth@redhat.com>
4067 * system.h (SELECT_RTX_SECTION): Poison.
4068 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4069 * target.h (select_rtx_section): New.
4070 * varasm.c (output_constant_pool): Use it.
4071 (default_select_rtx_section, default_elf_select_rtx_section): New.
4072 * output.h: Declare them.
4074 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4075 * config/darwin.c (machopic_select_rtx_section): ... here.
4076 * config/darwin-protos.h: Update.
4078 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4079 * config/nextstep.c (machopic_select_rtx_section): ... here.
4080 (nextstep_select_section): Rename variable to avoid macro clash.
4081 * config/nextstep-protos.h: Update.
4083 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4084 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4085 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4086 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4087 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4088 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4089 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4090 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4091 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4092 (SELECT_RTX_SECTION): Remove.
4094 * config/darwin.h, config/elfos.h, config/nextstep.h,
4095 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4096 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4097 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4098 config/sparc/lynx.h, config/xtensa/xtensa.c
4099 (TARGET_ASM_SELECT_RTX_SECTION): New.
4101 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4102 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4103 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4104 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4105 (ia64_aix_select_rtx_section): New.
4106 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4108 * config/mips/mips.c (mips_select_rtx_section): Make static.
4109 Support ELF SHF_MERGE features.
4110 * config/mips/mips-protos.h: Update.
4111 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4112 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4113 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4114 make static, fall back to default_elf_select_rtx_section.
4115 * config/rs6000/rs6000-protos.h: Update.
4116 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4117 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4118 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4119 * config/romp/romp.c (romp_select_rtx_section): New.
4120 * config/s390/s390.c (s390_select_rtx_section): New.
4121 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4122 declarations before target macro definition.
4123 (xtensa_emit_call): Use static buffer.
4124 (xtensa_select_rtx_section): New.
4125 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4126 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4127 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4129 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4130 SELECT_RTX_SECTION docs.
4132 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4134 * i386.md (movsi/movdi): Fix template.
4135 (sse2 patterns): Set attributes consistently.
4137 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4139 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4141 * optabs.c (complex_part_zero_p): New.
4142 * (expand_cmplxdiv_straight): Use it.
4143 * (expand_cmplxdiv_wide): Ditto.
4144 * (expand_binop): Ditto.
4146 2002-05-18 Richard Henderson <rth@redhat.com>
4148 * final.c (HAVE_READONLY_DATA_SECTION): New.
4149 (shorten_branches): Use it instead of ifdefs.
4150 * varasm.c (enum in_section): Add in_readonly_data.
4151 (text_section, data_section): Tidy.
4152 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4154 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4155 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4156 (READONLY_DATA_SECTION): Don't undef.
4158 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4159 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4160 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4162 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4163 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4164 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4165 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4167 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4168 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4169 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4170 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4171 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4172 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4173 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4174 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4175 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4177 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4178 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4179 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4180 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4181 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4182 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4184 * config/elfos.h, config/netware.h, config/svr3.h,
4185 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4186 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4187 config/h8300/h8300.h, config/i386/i386-interix.h,
4188 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4189 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4191 * config/elfos.h, config/netware.h, config/svr3.h,
4192 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4193 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4194 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4195 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4197 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4198 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4199 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4200 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4201 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4202 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4203 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4204 config/rs6000/sysv4.h, config/v850/v850.h
4205 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4206 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4208 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4209 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4210 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4211 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4212 * config/alpha/alpha.c (alpha_start_function): Likewise.
4213 (alpha_write_linkage): Likewise.
4214 * config/m32r/m32r.c (m32r_select_section): Likewise.
4215 * config/m88k/m88k.c (m88k_select_section): Likewise.
4216 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4217 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4218 (rs6000_elf_select_section): Likewise.
4219 * config/v850/v850.c (v850_select_section): Likewise.
4221 * config/1750a/1750a.h, config/i860/sysv3.h
4222 (READONLY_DATA_SECTION_ASM_OP): New.
4223 READONLY_DATA_SECTION_ASM_OP.
4224 * config/i386/interix.c, config/i386/winnt.c
4225 (i386_pe_unique_section): Always use .rdata prefix.
4226 * config/pa/som.h (readonly_data): Always switch to read-only section.
4227 (READONLY_DATA_SECTION): Predicate on flag_pic.
4228 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4229 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4230 (READONLY_DATA_SECTION): Update.
4232 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4234 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4235 is used without -Wformat.
4236 * c-common.h (warn_format_zero_length): Declare extern.
4237 * c-decl.c (warn_options): Add "format-zero-length".
4238 * c-format.c (warn_format_zero_length): Declare.
4239 (set_Wformat): Set warn_format_zero_length for -Wformat.
4240 (check_format_info): Only warn about zero-length formats if
4241 warn_format_zero_length is true. Include the format type
4242 name in the warning message.
4243 * doc/invoke.texi: Document -Wformat-zero-length.
4244 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4246 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4248 * timevar.c: Fix formatting.
4249 * tlink.c: Likewise.
4250 * toplev.c: Likewise.
4251 * tree-dump.c: Likewise.
4252 * tree-inline.c: Likewise.
4254 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4256 * cppinit.c (cpp_post_options): If preprocessed, turn off
4257 traditional. If traditional, turn off column numbers.
4258 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4259 * cpptrad.c (handle_newline): Update line_base.
4260 (skip_comment): Handle -Wcomment.
4262 2002-05-17 Zack Weinberg <zack@codesourcery.com>
4264 * cppinit.c (struct builtin): Remove unused fields.
4265 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4266 (operator_array): New - was second half of builtin_array.
4267 (init_builtins): Simplify loop over builtin_array/operator_array.
4269 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4271 * defaults.h (UNIQUE_SECTION): Remove.
4272 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4274 2002-05-17 Richard Henderson <rth@redhat.com>
4276 * expr.c (init_expr_once): Don't use start/end_sequence.
4277 Use rtx_alloc instead of emit_insn.
4278 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4279 (lang_independent_init): ... not here.
4281 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4283 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4285 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4287 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4288 for fixed registers, possibly used for global register variables.
4289 (initial_elimination_offset, avr_output_function_prologue,
4290 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4292 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4294 * Makefile.in: Update for cpptrad.c.
4295 * cpphash.h (struct cpp_buffer): New members for buffer
4297 (struct cpp_reader): New members for traditional output.
4298 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4299 * cppinit.c (cpp_create_reader): Set trad_line.
4300 (cpp_destroy): Free trad_out_base if used.
4301 (cpp_read_main_file): Overlay an empty buffer if traditional.
4302 (cpp_finish_options): Don't do builtins.
4303 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4304 (cpp_handle_option): Handle it.
4305 * cpplex.c (continue_after_nul): New.
4306 (_cpp_lex_direct): Use handle_nul.
4307 * cpplib.h (struct cpp_options): New traditional option.
4308 * cpptrad.c: New file.
4310 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4312 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4313 and set the options flag.
4314 * cppinit.c (lang_flags): Remove objc.
4315 (lang_defaults): Remove OBJC and OBJCXX.
4317 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4318 (cpp_handle_option): Remove -+ and -lang-objc++.
4319 For ObjC, just set a flag.
4320 (print_help): Update.
4321 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4323 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4325 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4326 bootstrap with -mips3.
4328 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4330 * final.c: Fix formatting.
4331 * fix-header.c: Likewise.
4333 * fold-const.c: Likewise.
4334 * function.c: Likewise.
4336 2002-05-17 David S. Miller <davem@redhat.com>
4338 PR c/6689, PR optimization/6615
4339 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4340 and make it a pointer to rtx. Update comments.
4341 (update_equiv_regs): When scanning for equivalences, record
4342 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4343 it while making the equiv replacements.
4345 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4347 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4349 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4351 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4352 when encoding visibility into SYMBOL_REF_FLAG.
4354 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
4356 * expr.c (force_operand): Fix reversed move.
4358 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
4360 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4361 that can be ignored.
4363 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4365 * doc/install.texi (Final install): Recommend to install into a
4366 "clean" target directory.
4368 2002-05-17 Richard Henderson <rth@redhat.com>
4370 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4371 for code blocks. Tidy whitespace.
4373 2002-05-17 Richard Henderson <rth@redhat.com>
4375 * hooks.c (hook_tree_bool_false): New.
4376 * hooks.h: Declare it.
4377 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4378 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4379 * target.h (select_section, unique_section): New.
4380 (in_small_data_p): New.
4381 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4382 (variable_section, output_constant_def_contents): Likewise.
4383 (default_select_section, default_unique_section): New.
4384 (categorize_decl_for_section, default_elf_select_section): New.
4385 * output.h: Declare them.
4387 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4388 (TARGET_ASM_SELECT_SECTION): New.
4389 (SELECT_SECTION): Move ...
4390 * config/darwin.c (machopic_select_section): ... here.
4391 * config/darwin-protos.h: Update.
4393 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4394 (SELECT_SECTION): Move ...
4395 * config/nextstep.c (nextstep_select_section): ... here.
4396 * config/nextstep-protos.h: Update.
4398 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4399 (TARGET_ASM_SELECT_SECTION): New.
4400 * config/svr3.h (SELECT_SECTION): Remove.
4402 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4403 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4404 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4405 (alpha_encode_section_info): Use it.
4406 * config/alpha/alpha-protos.h: Update.
4407 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4408 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4409 (TARGET_ASM_SELECT_SECTION): New.
4410 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4412 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4413 (TARGET_ASM_UNIQUE_SECTION): New.
4415 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4416 (avr_unique_section): Rename from unique_section; make static.
4417 * config/avr/avr-protos.h: Update.
4418 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4420 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4422 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4423 (TARGET_ASM_UNIQUE_SECTION): New.
4424 * config/i386/i386-interix.h: Likewise.
4425 * config/i386/win32.h: Likewise.
4426 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4427 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4428 * config/i386/sco5.h (SELECT_SECTION): Remove.
4429 (TARGET_ASM_SELECT_SECTION): New.
4430 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4432 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4433 instead of SELECT_SECTION.
4434 * config/m68k/dpx2.h: Likewise.
4435 * config/rs6000/lynx.h: Likewise.
4437 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4438 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4439 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4440 (ia64_in_small_data_p): New.
4441 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4442 (ia64_aix_select_section, ia64_aix_unique_section): New.
4443 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4444 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4446 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4447 (TARGET_ASM_SELECT_SECTION): New.
4448 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4449 * config/m32r/m32r-protos.h: Update.
4451 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4452 (SELECT_SECTION): Move ...
4453 * config/m88k/m88k.c (m88k_select_section): ... here.
4455 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4456 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4457 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4458 (mcore_unique_section): Make static.
4459 * config/mcore/mcore-protos.h: Update.
4461 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4462 (TARGET_ASM_UNIQUE_SECTION): New.
4463 * config/mips/elf64.h: Likewise.
4464 * config/mips/iris6gld.h: Likewise.
4465 * config/mips/linux.h: Likewise.
4466 * config/mips/mips-protos.h: Update.
4467 * config/mips/mips.c (mips_select_section): Add align argument.
4468 * config/mips/mips.h (SELECT_SECTION): Remove.
4469 (TARGET_ASM_SELECT_SECTION): New.
4471 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4472 * config/mmix/mmix.c (mmix_select_section): Remove.
4473 (mmix_unique_section): Remove.
4474 * config/mmix/mmix-protos.h: Update.
4476 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4477 (SELECT_SECTION): Move ...
4478 * config/pa/pa.c (pa_select_section): ... here.
4479 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4481 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4482 from rs6000_select_section and make static.
4483 (rs6000_elf_unique_section): Similarly.
4484 (rs6000_xcoff_select_section): From xcoff.h.
4485 (rs6000_xcoff_unique_section): Likewise.
4486 * config/rs6000/rs6000-protos.h: Update.
4487 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4488 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4489 * config/rs6000/xcoff.h: Likewise.
4491 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4492 (SELECT_SECTION): Move ...
4493 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4495 * config/v850/v850.h (SELECT_SECTION): Move ...
4496 * config/v850/v850.c (v850_select_section): ... here.
4497 (TARGET_ASM_SELECT_SECTION): New.
4499 * config/vax/vms.h (SELECT_SECTION): Move ...
4500 * config/vax/vax.c (vms_select_section): ... here.
4501 (TARGET_ASM_SELECT_SECTION): New.
4503 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4504 for the target hooks.
4506 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4508 * config/arm/arm.c (emit_multi_reg_push): Do not set
4509 RTX_FRAME_RELATED_P on the SEQUENCE.
4511 2002-05-16 Richard Henderson <rth@redhat.com>
4513 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4514 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4516 2002-05-16 Richard Henderson <rth@redhat.com>
4518 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4520 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4522 2002-05-16 Richard Henderson <rth@redhat.com>
4524 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4525 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4526 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4527 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4528 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4529 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4530 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4531 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4532 Revert "Basic block renumbering removal", and two followup patches.
4534 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4536 * lcm.c (optimize_mode_switching): Revert previous change.
4538 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4540 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4541 with only extant block numbers.
4543 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4545 * lcm.c (optimize_mode_switching): Fix typo.
4547 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4549 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4551 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4553 * doc/install.texi (Configuration): Document PWDCMD.
4555 2002-05-16 Dale Johannesen <dalej@apple.com>
4557 * combine.c (cant_combine_insn_p): Reenable combinations
4558 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4560 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4562 * c-common.c (cb_register_builtins): Handle more built-ins
4563 here rather than in gcc.c specs.
4564 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4565 (cpp_options): Pass -O flags even when only preprocessing.
4566 * toplev.c (set_fast_math_flags): New prototype.
4567 (fast_math_flags_set_p): New.
4568 (set_no_fast_math_flags): Remove.
4569 (decode_f_option): Update.
4570 * toplev.h (set_fast_math_flags): Update.
4571 (fast_math_flags_set_p): New.
4572 (set_no_fast_math_flags): Remove.
4574 * c4x/c4x.c (c4x_override_options): Update.
4576 2002-05-16 Zack Weinberg <zack@codesourcery.com>
4578 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4579 Default-define here.
4580 (builtin_define_with_value): Can now wrap the expansion in
4581 quotation marks if such is wanted.
4582 (cb_register_builtins): Update calls to builtin_define_with_value.
4583 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4585 (c_common_init): Set options->stdc_0_in_system_headers.
4586 * c-lex.h: Update prototype of builtin_define_with_value.
4587 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4588 and REGISTER_PREFIX.
4590 * cppinit.c (VERS, ULP, C, X): Kill.
4591 (builtin_array): Remove entries for __VERSION__,
4592 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4593 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4595 (init_builtins): Kill off a bunch of now-dead code.
4596 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4597 -fno-leading-underscore.
4598 (cpp_handle_option): Remove code to set user_label_prefix.
4599 (cpp_post_options): Likewise.
4601 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4602 (stdc_0_in_system_headers): New.
4603 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4604 stdc_0_in_system_headers) too to decide the value of __STDC__.
4606 * tradcpp.c (user_label_prefix): Kill.
4607 (main): Remove code handling -f(no-)leading-underscore.
4608 (initialize_builtins): Don't define __REGISTER_PREFIX__
4609 or __USER_LABEL_PREFIX__.
4610 (install_value): Wrap compound statement in dummy loop so the
4611 macro works properly in an if statement.
4614 2002-05-16 Janis Johnson <janis187@us.ibm.com>
4616 * loop.h (struct loop_info): Add member has_prefetch.
4617 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4618 (prescan_loop): Initialize has_prefetch.
4619 (struct prefetch_info): Change prefetch_in_loop and
4620 prefetch_before_loop from bit fields to ints.
4621 (emit_prefetch_instructions): Several small fixes.
4622 (check_dbra_loop): Don't reverse loop that uses prefetch.
4624 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4626 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4627 * configure.in: Likewise.
4628 * fixinc/check.tpl: Likewise.
4629 * fixinc/fixinc.dgux: Likewise.
4630 * fixinc/fixinc.svr4: Likewise.
4631 * fixinc/fixinc.winnt: Likewise.
4632 * fixinc/fixincl.sh: Likewise.
4633 * fixproto: Likewise.
4634 * configure: Regenerate.
4636 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4638 Basic block renumbering removal:
4639 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4640 added prev_bb and next_bb fields.
4641 (n_basic_blocks): Renamed to num_basic_blocks.
4642 (last_basic_block): New, index of last basic block.
4643 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4644 traversing basic block chain.
4645 (BLOCK_NUM): index -> sindex.
4646 (create_basic_block_structure, create_basic_block): Declaration changed.
4647 (debug_num2bb): Declare.
4648 (expunge_block_nocompact): Declaration removed.
4649 (link_block, unlink_block, compact_blocks): Declare.
4650 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4651 * cfg.c (entry_exit_blocks): Initialize new fields.
4652 (clear_edges, alloc_block, expunge_block, cached_make_edge,
4653 redirect_edge_pred, dump_flow_info, dump_edge_info,
4654 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4655 free_aux_for_edges): Modified.
4656 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4657 (expunge_block_nocompact): Removed.
4658 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4659 find_unreachable_blocks, create_edge_list, print_edge_list,
4660 verify_edge_list, flow_edge_list_print, remove_fake_successors,
4661 remove_fake_edges, flow_reverse_top_sort_order_compute,
4662 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4663 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4664 flow_dfs_compute_reverse_execute): Modified.
4665 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4666 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4668 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4669 merge_blocks_move_predecessor_nojumps,
4670 merge_blocks_move_successor_nojumps, merge_blocks,
4671 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4672 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4673 * cfglayout.c (skip_insns_after_block, label_for_bb,
4674 record_effective_endpoints, scope_to_insns_finalize,
4675 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4676 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4677 cfg_layout_duplicate_bb): Modified.
4678 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4679 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4680 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4681 flow_loops_find, flow_loop_outside_edge_p): Modified.
4682 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4683 flow_delete_block, compute_bb_for_insn, split_block,
4684 try_redirect_by_replacing_jump, redirect_edge_and_branch,
4685 force_nonfallthru_and_redirect, tidy_fallthru_edge,
4686 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4687 commit_edge_insertions, commit_edge_insertions_watch_calls,
4688 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4689 purge_all_dead_edges): Modified.
4690 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4691 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4692 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4694 * conflict.c (conflict_graph_compute): Modified.
4695 * df.c (FOR_ALL_BBS): Removed.
4696 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4697 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4698 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4699 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4700 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4701 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4702 * final.c (compute_alignments, final_scan_insn): Modified.
4703 * flow.c (verify_local_live_at_start, update_life_info,
4704 update_life_info_in_dirty_blocks, free_basic_block_vars,
4705 delete_noop_moves, calculate_global_regs_live,
4706 initialize_uninitialized_subregs, allocate_bb_life_data,
4707 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4708 mark_used_reg, count_or_remove_death_notes): Modified.
4709 * function.c (thread_prologue_and_epilogue_insns): Modified.
4710 * gcse.c (struct null_pointer_info): Change typo of current_block
4712 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4713 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4714 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4715 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4716 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4717 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4718 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4719 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4720 pre_delete, one_pre_gcse_pass, compute_transpout,
4721 invalidate_nonnull_info, delete_null_pointer_checks_1,
4722 free_code_hoist_mem, compute_code_hoist_vbeinout,
4723 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4724 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4725 compute_store_table, build_store_vectors, insert_insn_start_bb,
4726 insert_store, replace_store_insn, free_store_memory, store_motion):
4728 * global.c (global_alloc, global_conflicts, mark_elimination,
4729 build_insn_chain): Modified.
4730 * graph.c (print_rtl_graph_with_bb): Modified.
4731 * haifa-sched.c (sched_init): Modified.
4732 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4733 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4734 if_convert): Modified.
4735 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4736 compute_insert_delete, pre_edge_lcm, compute_available,
4737 compute_farthest, compute_nearerout, compute_rev_insert_delete,
4738 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4740 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4741 * loop.c (loop_dump_aux): Modified.
4742 * predict.c (combine_predictions_for_insn, estimate_probability,
4743 last_basic_block_p, process_note_prediction, process_note_predictions,
4744 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4745 expensive_function_p, estimate_bb_frequencies,
4746 compute_function_frequency): Modified.
4747 * print-rtl.c (print_rtx): Modified.
4748 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4749 get_exec_counts, compute_branch_probabilities, compute_checksum,
4750 branch_prob, find_spanning_tree): Modified.
4751 * recog.c (split_all_insns, peephole2_optimize): Modified.
4752 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4753 convert_regs_1, convert_regs_2, convert_regs): Modified.
4754 * regclass.c (scan_one_insn, regclass): Modified.
4755 * regmove.c (mark_flags_life_zones, regmove_optimize,
4756 combine_stack_adjustments): Modified.
4757 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4758 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4759 * reorg.c (dbr_schedule): Modified.
4760 * resource.c (find_basic_block, init_resource_info): Modified.
4761 * sbitmap.c (sbitmap_intersection_of_succs,
4762 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4763 sbitmap_union_of_preds): Modified.
4764 * sched-deps.c (init_dependency_caches): Modified.
4765 * sched-ebb.c (schedule_ebbs): Modified.
4766 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4767 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4768 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4769 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4770 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4771 ssa_const_prop): Modified.
4772 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4773 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4774 * ssa.c (remove_phi_alternative, find_evaluations,
4775 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4776 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4777 make_regs_equivalent_over_bad_edges,
4778 make_equivalent_phi_alternatives_equival,
4779 compute_conservative_reg_partition,
4780 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4781 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4784 2002-05-16 Mark Mitchell <mark@codesourcery.com>
4786 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4788 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
4790 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4791 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4792 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4793 calling CONSTANT_POOL_ADDRESS_P.
4794 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4795 to decide whether to define __arm__ or __thumb.
4796 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
4797 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4799 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4801 * config/arc/arc.h (CPP_PREDEFINES): Remove.
4803 (TARGET_CPU_CPP_BUILTINS): New.
4805 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4807 * cpphash.h (cpp_macro): Move here, and make expansion a union.
4808 * cppmacro.c (cpp_macro): Remove.
4809 (enter_macro_context, replace_args, warn_of_redefinition,
4810 _cpp_create_definition, cpp_macro_definition): Update.
4812 2002-05-16 Jason Merrill <jason@redhat.com>
4814 * config/mips/mips.c (mips_output_external): Don't do sdata
4815 optimization for a variable with DECL_COMDAT set.
4817 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4819 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
4820 Cleanups for accepting modifiers on pointers.
4821 Fix predicate typos.
4822 Allow long pointers as well as int pointers.
4824 2002-05-15 Richard Henderson <rth@redhat.com>
4826 * varasm.c (merge_weak): Remove special case for extern and common.
4828 2002-05-15 Matt Hiller <hiller@redhat.com>
4830 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
4832 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
4833 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
4834 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
4835 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
4836 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
4837 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
4839 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4841 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
4843 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4845 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
4846 ("altivec_mfvscr"): Read from VSCR.
4848 Add vscr sets for the following insns: altivec_vctuxs,
4849 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
4850 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
4851 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
4852 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
4853 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
4854 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
4855 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
4856 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
4857 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
4858 altivec_vsum2sws, altivec_vsumsws.
4860 * config/rs6000/rs6000.h: Add VSCR fixed register.
4861 (CALL_REALLY_USED_REGISTERS): Add vscr.
4862 (CALL_USED_REGISTERS): Same.
4863 (FIXED_REGISTERS): Same.
4864 (REG_ALLOC_ORDER): Same.
4865 (reg_class): Add VSCR_REGS.
4866 (REG_CLASS_NAMES): Same.
4867 (REG_CLASS_CONTENTS): Same.
4869 (REGISTER_NAMES): Add vscr.
4870 (DEBUG_REGISTER_NAMES): Same.
4871 (ADDITIONAL_REGISTER_NAMES): Same.
4872 (FIRST_PSEUDO_REGISTER): Increment.
4873 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
4875 2002-05-15 Jakub Jelinek <jakub@redhat.com>
4877 * fold-const.c (fold): Fix a typo.
4879 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
4881 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
4882 comparison against the highest or lowest integer value before
4883 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
4884 transformation and that of an unsigned comparison against 0
4887 2002-05-15 Richard Henderson <rth@redhat.com>
4889 * varasm.c (merge_weak): Error for any weakening after definition.
4890 Adjust weakening after use warning to catch more cases.
4891 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
4892 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
4894 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4896 * invoke.texi (-malign-double): Re-add lost warning.
4898 * i386-protos.h (x86_output_mi_thunk): Declare.
4899 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
4900 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
4902 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
4903 when flag_asynchronous_unwind_tables is set.
4905 * flags.h (flag_reorder_functions): Declare.
4906 * function.c (prepare_function_start): Initialize frequnecy.
4907 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
4908 * Makefile.in (predict.o): Add dependency on target.h and params.h
4909 * defaults.h (HOT_TEXT_SECTION_NAME,
4910 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
4911 * predict.c (choose_function_section): New function.
4912 (estimate_bb_frequencies): Use it.
4913 * toplev.c (flag_reorder_functions): New global variable.
4914 (lang_independent_options): New.
4915 (parse_options_and_default_flags): Set.
4916 * varasm.c (assemble_start_function): Bypass functdion alignment
4917 for never executed functions.
4918 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
4919 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
4920 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4923 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
4925 * predict.c: Inlude profile.h
4926 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
4927 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
4928 Use the information about maximal counter in the program.
4930 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
4932 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
4933 probably_never_executed_bb_p): New functions.
4934 * cfgcleanup.c (outgoing_edges_match): Use them.
4935 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
4936 (maybe_hot_bb_p, probably_cold_bb_p,
4937 probably_never_executed_bb_p): New functions.
4939 * function.h (function): Add new field function_frequency.
4940 * predict.c (compute_function_frequency): New function.
4941 (estimate_probability): Call it.
4943 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4945 PR optimization/5172, optimization/5200
4946 * gcse.c (gcse_main): Disable store_motion.
4948 2002-05-14 Zack Weinberg <zack@codesourcery.com>
4950 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
4951 (c_common_nodes_and_builtins): Use it.
4952 (builtin_define_with_value): New function.
4953 (cb_register_builtins): Define __SIZE_TYPE__,
4954 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
4955 using builtin_define_with_value. Use consistent notation when
4956 defining __GXX_WEAK__.
4957 (WCHAR_TYPE_SIZE): Don't redefine.
4958 (combine_strings): Don't use WCHAR_TYPE_SIZE.
4960 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
4961 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
4962 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
4963 * tradcpp.c (initialize_builtins): Likewise.
4964 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
4966 * c-lex.h (builtin_define_with_value): Prototype.
4967 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
4968 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
4969 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
4971 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
4972 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
4973 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
4974 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
4975 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
4976 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
4977 config/sparc/sol2-bi.h, config/sparc/sparc.h:
4978 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
4979 to __SIZE_TYPE__ etc from all spec strings. When this makes
4980 extra specs empty, delete them.
4982 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
4984 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
4985 for PA8000 or generating dwarf2 call frame information.
4986 (output_call): Remove DO_FRAME_NOTES check from return pointer
4988 (following_call): Return 0 when scheduling for PA8000 or generating
4989 dwarf2 call frame information. Revise comment.
4991 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
4994 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
4995 and __IEEE_FP_INEXACT as appropriate.
4996 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
4997 (CPP_SPEC): Remove ieee defines.
4998 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5000 2002-05-14 Richard Henderson <rth@redhat.com>
5002 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5003 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5005 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5007 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5009 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5010 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5011 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5012 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5013 (EXTRA_SPECS): Update.
5014 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5015 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5016 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5017 define TARGET_OS_CPP_BUILTINS if necessary.
5019 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5021 * gcc.c (cpp_options): Must pass -m* and -f* options
5022 to the front end even when only preprocessing.
5023 (cc1_options): Remove redundant -lang-c.
5024 * tradcpp.c (main): Ignore -m options.
5026 * lang-specs.h: Similarly.
5028 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5030 * genautomata.c (transform_3): Add code for transformation
5031 `(A,B,...)+C -> A+C,B,...'.
5033 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5035 * final.c (end_final): Do not output profile_arcs constructor, when
5036 no functions are instrumented.
5038 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5040 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5042 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5044 * doc/install.texi: Remove special markup originally required for
5045 HTML generation with texi2html.
5047 2002-05-14 Andreas Schwab <schwab@suse.de>
5049 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5051 (UNIQUE_SECTION): Define to get small data correctly.
5053 * varasm.c (resolve_unique_section): Add third parameter
5054 flag_function_or_data_sections and use it instead of
5055 flag_function_sections.
5056 (assemble_start_function): Pass flag_function_sections.
5057 (asm_emit_uninitialised): Pass flag_data_sections.
5058 (assemble_variable): Likewise.
5060 2002-05-14 Richard Henderson <rth@redhat.com>
5062 * config/i386/i386.md: Use define_constants for unspec numbers.
5063 * config/i386/i386.c: Likewise.
5065 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5067 * doc/contrib.texi: Update my entry.
5069 2002-05-13 Mark Mitchell <mark@codesourcery.com>
5071 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5072 * fixinc/fixincl.x: Regenerated.
5073 * fixinc/tests/base/math.h: Update.
5074 * fixinc/tests/base/testing.h: Likewise.
5076 2002-05-13 Zack Weinberg <zack@codesourcery.com>
5078 * genattr.c (gen_attr): Don't emit a comma after the last
5081 2002-05-13 Richard Henderson <rth@redhat.com>
5083 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5085 * recog.c (peephole2_optimize): Likewise.
5087 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
5089 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5092 2002-05-13 Jeffrey A Law (law@redhat.com)
5094 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5095 Update prototype and callers.
5096 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5097 the mem_set_list which reference the stack pointer, as do
5098 calls to constant functions as they may clobber outgoing
5101 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5103 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5104 (ia32_multipass_dfa_lookahead): New function.
5106 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5108 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5109 (translate_options): Remove 'V'.
5110 (process_command): Similarly.
5112 * invoke.texi: Remove documentation of 'V'.
5114 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5116 * config/s390/linux.h: Revert 2002-04-22 changes.
5118 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
5120 * config/fr30/fr30.md: Only allow splits of immediate loads
5121 if the destination is a register.
5123 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5125 * Makefile.in (c-common.o, cppinit.o): Update.
5126 * c-common.c: Include except.h.
5127 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5128 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5129 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5130 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5131 CPP_PREDEFINES): Handle here.
5133 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5134 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5135 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5136 TARGET_OS_CPP_BUILTINS.
5137 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5138 (CPP_SPEC, EXTRA_SPECS): Update.
5139 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5140 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5141 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5142 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5143 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5145 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5146 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5148 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5150 * emit-rtl.c (global_rtl): Update comment.
5151 (const_double_htab, const_double_htab_hash,
5152 const_double_htab_hash, lookup_const_double): New.
5153 (const_int_htab_hash, const_int_htab_eq): Remove const
5154 qualifiers, which cause tons of warnings with RTL checking on.
5155 (gen_rtx_CONST_DOUBLE): Deleted.
5156 (const_double_from_real_value): New function - bears some
5157 resemblance to the former immed_real_const_1.
5158 (immed_double_const): Moved here from varasm.c and
5160 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5161 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5162 (gen_rtx): Use immed_double_const.
5163 (init_emit_once): Initialize the const_double_htab. Use
5164 REAL_VALUE_FROM_INT where possible. Can now use
5165 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5166 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5167 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5168 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5169 (init_varasm_status, mark_varasm_status): Don't touch
5170 x_const_double_chain.
5172 * output.h: Delete prototype for clear_const_double_mem.
5173 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5174 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5175 const_double_from_real_value, not immed_real_const_1, and use
5176 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5178 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5179 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5180 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5181 (gen_rtx_REG): Second arg is unsigned.
5183 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5184 (excluded_rtx): New, return true for CONST_DOUBLE.
5185 (genmacro): Write nothing for excluded codes.
5186 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5187 * expr.c (expand_expr): Likewise.
5188 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5190 * toplev.c (rest_of_compilation): Don't call
5191 clear_const_double_mem.
5193 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5194 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5195 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5196 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5197 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5198 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5199 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5200 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5202 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5204 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5206 2002-05-12 Tom Tromey <tromey@redhat.com>
5208 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5210 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5212 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5213 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5214 * gensupport.h: Prototype new routines.
5215 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5217 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5218 (next_comma_elt): Use scan_comma_elt.
5220 * config/i386/i386.md: Use new attribute notation to break up
5221 long lines in define_attr forms.
5223 2002-05-12 Richard Henderson <rth@redhat.com>
5225 * expr.c (compress_float_constant): New.
5226 (emit_move_insn): Use it.
5227 (float_extend_from_mem): New.
5228 (init_expr_once): Initialize it.
5229 * real.c (exact_real_truncate): New.
5231 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5232 dropped into memory; penalize for size.
5233 (RTX_COSTS): FLOAT_EXTEND is free.
5234 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5235 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5237 2002-05-12 Richard Henderson <rth@redhat.com>
5239 * profile.h (profile_info): Add missing extern to declaration.
5240 * profile.c (profile_info): Define it.
5242 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5244 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5245 used for DImode and TImode.
5247 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5249 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5252 2002-05-11 Zack Weinberg <zack@codesourcery.com>
5254 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5255 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5256 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5257 (rs6000_override_options): Handle -m(no-)longcall.
5258 (init_cumulative_args, output_mi_thunk): Check for both
5259 longcall and shortcall attributes on the function.
5260 (rs6000_attribute_table): Add "shortcall".
5261 (rs6000_handle_longcall_attribute): Update comment.
5262 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5263 altivec_expand_ternop_builtin): Add default clauses to switches
5264 to silence warnings.
5266 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5267 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5268 (TARGET_OPTIONS): Add longcall and no-longcall.
5270 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5271 call_value_nonlocal_sysv): Split by alternatives. One pair
5272 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5273 the call cookie. The other pair accepts only LR/CTR and has
5276 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5277 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5279 * config/rs6000/rs6000-c.c: New file.
5280 * config/rs6000/t-rs6000-c-rule: New file.
5281 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5282 Prototype rs6000_pragma_longcall.
5284 * doc/extend.texi: Document shortcall attribute.
5285 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5287 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5289 * reorg.c (dbr_schedule): Remove unnecessary test.
5291 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5293 * i386.md (testsi to testqi spliters): New.
5295 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5297 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5299 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5301 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5302 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5303 that can be made fallthru.
5305 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5307 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5308 (cfg_layout_initialize): Use it.
5310 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5312 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5313 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5314 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5316 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5318 * dbxout.c: Fix formatting.
5319 * dependence.c: Likewise.
5321 * diagnostic.c: Likewise.
5322 * doloop.c: Likewise.
5323 * dominance.c: Likewise.
5324 * doschk.c: Likewise.
5325 * dwarf2asm.c: Likewise.
5326 * dwarf2out.c: Likewise.
5327 * dwarfout.c: Likewise.
5329 2002-05-10 Richard Henderson <rth@redhat.com>
5331 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5332 Convert integers constants as needed. Replace "nwords" field with
5334 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5335 * function.h: Fix typo in comment.
5336 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5338 2002-05-10 Roger Sayle <roger@eyesopen.com>
5340 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5341 into the equivalent (signed char)c > 0.
5343 2002-05-10 Janis Johnson <janis187@us.ibm.com>
5345 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5346 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5347 (struct prefetch_info): Fix spelling of member bytes_accessed.
5348 (emit_prefetch_instructions): Make dump messages more regular;
5349 restructure code to add more dump messages; use new macros for
5350 heuristics. (There are no code generation changes in any of this).
5352 2002-05-10 David S. Miller <davem@redhat.com>
5354 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5355 (struct rtx_def): Update unchanging flag comment.
5356 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5357 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5358 to be handled to INSN too.
5359 (dbr_schedule): Likewise.
5360 * resource.c (next_insn_no_annul): Likewise.
5362 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5365 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5367 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5368 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5369 (possibly) work around broken /bin/sh.
5371 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5373 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5374 . as N64/N32 libgcc_s.so subdirs.
5376 2002-05-10 David S. Miller <davem@redhat.com>
5378 * config/sparc/sparc.md: Use define_constants for unspec numbers.
5380 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5382 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5384 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5385 * doc/rtl.texi: Document these macros more accurately.
5386 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5387 JUMP_INSNs and CALL_INSNs.
5388 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5389 or INSN_FROM_TARGET_P if the code is appropriate.
5391 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5393 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5394 before using SYMBOL_REF_FLAG (addr).
5396 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5397 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5398 Make non-static. Update all callers.
5399 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5400 New insns to clear/set/test a single bit in I/O address space.
5402 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5404 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5406 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5408 * Makefile.in: Update.
5409 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5410 builtin_define_std): New.
5411 (c_common_init): Register CPP builtins callback.
5412 * c-common.h (flag_iso, flag_undef): New.
5413 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5414 * c-lex.c: Don't include target.h.
5415 (cb_register_builtins): Move to c-common.c.
5416 (init_c_lex): Don't register hook here.
5417 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5418 (cpp_define, cpp_assert): Remove.
5419 * gcc.c (cc1_options): Pass -undef to front end.
5420 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5421 (TARGET_INITIALIZER): Update.
5422 * target.h (struct cpp_reader): Don't predeclare.
5423 (struct gcc_target): Remove cpp builtin hook.
5424 * tree.c (default_register_cpp_builtins): Remove.
5428 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5430 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5432 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5434 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5435 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5437 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5439 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5440 * config/sparc/libgcc-sparc-glibc.ver: New file.
5441 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5442 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5444 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5447 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5448 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5449 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5451 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5452 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5453 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5454 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5456 2002-05-09 Richard Henderson <rth@redhat.com>
5458 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5459 * config/ia64/ia64.c: Likewise.
5461 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
5463 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5464 (save_restore_insns): Likewise.
5465 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5466 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5468 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
5470 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5471 * i386.md: Move scheduling information into new files.
5473 * i386.md (type attribute): Add "rotate" for rotate insns.
5474 (rotate insns): Set type to "rotate".
5475 (various attributes and function units): Treat rotate like shift.
5476 (pent_pair attribute): Only rotates by one bit position are
5478 (sbb insns): Explicitly set pent_pair attribute on a couple
5479 that were missing it.
5481 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5483 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5484 make sure that buffer starts on odd word address.
5485 (sh_va_arg): Skip odd fp registers when reading a double precision
5488 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5490 * tree.h (preserve_data, object_permanent_p, type_precision):
5493 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5495 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5496 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5498 * cpp.texi: Update for removal of obsolete features.
5500 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5501 Jeffrey A Law (law@redhat.com)
5503 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5504 the DFA interface for Pentium processors.
5505 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5506 (attr_pent_pair, ix86_pent_find_pair): Remove.
5507 (ix86_sched_reorder_pentium): Remove.
5508 (ix86_sched_reorder): Remove reordering for Pentium.
5509 * i386.md (Pentium scheduling): Rewrite using DFA description.
5511 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5513 * cfganal.c (can_fallthru): Fix fast path.
5514 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5515 with edges to the next block.
5517 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5518 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5520 * final.c (end_final): Use C trees to output data structures for profiling.
5522 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5523 (profile.o): New dependency profile.h
5524 (final.o): New dependency profile.h
5525 * profile.h: New file. New global structure profile_info.
5526 * final.h (count_edges_instrumented_now): Declare.
5527 (current_function_cfg_checksum): Declare.
5528 (function_list): New structure.
5529 (functions_head, functions_tail): New static variables.
5530 (end_final): Emits more data, removed some -ax stuff.
5531 (final): Stores function names and chcksums.
5532 * gcov-io.h (__write_gcov_string): New function.
5533 (__read_gcov_string): New function.
5534 * gcov.c (read_profile): New function.
5535 (create_program_flow_graph): Uses read_profile instead of reading
5537 (read_files): Removed da_file checking, it's done by read_profile now.
5538 * libgcc2.c (bb_function_info): New structure.
5539 (bb): New field in structure, removed some -ax stuff.
5540 (__bb_exit_func): Changed structure of da_file.
5541 * profile.c (count_edges_instrumented_now): New global variable.
5542 (current_function_cfg_checksum): New global variable.
5543 (max_counter_in_program): New global variable.
5544 (get_exec_counts): New function.
5545 (compute_checksum): New function.
5546 (instrument_edges): Sets count_edges_instrumented_now.
5547 (compute_branch_probabilities): Uses get_exec_counts instead of
5549 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5550 (init_branch_prob): Removed da_file checking, done in get_exec_counts
5552 (end_branch_prob): Removed da_file checking, done in get_exec_counts
5554 * gcov.texi: Updated information about gcov file format.
5556 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5558 * sbitmap.c: Fix formatting.
5560 * scan-decls.c: Likewise.
5561 * sched-deps.c: Likewise.
5562 * sched-ebb.c: Likewise.
5563 * sched-rgn.c: Likewise.
5564 * sched-vis.c: Likewise.
5565 * sdbout.c: Likewise.
5566 * sibcall.c: Likewise.
5567 * simplify-rtx.c: Likewise.
5569 * ssa-ccp.c: Likewise.
5570 * ssa-dce.c: Likewise.
5572 * stor-layout.c: Likewise.
5573 * stringpool.c: Likewise.
5575 2002-05-09 David S. Miller <davem@redhat.com>
5577 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5579 2002-05-07 David S. Miller <davem@redhat.com>
5581 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5582 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5583 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5584 library implementation clobbers the output before the inputs
5585 are fully consumed, use stack temporary for the output.
5587 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5589 * config/netbsd.h (CPP_SPEC): Remove.
5590 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5591 * config/i386/netbsd.h (CPP_SPEC): Define.
5592 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5593 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5594 * config/sparc/netbsd.h (CPP_SPEC): Define.
5595 * config/vax/netbsd.h (CPP_SPEC): Define.
5597 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5599 * read-rtl.c: Fix formatting.
5601 * recog.c: Likewise.
5602 * regclass.c: Likewise.
5603 * regmove.c: Likewise.
5604 * reg-stack.c: Likewise.
5605 * reload1.c: Likewise.
5606 * reload.c: Likewise.
5607 * resource.c: Likewise.
5608 * rtlanal.c: Likewise.
5610 * rtl-error.c: Likewise.
5612 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5614 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5615 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5617 2002-05-08 Bernd Schmidt <bernds@redhat.com>
5619 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5620 use __SSE2__ macro instead.
5621 * config/i386/xmmintrin.h: Likewise.
5623 2002-05-08 Janis Johnson <janis187@us.ibm.com>
5625 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5626 and use it in all invocations of these macros. Clean up comments.
5627 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5628 of the flag access macro whose check failed.
5629 * doc/rtl.texi (Flags): Document additional flag uses.
5631 2002-05-08 Robert Spier <rspier@pobox.com>
5632 Neil Booth <neil@daikokuya.demon.co.uk>
5634 PR preprocessor/6521
5635 * cppfiles.c (handle_missing_header): Don't do anything
5636 different for <> includes.
5638 * cppopts.texi: Update documentation for -MG.
5640 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5642 * cpplex.c (cpp_interpret_charconst): Truncate as well as
5645 * cpp.texi: Clarify multichar charconst valuation.
5647 2002-05-08 Mark Mitchell <mark@codesourcery.com>
5649 * doc/invoke.texi: Document -mwindiss option.
5651 2002-05-08 Jason Merrill <jason@redhat.com>
5653 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5655 * dwarf2out.c (gen_type_die): Abort on broken recursion.
5658 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5661 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
5663 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5664 little-endian multilibs to override arm/thumb multilibs.
5665 Do not build hardware floating point multilibs, nor apcs-26
5666 multilibs for the Thumb.
5668 2002-05-08 Mark Mitchell <mark@codesourcery.com>
5671 * varasm.c (mark_weak): New function.
5672 (merge_weak): Use it. Do not call declare_weak.
5673 (declare_weak): Use merge_weak.
5675 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5677 * cse.c (dead_libcall_p): Update counts.
5678 (delete_trivially_dead_insns): Update call of dead_libcall_p.
5680 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5682 * cfglayout.c (function_tail_eff_head): Rename to ...
5683 (function_footer): ... this one.
5684 (unlink_insn_chain): New functions.
5685 (label_for_bb): Only call block_label and emit debug message.
5686 (record_effective_endpoints): Actually unlink the headers and footers.
5687 (fixup_reorder_cahin): Re-insert the unlinked sequences.
5688 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5689 * cfglayout.h (struct reorder_block_def): New fields footer/header;
5690 remove eff_head/eff_end.
5691 * rtl.h (set_first_insn): Declare.
5692 * emit-rtl.c (set_first_insn): New function.
5694 * cfglayout.c (fixup_reorder_chain): Dump duplicated
5695 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5696 cfg_layout_duplicate_bb): New global function.
5697 (duplicate_insn_chain): New static function.
5698 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5699 cfg_layout_duplicate_bb): Declare.
5700 (struct reorder_block_def): Add "original" field.
5701 * emit-rtl.c (emit_copy_of_insn_after): New function.
5702 * rtl.h (emit_copy_of_insn_after): Declare.
5704 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5705 (fixup_reorder_chain): properly handle edges to exit block.
5707 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5708 Jan Hubicka <jh@suse.cz>
5710 * basic-block.h (note_prediction_to_br_prob): declare.
5711 * c-semantics.c: Inlucde predit.h
5712 (expand_stmt): predict GOTO_STMT as not taken.
5713 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5714 (cleanup_cfg): Do not free tail_recursion_list.
5715 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5716 (flow_delete_block): Kill predictions past end of basic block.
5717 * output.h (delete_unreachable_blocks): Declare.
5718 * predict.c (predicted_by_p, process_note_predictions,
5719 process_note_prediction, last_block_p): New function.
5720 (estimate_probability): Bypass loop on PRED_CONTINUE;
5721 do not handle noreturn heuristics; kill PRED_RETURN; add
5723 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5724 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5725 * predict.h (IS_TAKEN): New constant.
5726 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5727 * rtl.c (NOTE_INSN_PREDICTION): New.
5728 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5730 (insn_note): add NOTE_INSN_PREDICTION.
5731 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5732 CFG; free tail_recursion_label_list.
5733 * stmt.c: Include predict.h;
5734 (return_prediction): New.
5735 (expand_value_return): Use it.
5736 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5738 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
5740 * config/mips/mips.md: Name the unspecs with define_constant.
5741 (*HILO_delay): Rename to 'hilo_delay' (no star).
5742 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5743 (reload_outdi, reload_outsi): Likewise.
5745 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5747 * toplev.c: Fix formatting.
5749 2002-05-07 Janis Johnson <janis187@us.ibm.com>
5751 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5752 * configure.in (ac_rtlflag_checking): New.
5753 * doc/install.texi (--enable-checking): Document RTL flag checking.
5755 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5757 * c-common.c (c_common_init): Set options->unsigned_wchar.
5758 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5759 group target dependencies.
5760 (init_builtins, cpp_handle_option): Update.
5761 * cpplex.c (cpp_interpret_charconst): Update.
5762 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5763 signed_char to unsigned_char, group target dependencies.
5764 * defaults.h (WCHAR_UNSIGNED): Remove.
5765 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5767 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5768 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5769 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5770 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5771 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5773 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5775 2002-05-07 Mark Mitchell <mark@codesourcery.com>
5777 * fixinc/inclhack.def (windiss_math1): New fix.
5778 (windiss_math2): Likewise.
5779 (windiss_valist): Likewise.
5780 * fixinc/fixincl.x: Regenerated.
5782 2002-05-07 Andreas Jaeger <aj@suse.de>
5784 * genautomata.c (output_internal_min_issue_delay_func): Add
5785 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5786 (output_internal_trans_func): Likewise.
5788 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
5790 * pa.c (hppa_profile_hook): Use force_reg to get the address
5791 of the profile hook into an appropriate pseudo register.
5793 2002-05-07 Mark Mitchell <mark@codesourcery.com>
5795 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5796 (LINK_START_SPEC): Handle it.
5797 (LINK_OS_SPEC): Likewise.
5798 (CPP_SPEC): Likewise.
5799 (STARTFILE_SPEC): Likewise.
5800 (LIB_SPEC): Likewise.
5801 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
5803 (CRTSAVRES_DEFAULT_SPEC): New macro.
5804 (LIB_WINDISS_SPEC): New macro.
5805 (CPP_OS_WINDISS_SPEC): Likewise.
5806 (STARTFILE_WINDISS_SPEC): Likewise.
5807 (ENDFILE_WINDISS_SPEC): Likewise.
5808 (LINK_START_WINDISS_SPEC): Likewise.
5809 (LINK_OS_WINDISS_SPEC): Likewise.
5810 * config/rs6000/windiss.h: New file.
5812 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
5814 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
5816 2002-05-06 David S. Miller <davem@redhat.com>
5818 * config/sparc/sparc.md (shift insns): Do not mask off
5819 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
5822 2002-05-06 Richard Henderson <rth@redhat.com>
5825 * expr.c (highest_pow2_factor_for_type): New.
5826 (expand_assignment): Use it.
5828 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
5830 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
5832 ("altivec_mfvscr"): Same.
5834 2002-05-06 Janis Johnson <janis187@us.ibm.com>
5836 * rtl.h (struct rtx_def): Update comments.
5837 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
5838 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
5839 RTL_FLAG_CHECK macros with list of expected RTL codes.
5840 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
5841 (rtl_check_failed_flag): New.
5842 * reload1.c (reload): Use REG macro before changing rtx to MEM.
5843 (reload_cse_noop_set_p): Check rtx code before using access macro.
5844 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
5845 before using access macro.
5847 2002-05-06 Janis Johnson <janis187@us.ibm.com>
5849 * doc/rtl.texi (Flags): Update to reflect current usage.
5851 2002-05-06 Roger Sayle <roger@eyesopen.com>
5854 * fold-const.c (sign_bit_p): New function.
5855 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
5856 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
5857 Reapply fold when converting (A & C) == C into (A & C) != 0.
5858 (fold_binary_op_with_conditional_arg): Fix typo in comment.
5860 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5862 * c-common.c (warn_multichar): New.
5863 (c_common_init): Set CPP's warn_multichar.
5864 * c-common.h (warn_multichar): New.
5865 * c-decl.c (warn_multichar): Remove.
5866 * c-lex.c (lex_charconst): Update.
5867 * c-tree.h (warn_multichar): Remove.
5868 * cppexp.c (eval_token): Sign-extend charconst value.
5869 * cppinit.c (cpp_create_reader): Set warn_multichar.
5870 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
5871 each character. Update prototype. Sign-extend the result.
5872 * cpplib.h: Fix conditions.
5873 (struct cpp_options): Add new warning flag.
5874 (cpp_interpret_charconst): Update prototype.
5876 * cpp.texi: Update documentation.
5878 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
5880 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5881 Fix typo in usage of allof instead of unit.
5883 2002-05-06 Richard Henderson <rth@redhat.com>
5885 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
5886 and any jump or call for IN.
5888 2002-05-06 Bernd Schmidt <bernds@redhat.com>
5890 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
5892 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
5894 2002-05-06 Roger Sayle <roger@eyesopen.com>
5896 * fold-const.c (lshift-double): Cast the high word to an unsigned
5897 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
5898 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
5899 avoid compiler warning. (fold): Remove redundant code from
5900 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
5902 2002-05-06 Jeff Law <law@redhat.com>
5904 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
5905 * pa.c (pa_adjust_cost): Remove all true dependency cost
5906 adjustments. Also remove support for non-DFA scheduling.
5907 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
5908 to adjust true dependency costs. Update various comments.
5909 (7100lc, 7200, 7300 scheduling): Simplify by combining the
5910 FP ALU & MPY units into a single unit.
5912 2002-05-06 Catherine Moore <clm@redhat.com>
5914 * config/v850/v850.c (compute_register_save_size): Make sure
5915 to count all of the registers that will be saved.
5917 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5919 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
5921 2002-05-06 David S. Miller <davem@redhat.com>
5923 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
5924 allow result to overlap input operands in memory.
5926 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
5929 * cpp.texi: Update multichar charconst docs.
5931 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
5933 * cpplex.c (cpp_interpret_charconst): Sign-extend each
5934 character. Don't ignore excess characters. Treat
5935 multicharacter character constants as signed.
5936 (cpp_parse_escape): Clarify diagnostic.
5938 2002-05-05 Jakub Jelinek <jakub@redhat.com>
5940 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
5941 use add instead of shift.
5942 (ashldi3_sp64): Likewise.
5943 (ashlsi3_const1, ashldi3_const1): Remove.
5944 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
5945 * config/sparc/sparc.c (const1_operand): New.
5947 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5949 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
5951 2002-05-05 Jakub Jelinek <jakub@redhat.com>
5954 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
5956 2002-05-05 Richard Henderson <rth@redhat.com>
5958 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
5959 memory latency adjustments.
5960 (alpha_variable_issue): Remove.
5961 (alpha_use_dfa_pipeline_interface): New.
5962 (alpha_multipass_dfa_lookahead): New.
5963 * config/alpha/alpha.md: Remove define_function_unit scheduling;
5964 include new dfa scheduling.
5965 (attr type): Add none.
5967 * config/alpha/ev4.md: New.
5968 * config/alpha/ev5.md: New.
5969 * config/alpha/ev6.md: New.
5971 2002-05-05 David S. Miller <davem@redhat.com>
5973 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
5975 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
5977 * cse.c: Fix formatting.
5978 * emit-rtl.c: Likewise.
5980 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
5982 * genautomata.c (initiate_states): Add additional guard to
5983 initialize `units_array'.
5985 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
5987 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
5988 process_unit_to_form_the_same_automaton_unit_lists,
5989 form_the_same_automaton_unit_lists
5990 check_unit_distributions_to_automata): New prototypes and
5992 (check_automata): Rename it into `check_automata_insn_issues'.
5993 (unit_decl): New fields `the_same_automaton_unit' and
5994 `the_same_automaton_message_reported_p'.
5995 (unit_decl_t): New typedef.
5996 (the_same_automaton_lists): New gloval variable.
5997 (unit_regexp, unit_set_el, units_array, units_cmp,
5998 output_get_cpu_unit_code_func): Use the typedef.
5999 (evaluate_max_reserv_cycles): Increment
6000 `description->max_insn_reserv_cycles'.
6001 (initiate_states): Don't increment `max_cycles_num'.
6002 (transform_insn_regexps): Move code around transformation of
6003 regexps from `generate'.
6004 (generate): Remove call of `transform_insn_regexps'.
6005 (expand_automata): Call `transform_insn_regexps' and
6006 `check_unit_distributions_to_automata'. Check errors before
6009 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6010 automaton `ultrasparc3_1'.
6012 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6014 * c-common.c (c_common_init): Set up CPP arithmetic.
6015 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6016 something reasonable for the host.
6017 (sanity_checks): Add checks.
6018 (cpp_read_main_file): Call sanity_checks() from here...
6019 (cpp_post_options): ... not here.
6020 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6021 * cpplib.h (struct cpp_options): New member int_precision.
6023 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6025 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6027 2002-05-04 David S. Miller <davem@redhat.com>
6029 * config/sparc/linux.h, config/sparc/linux64.h
6030 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6032 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6034 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6036 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6039 2002-05-05 Tim Josling <tej@melbpc.org.au>
6041 * treelang; New directory for new sample language treelang.
6043 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6045 * Makefile.in (c-lex.o): Update.
6046 * c-lex.c: Include target.h.
6047 (cb_register_builtins): New.
6048 (init_c_lex): Set builtins callback.
6049 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6050 * cppinit.c (init_builtins): Use callback, including for
6052 * cpplib.h (struct cpp_callbacks): New member.
6053 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6054 (TARGET_INITIALIZER): Update.
6055 * target.h (struct gcc_target): New hook.
6056 * tree.c (default_register_cpp_builtins): New.
6057 * tree.h (default_register_cpp_builtins): New.
6059 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6061 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6063 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6064 (cpp_post_options): Move sanity checks to...
6065 (sanity_checks): New.
6066 * cpplex.c (maybe_read_ucs): Fix prototype.
6067 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6068 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6071 2002-05-04 Bernd Schmidt <bernds@redhat.com>
6073 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6074 builtins. Use V2DI patterns instead of TI for logical operations.
6075 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6076 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6077 (ix86_expand_builtins): Change the pattern used for movntdq.
6078 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6079 sse2_nandv2di3): New patterns.
6080 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6082 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6083 (cvtdq2pd): Correct mode on operand 1.
6084 (sse2_umulsidi3): Describe without unspec.
6085 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6087 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6088 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6089 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6090 ashlv4si3, ashlv2di3): Use SImode for shift count.
6091 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6092 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6094 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6096 (__m128i, __m128d): New macros.
6097 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6098 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6099 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6100 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6101 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6102 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6103 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6104 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6105 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6106 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6107 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6108 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6109 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6110 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6111 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6112 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6113 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6114 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6115 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6116 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6117 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6118 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6119 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6120 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6121 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6122 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6123 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6124 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6125 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6126 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6127 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6128 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6129 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6130 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6131 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6132 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6133 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6135 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6136 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6138 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6140 * dwarf2out.c: Fix formatting.
6141 * varasm.c: Likewise.
6143 2002-05-04 David Edelsohn <edelsohn@gnu.org>
6146 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6147 clobber and use result as temporary value.
6149 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6151 * expr.c (force_operand): Use expand_simple_* to handle more
6154 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6156 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6158 (lex_charconst): Update for change in prototype of
6159 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6161 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6162 * cppinit.c (cpp_create_reader): Initialize them for no
6163 change in semantics.
6164 (cpp_post_options): Add sanity checks.
6165 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6166 and truncation issues. Calculate in type cppchar_t.
6167 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6168 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6169 run-time dependent precision correctly. Return whether the
6170 result is signed or not.
6171 * cpplib.c (dequote_string): Use cppchar_t; update.
6172 * cpplib.h (cppchar_signed_t): New.
6173 struct cpp_options): New precision members.
6174 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6175 * cppexp.c (eval_token): Update.
6177 2002-05-03 David S. Miller <davem@redhat.com>
6179 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6180 * config/sparc/sparc.c (sparc_rtx_costs): New function
6181 implementing RTX_COSTS and CONST_COSTS.
6182 * config/sparc/sparc.h (CONST_COSTS): Delete.
6183 (RTX_COSTS_CASES): Define.
6184 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6187 * config/sparc/sparc.md (DFA schedulers): Split out...
6188 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6189 config/sparc/sparclet.md, config/sparc/supersparc.md,
6190 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6192 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6193 checks on it, always defined for Sparc.
6195 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6196 Tweak, and add more detailed comments.
6198 2002-05-03 Zack Weinberg <zack@codesourcery.com>
6200 * Re-apply patch accidentally reverted with
6201 DFA scheduler merge: remove all rules and variables to slurp
6202 source files out of libiberty and rebuild them with HOST_CC.
6203 ($(HOST_PREFIX_1)varray.o): New rule.
6204 (genattrtab rule): Word wrap.
6206 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6208 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6209 (CPP_SUBTARGET_SPEC): Define.
6210 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6211 cpp_subtarget specs.
6212 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6214 2002-05-03 David S. Miller <davem@redhat.com>
6216 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6217 * target.h (struct gcc_target): Delete cycle_display member.
6219 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6220 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6221 (ia64_sched_reorder2): Mention need for cycle display handling
6222 once such notes exist.
6224 2002-05-03 Richard Henderson <rth@redhat.com>
6226 * real.c (etoasc): Strip most trailing zeros for clarity.
6227 * sched-vis.c: Include real.h.
6228 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6229 * Makefile.in (sched-vis.o): Add real.h.
6231 2002-05-03 David S. Miller <davem@redhat.com>
6233 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6236 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
6238 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6239 when we get an out of range literal.
6240 (altivec_expand_ternop_builtin): Same.
6241 (altivec_expand_unop_builtin): Same.
6242 (altivec_expand_builtin): Same, for dss.
6243 (altivec_expand_builtin): Use trees instead of rtl when
6244 determining literal argument validity.
6246 2002-05-03 David S. Miller <davem@redhat.com>
6248 Delete cycle display scheduling hook.
6249 * config/ia64/ia64.c (ia64_cycle_display,
6250 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6251 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6252 and use emit_insn_before instead of ia64_emit_insn_before.
6253 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6254 (cycle_display): Delete insn pattern.
6255 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6256 (cycle_display): Delete insn pattern.
6257 * config/sparc/sparc.c (sparc_cycle_display,
6258 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6259 * doc/md.texi (cycle_display): Don't mention.
6260 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6262 2002-05-03 Richard Henderson <rth@redhat.com>
6264 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6265 * recog.h: Declare them.
6267 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6268 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6269 * config/sparc/sparc-protos.h: Update.
6271 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6273 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6274 -D__arch64__. Add -D_LP64.
6275 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6277 (CPP_ARCH64_SPEC): Likewise.
6278 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6279 (NO_BUILTIN_SIZE_TYPE): Undef.
6281 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6283 * genautomata.c (min_issue_delay_pass_states): Change return type
6285 (min_issue_delay_pass_states): Change the algorithm.
6286 (min_issue_delay): Set up min_insn_issue_delay for the state.
6287 (output_min_issue_delay_table): Interchange the nested loops and
6288 and initiate min_insn_issue_delay for states.
6290 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6292 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6295 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
6297 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6300 2002-05-03 Richard Henderson <rth@redhat.com>
6303 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6304 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6305 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6306 code before JUMP, not EARLIEST.
6308 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6310 * c-format.c (check_format_info_main): Don't check for presence of
6311 parameter for * width until after operand number has been read,
6312 and only check for it if format parameters are available.
6315 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6317 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6318 (LINK_SPEC): Undef before defining.
6320 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6322 PR preprocessor/6489
6323 * tradcpp.c (fixup_newlines): New.
6324 (main, finclude): Use it.
6326 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
6328 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6329 * config/mips/mips.c (mips_unique_section): Strip encoding from
6332 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6334 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6337 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6339 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6340 (Specific): Removed buildstats references.
6341 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6342 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6343 Accomodate Solaris versions beyond 8.
6344 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6345 (Specific, *-*-solaris2.8): Removed, obsolete.
6347 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6350 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6351 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6352 fill leaf_reg_remap with identity.
6353 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6355 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6357 * config/h8300/crti.asm: Remove trailing spaces.
6358 * config/h8300/h8300.c: Likewise.
6359 * config/h8300/lib1funcs.asm: Likewise.
6361 2002-05-02 Jason Merrill <jason@redhat.com>
6363 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6364 * c-decl.c (c_init_decl_processing): Use it.
6365 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6366 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6367 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6369 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6371 * regrename.c: Fix formatting.
6374 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6376 * i386.md (attribute memory): Handle compares properly.
6378 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6380 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6383 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6385 * function.c: Fix formatting.
6387 2002-05-02 Jan Hubicka <jh@suse.cz>
6389 * haifa-sched.c (schedule_insn): Print table of instructions and
6391 (sched_block): Do not print ready list at verbosity level 1.
6392 * sched-vis.c (print_insn): Make global.
6393 * sched-ebb.c (ebb_print_insn): Rename from...
6394 (print_insn): ... this one.
6395 * sched-int.h (print_insn): Declare
6397 2002-05-02 Richard Henderson <rth@redhat.com>
6399 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6400 emitted by cycle_display.
6402 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
6404 * doc/install.texi (*-*-freebsd*): Update to latest status.
6406 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6409 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6410 * config/float-sparc.h: Assume 128-bit long double if
6411 __LONG_DOUBLE_128__ is defined.
6413 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6415 * genattrtab.c (write_function_unit_info): Add a dummy element
6416 when num_units == 0.
6418 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6420 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6421 TYPE_MODE (double_type_node) instead of DFmode.
6423 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6425 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6427 * toplev.c (rest_of_compilation): Revert Richard's patch.
6429 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6431 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6433 2002-05-02 Catherine Moore <clm@redhat.com>
6435 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6437 2002-05-02 Kazu Hirata <kazu@hxi.com>
6439 * combine.c: Fix comment typos.
6441 * genautomata.c: Likewise.
6445 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6447 * doc/install.texi: State GNAT version requirements.
6449 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6451 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6452 of the frame pointer or arg pointer register which strict register
6453 checking is not enabled.
6455 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
6457 * gcc.dg/altivec-8.c: New.
6459 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6460 PRE_INC and PRE_DEC for altivec modes.
6462 2002-05-01 Bruce Korb <bkorb@gnu.org>
6464 * fixinc/check.tpl(set-writable): make sure the function exists first
6465 * fixinc/inclhack.def(alpha_assert): fix test_text
6466 * fixinc/tests/base/assert.h: add in missing result
6468 2002-05-01 Jeff Law <law@redhat.com>
6470 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6473 2002-05-01 Joel Brobecker <brobecker@gnat.com>
6475 * dbxout.c (dbxout_type): Emit size information for range types,
6476 as well, but only when using GDB extensions.
6478 2002-05-01 Richard Henderson <rth@redhat.com>
6480 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6481 target-independent gnu binutils date test.
6483 2002-05-01 Richard Henderson <rth@redhat.com>
6485 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6486 info before expunging the block.
6488 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6490 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6491 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6492 -M -or -MM is in effect.
6494 2002-05-01 Zack Weinberg <zack@codesourcery.com>
6496 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6497 A29k configurations.
6498 * doc/install.texi: Update to match.
6500 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6503 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6504 for duplicates. Always loop over whole list.
6506 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6508 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6510 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6512 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6515 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6517 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6519 2002-05-01 David Edelsohn <edelsohn@gnu.org>
6521 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6522 (nabs_nopower): Same.
6523 (floatdisf2): New pattern.
6524 (absdi2): Convert to define_insn_and_split.
6529 (fix_trunctfdi2): Same.
6530 (fix_trunctfsi2): Same.
6532 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6534 * doc/install.texi: Update Texinfo version requirement
6537 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6539 PR target/6512, PR target/5628
6540 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6541 when memory is not aligned.
6542 (movdf_insn_v9only_vis): Likewise.
6543 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6544 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6545 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6547 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
6549 * gcc.dg/altivec-7.c: New.
6551 * config/rs6000/altivec.h: Cleanup.
6553 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
6555 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6556 (RS/6000 and PowerPC Options): Document -mvrsave=.
6558 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6559 (rs6000_altivec_vrsave_string): Same.
6560 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6561 (rs6000_parse_vrsave_option): New.
6562 (rs6000_stack_info): Only generate vrsave instructions when
6563 TARGET_ALTIVEC_VRSAVE.
6565 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6566 (rs6000_altivec_vrsave_string): Define extern.
6567 (rs6000_altivec_vrsave): Same.
6568 (TARGET_ALTIVEC_VRSAVE): New.
6570 2002-04-30 Richard Henderson <rth@redhat.com>
6573 * toplev.c (rest_of_compilation): Don't run cross-jump before
6576 2002-04-30 Tom Rix <trix@redhat.com>
6578 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6579 check which_alternative.
6581 2002-04-30 Kazu Hirata <kazu@hxi.com>
6583 * cpplex.c: Fix comment formatting.
6584 * function.c: Likewise.
6585 * integrate.c: Likewise.
6586 * regrename.c: Likewise.
6587 * sibcall.c: Likewise.
6588 * simplify-rtx.c: Likewise.
6589 * tree-inline.c: Likewise.
6591 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6593 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6594 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6595 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6596 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6597 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6598 * pa/x-ada: New file. Define ADA_CFLAGS.
6600 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6602 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6603 from MMIX_LAST_REGISTER_FILE_REGNUM.
6604 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6605 (struct machine_function): New member highest_saved_stack_register
6606 previously static variable in mmix.c.
6607 (MACHINE_DEPENDENT_REORG): Define.
6608 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6609 (MMIX_OUTPUT_REGNO): New.
6610 (mmix_target_asm_function_prologue): Move calculation of last used
6611 saved-stack-register into...
6612 (mmix_machine_dependent_reorg): New function. Update to also handle
6614 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6615 register names, simplify somewhat by new variable regno.
6616 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6618 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6619 emitting register names.
6620 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6621 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6623 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6626 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6628 2002-04-30 Richard Henderson <rth@redhat.com>
6630 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6631 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6632 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6633 emit_tfmode_cvt): New.
6634 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6635 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6636 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6637 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6638 * config/sparc/sparc-protos.h: Update.
6640 2002-04-30 Janis Johnson <janis187@us.ibm.com>
6642 * install.texi (Final install): Add to the list of info to include
6643 in a report of a successful bootstrap, and add link to 3.1 list.
6645 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
6647 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6648 (mode): Add vector modes
6649 (i387): Kill attribute.
6650 (unit): New attribute.
6651 (length_immediate): Grok new types.
6652 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6653 (modrm): Use "unit".
6654 (memory): Handle MMX/SSE properly.
6655 (scheduling descriptions): Kill uses of fop1.
6656 (sse, mmx, fp patterns): Set type and mode properly.
6658 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
6660 * pa.c (override_options): Default to PA8000 scheduling.
6661 * doc/invoke.texi (HP-PA options): Mention newly added 7300
6662 scheduling parameter.
6664 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6665 handling of double precision multiplies.
6667 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6668 fpdiv and fpsqrt instructions.
6669 (7200 & 7300 scheduling): Fix typo in handling of
6670 store-load and store-store penalties.
6672 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6674 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6675 mips. Add two missing commas.
6677 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
6679 * doc/contrib.texi (Contributors): Update Paolo Carlini's
6680 and Benjamin Kosnik's entries.
6682 2002-04-29 David S. Miller <davem@redhat.com>
6684 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6685 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6686 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6687 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6689 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6691 * combine.c (find_split_point): Use gen_int_mode.
6693 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
6695 Merging code from dfa-branch:
6697 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
6699 * genautomata.c (output_reserv_sets): Fix typo.
6701 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
6703 * genautomata.c (output_reserv_sets): Remove
6704 next_cycle_output_flag.
6706 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
6708 * sched-rgn.c (init_ready_list): Make the DFA code handle
6709 USE/CLOBBER insns in the same way as the traditional
6711 (new_ready): Similarly..
6713 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
6715 * haifa-sched.c (schedule_block): Change the DFA state only after
6718 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
6720 * pa.c (hppa_use_dfa_pipeline_interface): New function.
6721 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6722 (override_options): Add PA7300 scheduling support.
6723 (pa_adjust_cost): Update various comments. Properly
6724 handle anti and output dependencies when using the
6726 (pa_issue_rate): Add PA7300 scheduling support.
6727 (pa_can_combine_p): Call extract_insn before calling
6728 constrain_operands (taken from mainline tree).
6729 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6730 * pa.md (cpu attr): Add 7300. Rewrite pipeline
6731 descriptions using DFA descriptions. Add PA7300
6734 2002-03-30 David S. Miller <davem@redhat.com>
6736 Add UltraSPARC-III DFA scheduling support.
6737 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6738 Update FP conditional move on register insn patterns to use it, as
6740 (define_attr cpu): Add ultrasparc3.
6741 (define_attr us3load_type): New, update integer load patterns to
6742 set it, as appropriate.
6743 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6744 (rest): Add UltraSPARC3 scheduling description.
6745 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6746 (PROCESSOR_ULTRASPARC3): New.
6747 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6748 ({ASM,CPP}_CPU_SPEC): Likewise.
6749 (REGISTER_MOVE_COST): Likewise.
6750 (RTX_COSTS): Likewise.
6751 * config/sparc/sparc.c (sparc_override_options,
6752 sparc_initialize_trampoline, sparc64_initialize_trampoline,
6753 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6754 sparc_issue_rate): Likewise.
6755 * config/sparc/sol2.h: Likewise.
6756 * config/sparc/sol2-sld-64.h: Likewise.
6757 * config/sparc/linux64.h: Likewise.
6759 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
6761 * doc/md.texi: Add comments about usage the latency time for the
6762 different dependencies and about case when two or more conditions
6763 in different define_insn_reservations returns TRUE for an insn.
6765 * doc/md.texi: Add reference for automaton based pipeline
6768 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
6770 * doc/passes.texi: Add missed information about genattrtab.
6772 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
6774 * genautomata.c (output_automata_list_transition_code): Check
6775 automata_list on NULL.
6777 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
6779 * genautomata.c (output_insn_code_cases,
6780 output_automata_list_min_issue_delay_code,
6781 output_automata_list_transition_code,
6782 output_automata_list_state_alts_code): Comment the functions.
6784 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
6786 * genautomata.c (automata_list_el_t): New typedef.
6787 (get_free_automata_list_el,free_automata_list_el,
6788 free_automata_list, automata_list_hash, automata_list_eq_p,
6789 initiate_automata_lists, automata_list_start, automata_list_add,
6790 automata_list_finish, finish_automata_lists,
6791 output_insn_code_cases, output_automata_list_min_issue_delay_code,
6792 output_automata_list_transition_code,
6793 output_automata_list_state_alts_code, add_automaton_state,
6794 form_important_insn_automata_lists): New functions and prototypes.
6795 (insn_reserv_decl): Add members important_automata_list and
6797 (ainsn): Add members important_p.
6798 (automata_list_el): New structure.
6799 (first_free_automata_list_el, current_automata_list,
6800 automata_list_table): New global variables.
6801 (create_ainsns): Initiate member important_p.
6802 (output_internal_min_issue_delay_func): Generate the switch and
6803 call output_insn_code_cases.
6804 (output_internal_trans_func, output_internal_state_alts_func):
6806 (generate): Call initiate_automata_lists.
6807 (automaton_states): New global variable.
6808 (expand_automata): Call form_important_insn_automata_lists.
6809 (write_automata): Call finish_automata_lists.
6811 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
6813 * genautomata.c (add_excls, add_presence_absence): Check that
6814 cpu units in the sets belong the same automaton.
6816 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
6817 about that cpu units in the sets belong the same automaton.
6819 * doc/md.texi: Ditto.
6821 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
6822 Nitin Gupta <niting@noida.hcltech.com>
6824 * config/sh/sh.c (sh_use_dfa_interface): New function.
6826 (sh_issue_rate): New Function.
6827 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
6828 TARGET_SCHED_ISSUE_RATE: define.
6830 * config/sh/sh.md: Add DFA based pipeline description for SH4.
6832 (define_attr insn_class): New attribute used for DFA
6834 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
6835 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
6836 cmpeqdi_t): Likewise.
6838 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
6839 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
6841 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
6843 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6845 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
6848 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6850 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
6851 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
6853 (output_dfa_start_func): Initiate new variable insn_codes_length,
6854 (write_automata): Output definition of the new variable.
6856 2001-10-02 David S. Miller <davem@redhat.com>
6858 * haifa-sched.c (advance_one_cycle): New function.
6859 (schedule_block): Use it.
6860 (queue_to_ready): Use it, and also make sure to advance the DFA
6861 state on all stall cycles, not just those where insn_queue links
6864 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
6866 * haifa-sched.c (max_issue): Remove last_p argument. Only return
6867 non-zero if the highest-priority instruction could be scheduled.
6868 (choose_ready): Remove last argument from max_issue call.
6870 2001-09-28 David S. Miller <davem@redhat.com>
6872 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
6873 ultrasparc and 3 for other multi-issue sparcs.
6875 2001-09-27 David S. Miller <davem@redhat.com>
6877 * config/sparc/sparc.md (cycle_display): New pattern.
6878 * config/sparc/sparc.c (sparc_cycle_display): New.
6879 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
6881 2001-09-25 David S. Miller <davem@redhat.com>
6883 Convert all of Sparc scheduling to DFA
6884 * config/sparc/sparc.md: Kill all define_function_unit
6885 directives and replace with DFA equivalent.
6886 * config/sparc/sparc.c (ultrasparc_adjust_cost,
6887 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
6888 ultra_fpmode_conflict_exists, ultra_find_type,
6889 ultra_build_types_avail, ultra_flush_pipeline,
6890 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
6891 ultrasparc_variable_issue, ultrasparc_sched_init,
6892 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
6893 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
6894 ultra_cur_hist, ultra_cycles_elapsed): Kill.
6895 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6896 ultrasparc_store_bypass_p): New.
6897 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
6900 2001-09-24 David S. Miller <davem@redhat.com>
6902 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
6903 ready->vec[foo] not ready[foo].
6905 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6907 * doc/md.texi: Correct examples for define_insn_reservations
6910 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6912 * genautomata.c (create_automata): Print message about creation of
6914 (generate): Remove printing meease about creation of
6917 2001-09-05 David S. Miller <davem@redhat.com>
6919 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6920 * config/sparc/linux64.h: Likewise.
6922 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
6924 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
6925 schedule_block, sched_init, sched_finish): Add missed calls of
6926 use_dfa_pipeline_interface.
6928 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
6931 * sched-vis.c (get_visual_tbl_length): Ditto.
6933 2001-08-27 Richard Henderson <rth@redhat.com>
6935 * genattr.c (main): Emit state_t even when not doing scheduling.
6937 2001-08-27 Richard Henderson <rth@redhat.com>
6939 * genautomata.c (expand_automata): Always create a description.
6941 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
6943 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
6944 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
6945 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
6948 * genattr.c (main): New variable num_insn_reservations. Increase
6949 it if there is DEFINE_INSN_RESERVATION. Output automaton based
6950 pipeline hazard recognizer interface.
6952 * genattrtab.h: New file.
6954 * genattrtab.c: Include genattrtab.h.
6955 (attr_printf, check_attr_test, make_internal_attr,
6956 make_numeric_value): Move protypes into genattrtab.h. Define them
6958 (num_dfa_decls): New global variable.
6959 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
6960 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
6961 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
6962 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
6964 * genautomata.c: New file.
6966 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
6968 * sched-int.h: (curr_state): Add the external definition for
6969 automaton pipeline interface.
6970 (haifa_insn_data): Add comments for members blockage and units.
6972 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6973 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6974 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6975 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6976 TARGET_SCHED_DFA_POST_CYCLE_INSN,
6977 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6978 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
6980 (TARGET_SCHED): Use the new macros.
6982 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
6983 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
6984 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
6985 dfa_bubble): New members in gcc_target.sched.
6987 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
6988 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
6989 (insn_queue): Redefine it as pointer to array.
6990 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
6992 (max_insn_queue_index_macro_value): New variable.
6993 (curr_state, dfa_state_size, ready_try): New varaibles for
6994 automaton interface.
6995 (ready_element, ready_remove, max_issue): New function prototypes
6996 for automaton interface.
6997 (choose_ready): New function prototype.
6998 (insn_unit, blockage_range): Add comments.
6999 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7000 FUNCTION_UNITS_SIZE == 0.
7001 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7002 actual_hazard, potential_hazard): Add comments.
7003 (insn_cost): Use cost -1 as undefined value. Remove
7004 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7006 (ready_element, ready_remove): New functions for automaton
7008 (schedule_insn): Add new code for automaton pipeline interface.
7009 (queue_to_ready): Add new code for automaton pipeline interface.
7010 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7011 (debug_ready_list): Print newline when the queue is empty.
7012 (max_issue): New function for automaton pipeline interface.
7013 (choose_ready): New function.
7014 (schedule_block): Add new code for automaton pipeline interface.
7015 Print ready list before scheduling each insn.
7016 (sched_init): Add new code for automaton pipeline interface.
7017 Initiate insn cost by -1.
7018 (sched_finish): Free the current automaton state and finalize
7019 automaton pipeline interface.
7021 * sched-rgn.c: Include target.h.
7022 (init_ready_list, new_ready, debug_dependencies): Add new code for
7023 automaton pipeline interface.
7025 * sched-vis.c: Include target.h.
7026 (get_visual_tbl_length): Add code for automaton interface.
7027 (target_units, print_block_visualization): Add comments.
7029 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7030 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7031 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7032 (getruntime.o, genautomata.o): New entries.
7033 (genattrtab.o): Add new dependency file genattrtab.h.
7034 (genattrtab): Add new dependencies. Link it with `libm.a'.
7035 (getruntime.o, hashtab.o): New entries for canadian cross.
7037 * doc/md.texi: Description of automaton based model.
7039 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7041 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7042 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7043 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7044 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7045 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7046 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7047 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7049 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7050 MAX_DFA_ISSUE_RATE): New macro descriptions.
7052 * doc/contrib.texi: Add dfa based scheduler contribution.
7054 * doc/gcc.texi: Add more information about genattrtab.
7056 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7058 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7059 adjust_address_nv call.
7061 2002-04-29 Janis Johnson <janis187@us.ibm.com>
7063 * doc/install.texi (Testing): Provide additional information, and
7064 a stronger encouragement, for running the testsuites.
7066 2002-04-29 DJ Delorie <dj@redhat.com>
7068 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7069 given in upper case.
7071 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7073 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7074 Solaris 2 <widec.h> if missing.
7075 * fixinc/fixincl.x: Regenerate.
7076 * fixinc/tests/base/widec.h: New file.
7078 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7080 * toplev.c (f_options): Add "profile" switch so that
7081 -fno-profile can be used to disable -p.
7083 2002-04-29 Bernd Schmidt <bernds@redhat.com>
7085 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7087 * tree.c (build_common_tree_nodes_2): Likewise.
7088 * tree.h (enum tree_index): Likewise.
7089 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7091 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7093 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7094 (ix86_expand_builtin): Add support for SSE2 builtins.
7095 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7096 (VALID_SSE_REG_MODE): Use it.
7097 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7098 (enum ix86_builtins): Add SSE2 builtins.
7099 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7100 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7101 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7102 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7103 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7104 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7105 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7106 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7107 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7108 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7109 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7110 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7111 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7112 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7113 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7114 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7115 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7116 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7117 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7118 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7119 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7120 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7121 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7122 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7123 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7124 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7125 lfence_insn): New patterns.
7126 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7127 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7129 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7131 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7133 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7135 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7137 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7138 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7139 and CPU instead of cpu.
7141 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7143 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7145 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7146 (rest_of_compilation): Do if conversion only when asked for.
7147 (parse_options_and_default_flags): Set new variables to 1 for -O1
7148 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7150 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7152 * i386.c (dbx64_register_map): Fix typo.
7154 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7156 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7157 real_one_half, real_bb_freq_max): New static variables.
7158 (debug_profile_bbauxs): Kill.
7159 (process_note_predictions): Kill unused variable.
7160 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7162 (propagate_freq): Use REAL_ARITHMETICS.
7163 (estimate_bb_frequencies): Likevise; init new static variables.
7164 * Makefile.in (predict.o): Add dependency on real.h
7166 2002-04-28 David S. Miller <davem@redhat.com>
7169 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7170 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7171 several {reads,writes} instead.
7172 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7175 2002-04-27 David S. Miller <davem@redhat.com>
7178 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7181 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7182 including signal.h and sys/ucontext.h, not needed.
7184 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7186 * varasm.c (output_constant_def): Correct test for not calling
7187 ENCODE_SECTION_INFO for INTEGER_CST.
7189 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7191 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7192 keep most cases as function eval_token.
7193 (eval_token): New function.
7194 (_cpp_parse_expr): Read token here for improved diagnostics.
7195 Don't use op_as_text. Detect bad ':' here.
7196 (reduce): Don't detect bad ':' here.
7197 (op_as_text): Remove.
7198 * cpphash.h (_cpp_test_assertion): Change prototype.
7199 * cpplib.c (_cpp_test_assertion): Change prototype.
7201 2002-04-28 Richard Henderson <rth@redhat.com>
7204 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7205 (ggc_mark_rtx_children): New.
7207 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7210 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7211 after call peepholes for UltraSPARC.
7212 (call + jump 64-bit peepholes): Remove.
7214 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7217 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7218 result as temporary value.
7220 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7223 * toplev.c (rest_of_compilation): Only run regrename and copy
7224 propagation if optimizing.
7226 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7228 PR optimization/6475
7229 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7230 register of REGNO_DECL (i).
7231 * Makefile.in (reload1.o): Add $(TREE_H).
7233 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7235 * cppexp.c (lex): Update to use state.skip_eval.
7236 (struct op): Remove prio and flags members.
7237 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7238 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7239 (LEFT_ASSOC): New macro.
7240 (optab): New table of operator priorities and flags.
7242 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7243 malloc-ed parser stack.
7244 (reduce): New; reduce the operator stack.
7245 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7246 * cpphash.h (struct op): Predeclare.
7247 (struct cpp_reader): New members op_stack, op_limit.
7248 (struct lexer_state): New member skip_eval.
7249 (_cpp_parse_expr): Update.
7250 (_cpp_expand_op_stack): New.
7251 * cpplib.c (do_if): Update.
7252 * cppinit.c (cpp_create_reader): Create op stack.
7253 (cpp_destroy): And destroy it.
7254 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7255 (TTYPE_TABLE): Correct.
7257 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7260 * c-decl.c (duplicate_decls): Call merge_weak.
7261 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7262 * output.h (merge_weak): Prototype merge_weak.
7263 * varasm.c (merge_weak): New function.
7264 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7265 Mark RTL with SYMBOL_REF_WEAK.
7267 2002-04-27 Kurt Garloff <garloff@suse.de>
7269 * tree-inline.c (inlinable_function_p): Improve heuristics
7270 by using a smoother function to cut down allowable inlinable size.
7271 * param.def: Add parameters max-inline-insns-single,
7272 max-inline-slope, min-inline-insns that determine the exact
7273 shape of the above function.
7274 * param.h: Likewise.
7276 2002-04-26 Richard Henderson <rth@redhat.com>
7278 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7279 (yyoverflow): Re-add. Set them.
7280 (free_parser_stacks): New.
7281 * c-common.h: Declare it.
7282 * c-lex.c (c_common_parse_file): Call it.
7284 2002-04-26 Richard Henderson <rth@redhat.com>
7286 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7287 for fallthru search.
7289 2002-04-26 Eric Christopher <echristo@redhat.com>
7291 PR optimization/3700
7292 * config/mips/mips.c (mips_issue_rate): Define. New function.
7293 (TARGET_SCHED_ISSUE_RATE): Use.
7295 2002-04-25 David S. Miller <davem@redhat.com>
7298 * reorg.c (optimize_skip): Do not allow exception causing
7299 instructions to be considered for delay slots.
7300 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7301 (relax_delay_slots): Do not try to consider exception causing
7302 instructions as redundant.
7304 2002-04-26 Richard Henderson <rth@redhat.com>
7307 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7309 2002-04-26 Mark Mitchell <mark@codesourcery.com>
7312 * config/i386/i386.md (untyped_call): Return the value in a float
7313 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7316 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
7318 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7319 in unsigned-ness correctly.
7321 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7323 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7324 portable runtime model.
7326 2002-04-26 Richard Henderson <rth@redhat.com>
7328 * c-parse.in (yyoverflow): Revert.
7330 2002-04-26 David Edelsohn <edelsohn@gnu.org>
7331 Richard Henderson <rth@redhat.com>
7333 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7334 result as temporary value.
7336 2002-04-26 Richard Henderson <rth@redhat.com>
7339 * c-common.c (fix_string_type): Split out of ...
7340 (combine_strings): ... here. Take a varray, not a tree list.
7341 (c_expand_builtin_printf): Use fix_string_type.
7342 * c-common.h: Update decls.
7343 * c-parse.in (string): Remove. Update all uses to use STRING
7344 instead, and not call combine_strings.
7347 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7348 (build_asm_stmt): Likewise.
7349 * objc/objc-act.c (my_build_string): Use fix_string_type.
7350 (build_objc_string_object): Build varray for combine_strings.
7352 2002-04-26 Bo Thorsen <bo@suse.co.uk>
7354 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7357 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7359 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7360 (HAVE_NO_R_OPERAND): Remove.
7361 (HAVE_VALUE): Remove.
7362 (op_to_prio): Update.
7363 (UNARY): Don't alter flags.
7364 (_cpp_parse_expr): want_value used to indicate whether
7365 a number or unary operator is expected next. Distinguish
7366 unary and binary +/-.
7367 (op_as_text): Update for unary operators.
7369 2002-04-25 Richard Henderson <rth@redhat.com>
7372 * c-parse.in (yyoverflow): New.
7374 2002-04-25 Richard Henderson <rth@redhat.com>
7377 * c-common.c (shorten_compare): Simplfy conditions leading to
7378 the generation of a warning.
7380 2002-04-25 Richard Henderson <rth@redhat.com>
7383 * expmed.c (extract_bit_field): Fall through to generic code rather
7384 than aborting on subreg special case.
7386 2002-04-25 David S. Miller <davem@redhat.com>
7388 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7389 for DECL being NULL.
7391 2002-04-25 Steve Christiansen <smc@us.ibm.com>
7393 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7395 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7397 * c-decl.c (grokdeclarator): Remove outdated ??? note
7398 on invalid declaration of flexible array members.
7400 2002-04-25 Richard Henderson <rth@redhat.com>
7402 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7404 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7406 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7407 needed by the compiler, even if they are used as global regs.
7409 2002-04-25 Matt Hiller <hiller@redhat.com>
7411 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7413 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7414 of the corresponding functions.
7415 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7418 2002-04-25 Matt Hiller <hiller@redhat.com>
7420 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7422 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7423 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7424 registers, adjust comment accordingly.
7425 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7426 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7427 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7428 for coprocessor registers.
7429 (ADDITIONAL_REGISTER_NAMES): Include
7430 ALL_COP_ADDITIONAL_REGISTER_NAMES.
7432 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7433 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7434 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7435 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7436 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7438 (mips_char_to_class): Adjust comment to include coprocessor
7441 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7443 (mips_reg_names, mips_regno_to_class): Include coprocessor
7445 (mips_sw_reg_names): Ditto, make non-static.
7446 (mips_move_1word): Handle moves to and from coprocessor registers.
7447 (mips_move_2words): Handle moves to and from coprocessor
7449 (mips_class_max_nregs, mips_register_move_cost): Handle
7450 coprocessor register classes.
7451 (override_options): Initialize mips_char_to_class and
7452 mips_hard_regno_mode_ok properly for coprocessor registers.
7454 * config/mips/mips.md (movdi_internal, movdi_internal2,
7455 movsi_internal1, movsi_internal2): Add constraint-sets for
7456 coprocessor registers.
7457 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7458 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7460 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7461 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7463 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7464 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7466 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7467 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7470 * doc/tm.texi: Document feature.
7472 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7474 * integrate.c (function_attribute_inlinable_p): Simplify.
7475 Check the table pointer is not NULL.
7477 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7479 * doc/c-tree.texi: Fix typo in introduction.
7481 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7483 * c-common.h (c_common_parse_file): Update.
7484 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7485 * c-lex.c (YYDEBUG): Get from c-lex.h.
7486 (c_common_parse_file): Update.
7487 * c-lex.h (YYDEBUG, yydebug): New.
7488 * c-parse.in (YYDEBUG): Get from c-lex.h.
7489 (c_set_yydebug): Remove.
7490 * c-tree.h (c_set_yydebug): Remove.
7491 * langhooks-def.h (lhd_do_nothing_i): New.
7492 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7493 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7494 * langhooks.c (lhd_do_nothing_i): New.
7495 (lhd_set_yydebug): Remove.
7496 * langhooks.h (struct lang_hooks): Update.
7497 * toplev.c (set_yydebug): New.
7498 (compile_file): Update call to parse_file hook.
7499 (decode_d_option): Update.
7501 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7503 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7505 * loop.c (load_mems): Don't change the interface of called functions.
7507 * calls.c (expand_call): Take current_function_pretend_args_size
7508 into account when setting argblock for sibcalls.
7510 2002-04-24 Matt Hiller <hiller@redhat.com>
7512 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7515 * cpplex.c (skip_line_comment): Process comment one multibyte
7516 character at a time rather than one char at a time, if
7518 (parse_string): Process string one multibyte character at a time
7519 rather than one char at a time, if appropriate.
7520 * c-lex.c (lex_string): Lex and copy multibyte strings
7522 * cpplib.h (cppchar_t): Change to unsigned.
7524 2002-04-24 Richard Henderson <rth@redhat.com>
7527 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7530 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7532 * sh.c (sh_va_arg): If argument was passed by reference,
7533 dereference the pointer.
7535 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7537 * sh.md (divsi3_i4_media): Use match_operand for input values
7538 rather than hard registers.
7539 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7540 unnecessarily through hard registers. Keep copies of pseudo
7541 registers outside of the libcall sequence.
7543 * sh.md (casesi_shift_media): Add modes.
7545 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7548 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7550 * attribs.c (c_common_attribute_table): Move table and handlers
7552 (format_attribute_table, lang_attribute_table,
7553 lang_attribute_common): Remove.
7554 (init_attributes): Replace NULL pointers with pointers to the
7556 (handle_packed_attribute, handle_nocommon_attribute,
7557 handle_common_attribute, handle_noreturn_attribute,
7558 handle_noinline_attribute, handle_always_inline_attribute,
7559 handle_used_attribute, handle_unused_attribute,
7560 handle_const_attribute, handle_transparent_union_attribute,
7561 handle_constructor_attribute, handle_destructor_attribute,
7562 handle_mode_attribute, handle_section_attribute,
7563 handle_aligned_attribute, handle_weak_attribute,
7564 handle_alias_attribute, handle_visibility_attribute,
7565 handle_no_instrument_function_attribute, handle_malloc_attribute,
7566 handle_no_limit_stack_attribute, handle_pure_attribute,
7567 handle_deprecated_attribute, handle_vector_size_attribute,
7568 vector_size_helper): Move to c-common.c.
7569 * c-common.c (c_common_attribute_table,
7570 handle_packed_attribute, handle_nocommon_attribute,
7571 handle_common_attribute, handle_noreturn_attribute,
7572 handle_noinline_attribute, handle_always_inline_attribute,
7573 handle_used_attribute, handle_unused_attribute,
7574 handle_const_attribute, handle_transparent_union_attribute,
7575 handle_constructor_attribute, handle_destructor_attribute,
7576 handle_mode_attribute, handle_section_attribute,
7577 handle_aligned_attribute, handle_weak_attribute,
7578 handle_alias_attribute, handle_visibility_attribute,
7579 handle_no_instrument_function_attribute, handle_malloc_attribute,
7580 handle_no_limit_stack_attribute, handle_pure_attribute,
7581 handle_deprecated_attribute, handle_vector_size_attribute,
7582 vector_size_helper): Move from attribs.c.
7583 * c-common.h (c_common_attribute_table,
7584 c_common_format_attribute_table): New.
7585 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7586 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7587 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7588 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7589 (LANG_HOOKS_INITIALIZER): Update.
7590 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7591 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7592 * target.h: Update comment.
7593 * tree.c (default_target_attribute_table): Remove.
7594 * tree.h (default_target_attribute_table, format_attribute_table,
7595 lang_attribute_table, lang_attribute_common): Remove.
7597 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7598 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7600 2002-04-24 Jason Merrill <jason@redhat.com>
7602 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7603 * dwarf2out.c (dwarf_attr_name): Support it.
7604 (gen_array_type_die): Emit it.
7605 (lookup_type_die): No special handling for VECTOR_TYPE.
7606 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7608 2002-04-24 Richard Henderson <rth@redhat.com>
7610 * config/mips/mips.md (movdi_usd): Renumber.
7612 2002-04-24 David S. Miller <davem@redhat.com>
7615 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7616 32-bit Sparc and current_function_returns_struct is true.
7618 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7620 * loop.c (canonicalize_condition): Use gen_int_mode.
7622 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
7624 * config/rs6000/altivec.h: Cleanup file. Add non individual
7646 (vec_vcmpequb): New.
7647 (vec_vcmpequh): New.
7648 (vec_vcmpequw): New.
7649 (vec_vcmpeqfp): New.
7650 (vec_vcmpgefp): New.
7651 (vec_vcmpgtub): New.
7652 (vec_vcmpgtsb): New.
7653 (vec_vcmpgtuh): New.
7654 (vec_vcmpgtsh): New.
7655 (vec_vcmpgtuw): New.
7656 (vec_vcmpgtsw): New.
7657 (vec_vcmpgtfp): New.
7658 (vec_vcmpgefp): New.
7663 (vec_vexptefp): New.
7668 (vec_lde): Add vector float variant.
7673 (vec_vmhaddshs): New.
7695 (vec_vmladduhm): New.
7696 (vec_vmhraddshs): New.
7698 (vec_vmsummbm): New.
7699 (vec_vmsumuhm): New.
7700 (vec_vmsumshm): New.
7701 (vec_vmsumuhs): New.
7702 (vec_vmsumshs): New.
7711 (vec_vnmsubfp): New.
7729 (vec_vrsqrtefp): New.
7740 (vec_vspltisb): New.
7741 (vec_vspltish): New.
7742 (vec_vspltisw): New.
7767 (vec_vsum4ubs): New.
7768 (vec_vsum4sbs): New.
7769 (vec_vsum4shs): New.
7770 (vec_vsum2sws): New.
7781 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
7784 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7785 added literals from substracted literals.
7786 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7787 (fold) [associate]: Preserve MINUS_EXPR if needed.
7789 2002-04-23 Zack Weinberg <zack@codesourcery.com>
7791 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7794 2002-04-23 Tom Tromey <tromey@redhat.com>
7796 * gcc.c: Added --resource. For PR java/6314.
7798 2002-04-23 David O'Brien <obrien@FreeBSD.org>
7800 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
7801 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7804 2002-04-23 David O'Brien <obrien@FreeBSD.org>
7806 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7808 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7810 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7812 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7813 (ix86_expand_clrstr): Fix typo.
7814 * loop.c (gen_load_of_final_value): New.
7815 (loop_givs_rescan, strength_reduce, check_dbra_loop):
7818 2002-04-23 Roger Sayle <roger@eyesopen.com>
7820 * builtins.c (builtin_memset_gen_str): New function.
7821 (expand_builtin_memset): Optimize the case of constant length, but
7824 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
7826 * config/rs6000/altivec.h (vec_step): Remove extraneous
7828 (vec_ctu): Cast return.
7830 2002-04-23 Alan Modra <amodra@bigpond.net.au>
7833 * function.h: (struct function): Add profile_label_no field.
7834 (current_function_profile_label_no): Define.
7835 * function.c: (profile_label_no): New static var.
7836 (expand_function_start): Increment it, and copy to
7837 current_function_profile_label_no.
7838 * output.h (profile_label_no): Delete.
7839 * final.c (profile_label_no): Delete.
7840 (profile_function): Use current_function_profile_label_no.
7841 (final_end_function): Don't increment profile_label_no here.
7842 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
7843 profile_label_no with current_function_profile_label_no.
7844 * config/pa/pa.c (current_function_number): Delete.
7845 (pa_output_function_prologue): Don't output profile label here.
7846 (hppa_profile_hook): Use label_no param rather than
7847 current_function_number.
7848 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
7849 * config/pa/pa.h: .. here.
7850 (FUNCTION_PROFILER): Output profile label here.
7852 2002-04-22 Eric Christopher <echristo@redhat.com>
7854 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
7855 patch of 2002-04-09 due to binutils issues.
7856 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
7858 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
7860 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
7861 constraint to 'o' for m=r and r=m alternatives.
7862 ("*movv8hi_internal1"): Same.
7863 ("*movv16qi_internal1"): Same.
7864 ("*movv4sf_internal1"): Same.
7866 2002-04-22 Janis Johnson <janis187@us.ibm.com>
7868 * rtl.h (RTX_FLAG): New macro.
7869 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
7870 * final.c (alter_subreg): Use macro to access rtx flag.
7871 * integrate.c (copy_rtx_and_substitute): Use new access macro.
7872 * print-rtl.c (print_rtx): Use new access macro.
7874 * cse.c (insert): Check rtx code before accessing flag.
7876 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
7877 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
7878 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
7879 convert_const_symbol_ref, make_canonical, make_alternative_compare,
7880 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
7881 simplify_test_exp, optimize_attrs, simplify_by_exploding,
7882 find_and_mark_used_attributes, unmark_used_attributes,
7883 add_values_to_cover, simplify_with_current_value,
7884 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
7885 copy_rtx_unchanging, main): Use new access macros.
7887 2002-04-22 Tom Rix <trix@redhat.com>
7889 * expmed.c (init_expmed): Generate shifted constant once.
7891 2002-04-22 Zack Weinberg <zack@codesourcery.com>
7893 * c-lex.c (lex_charconst): Call convert to get constant in
7894 proper type; don't just smash the type field.
7897 * config.gcc: Add list of obsolete configurations. Disallow
7898 building these without --enable-obsolete.
7899 * doc/install.texi: Document --enable-obsolete and obsoletion
7900 policy. Mention obsoletion of individual targets in
7903 2002-04-22 Richard Henderson <rth@redhat.com>
7905 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
7907 2002-04-22 Mark Mitchell <mark@codesourcery.com>
7910 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
7911 (walk_fixup_memory_subreg): Likewise.
7912 (fixup_var_refs_insn): Adjust accordingly.
7913 (fixup_var_refs_1): Likewise.
7915 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
7917 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
7918 LIBPATH_ARCH64_SPEC): Define.
7919 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
7920 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
7921 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
7922 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
7924 2002-04-22 Joel Sherrill <joel@OARcorp.com>
7926 * gthr-rtems.h: Correct prototypes to remove warnings.
7928 2002-04-22 Richard Henderson <rth@redhat.com>
7931 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
7933 * gcse.c (free_insn_expr_list_list): New.
7934 (clear_modify_mem_tables): Use it. Fix bit set usage.
7935 (canon_list_insert): Use EXPR_LISTs for expressions.
7936 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
7938 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
7940 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
7941 file change and include code to _cpp_pop_buffer.
7942 * cpphash.h (struct pending_option): Predeclare.
7943 (struct cpp_reader): New member next_include_file.
7944 (_cpp_pop_file_buffer): Update.
7945 (_cpp_push_next_buffer): Update, rename.
7946 * cppinit.c (cpp_destroy): Free include chain and pending here.
7947 (cpp_finish_options): Simplify.
7948 (_cpp_push_next_buffer): Rename and clean up.
7949 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
7951 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
7953 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
7955 * config/rs6000/altivec.h (vec_xor): Add variant for both args
7956 being vector signed int.
7958 (vec_xor): Add variant for both args being vector signed char.
7959 Remove redundant variant.
7962 2002-04-21 David S. Miller <davem@redhat.com>
7964 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
7965 compare mode in output RTL.
7967 2002-04-22 David Edelsohn <edelsohn@gnu.org>
7969 * config/rs6000/rs6000.c (rs6000_override_options): Correct
7970 style and formatting of previous patch.
7972 2002-04-22 Alan Modra <amodra@bigpond.net.au>
7974 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
7975 flag_pic for ABI_AIX.
7977 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
7979 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
7980 * cppfiles.c (read_include_file): Similarly.
7981 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
7982 uxstrdup ustrchr, ufputs): Similarly.
7983 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
7984 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
7985 cpp_ideq, parse_identifier, parse_number): Similarly.
7986 * cpplib.c (struct directive, dequote_string, D, run_directive,
7987 cpp_push_buffer): Similarly.
7988 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
7989 _cpp_create_definition, check_trad_stringification,
7990 cpp_macro_definition): Similarly.
7992 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
7994 * cppmacro.c (funlike_invocation_p): Don't step back
7997 2002-04-21 David Edelsohn <edelsohn@gnu.org>
7999 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8002 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8004 * doc/invoke.texi: Remove Chill references.
8005 * doc/gcc.texi: Update last modified date.
8007 2002-04-20 Kazu Hirata <kazu@hxi.com>
8009 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8010 push and pop. Replace add.l with add.w.
8012 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8014 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8015 multiply instructions for H8/300H case.
8017 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8019 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8020 Bum three instructions from each routine.
8022 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8024 * Makefile.in: Update.
8025 * decl.c (push_c_function_context, pop_c_function_context,
8026 mark_c_function_context): Rename for consistency.
8027 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8028 * c-tree.h (push_c_function_context, pop_c_function_context,
8029 mark_c_function_context): Rename for consistency.
8030 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8031 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8032 * function.c (init_lang_status, save_lang_status,
8033 restore_lang_status, mark_lang_status, free_lang_status):
8034 Move to langhooks.h.
8035 (push_function_context_to, pop_function_context_from,
8036 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8038 * function.h (init_lang_status, save_lang_status,
8039 restore_lang_status, mark_lang_status, free_lang_status):
8040 Move to langhooks.h.
8041 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8042 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8043 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8044 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8045 (LANG_HOOKS_INITIALIZER): Update.
8046 (lhd_do_nothing_f): New.
8047 * langhooks.h (struct lang_hooks_for_functions): New.
8048 (struct lang_hooks): New hooks.
8049 * langhooks.c (lhd_do_nothing_f): New.
8051 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8052 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8054 2002-04-19 David S. Miller <davem@redhat.com>
8056 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8057 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8059 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8061 PR optimization/3756
8062 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8063 x = ((int) y < 0) ? cst1 : cst2.
8065 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8068 * function.c: Reapply patch for c/6358.
8069 (expand_function_end): Copy decl_rtl's mode, not
8070 current_function_return_rtx mode.
8072 2002-04-19 Joel Sherrill <joel@OARcorp.com>
8074 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8077 2002-04-19 Tom Tromey <tromey@redhat.com>
8079 * doc/install.texi (Specific): Update status of Solaris 2.8.
8082 2002-04-19 Andreas Schwab <schwab@suse.de>
8084 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8085 (PUT_REAL): Restore old definition.
8087 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8088 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8090 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8091 binutils 2.11.2 and higher generate smaller binaries than Sun's
8094 2002-04-19 Mark Mitchell <mark@codesourcery.com>
8097 * toplev.c (rest_of_compilation): Do not defer functions for which
8098 TREE_SYMBOL_REFERENCED has already been set.
8100 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8102 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8105 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8107 * builtins.c: Include langhooks.h.
8108 (lang_type_promotes_to): Remove.
8109 (expand_builtin_va_arg): Use new hook.
8110 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8111 (simple_type_promotes_to): Move to c-typeck.c.
8112 * c-common.h (simple_type_promotes_to): Remove.
8113 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8114 * c-format.c: Include langhooks.h.
8115 (check_format_types): Update.
8116 * c-tree.h (c_type_promotes_to): New.
8117 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8118 (type_lists_compatible_p): Update.
8119 * langhooks-def.h (lhd_type_promotes_to): New.
8120 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8121 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8122 * langhooks.c (lhd_type_promotes_to): New.
8123 * langhooks.h (struct lang_hooks_for_types): New hook.
8124 * tree.h (lang_type_promotes_to): Remove.
8126 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8128 2002-04-18 Richard Henderson <rth@redhat.com>
8130 * function.c: Revert patch for c/6358.
8132 2002-04-18 Richard Henderson <rth@redhat.com>
8134 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8135 blocks. Handle multiple references to the TRAP block. Handle
8136 non-adjacent THEN and OTHER blocks.
8138 2002-04-18 Richard Henderson <rth@redhat.com>
8140 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8141 crash with no type for by-mode libcalls.
8143 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8145 2002-04-18 Bob Wilson <bob.wilson@acm.org>
8147 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8148 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8149 the register windows.
8151 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8153 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8154 appropriate. Document need for extended precision even when
8155 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8156 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8157 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8158 instead of relying on later syntax error when REAL_WIDTH > 5.
8159 * real.c: Define NE based only on whether or not we have a
8160 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8161 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8162 define GET_REAL and PUT_REAL as simple memcpy operations; no
8163 need to byteswap or round.
8164 Use #error instead of #ifdef-ing out the entire file, for
8165 prompt error detection.
8167 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8169 2002-04-18 David S. Miller <davem@redhat.com>
8171 * config/sparc/sparc.h (BRANCH_COST): Define.
8173 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8176 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8178 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8179 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8180 propagate_block calls after relaxation loop using new variable
8181 stabilized_prop_flags.
8183 2002-04-18 Richard Henderson <rth@redhat.com>
8185 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8186 (ia64_va_arg): Expect variable sized types by reference.
8187 * config/ia64/ia64-protos.h: Update.
8188 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8189 ia64_function_arg_pass_by_reference.
8191 2002-04-18 Richard Henderson <rth@redhat.com>
8193 * ifcvt.c: Include except.h.
8194 (block_has_only_trap): Break out from find_cond_trap.
8195 (find_cond_trap): Use it. Always delete the trap block.
8196 (merge_if_block): Allow then block null. Be less simplistic about
8197 what insns can end a block.
8198 * Makefile.in (ifcvt.o): Depend on except.h.
8200 * config/ia64/ia64.md (trap, conditional_trap): New.
8202 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8205 * function.c (assign_parms): Assign hard current_function_return_rtx
8207 (expand_function_end): ...not here.
8209 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8211 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8212 * c-tree.h (c_incomplete_type_error): New.
8213 * c-typeck.c (require_complete_type, build_component_ref): Update.
8214 (incomplete_type_error): Rename.
8215 * langhooks-def.h (lhd_incomplete_type_error): New.
8216 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8217 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8218 * langhooks.c (lhd_incomplete_type_error): New.
8219 * langhooks.h (struct lang_hooks_for_types): New hook.
8220 * tree.c (size_in_bytes): Use new hook.
8221 * tree.h (incomplete_type_error): Remove.
8223 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8225 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8227 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8228 TARGET_FLOAT_FORMAT blocks.
8230 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8232 * doc/install.texi (Downloading the source): Do not mention Chill
8233 any longer, but mention Ada.
8234 (Configuration): Do not mention Chill any longer.
8236 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
8238 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8240 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8242 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8245 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8247 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8248 instead of unsigned_type.
8250 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8252 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8253 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8256 2002-04-18 Bernd Schmidt <bernds@redhat.com>
8258 * attribs.c (vector_type_node_list): New static variable.
8259 (handle_vector_size_attribute): Use it to avoid generating a
8260 new type node each time we are called.
8262 * combine.c (subst): Avoid trying to make a vector mode subreg of
8263 an integer constant.
8264 (gen_lowpart_for_combine): Likewise.
8266 2002-04-18 Roger Sayle <roger@eyesopen.com>
8267 Jakub Jelinek <jakub@redhat.com>
8269 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8270 for integer constant c (if x has unsigned type or sign bit is not
8271 set in c). This folds the zero/sign extension into the bit-wise and
8274 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8277 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8280 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8282 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8284 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8286 * gcc.c (read_specs): Detect and fail if an attempt is made to
8287 rename a spec string to an already existing string.
8289 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8291 * config/s390/s390.c (legitimize_pic_address): Do not generate
8292 illegal address constant without CONST.
8294 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8296 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8297 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8299 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8301 PR optimization/6305
8302 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8303 to make sure previous reloads are taken into account. Generate
8304 better code if one operand is an in-range immediate constant.
8306 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8308 * doc/install.texi (Building): libgcj requires GNU make.
8310 2002-04-17 Jakub Jelinek <jakub@redhat.com>
8313 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8314 even if hard quad and register is not floating.
8315 (movtf reg<-mem split): Disallow splitting if hard quad and
8316 register is floating.
8317 (movtf mem<-reg split): Likewise.
8318 * config/sparc/sparc.c (fp_register_operand): New predicate.
8319 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8321 2002-04-17 Zack Weinberg <zack@codesourcery.com>
8323 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8324 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8325 (unprotoize.o): Ditto. Build from protoize.c. Define
8326 UNPROTOIZE on command line.
8327 * protoize.c: Include cppdefault.h. Delete include_defaults.
8328 (in_system_include_dir): Use cpp_include_defaults (defined in
8330 * unprotoize.c: Delete file.
8332 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
8334 * config/rs6000/altivec.h (vec_ld): Add array variants.
8338 2002-04-17 Alan Matsuoka <alanm@redhat.com>
8339 Aldy Hernandez <aldyh@redhat.com>
8341 * config/rs6000/altivec.h: Define __ALTIVEC__.
8348 Add parentheses to all macro arguments.
8350 2002-04-16 Richard Henderson <rth@redhat.com>
8353 * except.c (remove_eh_handler): Insert inner regions at beginning
8354 of sibling chain. Refactor expressions.
8356 2002-04-16 Richard Henderson <rth@redhat.com>
8358 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8359 * config/sparc/sol2-gas-bi.h: New file.
8360 * config.gcc (sparc*-solaris): Add it as needed.
8361 * configure.in (AS_SPARC64_FLAG): Remove check.
8362 * config.in, configure: Regenerate.
8364 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8366 2002-04-16 Richard Henderson <rth@redhat.com>
8368 * config/mips/mips.c (override_options): Don't override N32 for
8372 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8373 (HILO_delay): Set can_delay false.
8375 2002-04-16 Dale Johannesen <dalej@apple.com>
8377 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8378 instruction addresses.
8379 (rs6000_output_function_epilogue): Likewise.
8381 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
8383 * c-parse.in (poplevel, compstmt_start,
8384 compstmt_primary_start): Add ending ';', in accordance
8387 2002-04-16 Richard Henderson <rth@redhat.com>
8389 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8390 Adjust tm_file order to get TARGET_DEFAULT set properly.
8391 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8392 * doc/install.texi (sparc-solaris): Update.
8394 2002-04-16 Dale Johannesen <dalej@apple.com>
8396 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8397 comparison operands do not match each other or if modes of
8398 conditions do not match result.
8400 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
8403 * config/s390/s390.md (mulsidi3): Set both subregs of the
8406 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
8408 * config/rs6000/altivec.h (vec_addc): Type check.
8410 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8413 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8415 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8417 2002-04-15 Richard Henderson <rth@redhat.com>
8419 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8420 call_really_used_regs too.
8422 2002-04-15 Richard Henderson <rth@redhat.com>
8424 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8426 2002-04-15 David S. Miller <davem@redhat.com>
8428 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8431 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8434 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8435 CONST_VECTOR is { 0, ... 0 }.
8437 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
8439 * doc/install.texi (Installing GCC: Configuration): Clarify
8440 the only supported ways to configure gcc.
8442 2002-04-15 Roland McGrath <roland@frob.com>
8444 * config.gcc (alpha*-*-gnu*): New target configuration.
8445 * config/alpha/gnu.h: New file for it.
8446 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8448 2002-04-16 Mark Mitchell <mark@codesourcery.com>
8450 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8451 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8452 * tree.h (expand_start_stmt_expr): Update prototype.
8453 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8454 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8455 on the STMT_EXPR created for the inline function.
8457 2002-04-15 Richard Henderson <rth@redhat.com>
8459 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8460 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8461 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8462 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8463 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8464 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8465 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8466 Define __gnu_linux__, not gnu_linux.
8467 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8469 2002-04-15 Mark Mitchell <mark@codesourcery.com>
8471 Remove Chill front end.
8472 * gcc.c (default_compilers): Remove Chill entries.
8473 * ch: Remove directory.
8474 * doc/frontends.texi: Remove information about Chill.
8475 * doc/sourcebuild.texi: Likewise.
8476 * doc/standards.texi: Likewise.
8478 2002-04-15 Douglas B Rupp <rupp@gnat.com>
8480 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8481 (LONGLONG_STANDALONE): Define.
8483 2002-04-15 David S. Miller <davem@redhat.com>
8485 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8486 Call emit_library_call with LCT_NORMAL.
8487 (sparc_initialize_trampoline): Use LCT_foo instead of
8488 magic constant in emit_library_call invocations.
8489 (sparc64_initialize_trampoline): Likewise.
8490 (sparc_profile_hook): Likewise.
8491 * config/sparc/sparc.md: Likewise.
8493 * config/sparc/sparc.c (sparc_extra_constraint_check):
8494 Fix type of argument 'c'.
8495 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8498 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8500 * diagnostic.h (output_buffer_state): Redefine.
8501 (output_format_decoder): New macro.
8502 (output_prefixing_rule): Likewise.
8503 (output_line_cutoff): Likewise.
8504 (diagnostic_format_decoder): Adjust.
8505 (diagnostic_prefixing_rule): Likewise.
8506 (diagnostic_line_cutoff): Likewise.
8507 (diagnostic_state): Likewise.
8508 (diagnostic_kind_count): Likewise.
8509 (diagnostic_buffer): Now a macro.
8511 * diagnostic.c (diagnostic_buffer): Remove definition.
8512 (output_is_line_wrapping): Adjust.
8513 (set_real_maximum_length): Likewise.
8514 (output_set_maximum_length): Likewise.
8515 (init_output_buffer): Likewise.
8516 (lhd_print_error_function): Likewise.
8517 (output_do_verbatim): Likewise.
8519 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8521 * cpperror.c (print_location): Don't print include chain
8523 (cpp_begin_message): Update to use DL_ macros.
8524 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8525 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8526 cpp_notice, cpp_notice_from_errno): Remove.
8527 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8530 * cppexp.c (CPP_ICE): Remove.
8531 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8532 lex, integer_overflow, _cpp_parse_expr): Update.
8533 * cppfiles.c (read_include_file, find_include_file,
8534 handle_missing_header, _cpp_read_file, remap_filename): Update.
8535 * cpphash.h (enum error_type): Remove.
8536 (_cpp_begin_message): Update.
8537 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8538 cpp_handle_option, cpp_post_options): Update.
8539 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8540 skip_whitespace, parse_identifier, parse_slow, parse_string,
8541 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8542 cpp_interpret_charconst): Update.
8543 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8544 lex_macro_node, do_undef, glue_header_name, parse_include,
8545 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8546 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8547 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8548 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8549 _cpp_pop_buffer, do_diagnostic): Update.
8550 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8551 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8552 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8553 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8554 cpp_notice, cpp_notice_from_errno): Remove.
8555 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8558 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8559 collect_args, enter_macro_context, save_parameter, parse_params,
8560 _cpp_create_definition, check_trad_stringification,
8561 cpp_macro_definition): Update.
8562 * cppmain.c (cpp_preprocess_file): Update.
8563 * fix-header.c (read_scan_file): Update.
8565 2002-04-14 Andreas Schwab <schwab@suse.de>
8567 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8569 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8571 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8573 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8575 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8578 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
8580 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8582 2002-04-13 Joel Sherrill <joel@OARcorp.com>
8584 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8585 sparc-elf and sparc-rtems targets.
8587 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8589 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8590 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8591 * arm/linux-elf.h: Likewise.
8592 * cris/aout.h: Likewise.
8593 * cris/linux.h: Likewise.
8594 * i370/linux.h: Likewise.
8595 * i386/gnu.h: Likewise.
8596 * i386/linux-aout.h: Likewise.
8597 * i386/linux-oldld.h: Likewise.
8598 * i386/linux.h: Likewise.
8599 * i386/linux64.h: Likewise.
8600 * ia64/linux.h: Likewise.
8601 * m68k/linux-aout.h: Likewise.
8602 * m68k/linux.h: Likewise.
8603 * mips/linux.h: Likewise.
8604 * pa/pa-linux.h: Likewise.
8605 * pj/linux.h: Likewise.
8606 * rs6000/sysv4.h: Likewise.
8607 * s390/linux.h: Likewise.
8608 * sh/linux.h: Likewise.
8609 * sparc/linux-aout.h: Likewise.
8610 * sparc/linux.h: Likewise.
8611 * sparc/linux64.h: Likewise.
8612 * xtensa/linux.h: Likewise.
8614 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
8616 * stmt.c (check_unique_operand_names): Expect operand names to
8617 be strings rather than identifiers. Use simple_cst_equal to
8619 (resolve_operand_name_1): Make same identifier to string change here.
8620 * c-parse.in (asm_operand): Convert a named operand into a string.
8621 * cp/parse.y (asm_operand): Likewise.
8623 2002-04-13 Andreas Schwab <schwab@suse.de>
8625 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8627 2002-04-12 Mark Mitchell <mark@codesourcery.com>
8629 Revert these changes:
8631 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8634 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8636 2002-04-12 Richard Henderson <rth@redhat.com>
8638 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8639 (sparc*-*-solaris): Clean up header files.
8640 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8641 and plan on generating 64-bit code.
8642 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8643 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8644 * config/sparc/sol2-sld-64.h: Rename ...
8645 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
8646 for AS_SPARC64_FLAG not defined.
8647 * config/sparc/sol2-gld-bi.h: New.
8648 * config/sparc/sol2-sld.h: Remove.
8649 * config/sparc/sol26-sld.h: New.
8650 * config/sparc/sol2.h: Tidy comments.
8651 * doc/install.texi: Document sparc-solaris configury changes.
8653 2002-04-12 Richard Henderson <rth@redhat.com>
8655 * recog.c (offsettable_address_p): Match the logic in adjust_address.
8657 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8658 in 64-bit mode only. Use only for 32-bit or MEDLOW.
8660 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8662 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8664 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
8666 * pa.c (pa_can_combine_p): Call extract_insn before calling
8669 2002-04-12 Douglas B Rupp <rupp@gnat.com>
8671 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8672 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8673 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8674 (CPP_PREDEFINES): Handle __declspec.
8675 * config/i386/t-interix (USER_H): Remove.
8677 2002-04-12 DJ Delorie <dj@redhat.com>
8679 * integrate.c (compare_blocks): Make comparisons safe for when
8680 sizeof(int) < sizeof(char *).
8681 (find_block): Likewise.
8683 2002-04-12 Jan Hubicka <jh@suse.cz>
8684 David Edelsohn <edelsohn@gnu.org>
8686 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8688 (symbol_ref_operand): New.
8689 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8690 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8692 2002-04-12 Andreas Schwab <schwab@suse.de>
8694 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8695 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8696 overrides the definition in config/svr4.h.
8698 2002-04-12 Eric Norum <eric.norum@usask.ca>
8700 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8701 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8702 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8703 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8704 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8705 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8706 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8707 definitions to config/rtems.h and make the targets more similar.
8709 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8711 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8712 POINTERS_EXTEND_UNSIGNED.
8713 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8714 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8716 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8719 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
8721 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8722 depends on TARGET_SHMEDIA, not TARGET_SH5.
8724 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
8726 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8727 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8729 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8731 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8734 2002-04-12 Andreas Schwab <schwab@suse.de>
8736 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8738 2002-04-12 Richard Henderson <rth@redhat.com>
8741 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8743 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8744 modes spanning multiple hard regs.
8746 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8748 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8750 * pa.c (pa_output_function_prologue): Don't accumulate the total
8751 number of code bytes when using TARGET_64BIT, or gas, SOM and not
8752 the portable runtime.
8753 (output_deferred_plabels): Handle 64bit plabels.
8754 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8755 generating pic code using the GAS assembler for object formats that
8756 are not SOM (ie., ELF32 and ELF64).
8757 (output_millicode_call): Check attribute type if attribute length is 28.
8758 Likewise use $PIC_pcrel$0. Only call get_attr_length and
8759 dbr_sequence_length once.
8760 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8761 dbr_sequence_length once.
8762 * pa.h (TARGET_SOM): Define if not defined.
8763 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8764 with GAS and not SOM.
8765 (jump, call_internal_reg, call_value_internal_reg): Likewise.
8766 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
8768 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8770 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8771 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8772 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8773 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8774 elfos.h and dbxelf.h values are fine now.
8775 * config/i386/freebsd.h, config/alpha/freebsd.h
8776 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8778 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8780 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8781 or set Acpu or Amachine. Reformat.
8782 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8784 (LINK_SPEC): Do not need to undef.
8785 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8786 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8787 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8789 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8790 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8791 (LINK_SPEC): Do not need to undef.
8792 (DONT_USE_BUILTIN_SETJMP): Do not define.
8793 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8794 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
8795 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8796 Remove trailing spaces.
8797 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8798 __ELF__, or set Acpu or Amachine. Reformat.
8799 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8802 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8804 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8805 all other *-*-freebsd* targets.
8807 2002-04-11 Richard Henderson <rth@redhat.com>
8809 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8811 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8813 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
8814 Include {cpu}/{cpu}.h thru tm_file.
8815 (alpha*-*-linux*ecoff): Remove target.
8816 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
8817 (LINK_SPEC): Remove, is not OS independent.
8818 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
8819 (LINK_SPEC): Do not need to #undef any longer.
8820 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
8822 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
8824 (LINK_SPEC): Moved here from alpha/elf.h.
8825 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
8827 * config/alpha/linux-ecoff.h: Remove.
8828 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
8829 (CPP_SPEC): Define _POSIX_SOURCE as needed.
8830 (CPP_SUBTARGET_SPEC): Do not define.
8831 (LINK_SPEC): Do not need to #undef any longer.
8832 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
8833 * config/alpha/vms.h: Likewise.
8835 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
8837 * doc/extend.texi: Remove old claim that typedefs cannot have
8838 an alignment attribute.
8840 2002-04-11 Jakub Jelinek <jakub@redhat.com>
8842 PR optimization/6177
8843 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
8844 bitpos is 0 and bitsize CONCAT size.
8846 2002-04-11 Jakub Jelinek <jakub@redhat.com>
8849 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
8851 2002-04-10 David O'Brien <obrien@FreeBSD.org>
8853 * config/alpha/freebsd.h: Minor reformatting.
8854 (CPP_SPEC): Define ELF and add cpp_subtarget.
8855 (ASM_SPEC): No longer needed.
8857 2002-04-11 Richard Henderson <rth@redhat.com>
8859 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
8860 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
8861 (dimode mem/zero splitter): New.
8863 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
8865 * config/cris/cris.c (cris_override_options): Tweak error message
8866 for PIC not implemented.
8868 * config/cris/cris.h: Tweak comments related to parameter-passing.
8870 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
8872 2002-04-10 Richard Henderson <rth@redhat.com>
8874 * except.c (add_ehl_entry): Allow duplicates after landing pad
8877 2002-04-10 David Edelsohn <edelsohn@gnu.org>
8879 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
8881 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
8883 * c-decl.c (c_init_decl_processing): Move generation of
8884 decls for g77_integer_type_node and friends from here ...
8885 * c-common.c (c_common_nodes_and_builtins): ... to here.
8887 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
8889 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
8890 is only used as frame pointer when frame_pointer_needed is true.
8892 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
8895 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
8896 for the fact that the pool entry uses two words.
8897 (movdf_hard_insn): Similarly. Also, ADR instruction can span
8899 (movdf_soft_insn): Similarly.
8900 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
8901 for the fact that the pool entry uses three words.
8903 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
8905 * config/mips/mips.c (mips_va_arg): When using the struct version
8906 of the EABI va_list, allow arguments in the register save area to
8907 take up less room than a stack argument.
8909 2002-04-10 Richard Henderson <rth@redhat.com>
8911 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
8912 if EXPAND_INITIALIZER.
8914 2002-04-09 Richard Henderson <rth@redhat.com>
8916 * config/alpha/alpha.md (movdi_er_maybe_g): New.
8917 * config/alpha/alpha.c (alpha_expand_mov): Use it.
8919 2002-04-10 Alan Modra <amodra@bigpond.net.au>
8921 PR optimization/6233
8922 * rtlanal.c (pure_call_p): New function.
8923 * rtl.h (pure_call_p): Declare.
8924 * loop.c (prescan_loop): Use it to set has_nonconst_call.
8925 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
8927 2002-04-09 Eric Christopher <echristo@redhat.com>
8929 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
8930 information to .comm directive.
8932 2002-04-09 Richard Henderson <rth@redhat.com>
8935 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
8937 2002-04-09 Richard Henderson <rth@redhat.com>
8939 * basic-block.h (flow_delete_block_noexpunge): Declare.
8940 (expunge_block_nocompact): Declare.
8941 * cfg.c (expunge_block_nocompact): Split out from ...
8942 (expunge_block): ... here.
8943 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
8944 (flow_delete_block_noexpunge): Split out from ...
8945 (flow_delete_block): ... here.
8946 * cfgcleanup.c (delete_unreachable_blocks): Compact while
8947 removing dead blocks.
8948 * except.c (exception_handler_labels): Remove.
8949 (exception_handler_label_map): New.
8950 (struct eh_region): Add aka member.
8951 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
8952 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
8953 (for_each_eh_label, for_each_eh_label_1): New.
8954 (init_eh): Register exception_handler_label_map.
8955 (free_eh_status): Use free_region.
8956 (find_exception_handler_labels): Use the map, not the list.
8957 (remove_exception_handler_label): Likewise.
8958 (maybe_remove_eh_handler): Likewise.
8959 (remove_eh_handler): Use the region aka bitmap.
8960 * except.h (exception_handler_labels): Remove.
8961 (for_each_eh_label): Declare.
8962 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
8963 * loop.c (invalidate_loops_containing_label): New.
8964 (find_and_verify_loops): Use it. Use for_each_eh_label.
8965 * sched-rgn.c (is_cfg_nonregular): Use
8966 current_function_has_exception_handlers.
8968 2002-04-09 Richard Henderson <rth@redhat.com>
8970 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
8971 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
8972 Do not return changed status.
8973 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
8974 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
8975 New functions that do return changed status.
8976 * sbitmap.h: Update decls.
8977 * gcse.c, lcm.c: Use _cg functions as needed.
8979 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8981 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
8982 (sh64-*-elf*, sh-*-rtemself*): Likewise.
8983 * config/sh/embed_bb.c: New file.
8984 * config/sh/embed-elf.h: New file.
8985 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
8986 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
8987 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
8989 (SUBTARGET_CPP_PTR_SPEC): Don't define.
8990 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
8991 Add subtarget_asm_endian_spec.
8992 (ASM_SPEC): Use subtarget_asm_endian_spec.
8993 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
8994 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
8995 (WCHAR_UNSIGNED): Define.
8996 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
8997 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
8998 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9000 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9001 (sh_adjust_cost): Likewise.
9002 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9004 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9005 (WCHAR_TYPE_SIZE): Likewise.
9006 (ASM_SPEC): Use subtarget_asm_endian_spec.
9007 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9008 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9009 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9010 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9011 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9012 (USER_LABEL_PREFIX): Don't #undef /#define .
9013 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9014 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9015 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9016 (ASM_SPEC): Likewise.
9017 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9018 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9019 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9020 (LIB2FUNCS_EXTRA): Define.
9021 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9022 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9023 (LIB1ASMFUNCS_CACHE): Define.
9024 (LIB2FUNCS_EXTRA): Redefine empty.
9026 2002-04-08 Richard Henderson <rth@redhat.com>
9028 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9030 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9032 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9033 and optimize for size.
9034 (__do_global_ctors): Fix pointer comparison.
9035 (__do_global_dtors): Likewise.
9037 2002-04-09 David S. Miller <davem@redhat.com>
9039 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9040 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9041 allow reloading pseudos.
9042 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9043 * config/sparc/sparc-protos.h: Declare it.
9045 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9046 unsigned comparison warning.
9047 (output_restore_regs): Mark leaf_function as unused.
9049 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9051 * expr.c (is_aligning_offset): New function.
9052 (expand_expr, case COMPONENT_EXPR): Call it.
9054 2002-04-08 David S. Miller <davem@redhat.com>
9057 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9059 Make init_priority work on Sparc when using GNU ld.
9060 * config/sparc/linux.h, config/sparc/linux64.h,
9061 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9062 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9063 * config/sparc/sol2-gld.h: New file to do the same.
9064 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9065 sparc/sol2-gld.h to tm_file.
9067 PR optimization/4328
9068 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9069 * doc/md.texi: Document it.
9070 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9071 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9072 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9073 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9074 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9076 2002-04-08 Andreas Jaeger <aj@suse.de>
9078 * stmt.c (expand_asm_operands): Revert last patch from Richard
9081 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9083 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9084 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9086 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9088 * doc/contrib.texi (Contributors): Add David O'Brien.
9090 2002-04-08 Alan Modra <amodra@bigpond.net.au>
9092 * configure.in (auto-build.h): Use target_alias and build_alias
9093 when running configure.
9094 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9095 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9096 * configure: Regenerate.
9098 2002-04-07 David S. Miller <davem@redhat.com>
9100 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9102 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9105 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9106 generating 32-bit pic code.
9108 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9110 * cppinit.c (cpp_create_reader): Initialize
9111 discard_comments_in_macro_exp.
9112 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9113 (cpp_handle_option): Handle "-CC" option.
9114 * cpplex.c (save_comment): If saving a C++ comment in
9115 a directive, convert it to a C comment.
9116 (_cpp_lex_direct): Pass second comment start character to
9117 save_comment to indicate comment type.
9118 * cpplib.c (_cpp_handle_directive): If processing
9119 a "#define" directive and discard_comments_in_macro_exp
9120 is false, re-enable saving of comments.
9121 (lex_macro_node): If discard_comments_in_macro_exp is false,
9122 discard any comments before the macro identifier.
9123 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9125 * cppmacro.c (cpp_get_token): If expanding a macro while
9126 processing a directive, discard any comments we might encounter.
9127 (parse_params): If discard_comments_in_macro_exp is false,
9128 ignore comments in the macro parameter list.
9129 * gcc.c (cpp_unique_options): Add "-CC" option.
9130 (option_map): Map "--comments-in-macros" to "-CC".
9131 * doc/cppopts.texi: Document "-CC" option.
9132 * f/lang-specs.h: Add "-CC" option.
9133 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9134 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9135 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9136 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9137 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9138 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9140 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9143 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9145 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9148 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9151 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9152 RTX_UNCHANGING_P for the functions arguments when a tail call
9155 2002-04-06 Jason Merrill <jason@redhat.com>
9157 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9158 (parse_options_and_default_flags): Set them appropriately.
9159 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9161 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9163 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9166 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9169 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9170 types come in by-reference. Fix typo in comment.
9172 2002-04-05 David S. Miller <davem@redhat.com>
9174 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9175 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9176 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9177 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9179 2002-04-05 David S. Miller <davem@redhat.com>
9181 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9182 are not going to emit return instructions, emit at least a nop
9183 for the sake of sane backtraces.
9185 2002-04-05 Richard Henderson <rth@redhat.com>
9187 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9189 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
9191 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9193 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
9195 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9196 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9197 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9199 2002-04-05 Andreas Schwab <schwab@suse.de>
9201 * c-convert.c: Include c-common.h.
9202 * Makefile.in (c-convert.o): Updated.
9204 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9206 * mklibgcc.in: Use separate libgcc.map for each multilib.
9207 * Makefile.in (distclean): Don't remove libgcc.map here.
9209 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9211 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9212 genmultilib invocation.
9214 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
9216 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9217 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9218 to num_gprs for symmetry.
9219 * config/mips/mips.c: Adjust accordingly.
9221 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9223 * c-common.c (truthvalue_conversion): Rename, update.
9224 * c-common.h (c_common_truthvalue_conversion): New.
9225 * c-convert.c (convert): Update.
9226 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9227 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9228 * c-typeck.c (build_binary_op, build_unary_op,
9229 build_conditional_expr): Update.
9230 * fold-const.c (constant_boolean_node, fold): Use langhook.
9231 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9232 * langhooks.h (struct lang_hooks): New hook.
9233 * stmt.c (expand_decl_cleanup): Use langhook.
9234 * tree.h (truthvalue_conversion): Remove.
9236 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9238 2002-04-05 Alan Modra <amodra@bigpond.net.au>
9240 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9241 Add rules to make null object file.
9243 2002-04-04 Jim Blandy <jimb@redhat.com>
9245 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9246 macro formal parameter names.
9248 2002-04-04 David S. Miller <davem@redhat.com>
9250 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9252 2002-04-04 Richard Henderson <rth@redhat.com>
9255 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9256 Support copies into and out of memory. Don't accept allows_reg
9257 and allows_mem as gospel.
9259 2002-04-04 Richard Henderson <rth@redhat.com>
9262 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9263 (write_dependence_p): Likewise.
9265 2002-04-04 Richard Henderson <rth@redhat.com>
9267 * predict.c (estimate_bb_frequencies): Do frequency calculation
9268 with a volatile temporary.
9270 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9272 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9274 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9277 * final.c (final_start_function): Don't bump profile_label_no here...
9278 (final_end_function): ...but here.
9280 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9282 * config/sparc/sparc.md (pic): New attribute.
9283 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9285 (split after do_builtin_setjmp_setup): New.
9287 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9290 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9293 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9295 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9296 UNITS_PER_WORD for zero sized aggregates.
9298 2002-04-03 David S. Miller <davem@redhat.com>
9300 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9301 one-character spec for this, just use %(link_gcc_c_sequence).
9303 2002-04-03 David S. Miller <davem@redhat.com>
9305 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9308 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9310 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9311 (DWARF_FRAME_RETURN_COLUMN): Move.
9312 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9313 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9314 * pa.c (except.h, predict.h): Include.
9316 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9317 (output_ascii): Add cast.
9318 (store_reg_modify): Revise to add frame notes.
9319 (set_reg_plus_d): Likewise.
9320 (compute_frame_size): Include space for eh data registers in frame if
9321 the current function calls eh_return.
9322 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9323 function calls eh_return. Save eh data registers if the current
9324 function calls eh_return. Fix code to add frame notes. Emit
9325 blockage to prevent insns with frame notes being scheduled in the
9326 delay slot of calls.
9327 (hppa_expand_epilogue): Restore eh data registers and do final stack
9328 adjustment if the current function calls eh_return. Don't add frame
9330 (output_call): Revise for change in length of call insn. Don't do
9331 return pointer adjustment for an unconditional jump in the delay slot
9332 of a call when using frame notes.
9333 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9334 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9335 (ARG_POINTER_CFA_OFFSET): Define.
9336 * pa.md (return_external_pic): New pattern.
9337 (prologue): Correct formatting. Use return_external_pic if current
9338 function calls eh_return.
9339 (call_internal_symref, call_value_internal_symref,
9340 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9341 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9343 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9345 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9346 list of targets to check using "nop" insn.
9347 * configure: Rebuilt.
9349 2002-04-04 Alan Modra <amodra@bigpond.net.au>
9351 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9353 2002-04-03 David S. Miller <davem@redhat.com>
9355 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9356 library sequence passed to the linker.
9357 (LINK_COMMAND_SPEC): Use it.
9358 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9359 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9360 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9362 2002-04-03 Jason Merrill <jason@redhat.com>
9364 * except.c (struct eh_status): Remove protect_list.
9365 (begin_protect_partials, end_protect_partials): Remove.
9366 (add_partial_entry): Remove.
9367 * except.h: Remove prototypes.
9369 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9370 expand_decl_cleanup_eh.
9373 * tree.h (CLEANUP_EH_ONLY): New macro.
9374 * stmt.c (expand_decl_cleanup_eh): New fn.
9375 (expand_cleanups): Check CLEANUP_EH_ONLY.
9376 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9377 Use expand_decl_cleanup_eh.
9378 (expand_stmt): Adjust.
9379 * c-common.h: Adjust prototype.
9381 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
9383 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9384 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9385 (cris_target_asm_function_epilogue): Ditto.
9386 (cris_initial_frame_pointer_offset): Ditto.
9387 (cris_simple_epilogue): Ditto.
9388 (cris_expand_builtin_va_arg): Variable-size types come in
9391 2002-04-03 David S. Miller <davem@redhat.com>
9393 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9395 (set_fast_math): Correct 'fsr' type.
9397 2002-04-03 Richard Henderson <rth@redhat.com>
9400 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9401 * toplev.c (check_global_declarations): Use it.
9402 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9403 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9404 (LANG_HOOKS_DECLS): Add it.
9405 * langhooks.c (lhd_warn_unused_global_decl): New.
9406 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9407 * c-objc-common.c (c_warn_unused_global_decl): New.
9408 * c-tree.h (c_warn_unused_global_decl): Declare.
9409 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9411 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9413 * langhooks-def.h (lhd_set_decl_assembler_name,
9414 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9415 (LANG_HOOKS_INITIALIZER): Update.
9416 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9417 * langhooks.h (struct lang_hooks): New hook.
9418 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9419 (lang_set_decl_assembler_name): Remove.
9420 (init_obstacks): Don't set hook.
9421 (decl_assembler_name): New function.
9422 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9423 (decl_assembler_name): New.
9424 (lang_set_decl_assembler_name): Remove.
9426 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9428 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9429 works properly with .hidden symbols.
9430 * configure: Rebuilt.
9431 * config.in: Rebuilt.
9432 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9433 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9434 properly with .hidden symbols.
9436 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9439 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9442 2002-04-03 Richard Henderson <rth@redhat.com>
9445 * sched-rgn.c (sets_likely_spilled): New.
9446 (sets_likely_spilled_1): New.
9447 (add_branch_dependences): Use it.
9449 2002-04-02 Richard Henderson <rth@redhat.com>
9452 * loop.h (LOOP_FIRST_PASS): New.
9453 * loop.c (strength_reduce): Mind it when deciding to unroll.
9454 * toplev.c (rest_of_compilation): Set it.
9456 2002-04-02 David S. Miller <davem@redhat.com>
9458 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9459 mems_ok_for_ldd_peep when the order of the loads being examined
9461 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9462 existing comment to increase comprehension of this situation.
9464 2002-04-02 Zack Weinberg <zack@codesourcery.com>
9466 * config/sh/sh.md: Don't use union real_extract.
9468 2002-04-02 Richard Henderson <rth@redhat.com>
9470 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9472 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9474 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9475 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9476 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9477 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9478 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9479 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9480 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9481 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9482 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9483 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9484 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9485 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9486 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9487 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9488 Include as many configury headers via tm_file as possible. This
9489 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9490 * config/openbsd-oldgas.h: New file.
9491 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9492 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9493 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9494 config/i386/i386-coff.h, config/i386/i386-interix.h,
9495 config/i386/iscdbx.h, config/i386/linux-aout.h,
9496 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9497 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9498 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9499 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9500 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9501 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9502 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9503 config/i386/vxi386.h: Do not directly include configury headers.
9504 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9505 Directly include configury headers that are no longer automatically
9506 included by the above headers.
9507 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9508 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9509 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9510 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9511 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9512 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9513 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9514 (TARGET_VERSION): Define.
9515 * config/i386/beos-elf.h, config/i386/freebsd.h,
9516 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9517 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9518 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9519 config/i386/sco5.h, config/i386/sysv4.h
9520 (TARGET_VERSION): Do not need to protect.
9521 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9522 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9523 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9524 config/i386/i386-interix.h, config/i386/linux-aout.h,
9525 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9526 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9527 (YES_UNDERSCORES): Do not define - not needed.
9528 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9529 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9530 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9531 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9532 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9533 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9534 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9535 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9537 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9538 Richard Henderson <rth@redhat.com>
9541 * function.c (assign_temp): Accept either type or decl argument.
9542 Detect variables whose size is too large to fit into an integer.
9543 * stmt.c (expand_decl): Pass the decl, not the type.
9545 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9547 * protoize.c: Match include directory usage with cppdefault.c.
9549 2002-04-03 Jeffrey A Law (law@redhat.com)
9550 Hans-Peter Nilsson <hp@bitrange.com>
9552 * combine.c (simplify_comparison): Avoid narrowing a comparison
9553 with a paradoxical subreg when doing so would drop signficant bits.
9555 2002-04-02 Steve Ellcey <sje@cup.hp.com>
9557 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9558 if POINTERS_EXTEND_UNSIGNED is defined.
9560 2002-04-02 Richard Henderson <rth@redhat.com>
9563 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9566 2002-04-02 Richard Henderson <rth@redhat.com>
9568 * doc/standards.texi: Document required freestanding libc entry points.
9570 2002-04-02 Alan Modra <amodra@bigpond.net.au>
9572 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9573 associated splitter. Remove MQ constraint.
9574 (ctrdi_internal4): Correct CCmode clobber.
9576 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9578 * milli64.S ($$dyncall): New function.
9579 * t-linux (LIB1ASMFUNCS): Revise module list.
9580 (LIB1ASMSRC): Use pa/milli64.S.
9582 2002-04-02 Richard Henderson <rth@redhat.com>
9584 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9585 rename solaris_sys_varargs_h.
9587 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9589 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9590 the same mode as its component.
9592 2002-04-02 Richard Henderson <rth@redhat.com>
9595 * final.c (this_is_asm_operands): Export.
9596 * output.h (this_is_asm_operands): Declare.
9597 * config/i386/i386.c (print_operand): Error odd asm operands.
9599 2002-04-02 Richard Henderson <rth@redhat.com>
9602 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9604 2002-04-01 Richard Henderson <rth@redhat.com>
9607 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9608 * fixinc/fixincl.x: Rebuild.
9610 2002-04-01 Richard Henderson <rth@redhat.com>
9612 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9613 (atomic_alloc, atomic_free): New.
9614 (SIZE, MASK_FOR, PTR_IN): New.
9615 (emergency_reg_state, emergency_reg_state_free): New.
9616 (emergency_labeled_state, emergency_labeled_state_free): New.
9617 (reg_state_alloced, labeled_state_alloced): New.
9618 (alloc_reg_state, free_reg_state): New.
9619 (alloc_label_state, free_label_state, free_label_states): New.
9620 (push, pop, dup_state_stack, free_state_stack): Use them.
9621 (desc_label_state): Likewise.
9622 (uw_frame_state_for): Free label states and state stack.
9623 (uw_update_reg_address): Eliminate warnings.
9625 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9627 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9628 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
9630 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9632 * c-decl.c (grokdeclarator): Update.
9633 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9634 * c-tree.h (c_mark_addressable): New.
9635 * c-typeck.c (default_function_array_conversion, build_unary_op,
9636 build_array_ref, convert_for_assignment): Update.
9637 (mark_addressable): Rename.
9638 * calls.c (try_to_integrate, expand_call): Use langhook.
9639 * expr.c (expand_expr): Use langhook.
9640 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9641 * langhooks.h (struct lang_hooks): New hook.
9642 * stmt.c (expand_asm_operands): Use langhook.
9643 * tree.h (mark_addressable): Remove.
9645 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9647 2002-04-01 Bob Wilson <bob.wilson@acm.org>
9649 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9652 2002-04-01 Bob Wilson <bob.wilson@acm.org>
9654 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9655 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9657 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9659 * c-common.c (unsigned_conversion_warning, convert_and_check,
9660 unsigned_type, signed_type, shorten_compare,
9661 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9662 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9663 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9665 * c-decl.c (grokdeclarator): Update.
9666 * c-format.c (check_format_types): Update.
9667 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9668 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9669 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9670 * convert.c (convert_to_integer): Use new hooks.
9671 * expmed.c (make_tree): Use new hooks.
9672 * expr.c (store_expr): Use new hooks.
9673 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9674 all_ones_mask_p, unextend, fold): Use new hooks.
9675 * langhooks.h (struct lang_hooks_for_types): New hooks.
9676 * tree.h (signed_or_unsigned_type, signed_type,
9677 unsigned_type): Remove.
9679 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9680 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9682 2002-03-31 Richard Henderson <rth@redhat.com>
9684 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9685 (desc_frgr_mem): Fix reference to f16-f31.
9687 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9689 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9690 RTVEC_ELT): Const-ify.
9691 * varray.h (VARRAY_CHECK): Const-ify.
9692 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9693 ggc_mark_rtvec, ggc_mark): Const-ify.
9695 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9697 * diagnostic.c: Include langhooks-def.h.
9698 * Makefile.in (diagnostic.o): Update.
9700 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9702 * c-common.c (c_unsafe_for_reeval): Rename.
9703 * c-common.h (c_unsafe_for_reeval): Rename.
9704 * c-decl.c (finish_incomplete_decl): Rename.
9705 (c_init_decl_processing): Don't set langhook.
9706 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9707 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9708 * c-objc-common.c (c_objc_common_init): Don't set langhook.
9709 * c-tree.h (finish_incomplete_decl): Rename.
9710 * langhooks-def.h (lhd_unsafe_for_reeval): New.
9711 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9712 (LANG_HOOKS_INITIALIZER): Update.
9713 * langhooks.c (lhd_unsafe_For_reeval): New.
9714 * langhooks.h (struct langhooks): New hooks.
9715 * toplev.c (incomplete_decl_finalize_hook): Remove.
9716 (wrapup_global_declarations): Update.
9717 * tree.c (lang_unsafe_for_reeval): Remove.
9718 (unsafe_for_reeval): Update.
9719 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9722 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9723 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9725 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9727 * diagnostic.c (print_error_function): Remove.
9728 (default_print_error_function): Rename.
9729 (report_error_function): Update.
9730 * diagnostic.h (print_error_function): Remove.
9731 (default_print_error_function): Remove.
9732 * langhooks-def.h (struct diagnostic_context): Predeclare.
9733 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9734 (LANG_HOOKS_INITIALIZER): Update.
9735 * langhooks.h (struct diagnostic context): Predeclare.
9736 (struct lang_hooks): New hook.
9738 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9740 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9741 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9743 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9744 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9745 of PIC_OFFSET_TABLE_REGNUM thruout.
9746 * config/rs6000/rs6000.md: Likewise.
9747 * config/rs6000/darwin.h: Likewise.
9749 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9751 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9752 unsigned HOST_WIDE_INT, not unsigned int.
9754 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9756 PR middle-end/6096, middle-end/6098, middle-end/6099
9757 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9759 (fill_slots_from_thread): Likewise.
9761 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9763 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9764 floating fields in float regs.
9765 (function_arg_record_value_2): Likewise.
9767 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9769 * config/mmix/mmix.md (define_constants): Remove misleading
9770 FIXME. Add MMIX_fp_rO_OFFSET.
9771 ("nonlocal_goto_receiver"): Don't have stack-frame address of
9772 saved rO as part of the pattern. Remove FIXME.
9773 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
9774 here, at output-time.
9776 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9779 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9781 (output_v9branch): Likewise.
9783 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
9785 * gcc.c: Revert previous patch for now.
9786 * config/i386/djgpp.h: Likewise.
9788 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9790 * config/mmix/crti.asm (_init): Register _fini with atexit.
9791 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9793 2002-03-31 Richard Henderson <rth@redhat.com>
9796 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9797 (ASM_OUTPUT_DEF_FROM_DECLS): New.
9799 2002-03-31 Richard Henderson <rth@redhat.com>
9801 * libgcc2.c (__bb_exit_func): Make static.
9803 * config/alpha/alpha.md (trap): New.
9805 2002-03-31 Richard Henderson <rth@redhat.com>
9807 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9808 promoted argument types; build trap.
9809 (expand_builtin_trap): New.
9810 (expand_builtin): Use it.
9811 * stmt.c (expand_nl_goto_receivers): Likewise.
9812 * expr.h (expand_builtin_trap): Declare.
9813 * libfuncs.h (LTI_abort, abort_libfunc): New.
9814 * optabs.c (init_optabs): Init abort_libfunc.
9816 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
9818 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
9819 (LINK_COMMAND_SPEC): ... from here.
9820 (init_gcc_specs): Duplicate it here too, omitting
9821 shared_name in the second copy.
9822 (init_spec): Test for duplicate
9823 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
9825 2002-03-30 David S. Miller <davem@redhat.com>
9827 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9828 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
9830 2002-03-30 Roger Sayle <roger@eyesopen.com>
9831 Richard Henderson <rth@redhat.com>
9833 * regmove.c (combine_stack_adjustments_for_block): Avoid
9834 emitting a stack adjustment of zero bytes. Let delete_insn
9837 2002-03-30 Richard Henderson <rth@redhat.com>
9839 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
9840 (sparc_emitting_epilogue): New.
9841 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
9842 * config/sparc/sparc-protos.h: Update.
9843 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
9844 (TARGET_SWITCHES): Update.
9845 * config/sparc/sparc.md (return): Remove.
9846 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
9847 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
9848 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
9849 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9850 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
9851 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
9852 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
9853 Remove MASK_EPILOGUE.
9854 * doc/invoke.texi: Update.
9856 2002-03-30 Daniel Berlin <dan@dberlin.org>
9858 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
9859 CPP will start the file for us.
9861 2002-03-30 Richard Henderson <rth@redhat.com>
9864 * config/ia64/ia64.c (group_barrier_needed_p): Special case
9865 prologue_allocate_stack.
9866 (ia64_single_set): Use insn codes for recognition of special
9867 cases, not rtl matching.
9868 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
9870 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
9872 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
9874 2002-03-30 Richard Henderson <rth@redhat.com>
9877 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
9878 or -fomit-frame-pointer with profiling.
9879 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9880 (FUNCTION_PROFILER): Do nothing.
9881 (PROFILE_HOOK): New.
9882 * config/sparc/sparc.c (sparc_override_options): Don't check
9883 code models for profiling.
9884 (sparc_function_profiler): Remove.
9885 (sparc_profile_hook): New.
9886 * config/sparc/sparc-protos.h: Update.
9888 2002-03-30 Jakub Jelinek <jakub@redhat.com>
9890 PR optimization/6086
9891 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
9892 of SUBREG of volatile MEM or because the MEM was mode dependent,
9893 return CLOBBER instead of unmodified SUBREG.
9895 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
9897 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
9898 when not optimizing.
9900 * toplev.c (rest_of_compilation): Cann mark_constant_function
9901 only when optimizing.
9903 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
9906 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
9907 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
9908 (try_optimize_cfg): clear all AUX fields.
9910 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
9911 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
9912 (ix86_address_cost): Be prepared for SUBREGed registers.
9913 (legitimate_address_p): Accept SUBREGed registers.
9915 2002-03-29 Richard Henderson <rth@redhat.com>
9918 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
9920 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9922 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
9923 for aggregate and TFmode types.
9925 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
9927 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
9929 2002-03-29 Richard Henderson <rth@redhat.com>
9932 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
9933 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
9935 2002-03-29 Richard Henderson <rth@redhat.com>
9938 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
9939 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
9940 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
9941 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
9943 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
9945 2002-03-29 Dale Johannesen <dalej@apple.com>
9947 * loop.c (combine_movables): Do allow combination of pseudos.
9949 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
9951 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
9952 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
9953 No functional change except ...
9954 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
9955 * doc/install.texi (*-*-freebsd*): Document port configuration.
9957 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
9959 * Makefile.in (convert.o, calls.o, expmed.o): Update.
9960 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
9962 * builtin-types.def (BT_PTRMODE): Update.
9963 * c-common.c (type_for_size): Rename c_common_type_for_size.
9964 (type_for_mode): Similarly.
9965 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
9967 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
9968 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
9969 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
9971 * c-typeck.c (common_type, comptypes, default_conversion):
9973 * calls.c: Include langhooks.h.
9974 (emit_library_call_value_1): Use new hooks. Avoid redundant
9976 * convert.c: Include langhooks.h
9977 (convert_to_pointer, convert_to_integer): Use new hooks.
9978 * except.c (init_eh): Similarly.
9979 * expmed.c: Include langhooks.h.
9980 (expand_mult_add): Use new hooks.
9981 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
9982 try_casesi): Similarly.
9983 * fold-const.c (optimize_bit_field_compare, make_range,
9984 decode_field_reference, fold_truthop, fold): Similarly.
9985 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
9986 put_var_into_stack): Similarly.
9987 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
9988 LANG_HOOKS_TYPE_FOR_SIZE): New.
9989 (LANG_HOOKS_TYPES_INITIALIZER): Update.
9990 * langhooks.h (lang_hooks_for_types): New hooks.
9991 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
9992 * tree.c (get_unwidened, get_narrower): Similarly.
9993 * tree.h (type_for_mode, type_for_size): Remove.
9994 * varasm.c (force_const_mem): Use new hooks.
9995 * utils2.c (nonbinary_modular_operation): Update.
9997 * objc-act.c (handle_impent): Update.
9998 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10001 2002-03-29 Steve Ellcey <sje@cup.hp.com>
10003 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10004 * config/ia64/ia64.c (basereg_operand): New.
10005 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10006 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10008 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10010 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10011 unwind information when frame_pointer_needed.
10012 (mmix_assemble_integer): Tweak wording in comment.
10014 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10016 * Makefile.in (except.o): Update.
10017 * except.c: Include langhooks.h.
10018 (init_eh): Use langhook.
10019 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10020 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10021 (LANG_HOOKS_INITIALIZER): Update.
10022 * langhooks.h (lang_hooks_for_types): New.
10023 (struct lang_hooks): Add it.
10024 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10025 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10027 * alpha/alpha.c: Include langhooks.h.
10028 (alpha_build_va_list): Use langhook.
10029 * d30v/d30v.c: Include langhooks.h.
10030 (d30v_build_va_list): Use langhook.
10031 * i386/i386.c: Include langhooks.h.
10032 (ix86_build_va_list): Use langhook.
10033 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10034 * s390/s390.c: Include langhooks.h.
10035 (s390_build_va_list): Use langhook.
10036 * stormy16/stormy16.c: Include langhooks.h.
10037 (stormy16_build_va_list): Use langhook.
10039 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10042 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10044 (length): Compute variable length for branches/calls/jumps here.
10045 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10046 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10047 define branch_type attribute.
10048 (divsi3_sp32): Maximum length is 6 not 7.
10049 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10050 call_address_untyped_struct_value_sp32,
10051 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10052 * config/sparc/sparc.c (empty_delay_slot): New function.
10053 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10054 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10056 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10058 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10059 nonzero_bits if not needed.
10060 (nonzero_bits) [XOR]: Likewise.
10061 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10062 reg_last_set_mode and mode are both MODE_INT, but not equal.
10063 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10064 in nonzero_bits_mode for MODE_INT modes.
10066 2002-03-28 Richard Henderson <rth@redhat.com>
10069 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10070 to GAS. Correct drift between alternatives.
10072 2002-03-28 Richard Henderson <rth@redhat.com>
10075 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10077 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
10079 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10080 emulation to the linker.
10082 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
10084 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10085 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10087 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10089 * combine.c (simplify_and_const_int): Make sure to apply mask
10090 when force_to_mode returns a constant integer. PR3311.
10092 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10094 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10096 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10098 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10099 and Objective-C Dialect Options.
10101 2002-03-28 Richard Henderson <rth@redhat.com>
10103 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10104 comparison should be done vs !=0 not >0 return code. Tidy cases.
10106 2002-03-28 Richard Henderson <rth@redhat.com>
10108 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10109 on to c_expand_body.
10110 * c-tree.h (finish_function): Update decl.
10111 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10113 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10115 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10117 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10119 * rtlanal.c: Include flags.h
10120 (may_trap_p): Do not mark FP operations if trapping
10121 if !flag_trapping_math
10122 * Makefile.in (rtlanal.o): Add dependency on flag.h
10123 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10125 2002-03-27 Zack Weinberg <zack@codesourcery.com>
10127 * mips.md: Use dconst1, not 1.0, as first argument of
10128 REAL_VALUE_LDEXP. Don't use union real_extract.
10130 2002-03-28 Alan Modra <amodra@bigpond.net.au>
10132 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10133 rather than $target. Heed program_prefix and
10134 program_transform_name. Search for gas in cross-compiler case too.
10135 "test -x" rather than "test -f".
10136 (gcc_cv_ld): Likewise.
10137 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10138 (gcc_cv_objdump): Likewise.
10139 * configure: Regenerate.
10141 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10143 * Makefile.in (attribs.o): Update.
10144 * attribs.c: Include langhooks.h.
10145 (decl_attributes): Use langhook.
10146 * c-decl.c (insert_default_attributes): Rename.
10147 * c-tree.h (c_insert_default_attributes): New.
10148 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10149 (LANG_HOOKS_INITIALIZER): Update.
10150 * langhooks.h (struct lang_hooks): New hook.
10151 * tree.h (insert_default_attributes): Remove.
10153 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10155 2002-03-27 Andreas Schwab <schwab@suse.de>
10157 * config/i386/i386.c (classify_argument): Also check for
10160 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10162 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10165 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10167 * i960.md (ret): Set PC.
10168 (nonlocal_goto): Fix expander.
10169 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10172 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10174 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10175 of libcall regions.
10177 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10179 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10180 assigning to BLOCK_FOR_INSN directly.
10182 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10184 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10186 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10188 * c-common.c (c_expand_expr): Fix prototype.
10189 * c-common.h (c_expand_expr): Always declare, update.
10190 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10191 * c-objc-common.c (c_objc_common_init): No global hook.
10192 * expr.c (expand_expr): Use langhook.
10193 * expr.h (enum expand_modifier): Conditionally declare.
10194 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10195 (LANG_HOOKS_INITIALIZER): Update.
10196 * langhooks.c (lhd_expand_expr): New.
10197 * langhooks.h (struct lang_hooks): New hook.
10198 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10199 (lang_independent_init): Don't default hook.
10201 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10203 2002-03-27 Richard Henderson <rth@redhat.com>
10206 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10207 TARGET_CONST_GP. Simplify conditions.
10209 2002-03-27 Richard Henderson <rth@redhat.com>
10211 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10212 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10213 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10215 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10217 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10218 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10219 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10220 Remove unnecessary masks.
10221 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10222 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10223 -mwindows, -mdll switches and their negations.
10225 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10227 * gcc-common.c (lang_mark_false_label_stack): Remove.
10228 * ggc.h (lang_mark_false_label_stack): Similarly.
10230 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
10232 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10234 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10235 or __rtems_ is defined.
10237 2002-03-26 Richard Henderson <rth@redhat.com>
10239 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10240 if a non-trivial load was emitted.
10241 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10242 in high+extra+low case.
10244 2002-03-26 Richard Henderson <rth@redhat.com>
10246 * config.gcc (sparc*-solaris): Use float_format=sparc.
10248 2002-03-26 Richard Henderson <rth@redhat.com>
10250 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10251 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10252 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10253 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10254 (WINT_TYPE_SIZE): Fix at 32.
10256 2002-03-26 Richard Henderson <rth@redhat.com>
10258 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10259 until after eh landing pad generation.
10260 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10261 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10263 2002-03-26 Richard Henderson <rth@redhat.com>
10265 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10267 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
10269 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10270 and warning switches.
10271 (cc1_options): Likewise.
10273 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
10275 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10276 Restore more of the signal context. Set no_reg_stack_frame.
10277 * config/ia64/unwind-ia64.c (unw_state_record):
10278 Add no_reg_stack_frame, comments.
10279 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10280 (uw_update_context): Adjust bsp when unwinding from leaf,
10281 but not signal frame.
10283 2002-03-26 David Edelsohn <edelsohn@gnu.org>
10285 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10287 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10289 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10291 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10294 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10295 "Add a pool_range attribute", which was lost during the ARM/Thumb
10298 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10300 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10301 a register into the MAC16 accumulator.
10303 2002-03-26 Andrew Cagney <ac131313@redhat.com>
10305 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10306 (Warning Options): Document -Wswitch-enum.
10307 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10309 (warn_switch_enum): Define variables.
10310 * flags.h (warn_switch_enum): Declare variables.
10311 * stmt.c (expand_end_case_type): When warn_switch_enum /
10312 -Wswitch-enum, perform switch checks.
10315 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10317 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10318 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10319 (reload_muladdsi_compare0_scratch): Delete.
10321 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
10323 * doc/install.texi (*-*-freebsd*): Update.
10325 2002-03-26 Richard Henderson <rth@redhat.com>
10327 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10328 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10330 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10331 types from the normal argument frame.
10333 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10334 variable sized objects by reference.
10335 (sparc_va_arg): Receive them by reference too.
10337 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10339 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10340 code to not restoring global registers.
10342 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10344 * Makefile.in (ggc-common.o): Update.
10345 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10346 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10347 * c-tree.h (c_mark_tree): New.
10348 * ggc-common.c: Include langhooks.h.
10349 (gcc_mark_trees): Use new langhook.
10350 * ggc-callbacks.c: Delete file.
10351 * ggc.h (lang_mark_tree): Remove.
10352 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10353 (LANG_HOOKS_INITIALIZER): Update.
10354 * langhooks.h (struct lang_hooks): New hook.
10356 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10358 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10360 * doc/cpp.texi: Exclude entire Top node from printed manual.
10361 Move option index after directive index. Insert page breaks
10362 before GFDL and concept index. Index environment variables
10363 with command line options.
10364 * doc/cppenv.texi: Use @vtable for environment variable list.
10365 Add paragraph explaining semantics of empty elements in path
10366 variables. Exclude a cross-reference to Fishkill from the
10367 manpage. Remove an unnecessary cross-reference of the entry
10368 right above the referer. Don't use @anchor in text that goes
10370 * doc/cppopts.texi: Cross-reference the environment variables
10371 section, not the specific environment variable, for consistency.
10373 2002-03-25 Richard Henderson <rth@redhat.com>
10375 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10376 anywhere in the block. Don't refer to insns that have been
10377 removed from the chain. Iterate backward through the new insns.
10378 Don't refer to edges that have been removed.
10380 2002-03-26 Alan Modra <amodra@bigpond.net.au>
10382 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10383 test for overflow of constant.
10385 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
10388 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10389 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10390 these patterns on arm_archv4.
10392 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10394 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10397 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10399 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10400 float_handled, float_handler, float_signal, set_float_handler,
10401 and do_float_handler. Set handler for SIGFPE to crash_signal.
10402 * toplev.h: Don't prototype do_float_handler.
10404 * c-lex.c: Fold parse_float into lex_number. Make warning
10405 about portability of hex float constants more informative, and
10406 don't issue it on top of a syntax error.
10407 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10409 * real.h: Define REAL_VALUE_ABS here...
10410 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10411 simplify_unary_real, simplify_binary_real, and
10412 simplify_binary_is2orm1 into their callers.
10413 * tree.c: Fold build_real_from_int_cst_1 into caller.
10415 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10417 * tsystem.h: Include float.h here...
10418 * libgcc2.c: ... not here.
10420 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10422 Fixes for: PR bootstrap/3591, target/5676
10423 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10424 defined. Do not disable exceptions or rtti.
10425 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10426 mcore.h. Disable exceptions and rtti, since they are not
10429 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10431 * c-decl.c (maybe_build_cleanup): Remove.
10432 * expr.c (expand_expr): Use langhook.
10433 * langhooks-def.h (lhd_return_null_tree,
10434 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10435 (LANGHOOKS_INITIALIZER): Update.
10436 * langhooks.c (lhd_return_null_tree): New.
10437 * langhooks.h (struct lang_hooks): New hook.
10438 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10439 * tree.h (maybe_build_cleanup): Remove.
10441 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10443 * regrename.c (build_def_use): Move recog_memoized
10444 before extract_insn.
10446 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10449 * expr.c (emit_group_store): Handle storing into CONCAT.
10451 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10453 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10454 corresponding MATCH_DUP.
10456 2002-03-24 Richard Henderson <rth@redhat.com>
10458 * unroll.c (unroll_loop): Zero label_map.
10460 * gcse.c: Include except.h.
10461 * Makefile.in (gcse.o): Update.
10463 2002-03-24 Richard Henderson <rth@redhat.com>
10465 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10466 Do resolve_unique_section before shared data clause.
10468 2002-03-24 Richard Henderson <rth@redhat.com>
10470 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10472 2002-03-24 Richard Henderson <rth@redhat.com>
10474 * recog.c (peephole2_optimize): Split blocks when EH insns are
10475 generated in the middle of a block. Do global life update if
10478 2002-03-24 Richard Henderson <rth@redhat.com>
10480 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10482 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10485 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10486 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10487 (init_dependency_output): Don't make no_output decision here.
10489 2002-03-24 Andrew Cagney <ac131313@redhat.com>
10491 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10492 warn_switch. Update description.
10493 (expand_end_case_type): Call check_for_full_enumeration_handling
10496 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10498 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10499 (m68hc11_split_move): Call it to see if the source and destination
10500 operands use the same direction auto inc/dec mode, otherwise make the
10501 source an offsetable memory operand and generate an add.
10503 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10505 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10506 register for operand 2.
10507 ("*subsi3_zero_extendqi"): Likewise.
10508 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10509 bits so that it is compatible with a pop.
10510 ("*andhi3_gen"): Likewise.
10511 ("xorhi3"): Likewise.
10513 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10515 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10517 (cpp_post_options): ... not here.
10519 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10520 Aldy Hernandez <aldyh@redhat.com>
10522 Removal of separate preprocessor cpp0.
10524 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10525 cpp0, install-common): Update.
10526 * c-common.c (flag_preprocess_only): New.
10527 (c_common_init): Preprocess for -E.
10528 * c-common.h (flag_preprocess_only): New.
10529 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10530 * c-objc-common.c (c_init_decl_processing): Exit quickly
10531 for NULL return from c_common_init.
10532 * cpplib.h (cpp_preprocess_file): New.
10533 * cppmain.c (main, general_init, pfile, progname): Remove.
10534 (do_preprocessing): Rename cpp_preprocess_file, don't call
10535 cpp_finish. Don't close stdout here.
10536 (setup_callbacks): Update prototype.
10537 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10539 * tradcpp.c (main): Ignore -quiet.
10541 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10543 2002-03-24 Richard Henderson <rth@redhat.com>
10545 PR optimization/5742
10546 * machmode.def: Add inner mode field to complex modes.
10547 * config/mips/mips.c (mips_function_value): Always define. Add
10548 new argument to handle libcalls.
10549 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10550 (FUNCTION_VALUE): Likewise.
10551 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10552 * config/mips/mips-protos.h: Update.
10554 2002-03-23 Richard Henderson <rth@redhat.com>
10556 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10557 * config/sparc/sparc-protos.h: Update.
10558 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10560 2002-03-23 Richard Henderson <rth@redhat.com>
10562 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10563 _start or _init begins the text segment.
10565 2002-03-23 David Edelsohn <edelsohn@gnu.org>
10567 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10568 not HOST_WIDEST_INT.
10569 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10571 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
10574 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10575 operand argument to output_return_instruction.
10576 * arm.c (arm_print_operand, case 'd'): If the operand is
10577 const_true_rtx then just return.
10578 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10581 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10583 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10584 (Warning Options): Document -Wswitch-default.
10585 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10587 (warn_switch_default): Define variable.
10588 (warn_switch): Update comment.
10589 * flags.h (warn_switch_default): Declare variable.
10590 (warn_switch): Update comment.
10591 * stmt.c (expand_end_case): Check for and, when
10592 warn_switch_no_default, warn of a missing default case.
10594 2002-03-23 Alan Modra <amodra@bigpond.net.au>
10596 * real.h (N): Special case 128 bit doubles.
10598 * combine.c (simplify_comparison): When widening modes, ignore
10599 sign extension on CONST_INTs.
10601 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10603 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10604 passed to adjust_address. Fix comment formatting.
10607 2002-03-22 Zack Weinberg <zack@codesourcery.com>
10609 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10610 Always make REAL_VALUE_TYPE a struct containing an array of
10611 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10612 big it is. Don't declare or use union real_extract.
10614 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10615 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10616 (print_operand), config/arm/arm.c (output_move_double),
10617 config/arm/arm.md (consttable_4, consttable_8),
10618 config/romp/romp.c (output_fpops), config/s390/s390.h
10619 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10620 (xtensa_output_literal): Don't use union real_extract.
10622 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10623 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10624 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10625 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10626 (PRINT_OPERAND): Don't use local version of union
10629 * config/convex/convex.c (check_float_value), config/vax/vax.c
10630 (vax_float_literal), config/m88k/m88k.md (divdf3),
10631 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10632 config/pdp11/pdp11.c (output_move_quad): Don't do host
10633 arithmetic on target floating point quantities.
10635 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10636 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10638 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10639 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10641 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10642 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10644 * print-rtl.c (print_rtx): Disable code which needs
10645 floating-point emulator.
10646 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10647 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10648 depending on HOST_FLOAT_FORMAT to be defined properly.
10650 * config/1750a/1750a.c (get_double, float_label): Delete.
10651 (print_operand): Delete huge commented-out chunk. Use
10652 REAL_VALUE_TO_DECIMAL.
10653 * config/1750a/1750a-protos.h: Delete prototypes of deleted
10655 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10657 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10658 Use REAL_VALUE_TO_DECIMAL as ELF version does.
10659 * config/m88k/m88k.c (real_power_of_2_operand,
10660 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10661 real_extract out of the union; run the input through
10662 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10663 from that into the union.
10664 * config/pdp11/pdp11.c (output_move_double): Rearrange
10665 parentheses to make automatic indenter happy.
10667 * doc/tm.texi (Cross-compilation): Rename node to "Floating
10668 Point" and rewrite to describe current situation. Also adjust
10669 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10671 * doc/rtl.texi: Adjust cross reference.
10673 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10675 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10676 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10677 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10678 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10679 prevent use of sp as a reload register.
10680 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10681 non_acc_reg_operand.
10682 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10683 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10684 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10685 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10687 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10689 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10690 * cpplex.c (unterminated): Delete.
10691 (parse_string): No string literal may extend over multiple
10692 lines. Suppress the error when preprocessing assembly.
10693 * cppmain.c (scan_translation_unit): Strings are single-line.
10695 * doc/cpp.texi: Update to match.
10697 2002-03-22 Jakub Jelinek <jakub@redhat.com>
10699 PR optimization/5854
10700 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10702 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10703 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10704 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10705 const0 if scratch register was not allocated.
10706 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10707 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10708 with GEN_INT (...).
10709 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10710 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10711 with GEN_INT (...) everywhere. Remove constraints in define_split
10713 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10714 require scratch register for setting 0 into regs/non-pushable memory.
10716 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
10718 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10719 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10721 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
10723 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
10724 * cppinit.c (cpp_create_reader): On by default.
10725 (cpp_handle_option): Handle -W[no-]endif-labels.
10726 (cpp_post_options): Also enable if -pedantic.
10727 * cpplib.c (do_else): Use it.
10728 (do_endif): Likewise.
10729 * doc/cppopts.texi: Document new option.
10730 * doc/invoke.texi: Document new option.
10732 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
10734 * config/i386/i386.c, config/i386/i386.md: Change all occurences
10735 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10737 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
10739 * flow.c (calculate_global_regs_live): Clear aux fields of
10742 2002-03-22 Jakub Jelinek <jakub@redhat.com>
10744 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10745 REG or MEM subregs, pass rtx * instead of rtx to it.
10746 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10747 rtx * instead of rtx to alter_subreg.
10748 * config/m32r/m32r.c (gen_split_move_double): Likewise.
10749 * config/pj/pj.c (pj_output_rval): Likewise.
10751 2002-03-22 Richard Henderson <rth@redhat.com>
10754 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10755 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10756 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10757 (ia64_expand_prologue): Look at int_regs, not words, for number
10758 of incomming int regs.
10760 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
10762 * expr.c (expand_expr): A RESULT_DECL is part of a call.
10764 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
10766 * toplev.c (flag_loop_optimize, flag_crossjumping):
10767 New static variables.
10768 (rest_of_compilation): Conditionalize crossjumping and
10770 (parse_options_and_default_flags): Default loop_optimize and
10772 (lang_independent_options): Add -fcrossjumping and -floop-optimize
10773 * invoke.texi (crossjumping, loop-optimize): Document.
10775 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10777 * real.c (eiisneg): Move outside #ifdef NANS.
10779 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
10781 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10782 frequencies match; avoid match on different loop depths.
10783 (try_crossjump_to_bb): Kill tests that no longer brings time
10785 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10787 (split_edge): Likewise.
10789 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10792 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10793 * cfgrtl.c: Include insn-config.h
10794 (split_block) Dirtify block in presence of conditional execution
10796 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10798 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10799 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10800 (function_arg): Constify CUMULATIVE_ARGS.
10801 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10802 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10803 (UNITS_PER_DOUBLE): New macro.
10804 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
10805 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
10806 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
10807 fp_regs and stack_words.
10808 (EABI_FLOAT_VARARGS_P): New macro.
10809 * config/mips/mips.c (struct mips_arg_info): New.
10810 (mips_arg_info): New function.
10811 (function_arg_advance): Use it. Add adjustment instructions here
10812 rather than in function_arg.
10813 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
10814 for VOIDmode at the beginning of the function.
10815 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
10816 (function_arg_pass_by_reference): Likewise.
10817 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
10818 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
10819 (mips_va_start): Likewise. Use the new stack_words field of
10820 CUMULATIVE_ARGS to set up overflow area. Reformat.
10821 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
10822 doubles and other types, aligning the overflow pointer for non-doubles
10823 too. Remove some code duplication. Replace hard-coded constants.
10825 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10827 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
10828 (CLASS_UNITS): Undefine.
10829 (CLASS_MAX_NREGS): Use FP_INC.
10830 * config/mips/mips.c (compute_frame_size): Likewise.
10831 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
10833 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10835 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
10836 prototype, and handle lexing numbers and identifiers.
10837 (parse_identifier): Update to new form of parse_slow.
10838 (parse_number): Fast path only, use parse_slow otherwise.
10839 (_cpp_lex_direct): Update calls to parse_number.
10841 2002-03-21 DJ Delorie <dj@redhat.com>
10843 * bb-reorder.c (make_reorder_chain_1): Protect against
10844 when redundant edges are omitted.
10845 * predict.c (dump_prediction): Likewise.
10847 2002-03-21 Richard Henderson <rth@redhat.com>
10850 * fixinc/inclhack.def (solaris_stdio_tag): New.
10851 * fixinc/fixincl.x: Regenerate.
10853 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10856 * c-typeck.c (process_init_element): Flag non-static
10857 initialization of a flexible array member as illegal.
10859 2002-03-22 Alan Modra <amodra@bigpond.net.au>
10861 * config/rs6000/t-linux64: New.
10862 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
10863 t-ppccomm. Use t-rs6000 and t-linux64.
10864 (powerpc64-*-gnu* <tmake_file>): Likewise.
10865 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
10866 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
10867 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
10869 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
10871 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
10872 flag_really_no_inline instead of optimize == 0.
10874 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
10876 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
10878 * flags.h (flag_really_no_inline): New.
10880 * c-common.c (c_common_post_options): Initialize
10881 flag_really_no_inline.
10883 * toplev.c (flag_really_no_inline): New.
10885 2002-03-21 Jakub Jelinek <jakub@redhat.com>
10887 * config/avr/avr.md (length): Fix length computation for
10888 conditional branches.
10890 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
10892 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
10893 sdbout.o, profile.o): Update.
10894 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
10896 * c-common.h (gettags): Move here from tree.h.
10897 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
10898 insert_block, getdecls, kept_level_p, global_bindings_p): New.
10899 * dbxout.c (dbxout_init): Use getdecls langhook.
10900 * expr.c (expand_expr): Use insert_block langhook.
10901 * fold-const.c: Include langhooks.h.
10902 (fold_range_test, fold_binary_op_with_conditional_arg,
10903 fold): Use global_bindings_p langhook.
10904 * integrate.c (expand_inline_function): Use insert_block langhook.
10905 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
10906 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
10907 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
10908 LANG_HOOKS_GETDECLS): New.
10909 (LANG_HOOKS_INITIALIZER): Update.
10910 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
10912 * langhooks.h (struct lang_hooks_for_decls): New.
10913 (struct lang_hooks): Update.
10914 * profile.c: Include langhooks.h.
10915 (output_func_start_profiler): Use new langhooks.
10916 * sdbout.c: Include langhooks.h.
10917 (sdbout_init, sdbout_finish): Use getdecls langhook.
10918 * stmt.c: Include langhooks.h.
10919 (expand_fixup, fixup_gotos): Use new langhooks.
10920 * stor-layout.c: Include langhooks.h.
10921 (variable_size): Use global_bindings_p langhook.
10922 * toplev.c (compile_file): Use getdecls langhook.
10923 * tree-inline.c (remap_block): Use insert_block langhook.
10924 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
10925 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
10927 2002-03-21 Richard Henderson <rth@redhat.com>
10929 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
10930 constants in .data when -fpic.
10932 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10934 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
10937 2002-03-21 Tom Tromey <tromey@redhat.com>
10939 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
10941 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10943 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
10945 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
10947 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10948 Richard Henderson <rth@redhat.com>
10951 * c-common.c (c_expand_expr): Preserve result of a statement
10952 expression if needed.
10954 2002-03-21 Jakub Jelinek <jakub@redhat.com>
10957 * genrecog.c (maybe_both_true_mode): Remove.
10958 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
10959 * machmode.def (Pmode): Likewise.
10961 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
10963 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
10964 (nonlocal_mentioned_p_1): New function.
10965 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
10966 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
10967 (mark_constant_function): Recognize pure functions.
10968 * rtl.h (global_reg_mentioned_p): New prototype.
10969 * rtlanal.c (global_reg_mentioned_p,
10970 global_reg_mentioned_p_1): New function.
10972 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10974 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
10976 * fixinc/fixincl.x: Regenerate.
10978 2002-03-20 Jason Merrill <jason@redhat.com>
10980 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
10982 2002-03-20 Michael Meissner <meissner@redhat.com>
10984 * doc/invoke.texi (Optimize Options): Document that -O2 sets
10987 2002-03-20 Bob Wilson <bob.wilson@acm.org>
10989 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
10990 ".literal_position" directive before the constant pool.
10992 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10994 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
10995 Add Craig Rodrigues.
10996 Add Brad Lucier to testers.
10998 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11001 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11003 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11004 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11005 instead of insn_extract.
11007 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11010 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11012 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11013 stmt if some case has been output.
11015 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11018 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11019 movsfcc_1, movdfcc_1): Add %O2.
11020 * config/i386/i386.c (print_operand): Handle %ON.
11021 Print . before float condition codes in Sun as cmov syntax.
11022 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11023 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11026 2002-03-20 Philip Blundell <pb@nexus.co.uk>
11028 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11029 return instruction if PC was popped.
11031 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11033 * config/xtensa/xtensa.md: Remove unused type attributes.
11034 (adddi_carry, subddi_carry): Change type attribute to "multi".
11036 2002-03-19 Dale Johannesen <dalej@apple.com>
11038 PR optimization/5999, middle-end/5731
11039 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11040 multiplications by reciprocals.
11042 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11044 * Makefile.in: Update.
11045 * c-common.c: Include langhooks.h.
11046 (inline_forbidden_p): Use new hook.
11047 * diagnostic.c: Include langhooks.h.
11048 (format_with_decl, announce_function,
11049 default_print_error_function): Use new hook.
11050 * dwarf2out.c (dwarf2_name): Use new hook.
11051 * function.c: Include langhooks.h.
11052 (init_function_start): Use new hook.
11053 * langhooks-def.h (lhd_decl_printable_name): New.
11054 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11055 (LANGHOOKS_INITIALIZER): Update.
11056 * langhooks.c (lhd_decl_printable_name): New.
11057 * langhooks.h (struct lang_hooks): New hook.
11058 * toplev.c (decl_name, decl_printable_name): Remove.
11059 (open_dump_file): Use new hook.
11060 (process_options): Remove old hook.
11061 * tree.h (decl_printable_name): Remove.
11063 * objc-act.c (objc_init): Remove old hook.
11064 (objc_printable_name): Export.
11065 * objc-act.h (objc_printable_name): New.
11066 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11068 2002-03-19 Jim Blandy <jimb@redhat.com>
11070 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11071 the start_source_file debug hook, not the current line number.
11073 2002-03-19 Richard Henderson <rth@redhat.com>
11075 * flow.c (EH_USES): Provide default.
11076 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11077 * doc/tm.texi (EH_USES): New.
11079 * config/ia64/ia64.c (ia64_eh_uses): New.
11080 * config/ia64/ia64-protos.h: Update.
11081 * config/ia64/ia64.h (EH_USES): New.
11083 2002-03-19 Richard Henderson <rth@redhat.com>
11085 * varasm.c (output_constant_def): Fix stupid typo.
11087 2002-03-19 Richard Henderson <rth@redhat.com>
11090 * except.c (current_function_has_exception_handlers): New.
11091 * except.h: Declare it.
11092 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11093 Combine tests that disable all sibcalls for the function.
11095 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
11097 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11100 2002-03-19 Richard Henderson <rth@redhat.com>
11103 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11104 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11106 2002-03-19 Jim Blandy <jimb@redhat.com>
11108 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11109 name, even if the replacement list contains no tokens, as required
11112 2002-03-19 Jason Merrill <jason@redhat.com>
11114 * varasm.c (globalize_decl): Get the name from the RTL, not
11115 DECL_ASSEMBLER_NAME.
11117 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11119 2002-03-19 Bob Wilson <bob.wilson@acm.org>
11121 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11122 subdi_carry): Define.
11124 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11126 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11127 about -fpic/-fPIC if extra_warnings set.
11129 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11131 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11132 TREE_STRING_POINTER.
11133 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11135 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11137 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11138 in favor of SP if FRAME_POINTER_REQUIRED is false.
11140 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
11142 * emit-rtl.c (gen_int_mode): New function.
11143 * rtl.h: Prototype for it.
11144 * combine.c (make_extraction, simplify_comparison), expmed.c
11145 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11146 (convert_modes, store_field), optabs.c (expand_fix),
11147 simplify-rtx.c (neg_const_int, simplify_unary_real),
11149 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11150 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11152 2002-03-19 Jakub Jelinek <jakub@redhat.com>
11155 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11156 convert_parm_for_inlining.
11157 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11159 * langhooks-def.h: Likewise.
11160 * objc/objc-lang.c: Likewise.
11161 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11163 * tree-inline.c (initialize_inlined_parameters):
11164 Call convert_parm_for_inlining lang hook if needed.
11165 * c-typeck.c (c_convert_parm_for_inlining): New function.
11166 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11168 2002-03-18 Mark Mitchell <mark@codesourcery.com>
11170 * calls.c (precompute_arguments): Do not assume that temporaries
11171 can be destroyed after expanding the argument.
11172 (expand_call): Likewise.
11174 2002-03-15 Eric Christopher <echristo@redhat.com>
11176 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11177 Fix register preference on last change.
11178 * config/mips/mips.c (mips_return_in_memory): New function.
11179 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11180 * config/mips/mips-protos.h: Declare.
11181 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11182 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11184 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
11186 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11188 (anddi3, iorsi3): Likewise.
11190 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11191 use %gprel for symbols that are going to be placed in linkonce
11194 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11195 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11196 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11197 not needed. Disregard leaf_function_p().
11198 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11199 mips16 frame pointer.
11200 * config/mips/mips.md (store ra): Only to small SP offsets.
11201 2001-08-22 Graham Stott <grahams@redhat.com>
11202 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11203 return a REG rtx for the return address register.
11205 2002-03-18 Bob Wilson <bob.wilson@acm.org>
11207 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11208 constant-pool addresses as "mode-dependent".
11209 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11211 2002-03-18 Jakub Jelinek <jakub@redhat.com>
11214 * expr.c (emit_group_load): Use extract_bit_field if
11215 needed for CONCAT arguments.
11217 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
11220 * arm.md (tablejump): Make this a define_expand. For PIC add the
11221 offset to the base of the table.
11222 (thumb_tablejump): Matcher for Thumb tablejump insn.
11223 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11224 as the difference of two labels.
11225 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11226 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11227 tables in the code.
11228 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11229 * arm.c (get_jump_table_size): If the table is not in the text
11230 section, return zero.
11232 2002-03-18 Bernd Schmidt <bernds@redhat.com>
11234 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11236 (arm_reload_out_hi): Use gen_lowpart instead of
11237 gen_rtx_SUBREG to access QImode components.
11238 * config/arm/arm.md: Disable zero_extend split for QImode
11239 subregs in BIG_ENDIAN mode.
11240 (storehi_bigend): Match use of least significant byte.
11241 (storeinthi): Remove extraneous SUBREG.
11242 Add missing construction of operands[2].
11243 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11244 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11245 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11247 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
11249 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11252 2002-03-17 Richard Henderson <rth@redhat.com>
11254 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11257 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11259 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11260 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11262 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11264 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11266 * predict.c (estimate_bb_frequencies): Delete unused variables.
11268 2002-03-17 Richard Henderson <rth@redhat.com>
11270 * config/ia64/ia64.c (ia64_attribute_table): Move before
11271 targetm definition. Make static.
11273 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11275 * c-common.h (yyparse, c_common_parse_file): New.
11276 * c-lang.c: Include c-common.h.
11277 (LANG_HOOKS_PARSE_FILE): Redefine.
11278 * c-lex.c: Include c-common.h.
11279 (yyparse): Rename c_common_parse_file. Call yyparse.
11280 * c-parse.in (yyparse): Remove macro.
11281 * c-tree.h (yyparse_1): Remove.
11282 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11283 (LANG_HOOKS_INITIALIZER): Update.
11284 * langhooks.h (struct lang_hoooks): New hook parse_file.
11285 * toplev.c (compile_file): Use parse_file hook.
11286 * tree.h (yyparse): Remove.
11287 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11289 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11291 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11292 float_truncate, not fix.
11293 ("*truncdfsf2_real"): Ditto.
11294 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11296 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11298 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
11300 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11301 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11302 where appropriate. Make the second reference to
11303 leaf_function_p a function call, as intended. Reindented.
11305 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11306 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11308 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11309 add register to non-constant into sp.
11311 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11312 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11313 (mips16_gp_pseudo_rtx): Lose.
11314 (INIT_EXPANDERS): Deleted.
11315 * config/mips/mips.c (mips_init_machine_status): New.
11316 (mips_free_machine_status): New.
11317 (mips_mark_machine_status): New.
11318 (override_options): Set them.
11319 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11320 (struct machine_function): ... new. Replaced all references.
11321 (mips_add_gc_roots): Don't mark them.
11322 (embedded_pic_fnaddr_reg): New, extracted from...
11323 (embedded_pic_offset): ... here.
11324 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11327 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11329 * cppinit.c: Revert -MD removal.
11331 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11333 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11334 soft registers by default for 68HC12.
11335 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11336 when compiling with -fomit-frame-pointer.
11337 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11338 (expand_epilogue): Likewise.
11339 (m68hc11_gen_rotate): Use exg when rotating by 8.
11341 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11343 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11344 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11345 (splits): Remove unused add splits.
11346 ("*addhi3_68hc12"): Tune constraints.
11347 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11348 constant fits in 8-bits and D is dead use abx/aby instructions.
11349 ("*addhi3"): Remove extern declaration of ix_reg.
11350 ("*subsi3"): Optimize and provide new split.
11351 ("subhi3"): Cleanup.
11352 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11353 (arith splits): For 68hc12 save the address register on the stack
11354 and do the arithmetic operation with a pop.
11356 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11358 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11359 allocating QImode in address registers.
11360 ("*movqi_m68hc11"): Likewise.
11362 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11364 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11366 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11368 * cppinit.c (print_help): Display -MD and -MMD.
11369 Don't display usage string. Update assertion syntax and
11371 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11372 (cpp_handle_option): Update.
11374 2002-03-15 Chris Demetriou <cgd@broadcom.com>
11376 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11377 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11378 and define it so that regardless of target CPU size,
11379 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11380 of "int" rather than "long."
11382 2002-03-15 Richard Henderson <rth@redhat.com>
11384 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11387 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11389 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11390 ("tstqi" split): Avoid using memory for tstqi on address register.
11391 (splits): Remove constraints.
11392 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11393 ("cmpdf", "cmpsf"): Remove since not used.
11394 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11395 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11397 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11399 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11400 ("neghi2"): Tighten constraints.
11401 ("one_cmplsi2"): Optimize and simplify split.
11402 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11404 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11406 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11407 and split of AND operation to clear the upper bits.
11408 ("*logicalsi3_zextqi"): Likewise.
11409 ("*logicallhi3_zexthi_ashift8"): Likewise.
11410 ("*logicalsi3_silshr16"): Likewise.
11411 ("logicalsi3_silshl16"): Likewise.
11412 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11414 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11416 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11417 (m68hc11_indirect_p): New function.
11418 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11419 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11421 (asm_print_register): Likewise.
11422 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11423 (m68hc11_indirect_p): Declare.
11424 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11425 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11426 (TARGET_SWITCHES): New option -mrelax.
11427 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11429 ("iorsi3", "xorsi3"): Likewise.
11430 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11431 ("*andhi3_mem"): New to handle destination in memory with bclr
11432 and a scratch register.
11433 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11434 ("*andhi3_const"): New when operand2 is constant.
11435 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11436 ("*andhi3_gen"): Cleanup of the old "andhi3".
11437 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11438 ("xorqi3"): Update constraints.
11440 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11442 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11443 for reg_equiv_memory_loc when the operand is a register that does
11444 not get a hard register (stack location).
11445 (tst_operand): After reload, accept all memory operand.
11446 (symbolic_memory_operand): Fix detection of symbolic references.
11447 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11448 accept symbols and any constant.
11450 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11452 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11453 note on the insn that sets the soft frame register.
11454 (must_parenthesize): ix and iy are also reserved names.
11455 (print_operand_address): One more place where parenthesis are required
11456 to avoid confusion with register names.
11457 (m68hc11_gen_movhi): Allow push of stack pointer.
11458 (m68hc11_check_z_replacement): Fix handling of parallel with a
11460 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11461 the replacement register is.
11462 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11463 and D8_REGS classes.
11464 (MODES_TIEABLE_P): All modes are tieable except QImode.
11466 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11468 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11469 (___subdi3): Likewise.
11470 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11471 (__map_data_section): Optimize 68hc11 case.
11473 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11475 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11476 than a shift to avoid adding a register with itself.
11477 (m68hc11_memory_move_cost): Take into account NO_REGS.
11478 (m68hc11_register_move_cost): Update and use memory move cost
11479 for soft registers.
11480 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11481 it gives more opportunities to cse to optimize.
11482 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11483 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11485 2002-03-15 Mark Mitchell <mark@codesourcery.com>
11487 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11488 * c-common.def (CLEANUP_STMT): New tree node.
11489 * c-common.h (CLEANUP_DECL): New macro.
11490 (CLEANUP_EXPR): Likewise.
11491 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11492 * expr.c (expand_expr): Tidy.
11493 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11494 * tree-inline.c (initialize_inlined_parameters): Clean up
11495 new local variables.
11497 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11500 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11501 before movrXX only, use reg_overlap_mentioned_p.
11502 Only special case NE if just one insn can be generated.
11504 2002-03-15 Jason Merrill <jason@redhat.com>
11506 * varasm.c (assemble_variable): Call resolve_unique_section before
11507 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11508 of error_mark_node.
11510 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11513 * arm.md (split pattern for thumb shiftable immediates): Add comment
11514 explaining non-obvious test.
11516 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11519 * arm.md (movaddr, movaddr_insn): Delete.
11521 2002-03-15 Jason Merrill <jason@redhat.com>
11523 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11524 -fkeep-static-consts doesn't apply to comdats.
11526 2002-03-14 Richard Henderson <rth@redhat.com>
11528 * c-decl.c: Include c-pragma.h.
11529 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11530 (finish_function): Tidy.
11531 * c-pragma.c: Include c-common.h.
11532 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11533 (handle_pragma_weak): Use them.
11534 (init_pragma): Register pending_weaks.
11535 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11536 * print-tree.c (print_node): Print DECL_WEAK.
11537 * varasm.c (mark_weak_decls): Remove.
11538 (remove_from_pending_weak_list): Remove.
11539 (add_weak): Remove.
11540 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11541 (weak_decls): Make a tree_list.
11542 (declare_weak): Cons weak_decls directly.
11543 (globalize_decl): Remove weak_decls elements directly.
11544 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11545 symbols. Don't pretend to handle aliases.
11546 (init_varasm_once): Update weak_decls registry.
11547 * Makefile.in: Update dependencies.
11549 2002-03-14 Richard Henderson <rth@redhat.com>
11552 * config/ia64/ia64.c: Include tm_p.h last.
11553 (gen_nop_type): Remove duplicate definition.
11554 (cycle_end_fill_slots): Set sched_data for second L slot.
11555 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11556 (nop_cycles_until): Fix typos.
11558 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11560 PR optimization/5891
11561 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11563 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11565 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11566 descriptors correctly.
11568 2002-03-14 Michael Meissner <meissner@redhat.com>
11570 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11571 100, allowing MAX_UNROLLED_INSNS to be overridden.
11573 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11576 * unroll.c (params.h): Include.
11577 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11579 * doc/invoke.texi (--param max-unroll-insns): Document.
11581 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11583 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11585 * arm.md: Fix warnings about constraints in peepholes and splits.
11587 2002-03-14 Zack Weinberg <zack@codesourcery.com>
11589 * cpphash.h (struct lexer_state): Remove line_extension member.
11590 * cpplib.c (dequote_string, do_linemarker): New functions.
11591 (linemarker_dir): New data object.
11592 (DIRECTIVE_TABLE): No longer need to interpret #line in
11593 preprocessed source. Delete obsolete comment about return
11594 values of handlers.
11595 (end_directive, directive_diagnostics, _cpp_handle_directive):
11596 Don't muck with line_extension.
11597 (directive_diagnostics): No need to issue warnings for
11599 (_cpp_handle_directive): Issue warnings for linemarkers here,
11600 when appropriate. Dispatch linemarkers to do_linemarker, not
11602 (do_line): Code to handle linemarkers split out to do_linemarker.
11603 Convert escape sequences in filename argument, both places.
11605 * cppmacro.c (quote_string): Rename cpp_quote_string and
11606 export. All callers changed.
11607 * cpplib.h (cpp_quote_string): Prototype.
11608 * cppmain.c (print_line): Call cpp_quote_string on to_file
11609 before printing it.
11611 * doc/cpp.texi: Document that escapes are now interpreted in
11612 #line and in linemarkers, and that non-printing characters are
11613 converted to octal escapes when linemarkers are generated.
11615 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
11617 * emit-rtl.c (try_split): Use delete_insns.
11618 * recog.c (split_all_insns): Fix terminating condition.
11620 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11621 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11624 * arm.c (arm_output_epilogue): Fix floating-point register save
11625 adjustment when using a frame pointer.
11627 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
11629 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11630 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11631 (save_restore_insns, mips_expand_epilogue): And here.
11632 (build_mips16_call_stub): And here.
11633 (mips_function_value): Use the new macros to decide whether a single
11634 or complex float can be returned in floating-point registers. Return
11635 a parallel rtx in the complex case.
11637 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11639 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11640 call after liveness analysis.
11642 * recog.c (split_insn): Use delete_insn_and_edges.
11644 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11645 instructions to have branch prediction notes.
11646 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11648 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
11650 * configure.in: Don't pass -Wno-long-long to a ADA compiler
11651 that doesn't support it.
11652 * configure: Regenerate.
11654 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11657 * config/sparc/sparc.md (normal_branch, inverted_branch,
11658 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11659 inverted_fp_branch): Adjust calls to output_cbranch.
11660 Set length attribute.
11661 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11662 output_v9branch. Set length attribute.
11663 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11665 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11666 (output_cbranch): Likewise. Handle far branches.
11667 (output_v9branch): Handle far branches.
11668 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11670 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11671 noov_compare64_op predicates.
11673 2002-03-13 Jason Merrill <jason@redhat.com>
11675 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11676 into the function and constify it.
11677 * gthr-dce.h, gthr-solaris.h: Likewise.
11679 2002-03-13 David Edelsohn <edelsohn@gnu.org>
11681 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11682 * config/rs6000/rs6000.c (rs6000_va_arg): Use
11683 std_expand_builtin_va_arg if not ABI_V4.
11685 2002-03-13 Jason Merrill <jason@redhat.com>
11687 * varasm.c (globalize_decl): New fn.
11688 (assemble_start_function): Use it.
11689 (asm_emit_uninitialized): Use it.
11690 (assemble_alias): Use it.
11691 (assemble_variable): Use it.
11693 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
11695 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
11696 2002-03-12 internal visibility change.
11697 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11698 visibility into SYMBOL_REF_FLAG.
11700 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
11702 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11703 VOIDmode operand. Add compile-time optimization for constant results.
11705 2002-03-12 Jason Merrill <jason@redhat.com>
11707 * c-typeck.c (convert_for_assignment): Don't allow conversions
11708 between pointers and references. Only allow lvalues to convert to
11711 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
11713 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11714 before prologue, to avoid scheduling problems.
11716 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11718 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11719 (ELIMINABLE_REGS): Add sfp->sp.
11720 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11722 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11724 PR optimization/5892
11725 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11727 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11729 * loop.c (basic_induction_var): Don't call convert_modes if mode
11730 classes are different.
11732 2002-03-12 Richard Henderson <rth@redhat.com>
11734 PR optimization/5901
11735 * function.c (reposition_prologue_and_epilogue_notes): Position
11736 the markers after/before the last/first insn not deleted.
11738 2002-03-12 Richard Henderson <rth@redhat.com>
11740 PR optimization/5878
11741 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11742 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11743 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11745 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11746 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11747 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11749 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11750 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11751 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11752 also. Don't set it if not flag_pic.
11753 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11754 to be INVALID_REGNUM when not used.
11756 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
11758 * expmed.c (store_bit_field): Reset alias set for memory.
11759 (extract_bit_field): Same.
11761 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11763 * c-common.c (c_tree_code_type, c_tree_code_length,
11764 c_tree_code_name, add_c_tree_codes): Delete.
11765 * c-common.h (add_c_tree_codes): Delete.
11766 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11768 * c-objc-common.c (c_objc_common_init): Don't call
11769 add_c_tree_codes, instead set lang_unsafe_for_reeval.
11770 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11771 objc_tree_code_name, add_objc_tree_codes): Delete.
11772 (objc_init): Don't call add_objc_tree_codes.
11773 * objc/objc-lang.c (tree_code_type, tree_code_length,
11774 tree_code_name): Define.
11775 * toplev.c (lang_independent_init): Don't set
11776 tree_code_length[IDENTIFIER_NODE].
11777 * tree.c (tree_code_type, tree_code_length, tree_code_name):
11778 Delete definitions, moved to language front-ends.
11779 * tree.def (IDENTIFIER_NODE): Hardwire the length.
11780 * tree.h (tree_code_type, tree_code_length, tree_code_name):
11782 (tree_code_length): Change type to unsigned char.
11784 2002-03-12 Richard Henderson <rth@redhat.com>
11786 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11787 internal visibility change.
11789 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11791 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11792 validize_mem() instead of change_address to avoid clobbering
11795 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
11797 * c-lex.h (position_after_whitespace): Remove.
11799 2002-03-12 Jakub Jelinek <jakub@redhat.com>
11801 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11802 (lex_string): Use unsigned char pointers.
11804 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11806 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11807 is not a valid memory_operand.
11809 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11811 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11812 * config/xtensa/lib1funcs.asm: Fix copyright to include
11813 special case for libgcc files.
11814 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
11815 (__divsi3): Likewise.
11816 (__umodsi3): Likewise.
11817 (__modsi3): Likewise.
11818 * config/xtensa/lib2funcs.S: Fix copyright to include
11819 special case for libgcc files.
11821 2002-03-12 Tom Rix <trix@redhat.com>
11823 * collect2.c (resolve_lib_name): Move outside of
11824 OBJECT_FORMAT_COFF ifdef.
11825 (ignore_library): Same.
11827 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11829 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
11831 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11833 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
11834 to function_section before writing out the constant pool.
11836 2002-03-12 David Edelsohn <edelsohn@gnu.org>
11838 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
11840 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
11842 2002-03-12 Alan Modra <amodra@bigpond.net.au>
11844 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
11845 (adddi3): Likewise.
11848 (cmpsi splitter): Likewise.
11849 (modsi3): Fail if <= 0.
11850 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
11851 redundant test when HOST_BITS_PER_WIDE_INT != 32.
11852 (reg_or_sub_cint64_operand): Likewise.
11853 (num_insns_constant_wide): Optimize sign extension.
11854 (rs6000_legitimize_address): Likewise.
11856 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
11858 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11859 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11861 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
11863 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
11864 address calculation.
11866 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11868 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
11869 scratch register to DImode / TImode.
11870 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
11871 register used does not overlap the target.
11873 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11875 * Makefile.in (debug.o): Depend on debug.h.
11876 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
11877 * debug.c (do_nothing_debug_hooks): Likewise.
11878 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
11879 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
11880 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
11881 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11882 * dwarfout.c (dwarf_debug_hooks): Likewise.
11883 * integrate.c (output_inline_function): Likewise.
11884 * objc/objc-act.c (synth_module_prologue): Likewise.
11885 * sdbout.c (sdb_debug_hooks): Likewise.
11886 * toplev.c (debug_hooks): Likewise.
11887 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11889 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11891 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
11892 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
11893 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
11894 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
11895 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
11896 * defaults.h (POINTER_SIZE): Define.
11897 * doc/tm.texi (POINTER_SIZE): Document default.
11899 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11901 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
11903 2002-03-11 Richard Henderson <rth@redhat.com>
11905 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
11906 if rebuild_label_notes_after_reload.
11908 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
11910 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
11911 emit pic register load if "internal" visibility.
11912 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
11913 (cris_expand_builtin_va_arg): Do all computations on trees.
11915 2002-03-11 Richard Henderson <rth@redhat.com>
11917 * rtlanal.c: Include recog.h.
11918 (keep_with_call_p): Fix thinko.
11919 * Makefile.in (rtlanal.o): Update dependencies.
11921 2002-03-11 Chris Meyer <cmeyer@gatan.com>
11923 * genflags.c (gen_insn): Use IS_VSPACE.
11924 * genoutput.c (output_insn_data): Likewise.
11925 (process_template): Likewise.
11927 2002-03-11 Richard Henderson <rth@redhat.com>
11929 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
11931 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
11933 * Makefile.in: Update.
11934 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
11935 Update documentation.
11936 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
11937 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
11939 2002-03-11 Zack Weinberg <zack@codesourcery.com>
11941 * Makefile.in: Give texi2pod its input file as a command line
11942 argument, not on stdin.
11944 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
11945 Daniel Berlin <dan@dberlin.org>
11947 C++ alias analysis improvement.
11948 * alias.c (record_component_aliases): Record aliases for base
11951 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
11953 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
11955 2002-03-11 Douglas B Rupp <rupp@gnat.com>
11957 * toplev.c (vms_fopen): Remove, not needed.
11959 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
11961 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
11963 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
11964 for FP, already done later.
11966 * toplev.c (debug_args): Add entry for VMS_DEBUG.
11967 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
11969 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
11971 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
11972 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
11973 LARGEST_EXPONENT_IS_NORMAL for the given mode.
11974 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
11975 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
11976 (ediv, emul, eldexp, esqrt): Likewise.
11977 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
11978 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
11979 (saturate): New function.
11980 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
11981 (make_nan): Use a saturation value instead of a NaN if
11982 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
11983 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
11984 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
11985 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
11986 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
11987 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
11988 !ROUND_TOWARDS_ZERO.
11989 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
11990 (ROUND_TOWARDS_ZERO): Document.
11992 2002-03-11 Andreas Jaeger <aj@suse.de>
11994 * cfg.c (dump_flow_info): Remove unused variable.
11996 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
11998 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
11999 computations on trees.
12001 2002-03-10 Richard Henderson <rth@redhat.com>
12004 * reload.c (copy_replacements_1): New.
12005 (copy_replacements): Use it to recurse through the rtx.
12007 2002-03-10 Richard Henderson <rth@redhat.com>
12009 * loop.c (strength_reduce): Compute number of iterations as
12010 unsigned HOST_WIDE_INT.
12012 2002-03-10 Richard Henderson <rth@redhat.com>
12014 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12015 to move away from the end of the block.
12017 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12019 PR preprocessor/5899
12020 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12022 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12024 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12026 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12028 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12030 * config/mmix/mmix.c: Improve comments.
12031 (mmix_target_asm_function_prologue): Drop variable
12032 empty_stack_frame. Don't allocate unused slot above fp.
12033 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12034 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12035 brace in first column.
12036 (enum reg_class): Ditto.
12037 (FIRST_PARM_OFFSET): Now 0.
12038 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12040 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12042 * combine.c (make_extraction): Fix error in last change.
12044 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12046 * c4x.c (c4x_fp_reglist): Const-ify.
12047 * cris.c (cris_print_operand): Likewise.
12048 * i386.c (ix86_va_arg): Likewise.
12049 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12050 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12051 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12052 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12053 * mcore.h (regno_reg_class): Likewise.
12054 * mips.c (gen_int_relational): Likewise.
12055 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12056 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12057 * pdp11.c (move_costs): Likewise.
12058 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12059 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12061 * s390.h (regclass_map): Likewise.
12062 * sh.c (shift_amounts): Likewise.
12063 * sh.md (rotlsi3): Likewise.
12065 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12067 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12068 (ne0+5): Use new clobber to generate proper shift pattern.
12069 Patch by Michael Matz <matz@kde.org>.
12071 2002-03-09 Andreas Schwab <schwab@suse.de>
12073 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12075 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12077 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12079 2002-03-09 Jakub Jelinek <jakub@redhat.com>
12082 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12083 even for non-representable constants.
12085 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12087 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12088 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12089 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12090 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12091 (pop_function_context): Compute MAY_SHARE parameter for
12093 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12094 (gen_mem_addressof): Call fixup_var_refs with new parm.
12096 * combine.c (make_extraction): Don't make extension of CONST_INT.
12098 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12100 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12101 in o32 and o64 ABIs.
12102 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12103 but getting fixed-size structs passed in registers regardless of
12104 padding in o32 and o64 ABIs.
12106 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12107 offset before loading address of argument passed by transparent
12110 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12112 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12114 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12116 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12117 marker such that registers after it are saved.
12119 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12121 * sparc.c (arith_4096_operand): Fix error in last change.
12123 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12125 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12126 defaults for MEABI.
12128 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12130 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12133 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12135 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12137 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12139 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12140 removed; fix return value.
12141 * combine.c (combine_instructions): Dirtify blocks where we failed to
12142 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12143 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12145 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12147 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12149 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12151 * recog.c (peephole2_optimize): Re-distribute EH edges.
12153 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12155 * expr.c (expand_expr): Use unsave lang hook.
12156 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12157 (LANG_HOOKS_INITIALIZER): Update.
12158 * langhooks.h (struct lang_hooks): New hook unsave.
12159 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12160 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12161 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12162 (unsave_expr_now): Remove.
12163 * tree.h (unsave_expr_now, lang_unsave,
12164 lang_unsave_expr_now): Remove.
12167 2002-03-08 Andreas Jaeger <aj@suse.de>
12169 * flow.c (propagate_block_delete_insn): Remove unused variable.
12171 2002-03-08 Kazu Hirata <kazu@hxi.com>
12173 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12174 insn length for memory load/store.
12176 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
12178 * doc/install.texi (--with-libiconv-prefix): Document.
12180 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12182 * doc/sourcebuild.texi: Fix typo.
12184 2002-03-08 Jakub Jelinek <jakub@redhat.com>
12187 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12190 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12192 * rtl.c (copy_most_rtx): Move from here ...
12193 * emit-rtl.c (copy_most_rtx): ... to here.
12195 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12197 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12198 SUBTARGET_CPP_SIZE_SPEC.
12199 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12201 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12203 2002-03-07 Matt Hiller <hiller@redhat.com>
12205 * gensupport.c (first_dir_md_include): Renamed from include;
12206 change all references.
12207 (last_dir_md_include): Renamed from last_include; change all
12209 (init_md_reader): Unconditionally initialize base_dir whether or
12210 not filename is a relative path.
12212 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
12214 * config/fp-bit.c (_unord_f2): Compile it in even if
12215 US_SOFTWARE_GOFAST is enabled.
12217 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12218 NULL_RTX. Set all HFmode operations as NULL_RTX.
12219 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12220 NULL_RTX, try reversing the comparison and the operands.
12222 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12224 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12225 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12228 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12230 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12232 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12234 * basic-block.h (fixup_abnormal_edges): Declare.
12235 * reload1.c (fixup_abnormal_edges): New function.
12236 * reg-stack.c (convert_regs): Use it.
12238 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12240 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12242 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
12244 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12245 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12246 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12247 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12248 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12249 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12250 unless x and y could be infinite.
12251 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12252 Check that the common type of both arguments is a real, even for
12253 targets without unordered comparisons. Allow an integer argument
12254 to be compared against a real.
12255 (expand_tree_builtin): Use expand_unordered_cmp.
12256 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12257 * cse.c (fold_rtx): Likewise. Fix indentation.
12258 * fold-const.c (fold_real_zero_addition_p): New.
12259 (fold): Use it, and the new HONOR_... macros.
12260 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12261 * jump.c (reversed_comparison_code_parts): After searching for
12262 the true comparison mode, use HONOR_NANS to decide whether it
12263 can be safely reversed.
12264 (reverse_condition_maybe_unordered): Remove IEEE check.
12265 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12266 to decide which simplifications are valid. Allow the following
12267 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12268 and (a - -b) to (a + b).
12269 (simplify_relational_operation): Use HONOR_NANS.
12270 * doc/tm.texi: Document the MODE_HAS_... macros.
12272 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12274 * combine.c (simplify_comparison): If simplifying a logical shift
12275 right and compare with constant, force the comparison to unsigned.
12277 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
12279 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12281 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12283 (alt_reg_names): Remove % for vrsave.
12285 2002-03-06 Richard Henderson <rth@redhat.com>
12287 PR optimization/5844
12288 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12289 if used indicates we've already emitted one copy of an operand.
12290 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12291 (gen_split): Supply a non-null used.
12293 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12295 * reload1.c (reload): Unshare all rtl after reload is done.
12297 * simplify-rtx.c (simplify_plus_minus): Do not abort,
12298 but simply fail if the expression is too complex to simplify.
12299 (simplify_gen_binary): Handle simplify_plus_minus failures.
12301 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12303 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12304 consistently call delete_trivially_dead_insns after CSE and GCSE;
12305 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12306 after liveness2; update comment in last crossjumping.
12307 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12309 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12311 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12312 after completing fast dead code elimination.
12314 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12317 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
12319 * version.c: Fix misplaced leading blanks on first line.
12321 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12323 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12325 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12327 * cfgcleanup.c (mentions_nonequal_regs): New function.
12328 (thread_jump): Use it.
12329 * toplev.c (rest_of_compilation): Run jump threading after
12332 2002-03-06 Jakub Jelinek <jakub@redhat.com>
12334 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12337 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12339 * predict.c (estimate_bb_frequencies): Do not reload the
12340 frequencies from notes.
12342 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12344 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12345 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12347 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12348 delete_noop_moves): Return indeger.
12349 * flow.c (ndead): New variable.
12350 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12351 BB argument; update callers.
12352 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12353 (life_analysis): Do not call purge_all_dead_edges.
12354 (update_life_info): Return number of deleted insns; print statistics.
12355 (update_life_info_in_dirty_blocks): likewise.
12356 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12357 return number of insns deleted.
12359 * cse.c: Include timevar.h
12360 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12361 iterate until stabilizes; print statistics; return number of killed
12363 * Makefile.in: (cse.o): Add timevar.h dependency
12364 * rtl.h (delete_trivially_dead_insns): New.
12365 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12366 * toplev.c (rest_of_compilation): Update callers.
12368 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12369 (try_optimize_cfg): Do not update liveness.
12370 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12371 removal stabilizes; use delete_trivially_dead_insns.
12373 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12375 2002-03-05 Zack Weinberg <zack@codesourcery.com>
12377 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12378 callbacks when processing assembly language.
12380 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12382 * pa.h (ASM_FILE_END): Define.
12383 * som.h (ASM_FILE_END): Delete.
12385 * pa.c (function_arg): Don't pass floats in general registers in
12386 indirect calls if TARGET_ELF32.
12388 2002-03-05 Richard Henderson <rth@redhat.com>
12390 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12392 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12394 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12396 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12398 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12399 -r command line. Don't hide any symbols if not building
12402 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12404 * cfg.c (dump_flow_info): Warn about profile mismatches.
12405 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12406 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12408 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12410 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12411 wide volatile memory by parts.
12413 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12415 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12418 2002-03-05 Richard Henderson <rth@redhat.com>
12420 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12422 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12424 * toplev.c (documented_lang_options): Document more
12425 language-specific options.
12426 * doc/invoke.texi (Warning Options): Correct documentation for
12427 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12428 * c-decl.c (c_decode_option): Use a table to handle warning options.
12430 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12432 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12433 parameter to mmix_encode_section_info.
12434 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12435 relocatably. Always produce ELF, not mmo if linking relocatably.
12436 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12437 first is non-zero, don't add symbol prefix.
12438 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12439 prototype accordingly.
12441 2002-03-04 Krister Walfridsson <cato@df.lth.se>
12443 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12445 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12447 * configure.in: Increase required makeinfo version to 4.1.
12448 * configure: Regenerate.
12450 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12452 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12455 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12457 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12458 * doc/invoke.texi: Fix @math uses.
12460 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12462 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12465 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
12467 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12468 (powerpc-*-eabisimaltivec*): Same.
12470 * config/rs6000/t-ppcendian: New.
12472 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12474 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12475 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12476 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12478 2002-03-03 Richard Henderson <rth@redhat.com>
12480 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12482 2002-03-03 Zack Weinberg <zack@codesourcery.com>
12484 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12485 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12486 tree.c, config/m68k/m68k.c:
12487 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12488 REAL_ARITHMETIC blocks unconditional. Delete some further
12489 #ifdef blocks predicated on REAL_ARITHMETIC.
12490 * flags.h, toplev.c: Delete remaining references to
12491 flag_pretend_float.
12493 * doc/invoke.texi: Remove documentation of -fpretend-float.
12494 * doc/tm.texi: Describe the various REAL_* macros as provided by
12495 real.h, not by the target configuration files.
12497 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12498 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12499 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12500 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12501 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12502 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12503 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12504 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12505 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12506 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12507 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12508 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12509 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12510 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12511 config/xtensa/xtensa.h:
12512 Do not define, undefine, or mention in comments any of
12513 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12514 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12515 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12516 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12517 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12518 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12519 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12520 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12521 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12523 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12525 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12526 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12527 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12528 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12529 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12530 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12532 * defaults.h (BITS_PER_WORD): Define.
12533 * doc/tm.texi (BITS_PER_WORD): Document default value.
12535 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12536 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12537 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12539 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12541 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12542 lieu of explicit sizeof/sizeof.
12543 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12544 ix86_expand_builtin): Likewise.
12545 * mips.c (mips_add_gc_roots): Likewise.
12546 * mmix.c (mmix_output_condition): Likewise.
12547 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12548 altivec_init_builtins): Likewise.
12549 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12550 * cppexp.c (Nsuff, parse_number): Likewise.
12551 * cppinit.c (builtin_array_end): Likewise.
12552 * gcc.c (n_default_compilers, process_command): Likewise.
12553 * genpreds.c (output_predicate_decls): Likewise.
12554 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12555 * lcm.c (N_ENTITIES): Likewise.
12556 * stor-layout.c (set_sizetype): Likewise.
12558 2002-03-03 Richard Henderson <rth@redhat.com>
12560 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12561 for types or labels.
12563 2002-03-03 Richard Henderson <rth@redhat.com>
12565 * c-decl.c (start_decl): Initialized variables are not common.
12567 2002-03-02 Per Bothner <per@bothner.com>
12569 * gcc.c (option_map): Suport new --bootclasspath option.
12570 --CLASSPATH is now just an alias for --classpath.
12572 2002-03-02 Richard Henderson <rth@redhat.com>
12574 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12575 load if "internal" visibility.
12576 * doc/extend.texi: Document visibility meanings.
12578 2002-03-02 Richard Henderson <rth@redhat.com>
12580 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12581 to functions as well.
12583 2002-03-02 Richard Henderson <rth@redhat.com>
12585 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12586 (handle_visibility_attribute): Don't call assemble_visibility.
12587 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12588 without asmspec. Invoke assemble_alias when needed.
12589 * varasm.c (maybe_assemble_visibility): New.
12590 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12592 2002-03-02 Richard Henderson <rth@redhat.com>
12594 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12595 invoke ENCODE_SECTION_INFO with first call flag.
12597 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12598 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12599 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12600 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12601 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12602 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12603 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12604 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12605 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12606 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12607 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12608 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12609 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12610 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12611 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12612 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12613 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12614 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12615 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12616 config/sh/sh.h, config/sparc/sparc.h,
12617 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12618 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12619 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12620 FIRST argument. As needed, examine it and do nothing.
12622 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
12623 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12624 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12626 * config/arm/t-pe (pe.o): Add dependencies.
12628 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12630 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12631 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12632 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12633 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12634 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12635 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12636 * defaults.h (BITS_PER_UNIT): Define.
12637 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12639 2002-03-02 Kazu Hirata <kazu@hxi.com>
12641 * config/h8300/h8300-protos.h: Add a prototype for
12642 compute_a_shift_length.
12643 * config/h8300/h8300.c (h8300_asm_insn_count): New.
12644 (compute_a_shift_length): Likewise.
12645 (h8300_adjust_insn_length): Do not adjust insn length of shift
12647 * config/h8300/h8300.md (anonymous shift patterns): Use
12648 compute_a_shift_length.
12650 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12652 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12653 trunc_int_for_mode.
12655 * emit-rtl.c (offset_address): Call update_temp_slot_address.
12657 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12659 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12660 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12661 * flags.h (flag_zero_initialized_in_bss): Declare.
12662 * toplev.c (flag_zero_initialized_in_bss): New flag.
12663 (lang_independent_options): Add flag_zero_initialized_in_bss.
12664 * tree.c (initializer_zerop): New function.
12665 * tree.h (initializer_zerop): Declare.
12666 * varasm.c (assemble_variable): If we can emit bss, put zero
12667 initializers in the bss section.
12669 2002-03-02 Alan Modra <amodra@bigpond.net.au>
12671 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12672 like more than one symbol per .weak directive.
12674 2002-03-01 Richard Henderson <rth@redhat.com>
12676 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12677 adjust argument_pointer by pretend_args_size.
12678 (ia64_va_start): Adjust va_start address by -pretend_args_size.
12680 2002-03-01 Kazu Hirata <kazu@hxi.com>
12682 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12684 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
12686 * toplev.c (rest_of_compilation): Delete dead jumptables before
12688 * flow.c (delete_dead_jumptables): Make global.
12689 * rtl.h (delete_dead_jumptables): Declare.
12691 2002-03-01 David Edelsohn <edelsohn@gnu.org>
12693 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12694 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
12695 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
12697 2002-03-01 Kazu Hirata <kazu@hxi.com>
12699 * config/h8300/h8300-protos.h: Fix formatting.
12700 * config/h8300/h8300.c: Likewise.
12701 * config/h8300/h8300.h: Likewise.
12703 2002-03-01 Kazu Hirata <kazu@hxi.com>
12705 * config/h8300/h8300.c (print_operand): Support 16-bit
12706 constant addresses.
12707 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12709 2002-02-28 Richard Henderson <rth@redhat.com>
12711 * expmed.c (store_bit_field): Prevent generation of CONCATs;
12712 pun complex values as integers; use gen_lowpart instead of
12714 (extract_bit_field): Likewise.
12716 2002-03-01 Alan Modra <amodra@bigpond.net.au>
12717 David Edelsohn <edelsohn@gnu.org>
12719 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12720 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12721 (SUPPORTS_WEAK): Likewise.
12722 * output.h (add_weak): Add tree param.
12723 * varasm.c (add_weak): Likewise. Save decl.
12724 (struct weak_syms): Add decl field.
12725 (mark_weak_decls): New function.
12726 (init_varasm_once): ggc_add_root mark_weak_decls.
12727 (assemble_start_function): Use ASM_WEAKEN_DECL.
12728 (assemble_variable): Likewise.
12729 (assemble_alias): Likewise.
12730 (declare_weak): Pass decl to add_weak.
12731 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12732 (remove_from_pending_weak_list): Declare and define for
12734 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12735 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12736 * defaults.h (SUPPORTS_WEAK): Likewise.
12737 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12738 .weak for code sym. Do emit .size for descriptor sym.
12739 (ASM_DECLARE_FUNCTION_SIZE): Define.
12740 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12741 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
12742 .lglobl unless TARGET_XCOFF. Formatting fixes.
12743 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12744 .weak for code sym.
12745 (HANDLE_PRAGMA_WEAK): Remove.
12746 (ASM_WEAKEN_LABEL): Remove.
12747 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12749 2002-03-01 Jason Merrill <jason@redhat.com>
12751 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12752 (TARGET_EXPR_CLEANUP): New macro.
12754 2002-02-28 Steve Ellcey <sje@cup.hp.com>
12756 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12757 to take ptr_extend into account as third type of extension.
12758 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12759 fields used by SUBREG_PROMOTED_UNSIGNED_P.
12760 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12761 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12762 * calls.c (precompute_arguments): Use new macro.
12763 (expand_call): Ditto.
12764 * combine.c (nonzero_bits): Ditto.
12765 (record_promoted_value): Ditto.
12766 * expr.c (store_expr): Ditto.
12767 (expand_expr): Ditto.
12768 * function.c (assign_parms): Ditto.
12770 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
12772 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12773 override -shared and -shared-libgcc.
12775 2002-02-28 David O'Brien <obrien@FreeBSD.org>
12777 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12779 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
12782 2002-02-28 Richard Henderson <rth@redhat.com>
12784 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12785 4 cycle latency from MM producers.
12786 (ia64_internal_sched_reorder): Likewise with pipeline flush.
12788 2002-02-28 Jakub Jelinek <jakub@redhat.com>
12790 * mklibgcc.in: Don't use GNU make extension.
12792 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12794 * c-parse.in (STATIC): New terminal.
12795 (scspec): New non-terminal. Update productions accordingly.
12796 (program): Remove bogus ifc / end ifc.
12797 (array_declarator): Simplify production using STATIC.
12799 2002-02-28 Jim Meyering <meyering@lucent.com>
12801 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12802 \a still means TARGET_BELL.
12804 2002-02-28 Richard Henderson <rth@redhat.com>
12806 * haifa-sched.c (sched_emit_insn): New.
12807 (schedule_block): Use last_scheduled_insn to track last insn.
12808 * sched-int.h (sched_emit_insn): Prototype.
12809 * config/ia64/ia64.c (last_issued): Remove.
12810 (ia64_variable_issue): Don't set it.
12811 (nop_cycles_until): Use sched_emit_insn.
12813 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
12815 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
12816 extended constants.
12818 2002-02-28 Kazu Hirata <kazu@hxi.com>
12820 * config/h8300/h8300.c: Fix formatting.
12821 * config/h8300/h8300.h: Likewise.
12823 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
12825 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
12826 which may overwrite the high byte of the frame pointer.
12828 2002-02-28 Bo Thorsen <bo@suse.de>
12830 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
12831 (STARTFILE_SPEC): Add 64 bit files.
12832 (ENDFILE_SPEC): Likewise.
12834 2002-02-28 Jason Merrill <jason@redhat.com>
12836 * c-decl.c (finish_function): Only warn about missing return
12837 statement with -Wreturn-type.
12839 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
12841 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
12843 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
12844 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
12846 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
12848 * basic-block.h (BB_REACHABLE): Renumber.
12849 (BB_DIRTY, BB_NEW): New flags.
12850 (clear_bb_flags): Declare.
12851 (update_life_info_in_dirty_blocks): Declare.
12852 * cfg.c (clear_bb_flags): New function.
12853 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
12854 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
12855 reorder_insns, emit_insn_after): Mark block as dirty.
12856 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
12857 (update_life_info_in_dirty_blocks): New function.
12858 * recog.c (apply_change_group): Dirtify block.
12860 * cse.c (cse_insn): Reorder emitting of jump insn to keep
12862 * gcse.c (delete_null_pointer_checks): Likewise.
12864 * toplev.c (dump_file_index): Move cse2 after bp,
12866 (dump_file_info): Similary.
12867 (rest_of_compilation): Avoid most of CFG rebuilds;
12868 do first if converision after null pointer checks, do cse2
12869 after branch prediction; avoid full liveness rebuild after
12870 initializing subregs.
12871 * invoke.texi (-d options): Document -du, renumber.
12873 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
12874 (notice_new_block): Do not set BB_UPDATE_LIFE.
12875 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
12876 merge_blocks_move_successor_nojumps, merge_blocks,
12877 try_crossjump_to_edge): Likewise.
12878 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
12879 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
12880 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
12881 (merge_of_block): Do not use life_data_ok.
12882 (find_if_case_1): Do not use SET_UPDATE_LIFE.
12883 (if_convert): Use BB_DIRTY mechanizm to update life.
12884 * lcm.c (optimize_mode_switching): Update
12885 update_life_info_in_dirty_blocks
12887 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12889 * Makefile.in (integrate.o): Update.
12890 * c-decl.c (copy_lang_decl): Rename.
12891 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12892 * integrate.c: Include langhooks.h.
12893 (copy_decl_for_inlining): Update to use langhook.
12894 * langhooks-def.h (lhd_do_nothing_t,
12895 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
12896 (LANG_HOOKS_INITIALIZER): Update.
12897 * langhooks.c (lhd_do_nothing_t): New.
12898 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
12899 * tree.h (copy_lang_decl): Remove.
12901 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12903 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
12905 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
12906 POST_DEC, and POST_MODIFY.
12908 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12910 * c-typeck.c (digest_init): Remove unused parameter; all
12913 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
12915 * expmed.c (expand_shift): Correctly test for low part of a
12918 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12920 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
12921 insn UIDs with insn addresses.
12923 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12925 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
12926 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
12927 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
12928 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
12929 gcc.c, toplev.c: Delete code implementing -traditional mode.
12931 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
12932 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
12933 Document removal of -traditional mode for compilation, and
12934 remove documentation only relevant to that mode.
12936 * config/nextstep.h, config/ptx4.h, config/svr4.h,
12937 config/convex/convex.h, config/d30v/d30v.h,
12938 config/i386/dgux.h, config/i386/osf1elf.h,
12939 config/i386/osfelf.h, config/i386/osfrose.h,
12940 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
12941 config/m68k/hp310.h, config/m88k/dgux.h,
12942 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
12943 config/m88k/m88k.h, config/m88k/openbsd.h,
12944 config/mips/abi64.h, config/mips/osfrose.h,
12945 config/mips/svr4-5.h, config/mips/svr4-t.h,
12946 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12947 config/stormy16/stormy16.h: Remove all references to
12948 -traditional from target specs. Delete all mention of the
12949 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
12950 delete a couple of commented-out definitions of
12951 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
12954 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
12955 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
12957 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12959 * mklibgcc.in: Don't use \n in a line subject to
12960 interpretation by echo.
12962 2002-02-27 Graham Stott <grahams@redhat.com>
12964 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
12967 * loop.c (prescan_loop): Handle PARALLEL.
12969 * unroll.c (loop_iterations): Return 0 if the add_val for
12972 * final.c (output_operand_lossage): Constify PFX_STR.
12974 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
12976 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
12978 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
12979 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
12981 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
12983 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12985 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
12987 * cpplex.c (_cpp_lex_token): Handle directives in macro
12989 * cpplib.c (_cpp_handle_directive): Save and restore state
12990 if parsing macro args when entering a directive.
12991 * cppmacro.c (collect_args): No need to handle directives
12992 in macro arguments.
12993 (enter_macro_context, replace_args): Use the original macro
12994 definition in case it was redefined whilst collecting arguments.
12996 * cpp.texi: Update.
12998 2002-02-26 David Edelsohn <edelsohn@gnu.org>
13000 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13001 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13002 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13004 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13005 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13006 (load_toc_v4_PIC_2): Same.
13008 2002-02-26 Alan Modra <amodra@bigpond.net.au>
13010 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13012 2002-02-26 Richard Henderson <rth@redhat.com>
13014 * config/alpha/alpha.md (ashldi_se): Re-enable.
13016 2002-02-26 Richard Henderson <rth@redhat.com>
13018 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13019 MODULE_LOCAL_P; improve commentary.
13021 2002-02-26 Zack Weinberg <zack@codesourcery.com>
13023 * doc/cpp.texi: Clarify documentation of relationship between
13024 #line and #include.
13026 2002-02-26 Kazu Hirata <kazu@hxi.com>
13028 * config/h8300/h8300-protos.h: Update the prototype for
13029 compute_logical_op_length. Add the prototype for
13030 compute_logical_op_cc.
13031 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13032 code from operands.
13033 (compute_logical_op_cc): New.
13034 * config/h8300/h8300.md: Combine all the logical op patterns
13035 in HImode and SImode. Use compute_logical_op_cc.
13037 2002-02-26 Kelley Cook <kelleycook@comcast.net>
13039 * config/i386/i386.c (print_operand): Don't append ATT-style
13040 length suffixs to x87 opcodes when in Intel mode.
13042 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13044 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13045 (init_emit_once): Update calls.
13046 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13047 (init_syntax_once): Prototype.
13049 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13051 * pa-linux.h (LIB_SPEC): Update definition.
13052 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13054 2002-02-26 Richard Henderson <rth@redhat.com>
13056 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13057 if we emitted a stop bit.
13059 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13061 * configure.in (libgcc_visibility): Substitute.
13062 * configure: Rebuilt.
13063 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13064 defined symbols .hidden.
13066 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13068 * attribs.c (c_common_attribute_table): Add visibility.
13069 (handle_visibility_attribute): New function.
13070 * varasm.c (assemble_visibility): New function.
13071 * output.h (assemble_visibility): Add prototype.
13072 * tree.h (MODULE_LOCAL_P): Define.
13073 * crtstuff.c (__dso_handle): Use visibility attribute.
13074 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13075 for MODULE_LOCAL_P symbols too.
13076 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13077 MODULE_LOCAL_P symbols the same way as local symbols.
13078 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13079 into .sdata/.sbss by the user.
13080 * doc/extend.texi (Function Attributes): Document visibility
13083 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13086 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13087 STRING_CST initializer spanning the whole variable without
13089 If expand_expr returned MEM, don't use it.
13091 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
13093 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13094 generate a die for the lexical block.
13096 2002-02-26 Kazu Hirata <kazu@hxi.com>
13098 * config/h8300/h8300-protos.h: Add a prototype for
13099 compute_logical_op_length.
13100 * config/h8300/h8300.c (compute_logical_op_length): New.
13101 * config/h8300/h8300.md (anonymous logical patterns): Use
13102 compute_logical_op_length for length.
13104 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13106 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13108 (gen_type_die): Same.
13110 * attribs.c (handle_vector_size_attribute): Set debug information.
13112 2002-02-26 Daniel Egger <degger@fhm.edu>
13114 * config/rs6000/rs6000.md: Swap define_insn attributes to
13115 fix incorrect generation of merge high instructions instead
13118 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13120 * c-typeck.c (really_start_incremental_init): Use
13121 bitsize_zero_node for vectors.
13123 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13125 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13126 ("*set_vrsave_internal"): Same.
13128 2002-02-25 Richard Henderson <rth@redhat.com>
13130 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13131 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13133 2002-02-25 Jakub Jelinek <jakub@redhat.com>
13136 * config/i386/i386.c (ix86_return_pops_args): Only pop
13137 fake structure return argument if it was passed on the stack.
13139 2002-02-25 Jason Merrill <jason@redhat.com>
13141 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13144 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13146 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13147 link with shared_name only.
13148 * doc/invoke.texi (Link Options): Document new behavior.
13150 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13152 * c-typeck.c (push_init_level): Handle vectors.
13154 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13156 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13157 operands of SPARC_SETHI_P.
13158 (input_operand): Likewise.
13159 (sparc_emit_set_const32): Likewise.
13160 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13161 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13162 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13163 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13164 (movdi_insn_sp64_vis): Likewise.
13165 (movdi split, movdf split): Use SETHI32.
13166 * doc/md.texi: Document SPARC constraints L, M and N.
13168 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13170 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13171 ("*set_vrsave_internal"): use mfspr for Darwin.
13173 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13174 gen_get_vrsave_internal.
13176 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13178 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13180 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13182 * cpplex.c (cpp_interpret_charconst): Get signedness or
13183 otherwise of wide character constants correct.
13184 * cppexp.c (lex): Get signedness of wide charconsts correct.
13186 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13188 * optabs.c (widen_operand): Only call convert_modes for
13189 promoted SUBREG if signedness matches.
13190 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13192 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13194 * cpplib.c (glue_header_name): Use local buffer to build up
13197 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13199 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13201 2002-02-23 Kazu Hirata <kazu@hxi.com>
13203 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13204 H8/300[HS] separately.
13205 * config/h8300/h8300.md: Remove the early clobber constraint
13206 from bit field patterns.
13208 2002-02-23 Kazu Hirata <kazu@hxi.com>
13210 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13212 (mulhisi3): Likewise.
13213 (umulqisi3): Likewise.
13214 (umulhisi3): Likewise.
13216 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13218 * cppinit.c (output_deps): Correct test for stdout output.
13219 (init_dependency_output): Cure warning.
13221 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13223 * expr.c (store_expr): When converting expression to promoted
13224 equivalent type, allow using SUBREG_REG of TARGET as the target
13225 of the expansion of EXP.
13226 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13227 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13228 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13229 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13230 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13232 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13234 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13235 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13236 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13238 2002-02-23 Jakub Jelinek <jakub@redhat.com>
13240 PR optimization/5747
13241 * loop.c (scan_loop): Update reg info if move_movables created new
13244 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13246 * gcc.c (init_gcc_spec): Revert last change.
13248 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13250 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13251 gpc_reg_operand constraint.
13253 2002-02-23 Alan Modra <amodra@bigpond.net.au>
13255 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13256 Simplify comparison of `low'.
13257 (add_operand): Fix formatting.
13258 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13259 (mask_operand): Disallow mask to wrap in 64-bit mode.
13260 (rs6000_stack_info): Remove redundant test setting push_p.
13261 (output_toc): Fix formatting.
13262 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13263 cc_reg_not_cr0_operand constraint.
13264 (booldi3, boolcdi3 splitters): Same.
13266 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
13268 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13270 2002-02-22 David Edelsohn <edelsohn@gnu.org>
13272 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13273 gcc invoked with -shared-libgcc.
13275 2002-02-22 Jakub Jelinek <jakub@redhat.com>
13278 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13279 decl if any of elements was TREE_USED.
13281 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
13283 * config/sparc/sol2.h: Don't include sys/mman.h.
13284 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13285 (arith_4096_operand): Don't throw high bits away.
13286 (const64_operand): Take sign extension of CONST_INTs into account.
13287 (const64_high_operand, sparc_emit_set_const32): Likewise.
13288 (GEN_HIGHINT64): Likewise.
13289 (sparc_emit_set_const64_quick1): Likewise.
13290 (const64_is_2insns): Likewise.
13291 (print_operand): Use trunc_int_for_mode for sign extension.
13292 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13293 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13294 chars. Assume CONST_INT is already properly sign-extended.
13295 (movdi split): Sign-extend each SImode part.
13296 (andsi3 split): Don't mask high bits off, so that result
13297 remains properly sign-extend.
13298 (iorsi3 split): Likewise.
13299 (xorsi3 split): Likewise.
13301 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
13303 * fold-const.c (fold): Fix typo in comments.
13305 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13307 * Makefile.in (langhooks.o): Update dependencies.
13309 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13311 * langhooks.c: Include flags.h.
13313 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
13315 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13317 * c-common.c (c_common_post_options): Set inline trees by
13320 * doc/extend.texi (Function Attributes): Document always_inline
13322 Update documentation about inlining when not optimizing.
13324 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13326 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13327 unless DECL_ALWAYS_INLINE.
13329 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13330 unless DECL_ALWAYS_INLINE.
13331 (c_disregard_inline_limits): Disregard if always_inline set.
13333 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13334 Disregard if always_inline set.
13335 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13336 unless DECL_ALWAYS_INLINE.
13338 * attribs.c (handle_always_inline_attribute): New.
13339 (c_common_attribute_table): Add always_inline.
13341 * config/rs6000/altivec.h: Add prototypes for builtins
13342 requiring the always_inline attribute.
13344 2002-02-21 Eric Christopher <echristo@redhat.com>
13346 * expmed.c (store_bit_field): Try to simplify the subreg
13347 before generating a new one when when the mode size of
13348 value is less than maxmode.
13350 2002-02-21 Richard Henderson <rth@redhat.com>
13352 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13353 than gen_rtx_PLUS to form the sum.
13354 * explow.c (force_reg): Rearrange to not allocate new pseudo
13355 when force_operand returns a register.
13356 * expr.c (expand_assignment): Allow offset_rtx expansion to
13357 return a sum. Do not force addresses into registers.
13358 (expand_expr): Likewise.
13359 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13360 to canonicalize arithmetic that didn't simpify.
13361 (simplify_plus_minus): New argument force; update
13362 all callers. Don't split CONST unless we can do something with it,
13363 and wouldn't lose the constness of the operands.
13365 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13366 that we generated earlier.
13368 2002-02-21 Tom Tromey <tromey@redhat.com>
13370 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13371 (output_line_info): Use constant `1', with a long explanatory
13373 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13375 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13377 * jump.c (redirect_jump): If old label has no UID, don't try to
13380 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13382 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13383 If input is constant, do shifts at compile time.
13385 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13387 * doc/extend.texi: Fix some more overfull hboxes.
13389 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13391 PR optimization/4994
13392 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13395 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13398 * expr.h (expand_and): Add mode argument.
13399 * expmed.c (expand_and): Add mode argument.
13400 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13401 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13402 * except.c (expand_builtin_extract_return_addr): Likewise.
13403 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13404 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13405 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13406 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13407 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13408 gen_rtx (CONST_INT, VOIDmode, x).
13410 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13413 * stmt.c (warn_if_unused_value): Move side effects test once more.
13415 2002-02-20 Torbjorn Granlund <tege@swox.com>
13417 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13418 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13420 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13422 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13423 SUBREG or ZERO_EXTEND.
13425 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13427 * sh.h (current_function_anonymous_args): Remove.
13428 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13429 of current_function_varargs and current_function_stdarg is set.
13430 * sh.c (sh_expand_prologue): Check current_function_varargs /
13431 current_function_stdarg / TARGET_SH5 instead of
13432 current_function_anonymous_args.
13434 * sh64.h (TARGET_VERSION): Define.
13436 2002-02-20 David Edelsohn <edelsohn@gnu.org>
13438 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13439 VRSAVE_REGNO on TARGET_ALTIVEC.
13441 2002-02-20 Alan Modra <amodra@bigpond.net.au>
13443 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13444 bits of SImode const_int.
13445 (includes_rshift_p): Likewise.
13446 (print_operand): Call mask_operand and mask64_operand with correct
13448 (rs6000_output_function_epilogue): Pad traceback table to word.
13449 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13450 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13451 mask64_operand with correct mode.
13452 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13454 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13457 * varasm.c (get_pool_constant_mark): New.
13458 * rtl.h (get_pool_constant_mark): Add prototype.
13459 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13460 be represented if it has not been output.
13462 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13464 * combine.c (do_SUBST): Sanity check substitutions of
13465 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13466 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13467 CONST_INT into its operand.
13468 (known_cond): Likewise, for ZERO_EXTEND.
13469 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13470 allow for simplification of wide modes. Reject CONST_INTs in
13471 ZERO_EXTEND when their actual mode is not given.
13473 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13475 * c-decl.c (pushdecl): If no global declaration is found for an
13476 extern declaration in block scope, try a limbo one.
13478 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13481 * c-common.c (pointer_int_sum): Moved from...
13482 * c-typeck.c (pointer_int_sum): ...here.
13483 * c-common.h (pointer_int_sum): Add prototype.
13485 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13488 * c-decl.c (duplicate_decls): Return 0 if issued error about
13491 2002-02-20 Roger Sayle <roger@eyesopen.com>
13492 Jakub Jelinek <jakub@redhat.com>
13495 * tree.c (host_integerp): Ensure that the constant integer is
13496 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13497 when pos is zero or non-zero respectively. Clarify comment.
13498 * c-format.c (check_format_info_recurse): Fix host_integerp
13499 usage; the pos argument should be zero when assigning to a
13500 signed HOST_WIDE_INT.
13502 2002-02-20 Richard Henderson <rth@redhat.com>
13504 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13505 of the operand, rather than assuming TImode.
13506 (ix86_expand_binop_builtin): Cope with commutative patterns
13507 using nonimmediate_operand for both operands.
13508 (ix86_expand_timode_binop_builtin): Likewise.
13509 (ix86_expand_store_builtin): Validate operand 1.
13510 (ix86_expand_unop1_builtin): Likewise.
13512 2002-02-20 Philip Blundell <philb@gnu.org>
13515 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13517 2002-02-20 Richard Henderson <rth@redhat.com>
13520 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13522 2002-02-20 Tom Tromey <tromey@redhat.com>
13524 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13525 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13526 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13527 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13528 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13531 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13533 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13534 for (const_int 0) in X not just INTVAL.
13536 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13538 * doc/extend.texi: Avoid or reduce overfull hboxes.
13540 2002-02-20 Diego Novillo <dnovillo@redhat.com>
13542 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13543 operations if the field does not start at a mode boundary.
13545 2001-02-20 Joel Sherrill <joel@OARcorp.com>
13547 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13548 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13549 Also done for -Acpu and -Amachine.
13551 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13553 * cppinit.c (init_dependency_output): Take deps output file
13554 from -o if none given with -MF. Suppress normal output.
13555 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13556 * doc/cpp.texi, doc/invoke.texi: Update.
13558 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13560 * toplev.c (output_quoted_string): Write unprintable
13561 characters with octal escapes.
13563 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13565 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13566 really_call_used[VRSAVE_REGNO] if not Altivec.
13568 2002-02-19 Alan Modra <amodra@bigpond.net.au>
13570 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13572 (constant_pool_expr_1): Fix formatting.
13573 (rs6000_legitimize_reload_address): Likewise.
13575 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13577 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13578 now that we have one.
13580 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13582 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13583 end of first block of bitfields (which was only seven bits);
13584 rename dummy to unused_1; remove comment which is no longer true.
13586 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13588 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13590 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13593 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13597 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13598 arm_is_longcall_p rather than inspecting call-type cookie
13600 (call_value_insn) [TARGET_THUMB]: Likewise.
13602 2002-02-19 Graham Stott <grahams@redhat.com>
13604 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13606 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13608 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13609 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13610 (FP_SAVE_INLINE): Delete.
13612 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13613 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13614 * config/rs6000/t-ppccomm: Build crtsavres.o.
13615 * config/rs6000/crtsavres.asm: New file.
13617 2002-02-19 Philip Blundell <philb@gnu.org>
13619 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13621 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13622 (output_return_instruction): Allow interrupt functions to return with
13623 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13624 (arm_expand_prologue): Subtract 4 before stacking LR in an
13625 interrupt function.
13627 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13629 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13630 decl, not just FUNCTION_DECL.
13631 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13632 (arm_assemble_integer): Likewise.
13633 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13636 2002-02-19 matthew green <mrg@eterna.com.au>
13638 * config.gcc (sparc-*-netbsdelf*): Enable target.
13639 (sparc64-*-netbsd*): New target.
13640 * config/sparc/netbsd-elf.h: New file.
13641 * config/sparc/t-netbsd64: New file.
13643 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13645 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13647 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
13649 * doc/invoke.texi: explicitly list the style guidelines that
13650 -Weffc++ checks for.
13652 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
13654 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13656 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
13659 * gcc.c (cpp_unique_options): Treat -o as indicating object file
13660 only if not -E. If -E, pass -o through to the preprocessor.
13662 2002-02-19 Kazu Hirata <kazu@hxi.com>
13664 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13665 register number with an appropriate macro.
13667 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13669 * doc/rtl.texi (Constants): Close @code tag.
13671 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
13673 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13674 ("mmx_uavgv4hi3"): Same.
13675 ("pmulhrwv4hi3"): Same.
13677 * tree-inline.c (walk_tree): Handle vectors.
13679 * c-common.c (constant_expression_warning): Handle vectors.
13680 (overflow_warning): Same.
13682 * sched-deps.c (sched_analyze_2): Handle vectors.
13684 * rtlanal.c (rtx_unstable_p): Handle vectors.
13685 (rtx_varies_p): Same.
13686 (count_occurrences): Same.
13687 (regs_set_between_p): Same.
13688 (modified_between_p): Same.
13689 (modified_in_p): Same.
13690 (volatile_insn_p): Same.
13691 (volatile_refs_p): Same.
13692 (side_effects_p): Same.
13693 (may_trap_p): Same.
13694 (inequality_comparisons_p): Same.
13695 (replace_regs): Same.
13696 (computed_jump_p_1): Same.
13698 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13700 (inner_mode_array): New.
13701 (copy_rtx): Handle vectors.
13702 (copy_most_rtx): Same.
13703 (rtx_equal_p): Same.
13704 (get_mode_alignment): Adjust for vectors.
13706 * resource.c (mark_referenced_resources): Handle vectors.
13707 (mark_set_resources): Same.
13709 * reload1.c (eliminate_regs): Handle vectors.
13710 (elimination_effects): Same.
13711 (scan_paradoxical_subregs): Same.
13713 * reload.c (subst_reg_equivs): Handle vectors.
13715 * regrename.c (scan_rtx): Handle vectors.
13717 * regclass.c (reg_scan_mark_refs): Handle vectors.
13719 * recog.c (find_single_use_1): Handle vectors.
13721 * local-alloc.c (equiv_init_varies_p): Handle vectors.
13722 (contains_replace_regs): Same.
13723 (memref_referenced_p): Same.
13725 * integrate.c (copy_rtx_and_substitute): Handle vectors.
13726 (subst_constants): Same.
13728 * genattrtab.c (attr_copy_rtx): Handle vectors.
13729 (encode_units_mask): Same.
13730 (clear_struct_flag): Same.
13731 (count_sub_rtxs): Same.
13733 * gcse.c (want_to_gcse_p): Handle vectors.
13734 (oprs_unchanged_p): Same.
13735 (hash_expr_1): Same.
13736 (oprs_not_set_p): Same.
13737 (expr_killed_p): Same.
13738 (compute_transp): Same.
13739 (store_ops_ok): Same.
13741 * function.c (purge_addressof_1): Do not allow paradoxical subregs
13743 (fixup_var_refs_1): Same.
13744 (instantiate_virtual_regs_1): Same.
13746 * fold-const.c (operand_equal_p): Handle vectors.
13748 (rtl_expr_nonnegative_p): Same.
13750 * flow.c (mark_used_regs): Handle vectors.
13752 * df.c (df_uses_record): Handle vectors.
13754 * cselib.c (cselib_subst_to_values): Handle vectors.
13755 (cselib_mem_conflict_p): Same.
13758 * cse.c (canon_reg): Handle vectors.
13760 (cse_process_notes): Same.
13761 (count_reg_usage): Same.
13762 (canon_hash): Same.
13764 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13766 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13768 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13769 (gen_rtx): Handle CONST_VECTOR.
13770 (gen_const_vector_0): New.
13771 (copy_rtx_if_shared): CONST_VECTORs can be shared.
13772 (reset_used_flags): Same.
13773 (copy_insn_1): Same.
13774 (initializer_constant_valid_p): Handle VECTOR_CST.
13776 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13778 * doc/rtl.texi (Constants): Document const_vector.
13779 (CONST0_RTX): Update for vectors.
13780 (RTL sharing): Same.
13782 * print-tree.c (print_node): Add case for VECTOR_CST.
13784 * tree.h (TREE_VECTOR_CST_ELTS): New.
13785 (struct tree_vector): New.
13786 (union tree_node): Add vector node.
13787 (build_vector): Add prototype.
13789 * tree.def (VECTOR_CST): New.
13791 * tree.c (build_vector): New.
13793 * expmed.c (make_tree): Handle CONST_VECTOR.
13795 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13796 (CONST_VECTOR_ELT): New.
13797 (CONST_VECTOR_NUNITS): New.
13799 * machmode.h (GET_MODE_INNER): New.
13800 (DEF_MACHMODE): Accept 8th arg.
13802 * machmode.def: Add 8th argument for vector inner mode.
13803 Add inner vector modes for vectors.
13805 * rtl.def (VEC_CONST): Remove.
13806 (CONST_VECTOR): New.
13808 * expr.c (clear_storage): Allow vectors.
13809 (is_zeros_p): Handle VECTOR_CST.
13811 * varasm.c (output_constant_pool): Handle vectors.
13812 (rtx_const): Add veclo and vechi fields.
13813 (kind): Add RTX_VECTOR.
13814 (decode_rtx_const): Add case for vector.
13816 * config/rs6000/rs6000-protos.h: Add zero_constant.
13818 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
13819 constants. Force easy vector constants into memory.
13820 (easy_vector_constant): New.
13821 (emit_easy_vector_constant): New.
13822 (rs6000_legitimize_reload_address): Do not generate bad reloads on
13825 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
13827 ("altivec_lvxl"): Same.
13828 (altivec_lvebx): Same.
13829 (altivec_lvehx): Same.
13830 (altivec_lvewx): Same.
13831 ("*movv4si_const0"): New.
13832 ("*movv4sf_const0"): New.
13833 ("*movv8hi_const0"): New.
13834 ("*movv16qi_const0"): New.
13836 2002-02-18 Kazu Hirata <kazu@hxi.com>
13838 * config/h8300/h8300.c (notice_update_cc): Use
13841 2002-02-18 Kazu Hirata <kazu@hxi.com>
13843 * config/h8300/h8300.md (divmod patterns): Change the
13844 constraints for operands[1] to register_operand.
13846 2002-02-18 Kazu Hirata <kazu@hxi.com>
13848 * config/h8300/h8300-protos.h: Remove the prototype for
13850 * config/h8300/h8300.c (p_operand): Remove.
13851 * config/h8300/h8300.md: Replace p_operand with
13854 2002-02-18 Philip Blundell <pb@nexus.co.uk>
13856 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
13858 (output_return_instruction): Allow use of LDR to unstack
13859 return addresss even for interrupt handlers or when
13860 interworking. If compiling for ARMv5, use interworking-safe
13861 return instructions by default. Remove duplicated code and
13862 lengthy "strcat" sequences.
13864 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13866 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
13867 (LINK_EH_SPEC): Define.
13868 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
13870 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13872 * config/s390/s390.c (s390_emit_prologue): Do not set the
13873 frame_related flag for call-clobbered registers.
13875 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
13877 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
13878 (construct_container): Fix handling of SSE operands.
13879 (ix86_expand_builtin): Fix handling of 64bit pointers.
13880 (mmx_maskmovq_rex): New pattern.
13882 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
13884 * regrename.c (kill_set_value): Handle subregs properly.
13886 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
13888 * objc/objc-act.c (handle_impent): Remove leading '*'
13889 from objc_class_name.
13891 2002-02-17 Richard Henderson <rth@redhat.com>
13893 * config/alpha/alpha.c (some_small_symbolic_operand,
13894 some_small_symbolic_operand_1, split_small_symbolic_operand,
13895 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
13896 Handle small SYMBOL_REFs anywhere, not just inside memories.
13897 * config/alpha/alpha-protos.h: Update.
13898 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13899 * config/alpha/alpha.md (small symbolic operand splitter): Update.
13901 2002-02-17 Roland McGrath <roland@frob.com>
13903 * config.gcc (powerpc-*-gnu-gnualtivec*,
13904 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
13905 * config/rs6000/gnu.h: New file.
13906 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
13907 Grok "gnu" in rs6000_abi_name.
13908 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
13909 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
13910 Grok -mcall-gnu analogous to -mcall-linux et al.
13911 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13912 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
13913 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
13915 2002-02-17 Jakub Jelinek <jakub@redhat.com>
13918 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
13921 2002-02-17 Philipp Thomas <pthomas@suse.de>
13923 * config/cris/cris.h: Undefine STARTFILE_SPEC and
13924 ENDFILE_SPEC before (re)defining them.
13926 2002-02-17 Kazu Hirata <kazu@hxi.com>
13928 * config/h8300/h8300.c: Fix formatting.
13929 * config/h8300/h8300.h: Likewise.
13931 2002-02-17 Philipp Thomas <pthomas@suse.de>
13933 * doc/tm.texi: Explain why empty strings should not be
13934 marked for translation.
13936 2002-02-17 Philipp Thomas <pthomas@suse.de>
13938 * final.c (output_operand_lossage): Changed to accept
13939 printf style arguments. Change calls where necessary.
13940 * output.h (output_operand_lossage): Change declaration
13941 accordingly. Update copyright.
13942 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
13943 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
13944 Update copyright date where necessary.
13946 * config/i386/i386.c (print_operand): Likewise. Remove use of
13949 * config/cris/cris.c (cris_operand_lossage): Likewise.
13950 Rename parameter so that exgettext recognizes it as
13951 translatable message.
13952 (LOSE_AND_RETURN): Rename parameter to msgid.
13954 2002-02-17 Kazu Hirata <kazu@hxi.com>
13956 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
13957 hard coded register number with an appropriate macro.
13958 (HARD_REGNO_MODE_OK): Likewise.
13959 (ARG_POINTER_REGNUM): Likewise.
13960 (STATIC_CHAIN_REGNUM): Likewise.
13961 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
13962 * config/h8300/h8300.md (define_constants): Define more
13965 2002-02-17 Philipp Thomas <pthomas@suse.de>
13967 * config/i386/i386.h: Don't mark empty strings for translation.
13969 2002-02-16 H.J. Lu <hjl@gnu.org>
13971 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
13973 2002-02-16 Zack Weinberg <zack@codesourcery.com>
13975 * cppinit.c (merge_include_chains): Check for brack being
13976 NULL before attempting to merge it with qtail.
13978 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13980 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
13983 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
13985 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
13987 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
13989 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
13990 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
13991 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
13993 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13995 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
13996 now only if !TARGET_FIX.
13997 (*movsi_nt_vms_fix): New pattern.
13999 2002-02-16 Douglas B Rupp <rupp@gnat.com>
14001 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14002 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14003 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14004 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14005 (alpha_start_function, alpha_expand_epilogue): Likewise.
14006 (unicosmk_gen_dsib): Likewise.
14008 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14010 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14012 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14014 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14015 check_and_change_labels, s390_final_chunkify): Delete.
14016 (s390_split_branches, s390_chunkify_pool): New functions.
14017 (s390_function_prologue): Call them.
14019 * config/s390/s390.h (S390_REL_MAX): Delete.
14020 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14022 * config/s390/s390.md (cjump, icjump, jump): Fix length
14023 attribute calculation.
14026 2002-02-15 David Edelsohn <edelsohn@gnu.org>
14028 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14029 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14031 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14033 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14034 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14035 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14037 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14039 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14041 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14043 * reload.c (find_dummy_reload): Check that an output register
14044 is valid for its mode.
14046 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
14048 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14051 * function.c (assign_parms): Demote promoted argument passed by
14052 transparent reference.
14054 2001-02-14 Joel Sherrill <joel@OARcorp.com>
14056 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14057 -Acpu() and -Amachine() to eliminate warnings.
14059 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14061 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14063 2002-02-14 Kazu Hirata <kazu@hxi.com>
14065 * config/h8300/h8300-protos.h: Update the prototype for
14067 * config/h8300/h8300.c (const_costs): Treat SET as a little
14068 more expensive operation.
14069 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14070 reference to const_costs.
14072 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
14074 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14076 2002-02-14 Jakub Jelinek <jakub@redhat.com>
14079 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14080 use arguments from newtype.
14082 2002-02-13 Eric Christopher <echristo@redhat.com>
14084 * config/mips/mips.c (override_options): Add check for march/mipsX
14085 on the same command line. Fix error message in cpu processing.
14086 Remove architecture and ISA checks.
14088 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14090 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14092 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14094 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14096 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14098 ("*movv8hi_internal1"): Same.
14099 ("*movv16qi_internal1"): Same.
14100 ("*movv4sf_internal1"): Same.
14102 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14103 not push_reload for altivec modes.
14105 2002-02-13 Joel Sherrill <joel@OARcorp.com>
14107 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14108 all RTEMS targets including removal of #includes from config/*/rtems*.h
14109 file and adding them to tm_file setting. Added xm_defines=POSIX to
14111 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14112 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14113 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14114 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14115 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14116 config/m68k/rtemself.h: Ditto.
14117 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14118 config/mips/rtems64.h: Ditto.
14119 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14120 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14122 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14123 config/sparc/rtemself.h: Ditto.
14124 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14125 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14126 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14128 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14129 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14130 target made more similar to i386-elf.
14131 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14132 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14133 be similar to config/m68k/t-m68kelf.
14134 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14136 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14138 * regmove.c (kill_value): Handle subregs.
14140 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14142 * i386.md (mul patterns): Allow memory operand to be first;
14143 add expanders where needed; fix constraints.
14144 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14145 Allow memory operand to be the first.
14147 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14150 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14153 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14156 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14158 PR optimization/5547:
14159 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14160 all valid IA-32 address modes involving non-scaled %ebx and
14161 GOT/GOTOFF as displacement.
14163 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14165 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14166 after emitting ltorg insns.
14168 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14169 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14170 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14171 *abssf2): Fix "op_type" attribute.
14173 2002-02-13 Douglas B Rupp <rupp@gnat.com>
14175 * mkconfig.sh: Avoid using a subshell redirect.
14176 ($output.T): Change to $(output)T.
14177 (ENABLE_NLS): Remove unneeded undef.
14179 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14180 * config/alpha/x-vms (libsubdir): Define.
14182 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14183 register frame procedures. Optimize retrieving context.
14185 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14186 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14187 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14189 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14191 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14192 Make same change as for find_base_value.
14194 2002-02-13 Kazu Hirata <kazu@hxi.com>
14196 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14197 of QImode and SImode.
14199 2002-02-13 Kazu Hirata <kazu@hxi.com>
14201 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14202 length computation of movsi.
14203 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14205 2002-02-13 Kazu Hirata <kazu@hxi.com>
14207 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14208 operands[2] to register_operand.
14210 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14212 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14214 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
14216 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14217 for altivec_lvx* and altivec_stvx*.
14218 ("*movv4si_internal"): Add constraint for loading from GPRs.
14219 ("*movv8hi_internal1"): Same.
14220 ("*movv16qi_internal1"): Same.
14221 ("*movv4sf_internal1"): Same.
14223 * config/rs6000/rs6000.c (altivec_register_operand): New.
14225 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14226 altivec_register_operand.
14228 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14230 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14233 2002-02-13 Stan Shebs <shebs@apple.com>
14235 * c-typeck.c (digest_init): Handle vectors.
14236 (really_start_incremental_init): Same.
14237 (pop_init_level): Same.
14238 (process_init_element): Same.
14240 * varasm.c (output_constant): Same.
14242 * expr.c (clear_storage): Same.
14243 (store_constructor): Same.
14245 2002-02-12 Eric Christopher <echristo@redhat.com>
14247 * explow.c (hard_function_value): Add comment explaining
14248 signed/unsigned comparison.
14250 2002-02-12 Jakub Jelinek <jakub@redhat.com>
14252 * jump.c (never_reached_warning): Add finish argument.
14253 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14254 real insn after end.
14255 * rtl.h (never_reached_warning): Adjust prototype.
14256 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14257 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14258 never_reached_warning.
14260 2002-02-12 Graham Stott <grahams@redhat.com>
14262 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14264 2002-02-12 Kazu Hirata <kazu@hxi.com>
14266 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14267 logical shifts on H8/300.
14268 (shift_alg_si): Improve several shifts on H8/300.
14269 (get_shift_alg): Likewise.
14271 2002-02-12 Graham Stott <grahams@redhat.com>
14273 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14275 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14277 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14278 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14280 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14282 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14283 non-CONST_INT through default_assemble_integer.
14284 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14285 <case 8>: Abort for CONST_DOUBLE.
14287 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14289 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14291 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14292 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14294 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14296 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14298 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
14300 * regrename.c (regrename_optimize): Don't accept a
14301 part-clobbered register if the replaced register is not part
14304 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14305 take padding into account when computing the argument value.
14307 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14309 * combine.c (try_combine): Apply substitutions in
14310 CALL_INSN_FUNCTION_USAGE too.
14312 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
14314 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14315 __builtin_altivec_abs*.
14318 * config/rs6000/rs6000.h (rs6000_builtins): Add
14319 ALTIVEC_BUILTIN_ABS*.
14321 * config/rs6000/altivec.h: Use const char for builtins expecting
14323 (vec_abs): New versions for C and C++.
14326 2002-02-10 Kazu Hirata <kazu@hxi.com>
14328 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14331 2002-02-10 Kazu Hirata <kazu@hxi.com>
14333 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14334 constant definition from h8300.md.
14335 (FRAME_POINTER_REGNUM): Likewise.
14336 * config/h8300/h8300.md (define_constants): Add FP_REG.
14338 2002-02-10 Kazu Hirata <kazu@hxi.com>
14340 * config/h8300/h8300.c (print_operand): Remove redundant code.
14342 2002-02-10 Kazu Hirata <kazu@hxi.com>
14344 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14345 * config/h8300/h8300.c (byte_reg): Make it static.
14347 2002-02-10 Richard Henderson <rth@redhat.com>
14350 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14352 2002-02-10 Richard Henderson <rth@redhat.com>
14355 * tree.c (append_random_chars): Don't abort if main_input_filename
14358 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14360 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14362 2002-02-10 Kazu Hirata <kazu@hxi.com>
14364 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14365 (pushhi1): Likewise.
14367 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14369 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14370 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14372 2002-02-09 David O'Brien <obrien@FreeBSD.org>
14374 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14376 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14378 2002-02-09 Kazu Hirata <kazu@hxi.com>
14380 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14381 a half of an SImode register on H8/300.
14383 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14385 * i386.md (movdi_2): Add missing '!'.
14387 2002-02-09 Kazu Hirata <kazu@hxi.com>
14389 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14392 2002-02-09 Kazu Hirata <kazu@hxi.com>
14394 * config/h8300/h8300.md (length): Correct the distance valid
14395 for the short branch.
14397 2002-02-09 Kazu Hirata <kazu@hxi.com>
14399 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14401 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14403 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14404 registers in SImode.
14405 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14408 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14411 Contribute sh64-elf.
14412 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14413 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14414 (sh_cannot_modify_jumps_p): New function.
14415 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14416 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14417 (sh_ms_bitfield_layout_p): New function.
14418 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14419 Zack Weinberg <zack@codesourcery.com>
14420 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14421 expand_simple_binop instead of expand_binop.
14422 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14423 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14424 use of .quad and .uaquad.
14425 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14426 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14427 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14428 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14429 movdi_const_16bit): Make sure all CONSTs have modes.
14430 (sym2PIC): Ditto, but by adjusting all callers.
14431 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14432 if the prologue calls the SHmedia argument decoder or register
14434 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14435 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14436 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14437 (sh_expand_epilogue): Don't emit USE of return target register.
14438 (prepare_move_operands): Legitimize DImode PIC addresses.
14439 (sh_media_register_for_return): Skip tr0, used to initialize the
14441 (sh_expand_prologue): Remove explicit USE of return register.
14442 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14443 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14444 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14445 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14446 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14447 EXTRA_CONSTRAINT_T.
14448 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14449 (MOVI_SHORI_BASE_OPERAND_P): New.
14450 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14451 (EXTRA_CONSTRAINT_T): Define in terms of them.
14452 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14453 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14454 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14455 alternatives supporting TARGET_REGS.
14456 (UNSPEC_GOTPLT): New constant.
14457 (movdi split): Move incrementing of LABEL_NUSES...
14458 (movdi_const, movdi_const_32bit): Here. Use
14459 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14460 (movdi_const_16bit): New.
14461 (call, call_value) [flag_pic]: Use GOTPLT.
14462 (call_pop, call_value_pop): New expands.
14463 (call_pop_compact, call_pop_rettramp): New insns.
14464 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14465 (sibcall) [flag_pic]: Use GOT.
14466 (builtint_setjmp_receiver): Remove bogus, unused expand.
14467 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14468 (*pt, *ptb, ptrel): New insns.
14469 (sym2GOT): Handle DImode GOT.
14470 (sym2GOTPLT, symGOTPLT2reg): New expands.
14471 (sym2PIC): New expand.
14472 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14473 (shcompact_return_tramp_i): Use return register explicitly.
14474 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14475 disable flag_reorder_blocks.
14476 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14477 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14478 clobbers, for clarity.
14479 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14480 restoring of r0 in macl as MAYBE_DEAD.
14481 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14482 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14483 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14484 alter_subreg all over.
14485 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14486 reload, instead of emitting instructions that would require
14488 (casesi_load_media): Add missing modes.
14489 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14490 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14491 as used if the argument decoder is called.
14492 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14493 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14494 Pmode, then extend it to DImode if necessary.
14495 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14496 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14497 constants in FPU-enabled SHmedia, let them be loaded from memory.
14498 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14499 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14500 Adjust whitespace in assembly output templates.
14501 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14502 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14503 mode of if_then_else.
14504 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14505 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14507 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14508 Joern Rennecke <amylaar@redhat.com>
14509 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14510 (SUBTARGET_CPP_PTR_SPEC): New.
14511 (SUBTARGET_CPP_SPEC): Remove.
14512 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14513 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14514 Fix typo in previous checkin.
14515 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14516 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14517 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14518 Alexandre Oliva <aoliva@redhat.com>
14519 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14520 what single FP register can hold for SHmedia target.
14521 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14522 Alexandre Oliva <aoliva@redhat.com>
14523 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14524 Do not split into SUBREG.
14525 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14526 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14527 and added new functions as specified in SH5 ABI r9.
14528 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14529 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14531 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14532 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14533 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14534 and consttable_window_ends.
14535 2001-06-03 Graham Stott <grahams@redhat,com>
14536 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14537 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14538 * config/sh/sh.c (print_operand): Handle floating-point pair,
14539 vector and matrix registers.
14540 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14541 vector modes into account.
14542 * config/sh/sh.md (movv2sf): Split move between registers into
14544 (movv4sf, movv16sf): Introduce insns that get split only after
14546 * config/sh/shmedia.h: Fix Copyright dates.
14547 * config/sh/ushmedia.h: Likewise. Move loop counter
14548 declarations into conditionals that uses them.
14549 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14551 * config/sh/sshmedia.h: Fix Copyright dates.
14552 (sh_media_PUTCFG): Fix constraints.
14553 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14554 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14555 ptrmemfunc_vbit_in_delta for SH5.
14556 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14557 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14558 * invoke.texi: Likewise.
14559 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14560 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14561 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14562 GCC_pop_shmedia_regs_nofpu): New global symbols.
14563 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14564 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14565 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14566 compact function with nonlocal labels.
14567 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14568 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14569 (initial_elimination_offset): Account for their stack space.
14570 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14571 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14572 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14573 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14574 least one of the operands to be a register.
14575 (movv2sf): Likewise. Renamed to movv2sf_i.
14576 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14577 prepare_move_operands() before emitting SHmedia insns.
14578 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14579 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14580 Don't save nor initialize r12. Don't mis-align the stack.
14581 Pad the code with a nop.
14582 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14584 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14585 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14586 [__SHMEDIA__]: Implement.
14587 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14588 * config/sh/sh.md: Set latency of `pt' closer to reality.
14589 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14590 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14591 Set move, load and store type attributes.
14592 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14593 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14595 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14596 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14597 * config/sh/sh.c (sh_media_register_for_return): New function.
14598 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14599 branch-target register.
14600 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14601 * config/sh/sh.md (return_media_i): Use any call-clobbered
14602 branch-target register.
14603 (return_media): If r18 wasn't copied in the prologue, copy it
14605 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14606 Clear class FP0_REGS.
14607 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14609 2001-03-08 DJ Delorie <dj@redhat.com>
14610 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14611 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14612 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14613 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14614 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14615 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14616 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14617 return value correctly for call_cookie.
14618 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14619 * config/sh/crt1.asm (start): Modified so as to call
14620 ___setup_argv_and_call_main.
14621 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14622 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14624 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14625 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14626 (STRIP_NAME_ENCODING): Use it.
14627 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14628 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14629 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14630 prepare_scc_operands().
14631 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14632 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14633 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14634 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14635 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14636 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14637 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14638 used in shcompact_incoming_args.
14639 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14641 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14643 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14644 Adjust accordingly.
14645 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14646 Simplify. Adjust. Add sanity check.
14647 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14649 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14651 (udivsi3, divsi3): Use them.
14652 (force_mode_for_call): New insn.
14653 (call, call_value, sibcall_value): Emit it before SHcompact
14655 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
14656 * config/sh/sh.md (call, call_value, sibcall): Make sure the
14657 call cookie is non-NULL before taking its value.
14658 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
14659 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14660 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
14661 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14663 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14664 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14665 temporary for stack adjusts. Use MACL and MACH to pass
14666 arguments to shcompact_incoming_args.
14667 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
14669 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14670 (nested_trampoline): Load static chain address into r1.
14671 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14672 2001-01-07 Alexandre Oliva <aoliva@redhat.com
14673 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14674 fp_arith_reg_operand().
14675 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
14676 * config/sh/sh.md (casesi): Sign-extend the first two operands,
14677 and use signed compares for them.
14678 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14679 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
14680 ones properly aligned.
14681 (find_barrier): Account for extra alignment needed for 8-byte wide
14683 (machine_dependent_reorg): Require a label for the second 4-byte
14684 constant after an 8-byte one.
14685 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14687 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14688 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14689 last_float when switching float modes.
14690 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14691 auto-increment for general-purpose registers.
14692 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14694 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14696 * config/sh/sh.c (sh_builtin_saveregs): Support using all
14697 registers for varargs.
14698 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
14699 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14700 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14701 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14702 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14703 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
14704 call_cookie accordingly.
14705 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14706 (SHCOMPACT_BYREF): Likewise.
14707 (SHCOMPACT_FORCE_ON_STACK): New macro.
14708 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14709 (sh_builtin_saveregs): Likewise.
14710 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14711 shcompact_incoming_args): Use new shift values. Support
14712 sequences of consecutive and non-consecutive pushes/pops.
14713 * config/sh/sh.md (return): Don't explicitly use PR_REG.
14714 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
14715 * config/sh/sh.h (TEXT_SECTION): Define.
14716 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14717 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14718 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14719 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14720 return values on FPU-enabled SHmedia.
14721 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14722 FPU-enabled SHmedia.
14723 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14724 value is returned in a non-FP reg and is not returned by
14726 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14728 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
14729 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14730 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14731 quad-aligned to be passed by callee-copy reference.
14732 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
14733 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14734 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14735 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
14736 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14737 copying low-numbered FP regs to r7 and r8.
14738 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14739 FP regs to general-purpose regs only if the copy was passed on the
14741 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14742 copying FP reg to r9.
14743 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14744 copy FP regs to general-purpose regs only in outgoing calls.
14745 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
14746 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
14748 * config/sh/sh.h (struct sh_args): Document all fields.
14749 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14750 passed partially on the stack should not consider making
14752 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14753 stack_regs only for incoming calls. When passing FP args,
14754 make sure there are FP regs available before modifying
14756 (SHCOMPACT_BYREF): Pass double args in general-purpose
14757 registers by reference.
14758 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
14759 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14760 attempt to generate sibcalls if the caller got any arguments
14762 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14763 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14764 to 8-byte boundaries.
14765 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14766 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14767 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14768 stored in the stack.
14769 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14770 for the offsets to have the ISA bit set.
14771 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
14772 invocation. Use beq instead of bgt to mark end of sequence of
14774 (shcompact_incoming_args): Fix store of r2. Use beq instead of
14775 bgt to mark end of sequence of stores.
14776 * config/sh/sh.c (arith_operand): Don't check whether
14777 CONST_OK_FOR_J for now.
14778 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14779 instead of long for conversion.
14780 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
14781 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14782 before passing it to fprintf.
14783 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
14784 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14785 Call set_fpscr before reading/writing SR.
14786 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14788 * config/sh/lib1funcs.asm: Add `.align 2' directives before
14790 (FMOVD_WORKS): Define on SH5 with FPU.
14791 (set_fpscr): Define on SH5. Remove separate _fpscr_values
14793 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14795 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
14796 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14798 (ia_main_table): Ditto.
14799 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
14800 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14801 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14802 the definitions from sh.h.
14803 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14805 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14806 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14807 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14808 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
14809 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14810 Increment LABEL_NUSES.
14812 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14814 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
14816 * config/sh/elf.h (SIZE_TYPE): Likewise.
14817 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14818 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14819 shcompact_incoming_args): Load switch table addresses using
14821 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14822 (NO_BUILTIN_SIZE_TYPE): Define.
14823 (SIZE_TYPE): Don't define.
14824 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14825 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
14826 definition of __SH5__=32 for -m5-compact-nofpu.
14827 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
14829 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
14830 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
14831 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
14832 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
14833 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
14834 (INSN_LENGTH_ALIGNMENT): Likewise.
14835 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14836 * config/sh/sh.md (call, call_value, sibcall): Simplify
14837 copying of non-branch-target register.
14838 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14839 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
14840 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
14841 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14842 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
14843 floating-point values as structs.
14844 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
14845 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
14846 general-purpose register.
14847 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
14848 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14849 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
14850 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
14851 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
14852 (ENCODE_SECTION_INFO): Enclose variables and constants in
14854 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
14855 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
14856 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
14857 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
14858 only for LABEL_REFs. For SYMBOL_REFs, prepend
14859 SH_DATALABEL_ENCODING to the symbol name.
14860 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
14862 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14863 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
14865 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
14866 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
14867 (DATALABEL_REF_P): Don't require CONST.
14868 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
14870 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
14871 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
14873 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14874 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
14875 Use shallow_copy_rtx and PUT_MODE to change the mode of
14876 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
14877 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
14878 on SHmedia using GENERAL_REGs.
14879 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14880 bltu_media_i): Fix reversion of conditions.
14881 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14882 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
14883 * config/sh/sh.c (output_far_jump): Save r13 in macl.
14884 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
14885 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
14886 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
14887 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
14888 (GCC_nested_trampoline): Likewise.
14889 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
14890 * config/sh/sh.c (gen_datalabel_ref): Define.
14891 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
14892 (INITIALIZE_TRAMPOLINE): Likewise.
14893 (TRAMPOLINE_ADJUST_ADDRESS): Define.
14894 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
14895 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
14896 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
14897 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
14898 (ic_invalidate): Adjust for SH5.
14899 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
14900 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
14901 _nested_trampoline.
14902 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
14903 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
14904 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
14905 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14906 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
14907 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
14908 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14909 * config/sh/sh.c (target_reg_operand): Match only target-branch
14910 registers and pseudos that aren't virtual registers.
14911 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14912 Copy operands that don't match target_reg_operand to pseudos.
14913 (call_media, call_value_media, sibcall_media): Use
14914 target_reg_operand instead of target_operand.
14915 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
14916 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
14917 * config/sh/sh.c (target_reg_operand): Match hardware registers
14918 other than branch-target registers.
14919 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
14920 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
14921 (fpscr_values) [SH5 == 32]: Define.
14922 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
14923 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14924 Handle function addresses coming in SUBREGs.
14925 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
14926 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14927 shcompact_return_trampoline): Use datalabel where appropriate.
14928 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
14929 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
14930 general-purpose register to copy one branch-target register to
14932 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
14933 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
14934 SYMBOL_REFs with VOIDmode.
14935 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14936 bltu_media_i): New insns.
14937 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
14938 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
14939 (INIT_CUMULATIVE_ARGS): Likewise.
14940 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
14941 * machmode.def (V16SFmode): New mode.
14942 * c-common.c (type_for_mode): Support V2SF and V16SF.
14943 * tree.c (build_common_tree_nodes_2): Likewise.
14944 * tree.h (tree_index): Likewise.
14945 * calls.c (emit_call_1): Take args_so_far. Adjust all
14946 callers. Introduce CALL_POPS_ARGS.
14947 * tm.texi (CALL_POPS_ARGS): Document.
14948 * config/sh/crt1.asm: Implement in SHmedia mode.
14949 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
14950 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
14951 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
14952 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
14953 Implement divsi and udivsi in SHmedia mode. Introduce
14954 SHcompact trampolines.
14955 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
14957 (regno_reg_class): Rewrite.
14958 (fp_reg_names): Remove.
14959 (sh_register_names, sh_additional_register_names): New.
14960 (print_operand): Added `u'. Support SUBREGs in addresses.
14961 Add parentheses around shifted CONSTs.
14962 (output_file_start): Output .mode and .abi directives.
14963 (shiftcosts, addsubcosts, multcosts): Adjust.
14964 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
14965 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
14966 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
14967 bytes, not registers. Take into account the need for the
14968 SHcompact incoming args trampoline. Adjust all callers.
14969 (sh_expand_prologue): Take stack_regs into account. Call
14970 incoming args trampoline. Keep stack aligned as per SH5 ABI.
14971 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
14972 stack aligned as per SH5 ABI.
14973 (sh_builtin_saveregs): Support SH5 ABI.
14974 (sh_build_va_list, sh_va_start): Likewise.
14975 (initial_elimination_offset): Take alignment into account.
14976 Compute location of PR according to the SH5 stack frame.
14977 (arith_reg_operand): Reject branch-target registers.
14978 (shmedia_6bit_operand): New.
14979 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
14980 (target_reg_operand): Match DImode only. Accept SUBREGs.
14981 (target_operand): New.
14982 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
14983 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
14984 SIBCALL_REGS for SHmedia.
14985 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
14986 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
14987 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
14988 (TARGET_SWITCHES): New SH5 flags.
14989 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
14990 VALID_REGISTER_P to disable unsupported registers.
14991 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
14992 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
14993 (FUNCTION_ARG_PADDING): Define.
14994 (FASTEST_ALIGNMENT): Adjust.
14995 (SH_REGISTER_NAMES_INITIALIZER): New.
14996 (sh_register_names): Declare.
14997 (DEBUG_REGISTER_NAMES): Define.
14998 (REGISTER_NAMES): Define based on sh_register_names.
14999 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15000 (sh_additional_register_names): Declare.
15001 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15002 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15003 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15004 (REGISTER_NATURAL_MODE): Define.
15005 (FIRST_PSEUDO_REGISTER): Adjust.
15006 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15007 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15008 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15009 (VECTOR_MODE_SUPPORTED_P): Define.
15010 (REG_CLASS_CONTENTS): Adjust.
15011 (SMALL_REGISTER_CLASSES): Adjust.
15012 (REG_ALLOC_ORDER): Adjust.
15013 (INDEX_REG_CLASS): Adjust.
15014 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15015 (CONST_OK_FOR_LETTER_P): Adjust.
15016 (PREFERRED_RELOAD_CLASS): Adjust.
15017 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15018 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15019 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15020 (FIRST_FP_PARM_REG): Adjust.
15021 (CALL_POPS_ARGS): Define.
15022 (FUNCTION_ARG_REGNO_P): Adjust.
15023 (struct sh_args): New fields.
15024 (GET_SH_ARG_CLASS): Adjust.
15025 (INIT_CUMULATIVE_ARGS): Adjust.
15026 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15027 (FUNCTION_ARG_ADVANCE): Adjust.
15028 (FUNCTION_ARG): Adjust.
15029 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15030 (FUNCTION_ARG_CALLEE_COPIES): Define.
15031 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15032 (STRICT_ARGUMENT_NAMING): Define.
15033 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15034 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15035 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15036 (SETUP_INCOMING_VARARGS): Adjust.
15037 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15038 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15039 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15040 (SUBREG_OK_FOR_INDEX_P): Adjust.
15041 (EXTRA_CONSTRAINT_S): Update.
15042 (EXTRA_CONSTRAINT_T): New.
15043 (EXTRA_CONSTRAINT): Adjust.
15044 (GO_IF_LEGITIMATE_INDEX): Adjust.
15045 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15046 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15047 (MOVE_MAX): Adjust.
15048 (MAX_MOVE_MAX): Define.
15050 (CONST_COSTS): Adjust.
15051 (REGISTER_MOVE_COST): Adjust.
15052 (BRANCH_COST): Adjust.
15053 (TEXT_SECTION_ASM_OP): Adjust.
15054 (DBX_REGISTER_NUMBER): Adjust.
15055 (ASM_OUTPUT_DOUBLE_INT): New.
15056 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15057 (PREDICATE_CODES): Adjust.
15058 (PROMOTE_MODE): Adjust.
15059 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15060 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15061 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15062 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15063 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15064 (TR0_REG, TR1_REG, TR2_REG): New.
15065 (XD0_REG): Renumber.
15066 (UNSPEC_COMPACT_ARGS): New.
15067 (type): Added pt and ptabs.
15068 (length): Default to 4 on SHmedia. Default pt length to 12
15069 and 20 on SHmedia32 and SHmedia64, respectively.
15070 (pt): New function unit.
15071 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15072 Add whitespace between operands of SHmedia instructions.
15074 (adddi3_media, addsi3_media): Adjust constraints.
15075 (subsi3) [SHmedia]: Force operand 1 into a register.
15076 (udivsi3_i1_media, udivsi3_i4_media): New.
15077 (udivsi3): Support SHmedia.
15078 (divsi3_i1_media, divsi3_i4_media): New.
15079 (divsi3): Support SHmedia.
15080 (anddi3, iordi3, xordi3): Adjust constraints.
15081 (zero_extendhidi2, zero_extendqidi2): New.
15082 (extendsidi2, extendhidi2, extendqidi2): New.
15083 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15084 (pop_e, pop_fpul, pop_4): Likewise.
15085 (movsi_media): Support FP and BT registers.
15086 (movsi_media_nofpu): New. Adjust splits to DImode.
15087 (lduw, ldub): Renamed to zero_extend* above.
15088 (movqi_media): Fix typo.
15089 (movdi_media): Support FP and BT registers.
15090 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15091 (movdi_const_32bit): New.
15092 (shori_media): Require immediate operand. Use `u' for output.
15093 (movdf_media, movsf_media): Simplified.
15094 (movdf_media_nofpu, movsf_media_nofpu): New.
15095 (movdf, movsf): Adjust
15096 (movv2sf, movv2sf, movv16sf): New.
15097 (beq_media, beq_media_i): Adjust constraints. Don't use
15098 scratch BT register.
15099 (bne_media, bne_media_i): Likewise.
15100 (bgt_media, bgt_media_i): Likewise.
15101 (bge_media, bge_media_i): Likewise.
15102 (bgtu_media, bgtu_media_i): Likewise.
15103 (bgeu_media, bgeu_media_i): Likewise.
15104 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15105 bunordered): Emit jump insn. Force operands to registers when
15107 (jump_media, jump): Simplify.
15108 (call_compact, call_compact_rettramp): New.
15109 (call_value_compact, call_value_compact_rettramp): New.
15110 (call_media, call_value_media): Simplify.
15111 (sibcall_compact, sibcall_media): New.
15112 (call, call_value): Adjust for SHmedia and SHcompact.
15113 (sibcall, sibcall_value, untyped_call): Likewise.
15114 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15115 (indirect_jump): Adjust for SHmedia.
15116 (casesi_jump_media): New.
15117 (nop): Re-enable for SHmedia.
15118 (call_site): Restrict to SH1.
15119 (casesi): Adjust for SHmedia.
15120 (casesi_shift_media, casesi_load_media): New.
15121 (return): Explicitly use PR register. Call return trampoline
15123 (return_i): Explicitly use PR register.
15124 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15125 (return_media): Adjust.
15126 (shcompact_incoming_args): New.
15127 (epilogue): Adjust.
15128 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15129 (movstrsi): Disable on SH5.
15130 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15131 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15132 (subsf3, subsf3_media): Likewise.
15133 (mulsf3, mulsf3_media, mac_media): Likewise.
15134 (divsf3, divsf3_media): Likewise.
15135 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15136 (floatsisf2, fux_truncsfsi2): Likewise.
15137 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15139 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15140 (cmpunsf_media, cmpsf): Likewise.
15141 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15142 (abssf2, abssf2_media): Likewise.
15143 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15144 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15145 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15146 (floatsidf2, fix_truncdfsi2): Likewise.
15147 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15149 (cmpeqdf_media, cmpgtdf_media): Likewise.
15150 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15151 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15152 (absdf2, absdf2_media): Likewise.
15153 (extendsfdf2, extendsfdf2_media): Likewise.
15154 (truncsfdf2, truncsfdf2_media): Likewise.
15155 * config/sh/sh64.h: New file.
15156 * config/sh/t-sh64: New file.
15157 * config/sh/shmedia.h: New file.
15158 * config/sh/ushmedia.h: New file.
15159 * config/sh/sshmedia.h: New file.
15160 * configure.in: Added sh64-*-elf.
15161 * configure: Rebuilt.
15162 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15163 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15164 (reg_class_from_letter): Use `b' for TARGET_REGS.
15165 (print_operand): Support `%M', `%m', `AND' and
15166 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15167 (andcosts): Adjust for SHmedia.
15168 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15170 (target_reg_operand): New function.
15171 * config/sh/sh-protos.h (target_reg_operand): Declare.
15172 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15173 FP registers on SH5.
15174 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15176 (TARGET_REGISTER_P): New macro.
15177 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15178 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15179 (EXTRA_CONSTRAINT_S): New macro.
15180 (EXTRA_CONSTRAINT): Adjust.
15181 (FLOAT_TYPE_SIZE): Define to 32.
15182 (Pmode): DImode on SHmedia.
15183 (CONST_COSTS): Adjust for SHmedia literals.
15184 (PREDICATE_CODES): Added target_reg_operand.
15185 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15186 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15187 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15188 (cmpdi): Accept SHmedia.
15189 (movdicc_false, movdicc_true): New insns.
15190 (movdicc): New expand.
15191 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15193 (addsi3_media): Match `S' constraint.
15194 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15195 (negdi2): Expand for SHmedia.
15196 (one_cmpldi2): New expand.
15197 (zero_extendsidi2): Change from expand to insn.
15198 (extendsidi2): Add constraints.
15199 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15200 LD/ST address. Fix SI immediate loading split.
15201 (movhi_media, movqi_media, lduw, ldub): New insns.
15202 (movhi, movqi): Accept SHmedia.
15203 (shori_media, movdi_media): Relax input constraints. Split
15204 symbolic constants.
15205 (movdf_media, movsf_media): New insn. New split to movdi.
15206 (movdf, movsf): Match on SHmedia.
15207 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15208 bgeu_media): New insns and splits. New insns with `_i' suffix.
15209 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15210 (bunordered): New expand.
15211 (jump_compact): Renamed from `jump'.
15212 (jump_media): New insn.
15213 (jump): New expand.
15214 (call_media, call_value_media): New insns.
15215 (call, call_value): Adjust.
15216 (indirect_jump_compact): Renamed from `indirect_jump'.
15217 (indirect_jump_media): New insn.
15218 (indirect_jump): New expand.
15219 (untyped_call, return): Accept SHmedia.
15220 (return_media): New insn.
15221 (prologue, epilogue, blockage): Accept SHmedia.
15222 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15223 (sunordered): New expand.
15224 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15225 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15226 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15227 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15228 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15229 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15230 abssf2_media): New insns.
15231 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15232 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15233 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15234 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15235 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15236 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15237 absdf2_media): New insns.
15238 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15239 (extendsfdf2_media, truncdfsf2_media): New insns.
15240 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15241 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15242 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15243 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15244 * config/sh/sh.md (adddi3): New expand.
15245 (adddi3_media, adddi3z_media): New insns.
15246 (adddi3_compact): Renamed from adddi3.
15247 (addsi3_media): Use add.l r63 to add constant zero.
15248 (subdi3): New expand.
15249 (subdi3_media): New insn.
15250 (subdi3_compact): Renamed from subdi3.
15251 (mulsidi3): New expand.
15252 (mulsidi3_media): New insn.
15253 (mulsidi3_compact): Renamed from mulsidi3.
15254 (umulsidi3): New expand.
15255 (umulsidi3_media): New insn.
15256 (umulsidi3_compact): Renamed from umulsidi3.
15257 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15258 (ashlsi3, ashrsi3, lshrsi3): Use them.
15259 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15260 (ashldi3, ashrdi3, lshrdi3): Use them.
15261 (zero_extendsidi2): New expand.
15262 (extendsidi2): New insn.
15263 (movsi_media): New insn. Split to movdi to load constants.
15264 (movsi): Enable for shmedia.
15265 (movdi_media): New insn. Use shori_media to load wide constants.
15266 (short_media): New insn.
15267 (movdi): Enable for shmedia.
15268 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15269 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15270 (SUBTARGET_CPP_SPEC): Added `!m5'.
15271 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15272 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15273 to all other SH variants.
15274 (TARGET_DEFAULT): Set to SH1_BIT.
15275 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15276 (BITS_PER_WORD): Raise to 64 on shmedia.
15277 (MAX_BITS_PER_WORD): Change to 64.
15278 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15279 (INT_TYPE_SIZE): Keep as 32.
15280 (UNITS_PER_WORD): Raise to 8 on shmedia.
15281 (MIN_UNITS_PER_WORD): Keep as 4.
15282 (POINTER_SIZE): Raise to 64 on shmedia.
15283 (CONST_OK_FOR_J): New macro.
15284 (CONST_OK_FOR_LETTER_P): Use it.
15285 (processor_type): Add PROCESSOR_SH5.
15286 * config/sh/sh.md: Conditionalize all expands, insns and
15287 splits to TARGET_SH1.
15289 (addsi3_compact): Renamed from...
15290 (addsi3): Now an expand.
15291 (addsi3_media, subsi3_media): New insns.
15292 (subsi3): Don't negate constants with SHmedia.
15294 * hooks.c: New file.
15295 * hooks.h: New file.
15296 * Makefile.in (HOOKS_H): New.
15297 (TARGET_DEF_H): Added $(HOOKS_H).
15298 (OBJS): Added hooks.o.
15299 (cfgcleanup.o, bb-reorder.o): Added target.h.
15300 (hooks.o): Added dependencies.
15301 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15302 (TARGET_INITIALIZER): this.
15303 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15304 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15305 * bb-reorder.c: Include target.h.
15306 (reorder_basic_blocks): Skip if cannot modify jumps.
15307 * cfgcleanup.c: Include target.h.
15308 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15310 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15312 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15313 Protect jump delay slot instructions with .set noreorder and
15316 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15318 * config/mips/mips.md (casesi_internal_di): Calculate
15319 the index into the target offset table correctly.
15321 2002-02-08 Richard Henderson <rth@redhat.com>
15323 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15324 * final.c (output_addr_const): Accept and discard SUBREG.
15325 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15326 mark them unknown instead.
15327 (simplify_subtraction): Handle RTX_UNKNOWN.
15328 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15330 2002-02-08 David Edelsohn <edelsohn@gnu.org>
15332 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15334 2002-02-08 Richard Henderson <rth@redhat.com>
15336 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15338 2002-02-08 Andreas Jaeger <aj@suse.de>
15340 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15341 * config/i386/t-linux64: New file.
15343 2002-02-08 Jakub Jelinek <jakub@redhat.com>
15345 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15346 * c-parse.in (compstmt): Clear last_expr_type.
15348 2002-02-07 Richard Henderson <rth@redhat.com>
15350 * loop.c (strength_reduce): Sink final_value when not
15353 2002-02-07 David O'Brien <obrien@FreeBSD.org>
15355 * config/sparc/freebsd.h: Fix mismatched spec {.
15357 2002-02-07 Richard Henderson <rth@redhat.com>
15359 * cfgrtl.c: Include recog.h and insn-config.h.
15360 (keep_with_call_p): Fix general_operand invocation.
15361 * Makefile.in (cfgrtl.o): Update dependencies.
15363 2002-02-07 Kazu Hirata <kazu@hxi.com>
15365 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15366 comment. Accept HImode only if TARGET_H8300.
15368 2002-02-07 Eric Christopher <echristo@redhat.com>
15370 * config/mips/crtn.asm: Cleanup #ifdefs.
15372 2002-02-07 Eric Christopher <echristo@redhat.com>
15374 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15375 register 7 as RA instead of $31.
15376 * config/mips/crtn.asm: Ditto.
15377 * config/mips/mips.c (mips_move_2words): Add case for
15378 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15379 (compute_frame_size): Fix typo.
15380 (save_restore_insns): Ditto. Make documentation about using
15381 register $7 as return register more precise.
15382 (mips_expand_epilogue): Fix comment. Add code to work around not
15383 being able to add to the stack pointer directly.
15384 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15385 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15388 2002-02-07 Tom Rix <trix@redhat.com>
15390 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15391 immediates in ldu and stdu DS opcode field.
15392 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15393 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15394 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15396 2002-02-07 Jeff Sturm <jsturm@one-point.com>
15398 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15399 offset for stack bias.
15401 2002-02-07 H.J. Lu <hjl@gnu.org>
15403 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15405 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15407 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15409 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15411 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15412 * i386.c (x86_order_regs_for_local_alloc): New global function.
15413 * i386.h (REG_ALLOC_ORDER): CLeanup.
15414 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15416 2002-02-07 Richard Henderson <rth@redhat.com>
15418 PR optimization/2463
15419 * alias.c (find_base_value): Recall base values for fixed hard regs.
15420 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15422 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
15424 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15427 2002-02-06 Richard Henderson <rth@redhat.com>
15430 * stmt.c (resolve_operand_name_1): Take more care with mixed
15431 named and unnamed operands.
15433 2002-02-06 Janis Johnson <janis187@us.ibm.com>
15434 Jan Hubicka <jh@suse.cz>
15436 * loop.c (remove_constant_addition): Avoid clobbering a shared
15439 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15441 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15442 * config/s390/t-linux64: New file.
15443 * config/s390/libgcc-glibc.ver: New file.
15445 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15447 * config/s390/linux64.h: Delete file.
15448 * config/s390/s390x.h: New file.
15449 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15450 as target header file.
15451 * config/s390/linux.h (TARGET_VERSION): Define depending on
15452 DEFAULT_TARGET_64BIT.
15453 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15454 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15455 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15456 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15457 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15458 (EXTRA_SPEC): New define.
15459 * config/s390/s390.h (TARGET_VERSION): Define depending on
15460 DEFAULT_TARGET_64BIT.
15461 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15463 2002-02-06 Jason Merrill <jason@redhat.com>
15465 * c-decl.c (finish_function): Warn about a non-void function with
15466 no return statement and no abnormal exit.
15467 (current_function_returns_abnormally): New variable.
15468 (start_function): Clear it.
15469 (struct c_language_function): Add returns_abnormally.
15470 (push_c_function_context): Save it.
15471 (pop_c_function_context): Restore it.
15472 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15473 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15474 an explicit return type.
15475 * c-tree.h: Declare current_function_returns_abnormally.
15476 (C_FUNCTION_IMPLICIT_INT): New macro.
15477 * c-typeck.c (build_function_call): Set it.
15478 (c_expand_return): Set current_function_returns_value even if the
15479 value is erroneous.
15481 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15484 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15485 unsafe for reevaluation.
15487 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15490 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15491 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15493 2002-02-06 Richard Henderson <rth@redhat.com>
15495 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15496 be a general_operand. Dest for function value must be a pseudo.
15498 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15500 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15501 as SYMBOL_REFs from the constant pool.
15503 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
15505 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15506 passed by invisible reference.
15508 2002-02-05 Richard Henderson <rth@redhat.com>
15510 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15512 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15514 Implement using "base addresses" in insn operands as default.
15515 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15516 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15517 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15518 used to read the rtx value.
15519 (mmix_target_asm_function_epilogue): Fix spacing.
15520 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15521 (mmix_legitimate_address): Ditto.
15522 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15523 should be loaded with a GETA insn. Don't allocate needless extra
15524 char for nul termination and fix misleading comment.
15525 (mmix_print_operand_address): Handle constants if
15526 TARGET_BASE_ADDRESSES.
15527 (mmix_output_register_setting): Use base addressing if
15528 TARGET_BASE_ADDRESSES and the number of insns is 3.
15529 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15530 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15531 to use R as constraint, add LDA to match s.
15532 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15533 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15534 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15535 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15536 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15537 order with other fixed registers.
15538 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15539 other parameter/call-clobbered registers.
15540 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15541 -mbase-addresses, -mno-base-addresses.
15542 (MMIX Options): Ditto.
15544 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15546 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15548 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
15550 * config/rs6000/altivec.h: Change elem to _S_elem.
15552 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15554 * config/netbsd.h (WCHAR_TYPE): Define.
15555 (WCHAR_TYPE_SIZE): Ditto.
15556 (WINT_TYPE): Ditto.
15557 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15558 (WCHAR_UNSIGNED): Ditto.
15559 (WCHAR_TYPE_SIZE): Ditto.
15560 (WINT_TYPE): Ditto.
15561 * config/arm/netbsd.h: Likewise.
15562 * config/i386/netbsd-elf.h: Likewise.
15563 * config/i386/netbsd.h: Likewise.
15564 * config/m68k/netbsd-elf.h: Likewise.
15565 * config/m68k/netbsd.h: Likewise.
15566 * config/ns32k/netbsd.h: Likewise.
15567 * config/sparc/netbsd.h: Likewise.
15568 * config/vax/netbsd.: Likewise.
15570 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15572 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15573 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15574 (TARGET_INITIALIZER): this.
15575 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15576 (BITFIELD_NBYTES_LIMITED): Markup fix.
15577 * tree.h (default_ms_bitfield_layout_p): Declare.
15578 (record_layout_info): Added prev_field.
15579 * tree.c (default_ms_bitfield_layout_p): New fn.
15580 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15581 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15582 * stor-layout.c: Include target.h.
15583 (start_record_layout): Initialize prev_field.
15584 (place_field): Handle MS bit-field layout, and disregard
15585 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15586 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15587 * Makefile.in (stor-layout.o): Adjust dependencies.
15589 2002-02-05 Jason Merrill <jason@redhat.com>
15591 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15593 2002-02-05 Andreas Jaeger <aj@suse.de>
15595 * crtstuff.c: Fix comments.
15597 2002-02-05 Richard Henderson <rth@redhat.com>
15600 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15601 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15604 * config/mips/mips.c (function_arg): Handle TImode.
15605 (function_arg_advance): Likewise.
15607 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15609 * config/rs6000/altivec.h (vec_step_help): Rename to
15612 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15614 * config/rs6000/altivec.h: Fix typos.
15616 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15618 * config/arm/netbsd.h: Correct a comment.
15620 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15622 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15623 building void typed builtins.
15625 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15626 (vec_step): Implement for C++.
15628 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15630 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15632 2002-02-04 Richard Henderson <rth@redhat.com>
15634 * combine.c (nonzero_bits): Re-introduce special case for
15635 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15637 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15639 * doc/extend.texi: Warn about unsupported usage of altivec
15642 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15643 (altivec_predicate_*): New.
15645 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15646 Add C++ version of vec_*() functions.
15648 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15649 (bdesc_2arg): Remove altivec predicates.
15650 (altivec_expand_builtin): Handle predicates.
15651 (altivec_init_builtins): Handle predicates.
15652 (altivec_expand_predicate_builtin): New.
15654 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15656 * pa.c (DO_FRAME_NOTES): Move forward.
15657 (store_reg): Revise handling of frame notes.
15658 (load_reg): Likewise.
15659 (set_reg_plus_d): Likewise.
15660 (hppa_expand_prologue): Likewise.
15661 (hppa_expand_epilogue): Likewise.
15663 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15665 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15667 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15669 PR c/4475, c++/3780:
15670 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15671 * c-common.h (SWITCH_TYPE): Define.
15672 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15673 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15674 Rename spareness variable to sparseness.
15675 (expand_end_case_type): Renamed from expand_end_case, use orig_type
15676 if non-NULL instead of TREE_TYPE (orig_index).
15677 * tree.h (expand_end_case_type): Renamed from expand_end_case.
15678 (expand_end_case): Define using expand_end_case_type.
15679 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15680 to expand_end_case_type.
15681 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15683 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15685 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15686 (BIGGEST_ALIGNMENT): Change to 128.
15688 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15690 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15692 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15694 * pa.md (call_internal_reg_64bit): Remove unused variable.
15696 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
15698 * config/arm/arm.h (machine_function): Add uses_anonymous_args
15700 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
15701 * config/arm/arm.c (current_function_anonymous_args): Delete,
15702 replace uses with cfun->machine->uses_anonymous_args.
15703 (arm_reorg): Do not reset uses_anonymous_args.
15705 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15706 any geenral register.
15708 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
15710 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15713 2002-02-04 Richard Henderson <rth@redhat.com>
15715 * combine.c (force_to_mode): Remove STACK_BIAS code.
15716 (nonzero_bits): Likewise. Replace sp/fp special case with
15717 REGNO_POINTER_ALIGN.
15719 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15720 (HARD_FRAME_POINTER_REGNUM): New.
15721 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15722 (FIXED_REGS, CALL_USED_REGS): Update.
15723 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15724 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15725 (HARD_REGNO_NREGS): Update for SFP.
15726 (STACK_POINTER_OFFSET): Include bias here ...
15727 (FIRST_PARM_OFFSET): ... not here.
15728 (STACK_BIAS): Remove.
15729 (INIT_EXPANDERS): New.
15730 (STARTING_FRAME_OFFSET): Do not include bias.
15731 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15732 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15733 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15734 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15735 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15736 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15737 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15738 (MUST_SAVE_REGISTER): Likewise.
15739 (sparc_flat_function_prologue): Likewise.
15740 (sparc_flat_function_epilogue): Likewise.
15741 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15742 (sparc_init_modes): SFP is GENERAL_REGS.
15743 (sparc_builtin_saveregs): SFP does not have bias applied.
15745 2002-02-04 Richard Henderson <rth@redhat.com>
15747 * config/alpha/alpha.c (current_function_is_thunk): Don't check
15748 current_function_is_thunk.
15749 (alpha_sa_mask): Distinguish between current_function_is_thunk
15750 called from ASM_OUTPUT_MI_THUNK and not.
15751 (alpha_does_function_need_gp): Thunks always need gp.
15752 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15753 (alpha_output_mi_thunk_osf): New.
15754 * config/alpha/alpha-protos.h: Update.
15755 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15757 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
15759 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15760 function types, not when they're taken away.
15762 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
15764 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15765 CODE_LABEL and jump table when replacing a table jump with a
15768 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15770 * config/s390/s390-protos.h (legitimize_la_operand,
15771 s390_secondary_input_reload_class, s390_plus_operand,
15772 s390_expand_plus_operand): Add prototypes.
15774 config/s390/s390.c (s390_secondary_input_reload_class,
15775 s390_plus_operand, s390_expand_plus_operand): New functions.
15777 (struct s390_address): New member 'pointer'.
15778 (s390_decompose_address): Compute it.
15779 (legitimate_la_operand_p): Use it.
15780 (legitimize_la_operand): New function.
15781 (movti, movdi, movdf splitters): Call it.
15783 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15784 (PREDICATE_CODES): Add s390_plus_operand.
15786 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15787 (la_ccclobber): Allow GENERAL_REGS as output operand.
15789 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15790 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15791 (*la_64, *la_31, reload_indi, reload_insi): ... these.
15793 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15795 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15796 register names for regular asm () construct.
15798 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15800 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15803 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15805 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15808 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
15810 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15811 constant pool to be identical by string address and index.
15813 2002-02-04 Anthony Green <green@redhat.com>
15815 * output.h (SECTION_OVERRIDE): Define.
15816 * varasm.c (named_section): Obey SECTION_OVERRIDE.
15818 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15820 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
15821 by existing arm*-*-netbsd* (a.out) target.
15822 (ns32k-*-netbsdelf*): Likewise.
15823 (sparc-*-netbsdelf*): Likewise.
15824 (vax-*-netbsdelf*): Likewise.
15826 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
15828 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
15829 headers and libobjc headers.
15831 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
15833 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
15834 (_mingw.h): Remove duplicate include.
15836 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15838 * config.gcc: Set cpu_type to m68k for 68010, as well.
15839 (m68010-*-netbsdelf*): New...
15840 (m68k*-*-netbsdelf*): ...targets.
15841 * config/m68k/netbsd-elf.h: New file.
15843 2002-02-02 Kazu Hirata <kazu@hxi.com>
15845 * config/h8300/h8300.c (hand_list): Move inside function_arg.
15847 2002-02-02 Kazu Hirata <kazu@hxi.com>
15849 * config/h8300/h8300.c (h8_push_ops): Move inside
15851 (h8_pop_ops): Likewise.
15852 (h8_move_ops): Likewise.
15854 2002-02-02 Kazu Hirata <kazu@hxi.com>
15856 * config/h8300/h8300.c (os_task): Make it static.
15857 (monitor): Likewise.
15858 (pragma_saveall): Likewise.
15860 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
15862 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
15863 constant is a valid sign-extension for Pmode.
15865 2002-02-02 Kazu Hirata <kazu@hxi.com>
15867 * config/h8300/h8300.c: Fix formatting.
15869 2002-02-02 Kazu Hirata <kazu@hxi.com>
15871 * config/h8300/h8300.md: Fix formatting.
15873 2002-02-02 Kazu Hirata <kazu@hxi.com>
15875 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
15876 predicates of operands[1]. Split the patterns for each
15879 2002-02-02 Kazu Hirata <kazu@hxi.com>
15881 * config/h8300/h8300.md (xor patterns): Tighten the predicates
15882 of operands[1] to register_operand.
15884 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15886 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
15887 * cpphash.c (_cpp_init_hashtable): Similarly.
15888 * cppinit.c (cpp_create_reader): Default the signed_char flag.
15889 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
15890 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
15891 (cpp_handle_option): Handle the new options.
15892 * cpplex.c (cpp_interpret_charconst): Use new flag.
15893 * cpplib.h (struct cpp_options): New member signed_char.
15894 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
15895 (cpp_options): Handle -fsigned-char and -funsigned-char.
15896 (static_specs): Remove signed_char_spec.
15897 (do_spec1): Don't handle %c.
15898 * system.h: Poison SIGNED_CHAR_SPEC.
15899 * tradcif.y (yylex): Use flag_signed_char.
15900 * tradcpp.h (flag_signed_char): New.
15901 * tradcpp.c (flag_signed_char): New.
15902 (main): Handle new command-line options.
15903 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
15905 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
15906 * avr/avr.h: Remove old comments.
15907 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
15908 (CC1_SPEC): Pass -fsigned-char if -mic*.
15909 (SIGNED_CHAR_SPEC): Remove.
15911 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
15913 2002-02-01 Eric Christopher <echristo@redhat.com>
15915 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
15916 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
15917 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
15918 (ASM_OUTPUT_REG_POP): Ditto.
15920 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15922 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
15925 2002-02-02 Jakub Jelinek <jakub@redhat.com>
15927 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
15929 2002-02-02 Jakub Jelinek <jakub@redhat.com>
15932 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
15935 2002-02-01 Janis Johnson <janis187@us.ibm.com>
15937 * cfganal.c: Include tm_p.h.
15938 (keep_with_call_p): Fix the test that determines if a register holds
15939 the return value of a call.
15941 2002-02-01 DJ Delorie <dj@redhat.com>
15943 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
15944 we are given conflicting registers, switch to the other one we
15945 had allocated for us.
15946 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
15947 as TImode so we know when the "other" register is available.
15949 2002-02-01 David O'Brien <obrien@FreeBSD.org>
15951 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
15954 2002-02-01 Janis Johnson <janis187@us.ibm.com>
15956 * cfganal.c (keep_with_call_p): New function.
15957 (flow_call_edges_add): Prevent splitting a block between a call and
15958 a single-set instruction that should be kept in the same block.
15960 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
15962 * doc/install.texi (avr): Update outdated URL.
15964 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
15966 * config/stormy16/stormy16.md (pushqi): New.
15970 (movhi): Remove stack operands.
15972 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
15973 nonimmediate_nonstack_operand.
15974 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
15976 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
15979 2002-01-31 Jason Merrill <jason@redhat.com>
15981 * Makefile.in (c-parse.c): Handle .output file.
15982 * objc/Make-lang.in (objc-parse.c): Likewise.
15984 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
15986 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
15987 the -me[lb] option is given. Don't output the default flag
15990 2002-01-31 Zack Weinberg <zack@codesourcery.com>
15992 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
15993 the primary source file; this has not been done yet.
15994 * c-decl.c (c_expand_body): Reset input_filename from
15995 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
15997 2002-01-31 Kazu Hirata <kazu@hxi.com>
15999 * rtlanal.c (subreg_regno_offset): Do not use
16000 SUBREG_REGNO_OFFSET.
16001 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16002 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16004 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16006 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16007 version rather than GNATS version in --version output.
16009 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
16011 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16012 when copying back from a temporary.
16014 2002-01-30 Richard Henderson <rth@redhat.com>
16016 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16017 and new_dest are the same.
16019 2002-01-30 Richard Henderson <rth@redhat.com>
16022 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16023 * rtl.c (note_insn_name): Update.
16024 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16025 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16026 to perform loop rotation.
16027 (expand_exit_loop_top_cond): New.
16028 * tree.h (expand_exit_loop_top_cond): Declare it.
16029 * c-semantics.c (genrtl_while_stmt): Use it.
16030 (genrtl_for_stmt): Likewise.
16032 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
16034 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16035 arguments to 64-bit boundaries on 64-bit ABIs.
16037 2002-01-30 Steve Ellcey <sje@cup.hp.com>
16039 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16041 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16043 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16046 2002-01-30 David O'Brien <obrien@FreeBSD.org>
16048 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16049 * config/sparc/sparc_bi.h: Remove file.
16050 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16052 2002-01-30 Richard Henderson <rth@redhat.com>
16054 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16056 2002-01-30 Zack Weinberg <zack@codesourcery.com>
16058 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16060 2002-01-30 Jason Merrill <jason@redhat.com>
16062 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16063 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16064 (reg_save): Use DW_CFA_offset_extended_sf instead.
16066 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16068 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16070 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16073 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
16075 * rs6000.md ("*call_value_local32"): Remove constraints.
16076 ("*call_value_local64"): Same.
16077 ("*call_value_indirect_nonlocal_aix32"): Same.
16078 ("*call_value_nonlocal_aix32"): Same.
16079 ("*call_value_indirect_nonlocal_aix64"): Same.
16080 ("*call_value_nonlocal_aix64"): Same.
16081 ("*call_value_nonlocal_sysv"): Same.
16083 2002-01-29 Richard Henderson <rth@redhat.com>
16085 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16087 2002-01-29 Richard Henderson <rth@redhat.com>
16089 * expr.c (force_operand): Ignore flag_pic for detecting pic
16091 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16092 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16093 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16094 instead of open-coded loop.
16095 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16096 be fixed when in use.
16098 2002-01-29 Richard Henderson <rth@redhat.com>
16100 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16101 * sched-rgn.c (propagate_deps): Update them.
16102 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16103 clobbers list when either gets too long.
16105 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16107 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16108 and INDEX_REGS the same as GENERAL_REGS.
16109 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16111 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16113 * tree.c (build_nonstandard_integer_type): Correct prototype.
16115 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16117 * config/s390/s390.md (movstrsico, movstrdix_64,
16118 movstrsix_31): Remove, replace by ...
16119 (movstrdi_short, movstrsi_short, movstrdi_long,
16120 movstrsi_long): ... these. New.
16121 (movstrdi, movstrsi): Adapt.
16123 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16124 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16125 Remove unnecessary CC clobber.
16126 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16127 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16129 (divmoddi4): Don't partially initialize TImode register.
16131 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
16133 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16135 2002-01-29 Richard Henderson <rth@redhat.com>
16137 * flow.c (print_rtl_and_abort): Remove.
16138 (print_rtl_and_abort_fcn): Remove.
16139 (verify_local_live_at_start): Use dump_bb instead.
16140 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16141 (verify_wide_reg_1): Return 2 on mode test failure.
16143 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16145 PR c/3325, c/3326, c/2511, c/3347
16146 * c-decl.c (enum_decl_context): Remove BITFIELD.
16147 (grokdeclarator): Take bitfield width as an input.
16148 Ensure bitfields are given the correct type. Perform
16149 bitfield width validation with build_bitfield_integer_type
16150 rather than waiting for finish_struct.
16151 (grok_typename, grok_typename_in_parm_context, start_decl,
16152 push_parmdecl, grokfield, start_function): Update calls to
16154 (build_bitfield_integer_type): New function.
16155 (finish_struct): Move bitfield validation to grokdeclarator
16156 and build_bitfield_integer_type.
16157 * tree.c (build_nonstandard_integer_type): New function.
16158 * tree.h (build_nonstandard_integer_type): New prototype.
16160 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16162 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16165 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16166 don't ignore unrecognized -W* options.
16167 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16168 * cpplib.h (cpp_handle_option): Adjust prototype.
16169 * c-decl.c (c_decode_options): Pass 0 as last argument to
16173 * gcc.c (cpp_unique_options): Split from cpp_options.
16174 (cpp_options): Source cpp_unique_options.
16175 (default_compilers): Use cpp_unique_options instead of cpp_options
16176 when used together with cc1_options.
16177 (static_specs): Add cpp_unique_options.
16178 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16179 when used together with cc1_options.
16181 2002-01-29 Kazu Hirata <kazu@hxi.com>
16183 * config/h8300/h8300-protos.h: Update the prototype of
16185 * config/h8300/h8300.c (output_a_shift): Remove an unused
16186 argument 'insn'. Remove redundant code.
16187 * config/h8300/h8300.md: Adust to the new prototype of
16190 2002-01-29 Kazu Hirata <kazu@hxi.com>
16192 * config/h8300/h8300-protos.h: Update the prototypes of
16193 emit_a_rotate and expand_a_rotate.
16194 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16195 first argument to 'enum rtx_code'.
16196 (expand_a_rotate): Likewise.
16198 2002-01-28 Kazu Hirata <kazu@hxi.com>
16200 * config/h8300/h8300-protos.h: Update the prototype of
16202 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16204 * config/h8300/h8300.md: Adjust to the new prototype.
16206 2002-01-28 Kazu Hirata <kazu@hxi.com>
16208 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16211 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16213 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16214 is a fixed register before returning pic_offset_table_rtx.
16215 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16216 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16218 2002-01-28 Jason Merrill <jason@redhat.com>
16220 * dwarf2.h: Sync with src version.
16222 2002-01-28 Paul Koning <pkoning@equallogic.com>
16224 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16225 BT_FN_VOID_PTR_VAR.
16226 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16227 * doc/extend.texi (__builtin_prefetch): Update documentation:
16228 first argument is now const void ptr.
16230 2002-01-28 Kazu Hirata <kazu@hxi.com>
16232 * config/h8300/h8300-protos.h: Remove an unused prototype.
16234 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
16236 * toplev.c (lang_independent_init): Round up identifier size.
16238 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16240 * config.gcc: Revert previous change.
16242 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
16244 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16246 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16248 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16249 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16250 other non-elf netbsd config frags.
16251 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16252 collect2 will does that.
16253 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16254 shared-lib frobbing will work.
16256 2002-01-28 Kazu Hirata <kazu@hxi.com>
16258 * config/h8300/h8300.h: Fix formatting.
16259 * config/h8300/h8300.md: Likewise.
16261 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
16263 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16264 the old, removed AAA_standards fix.
16265 * fixinc/fixincl.x: Rebuilt.
16267 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
16269 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16270 atexit call in crtbegin, hooked in after call to frame_dummy;
16271 register EH before registering __fini__start.
16273 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
16275 * config/rs6000/altivec.h: Remove spurious semicolons.
16277 2002-01-27 Kazu Hirata <kazu@hxi.com>
16279 * config/h8300/h8300.md: Replace dead bit extraction patterns
16280 with ones that work.
16282 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16284 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16285 if not STRICT_ALIGNMENT.
16286 * rtl.h (MEM_ALIGN): Likewise.
16288 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16290 * doc/invoke.texi (-fdump-translation-unit): Revert this
16291 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16293 2002-01-27 Kazu Hirata <kazu@hxi.com>
16295 * config/h8300/h8300.md (define_constants): New.
16296 (anonymous patterns) Use defined constants appropriately.
16298 2002-01-27 Kazu Hirata <kazu@hxi.com>
16300 * config/h8300/h8300.c (function_arg): Remove redundant code.
16302 2002-01-26 Richard Henderson <rth@redhat.com>
16304 * sched-deps.c (reg_pending_uses_head): New.
16305 (reg_pending_barrier): Rename from reg_pending_sets_all.
16306 (find_insn_list): Don't mark inline.
16307 (find_insn_mem_list): Remove.
16308 (add_dependence_list, add_dependence_list_and_free): New.
16309 (flush_pending_lists): Replace only_write param with separate
16310 for_read and for_write parameters. Update all callers. Use
16311 add_dependence_list_and_free.
16312 (sched_analyze_1): Do not add reg dependencies here; just set
16313 the pending bits. Use add_dependence_list.
16314 (sched_analyze_2): Likewise.
16315 (sched_analyze_insn): Replace schedule_barrier_found with
16316 reg_pending_barrier. Add all dependencies for pending reg
16317 uses, sets, and clobbers.
16318 (sched_analyze): Don't add reg dependencies for calls, just
16319 set pending bits. Use regs_invalidated_by_call. Treat
16320 sched_before_next_call as a normal list, not a fake insn.
16321 (init_deps): No funny init for sched_before_next_call.
16322 (free_deps): Free pending mems lists. Don't zero reg_last.
16323 (init_deps_global): Init reg_pending_uses.
16324 (finish_deps_global): Free it.
16325 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16326 (find_insn_mem_list): Remove.
16327 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16328 (propagate_deps): Use them. Zero temp mem lists.
16330 2002-01-26 Richard Henderson <rth@redhat.com>
16332 * Makefile.in (CRTSTUFF_CFLAGS): New.
16333 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16334 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16335 crtstuff.c instead of alpha assembly version.
16336 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16337 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16338 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16339 (__do_global_dtors_aux): Mark used.
16340 (frame_dummy, __do_global_ctors_aux): Mark used.
16341 (fini_dummy, init_dummy): Remove.
16343 * config/alpha/crtbegin.asm: Remove file.
16344 * config/alpha/crtend.asm: Remove file.
16345 * config/alpha/t-crtbe: Remove file.
16346 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16347 (LINK_EH_SPEC): New.
16349 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16350 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16351 calling constructors.
16352 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16354 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16355 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16356 CRT_END_INIT_DUMMY hack.
16357 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16358 FORCE_{INIT,FINI}_SECTION_ALIGN.
16360 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16361 FORCE_{INIT,FINI}_SECTION_ALIGN.
16363 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16364 invocation sequence.
16365 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16367 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16368 (FORCE_CODE_SECTION_ALIGN): New.
16370 2002-01-26 Richard Henderson <rth@redhat.com>
16372 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16374 2002-01-26 Richard Henderson <rth@redhat.com>
16376 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16377 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16379 2002-01-26 Kazu Hirata <kazu@hxi.com>
16381 * config/h8300/h8300.md: Remove bit extraction patterns that
16382 cannot be triggered.
16383 Restrict each bit extraction pattern to a variant on which the
16386 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16388 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16390 2002-01-26 Kazu Hirata <kazu@hxi.com>
16392 * config/h8300/h8300.md: Remove bit test patterns that cannot
16394 Restrict each bit test pattern to a variant on which the
16397 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16399 * builtins.c (expand_builtin_strncat): Remove redundant check for
16402 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16404 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16406 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16409 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16411 * dbxout.c (dbxout_init): Use assemble_name rather than just
16412 stripping off the first character.
16413 (dbxout_source_file): Likewise.
16415 2002-01-25 DJ Delorie <dj@redhat.com>
16417 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16418 using rtx_equal_p, not by comparing pointers.
16420 2002-01-25 Steve Ellcey <sje@cup.hp.com>
16422 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16423 for PIC_OFFSET_TABLE_REGNUM.
16424 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16426 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16428 * config.gcc (x86_64-*-freebsd*): New target.
16429 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16431 (i[34567]86-*-freebsd*): Don't include svr4.h.
16432 * config/i386/freebsd64.h: New file.
16434 2002-01-25 Douglas B Rupp <rupp@gnat.com>
16436 * config/alpha/x-vms (version): Make static.
16438 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16439 in previous checkin.
16441 * Makefile.in (install-headers-cp): New target.
16442 * config.gcc (alpha-dec-*vms*): Install headers with
16445 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16447 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16450 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16452 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16453 of compare_tree_int.
16454 (expand_builtin_strncat): Likewise.
16455 * c-decl.c (finish_struct): Use tree_low_cst.
16456 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16457 * tree.c (compare_tree_int): Likewise.
16459 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16461 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16462 adjustments even if they are implemented by more than two insns.
16464 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16466 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16467 * df.h (struct ref): Kill B.
16468 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16470 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16471 * flow.c (propagate_one_insn): Use it.
16472 (mark_used_regs): Handle NIL.
16474 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16476 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16479 2002-01-25 David Edelsohn <edelsohn@gnu.org>
16481 * rs6000.md (prefetch): Make address V4SI mode so that the address
16482 is restricted to legitimate form for instruction.
16484 2002-01-25 Bob Wilson <bob.wilson@acm.org>
16486 * doc/install.texi (xtensa-*-elf): New target.
16487 (xtensa-*-linux*): New target.
16488 * doc/contrib.texi: Add myself.
16490 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16492 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16493 purpose register to hold an SImode (or smaller) value.
16495 2002-01-25 Jakub Jelinek <jakub@redhat.com>
16497 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16499 * crtstuff.c: Likewise.
16501 2002-01-25 Kazu Hirata <kazu@hxi.com>
16503 * config/h8300/h8300.md (negation patterns): Tighten
16504 predicates to register_operand.
16506 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
16508 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16511 * builtins.c (expand_builtin_prefetch): Same.
16513 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16515 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16518 2002-01-24 Kazu Hirata <kazu@hxi.com>
16520 * config/h8300/h8300.c (print_operand): Remove support for
16521 operand character 'A'.
16522 * config/h8300/h8300.md (three anonymous patterns): Replace
16523 operand character 'A' with either 'T' or 'S'.
16525 2002-01-24 Kazu Hirata <kazu@hxi.com>
16527 * config/h8300/h8300.c (print_operand): Remove support for
16528 operand character 'U'.
16530 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
16532 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16534 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16536 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16537 values to be assigned to the stack pointer.
16539 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16541 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16542 to const_double needs to be done right for big-endian systems.
16544 2002-01-24 Jason Merrill <jason@redhat.com>
16547 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16548 to can_throw_internal.
16550 2002-01-23 Richard Henderson <rth@redhat.com>
16552 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16553 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16555 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16557 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16558 (symGOT2reg): Use them, then set as GOT value as unchanging.
16559 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16560 as a temporary, if possible.
16561 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16562 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16564 2002-01-23 Kazu Hirata <kazu@hxi.com>
16566 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16567 accept to accept 0x80 as operands[2].
16569 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16571 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16573 2002-01-23 Richard Henderson <rth@redhat.com>
16575 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16577 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
16579 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16580 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16583 2002-01-23 Richard Henderson <rth@redhat.com>
16585 * expr.c (move_by_pieces_1): Extend size before negation.
16587 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16588 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16589 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16590 * config/m68k/t-m68kelf: Likewise.
16592 2002-01-23 Bob Wilson <bob.wilson@acm.org>
16594 * config/xtensa/elf.h: New file.
16595 * config/xtensa/lib1funcs.asm: New file.
16596 * config/xtensa/lib2funcs.S: New file.
16597 * config/xtensa/linux.h: New file.
16598 * config/xtensa/t-xtensa: New file.
16599 * config/xtensa/xtensa-config.h: New file.
16600 * config/xtensa/xtensa-protos.h: New file.
16601 * config/xtensa/xtensa.c: New file.
16602 * config/xtensa/xtensa.h: New file.
16603 * config/xtensa/xtensa.md: New file.
16604 * config.gcc (xtensa-*-elf*): New target.
16605 (xtensa-*-linux*): New target.
16606 * cse.c (canon_hash): Compare rtx pointers instead of register
16607 numbers. This is required for the Xtensa port.
16608 * integrate.c (copy_insn_list): Handle case where the static
16609 chain is in memory and the memory address has to be copied to
16611 * doc/invoke.texi (Option Summary): Add Xtensa options.
16612 (Xtensa Options): New node.
16613 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16615 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16617 * diagnostic.c (internal_error): Do ICE suppression only
16618 when ENABLE_CHECKING is not defined.
16620 * c-typeck.c (require_complete_type): Return error_mark_node
16621 if type is error_mark_node.
16623 2002-01-23 Janis Johnson <janis187@us.ibm.com>
16625 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16626 -Os and issue a warning.
16628 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16630 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16631 current (lack of) need for host configuration by hand.
16633 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16634 references. Documentation of some target macros moved from
16635 hostconfig.texi to tm.texi.
16637 2002-01-23 Will Cohen <wcohen@redhat.com>
16639 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16642 2002-01-23 Kazu Hirata <kazu@hxi.com>
16644 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16647 2002-01-23 Jason Merrill <jason@redhat.com>
16649 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16651 * function.c (assign_parms): Don't put args of inline functions
16652 into registers when not optimizing.
16654 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
16656 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16657 (prologue_use): New pattern.
16658 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16659 preference to gen_rtx_USE.
16660 (thumb_expand_prologue): Use gen_prologue_use in preference to
16662 (thumb_expand_epilogue): Use gen_prologue_use in preference to
16665 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
16667 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16669 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
16672 * doc/extend.texi: Correct documentation of __alignof__.
16674 2002-01-22 Zack Weinberg <zack@codesourcery.com>
16676 * params.h: Rename arguments of DEFPARAM so that it will be
16677 recognized as a translation keyword.
16679 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16681 * extend.texi: Document altivec functions.
16682 Fix N-bit adjectives in X86 builtin documentation.
16684 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
16686 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16687 auto_inc_dec values.
16689 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
16691 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16693 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16695 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
16697 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16699 2002-01-22 Richard Henderson <rth@redhat.com>
16701 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16702 copy_insn not copy_rtx.
16704 2002-01-23 Alan Modra <amodra@bigpond.net.au>
16706 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16707 "nonzero" as that might add "1" bits. Ensure "constop" is
16708 properly sign extened.
16709 (force_to_mode): Tweak for sign extended constop.
16711 2002-01-22 Richard Henderson <rth@redhat.com>
16713 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16714 for_each_rtx instead of assuming we're already looking at the MEM.
16715 (split_small_symbolic_mem_operand): Likewise.
16716 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16717 * config/alpha/alpha.md (small symbolic memory splitters): Update.
16719 2002-01-22 Richard Henderson <rth@redhat.com>
16721 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16722 sequence number for the literal.
16723 (divmoddi_internal_er): Likewise.
16725 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16728 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16729 in LIBICONV variable.
16730 * configure: Regenerated.
16732 2002-01-22 Krister Walfridsson <cato@df.lth.se>
16734 * dependence.c (build_def_use): Remove array_idx.
16736 * dwarfout.c (last_filename): Remove.
16737 (output_compile_unit_die): Remove last_filename.
16739 2002-01-22 Roger Sayle <roger@eyesopen.com>
16740 Richard Henderson <rth@redhat.com>
16743 * fold-const.c (fold): Optimize unsigned comparisons against
16744 UINT_MAX (and similar unsigned constants).
16746 2002-01-22 Janis Johnson <janis187@us.ibm.com>
16748 * Makefile.in (loop.o): Depend on OPTABS_H.
16749 * loop.c (emit_prefetch_instructions): Check the prefetch operand
16750 against the predicate.
16753 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16754 for the address operand.
16756 2002-01-22 Richard Henderson <rth@redhat.com>
16758 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16760 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16763 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16764 preprocessor flags.
16766 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
16768 * config.gcc (x86_64-*-netbsd*): New target.
16769 * config/i386/netbsd64.h: New file.
16771 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16773 * regrename.c (kill_value): Fix typo.
16775 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16777 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
16779 * config/rs6000/rs6000.h: Same.
16781 * function.c (instantiate_virtual_regs): Remove
16782 STARTING_FRAME_PHASE.
16783 (assign_stack_local_1): Same.
16784 Calculate frame phase.
16786 2002-01-22 Nick Clifton <nickc@redhat.com>
16788 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16789 variable declaration to outer scope in order to simplify
16791 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16792 arm_hard_regno_mode_ok.
16793 * config/arm/arm-protos.h: Add a prototype for
16794 arm_hard_regno_mode_ok.
16795 * config/arm/arm.c (soft_df_operand): Remove now redundant
16796 check for DImode values using IP_REGNUM.
16797 (nonimmediate_soft_df_operand): Remove now redundant check for
16798 DImode values using IP_REGNUM.
16799 (arm_hard_regno_mode_ok): New function. New check: make sure
16800 that DImode values are not stored in IP_REGNUM.
16802 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16804 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16806 2002-01-22 Jason Merrill <jason@redhat.com>
16808 * c-semantics.c (genrtl_compound_stmt): Only check nesting
16809 consistency if this COMPOUND_STMT is scoped.
16811 2002-01-22 Kazu Hirata <kazu@hxi.com>
16813 * predict.c: Fix formatting.
16814 * print-tree.c: Likewise.
16815 * protoize.c: Likewise.
16816 * real.h: Likewise.
16818 * sbitmap.h: Likewise.
16819 * scan.c: Likewise.
16820 * sched-deps.c: Likewise.
16821 * sched-vis.c: Likewise.
16822 * sdbout.c: Likewise.
16823 * sibcall.c: Likewise.
16825 * ssa-ccp.c: Likewise.
16826 * ssa-dce.c: Likewise.
16827 * stmt.c: Likewise.
16828 * stor-layout.c: Likewise.
16829 * system.h: Likewise.
16831 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16833 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
16834 if fits in bounds of base type.
16836 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
16837 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
16838 (add_bound_info, default): If can't find a context, make a
16840 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
16842 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
16844 * c-typeck.c (parser_build_binary_op): If result from
16845 build_binary_op is ERROR_MARK just return error_mark_node without
16846 further processing.
16848 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
16850 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
16851 Split a.out-specific bits into...
16852 * config/netbsd-aout.h: ...this.
16853 * config/netbsd-elf.h: New file.
16854 * config/alpha/netbsd-elf.h: Remove.
16855 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
16856 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
16857 (STARTFILE_SPEC): Remove redundant definition.
16858 (ENDFILE_SPEC): Likewise.
16859 (LINK_SPEC): Likewise.
16860 (CPP_SPEC): Likewise.
16861 (ASM_SPEC): Likewise.
16862 (LIB_SPEC): Likewise.
16863 (SWITCH_TAKES_ARG): Likewise.
16864 (TARGET_MEM_FUNCTIONS): Likewise.
16865 (CPP_PREDEFINES): Redefine.
16866 (ASM_FINAL_SPEC): Remove redefinition.
16867 (ASM_COMMENT_START): Redefine.
16868 (FUNCTION_PROFILER): Define.
16869 (TARGET_VERSION): Redefine.
16870 Comment and formatting cleanup.
16871 * config/i386/netbsd.h: Include <netbsd-aout.h>.
16872 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
16873 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
16874 big- or little-endian.
16875 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
16876 * config.gcc (*-*-netbsd*): Add definitions common to all
16878 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
16879 gnu_ld definitions. Add netbsd-elf.h to and remove
16880 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
16881 tmake_file, and don't lose previous tmake_file contents.
16882 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
16883 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
16884 gnu_ld definitions. Add netbsd-elf.h to tm_file.
16885 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
16886 (mipsel-*-netbsd*): Rename this to...
16887 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
16888 mips/little.h to tm_file for mips*el-*.
16889 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
16890 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
16891 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
16893 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16895 * pa-protos.h (reg_before_reload_operand): New function prototype.
16896 * pa.c (reg_before_reload_operand): New function implementation.
16897 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
16898 contraints to "*m".
16900 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16902 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
16904 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16906 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
16907 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
16908 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
16909 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
16910 (ENDFILE_SPEC): Undefine.
16911 (STARTFILE_SPEC): Redefine for PA.
16913 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16915 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
16917 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
16919 * config.gcc: Add entries to supported PowerPC --with-cpu
16922 2002-01-21 Jakub Jelinek <jakub@redhat.com>
16924 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
16925 true for 64-bit mode only SSE registers in 32-bit mode.
16927 2002-01-21 Kazu Hirata <kazu@hxi.com>
16929 * unwind-dw2.c: Fix formatting.
16930 * unwind-dw2-fde.c: Likewise.
16931 * unwind-dw2-fde.h: Likewise.
16932 * unwind-pe.h: Likewise.
16933 * varasm.c: Likewise.
16934 * varray.h: Likewise.
16936 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
16938 Remove workaround for register stack overwrite bug in mmix.
16939 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
16940 support for TARGET_REG_STACK_FILL_BUG.
16941 * config/mmix/mmix.h: Remove member has_call_without_parameters.
16942 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
16944 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
16945 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
16946 -mno-reg-stack-fill-bug-workaround.
16947 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
16948 machine member has_call_without_parameters.
16949 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
16950 -mreg-stack-fill-bug-workaround and
16951 -mno-reg-stack-fill-bug-workaround.
16952 (MMIX Options): Ditto.
16954 2002-01-21 Kazu Hirata <kazu@hxi.com>
16956 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
16958 Remove redundant code.
16960 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
16962 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
16963 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16964 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16965 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
16966 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
16967 out target macro definitions and non-target-specific comments
16968 mostly taken from old versions of the manual.
16970 2002-01-20 Kazu Hirata <kazu@hxi.com>
16972 * config/h8300/h8300.h: Fix comment formatting.
16973 * config/ia64/aix.h: Likewise.
16974 * config/ia64/ia64-protos.h: Likewise.
16975 * config/ia64/ia64.c: Likewise.
16976 * config/ia64/ia64.h: Likewise.
16977 * config/ia64/ia64intrin.h: Likewise.
16978 * config/ia64/linux.h: Likewise.
16979 * config/ia64/unwind-aix.c: Likewise.
16980 * config/ia64/unwind-ia64.c: Likewise.
16982 2002-01-20 Kazu Hirata <kazu@hxi.com>
16984 * config/h8300/h8300.c: Revise comments about shift code.
16986 2002-01-20 Kazu Hirata <kazu@hxi.com>
16988 * config/h8300/h8300.c (function_arg): Update a comment.
16990 2002-01-20 Kazu Hirata <kazu@hxi.com>
16992 * config/h8300/h8300.md: Update the comments at the beginning
16995 2002-01-20 Kazu Hirata <kazu@hxi.com>
16997 * config/i370/i370.c: Fix comment formatting.
16998 * config/i370/i370.h: Likewise.
16999 * config/i370/i370.md: Likewise.
17000 * config/i370/linux.h: Likewise.
17002 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17004 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17006 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17007 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17008 in incomplete case.
17010 2002-01-20 Graham Stott <grahams@redhat.com>
17012 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17014 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17016 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17018 2002-01-19 Tom Rix <trix@redhat.com>
17020 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17022 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
17024 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17026 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17027 STARTING_FRAME_PHASE.
17028 (STARTING_FRAME_PHASE): New.
17029 (instantiate_virtual_regs): Check saneness of
17030 STARTING_FRAME_PHASE.
17032 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17034 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17036 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17038 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17040 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17041 be used for bootstrapping GCC 3.0.
17043 2002-01-18 Kazu Hirata <kazu@hxi.com>
17045 * config/h8300/h8300.md: Fix an insn length.
17047 2002-01-18 Kazu Hirata <kazu@hxi.com>
17049 * bitmap.h: Fix comment formatting.
17050 * combine.c: Likewise.
17051 * cppfiles.c: Likewise.
17052 * c-pragma.h: Likewise.
17053 * c-typeck.c: Likewise.
17055 * dwarf2out.c: Likewise.
17056 * function.c: Likewise.
17058 * genattrtab.c: Likewise.
17059 * gthr-win32.h: Likewise.
17060 * haifa-sched.c: Likewise.
17061 * predict.c: Likewise.
17062 * rtlanal.c: Likewise.
17064 * unwind-dw2-fde.h: Likewise.
17065 * unwind-pe.h: Likewise.
17066 * vmsdbgout.c: Likewise.
17068 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17070 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17071 if type_required and passed decl.
17073 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
17075 * config.gcc (cpu_type): Include altivec.h in powerpc
17079 * config/rs6000/altivec.h: New.
17081 2002-01-17 David Edelsohn <edelsohn@gnu.org>
17083 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17084 handling information.
17085 * doc/trouble.texi (Interoperation): Add libstdc++ information
17087 (Misunderstandings): Add template instantiation and static template
17088 member information for AIX.
17090 2002-01-17 Jason Merrill <jason@redhat.com>
17092 * dbxout.c (dbxout_type): Support const and volatile.
17094 * except.c (add_partial_entry): Remove backwards compatibility code.
17095 (end_protect_partials): Likewise.
17097 2002-01-17 Jakub Jelinek <jakub@redhat.com>
17099 * config/ia64/ia64.md (prologue_use): New.
17100 * config/ia64/ia64.c (ia64_expand_prologue): Use
17101 gen_prologue_use instead of gen_rtx_USE.
17102 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17103 as CODE_FOR_pred_rel_mutex.
17104 (ia64_sched_reorder2): Likewise.
17106 2002-01-16 Eric Christopher <echristo@redhat.com>
17108 * config/mips/r3900.h: Reformat.
17109 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17110 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17111 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17112 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17113 * config/mips/t-elf: Remove mips3 multilib.
17115 2002-01-16 H.J. Lu <hjl@gnu.org>
17117 * config/mips/linux.h: Include "mips/abi64.h".
17119 2002-01-16 H.J. Lu <hjl@gnu.org>
17121 * config/mips/t-linux: New.
17123 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17125 * config/mips/linux.h: Don't include "gofast.h".
17126 (INIT_SUBTARGET_OPTABS): Removed.
17128 2002-01-16 Kazu Hirata <kazu@hxi.com>
17130 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17132 * config/h8300/h8300.c: Likewise.
17133 * config/h8300/h8300.md: Likewise.
17135 2002-01-16 Kazu Hirata <kazu@hxi.com>
17137 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17138 spaces after an opcode name.
17139 (pushqi1_h8300hs): Likewise.
17140 (pushhi1_h8300hs): Likewise.
17142 2002-01-16 Kazu Hirata <kazu@hxi.com>
17144 * doc/extend.texi: Replace "option" with "attribute"
17147 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17149 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17150 (and:DI () (const_int -8)).
17151 (split_small_symbolic_mem_operand): Split
17152 (mem (and:DI () (const_int -8)).
17154 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17157 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17158 same way as TYPE_IMUL.
17159 (ultrasparc_sched_reorder): Likewise.
17160 * config/sparc/sparc.md (type): Add comment to update
17161 ultrasparc_sched_reorder when making changes.
17163 2002-01-16 Kazu Hirata <kazu@hxi.com>
17165 * doc/invoke.texi: Change the dump file name of block
17166 reordering pass from 28.bbro to 29.bbro.
17167 Mention -dk option.
17169 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17171 * i386.md (minsf splitter): Fix pasto.
17173 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17175 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17176 to frame pointer initialisation instruction.
17177 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17178 initialisation instruction.
17179 (soft_df_operand): Do not accept the IP register.
17180 (nonimmediate_soft_df_operand): Do not accept the IP register.
17182 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17185 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17186 MASK_V8 being both set.
17188 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17190 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17191 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17192 config/s390/s390.md (call, call_value): Add GOT register to
17193 CALL_INSN_FUNCTION_USAGE where needed.
17194 (call_exp, call_value_exp): New.
17196 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17198 * config/arm/arm.c: General formatting tidy up.
17200 2002-01-16 Graham Stott <grahams@redhat.com>
17202 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17203 cast and when casting an integer literal to "rtx" pointer.
17204 (expand_call): Likewise.
17205 * flow.c (try_pre_increment): Likewise.
17206 (find_use_as_address): Likewise.
17207 * integrate.c (expand_iline_function): Likewise.
17208 * regmove.c (try_auto_increment): Likewise.
17210 2002-01-16 Graham Stott <grahams@redhat.com>
17212 * sched-rgn.c (passed): Use sbitmap_free.
17213 (header): Likewise.
17215 (in_queue): Likewise.
17216 (in_stack): Likewise.
17218 2002-01-15 Eric Christopher <echristo@redhat.com>
17220 * flow.c (propagate_one_insn): Change to use fatal_insn.
17222 2002-01-15 Kazu Hirata <kazu@hxi.com>
17224 * expmed.c (extract_fixed_bit_field): Remove unused code.
17225 * system.h: Poison SLOW_ZERO_EXTEND.
17226 * doc/tm.texi: Remove.
17227 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17228 * config/arm/arm.h: Likewise.
17229 * config/avr/avr.h: Likewise.
17230 * config/clipper/clipper.h: Likewise.
17231 * config/convex/convex.h: Likewise.
17232 * config/d30v/d30v.h: Likewise.
17233 * config/dsp16xx/dsp16xx.h: Likewise.
17234 * config/elxsi/elxsi.h: Likewise.
17235 * config/fr30/fr30.h: Likewise.
17236 * config/h8300/h8300.h: Likewise.
17237 * config/i370/i370.h: Likewise.
17238 * config/i386/i386.h: Likewise.
17239 * config/m68k/m68k.h: Likewise.
17240 * config/mips/mips.h: Likewise.
17241 * config/ns32k/ns32k.h: Likewise.
17242 * config/pdp11/pdp11.h: Likewise.
17243 * config/pj/pj.h: Likewise.
17244 * config/s390/s390.h: Likewise.
17245 * config/sh/sh.h: Likewise.
17246 * config/stormy16/stormy16.h: Likewise.
17247 * config/v850/v850.h: Likewise.
17248 * config/vax/vax.h: Likewise.
17249 * config/we32k/we32k.h: Likewise.
17251 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17253 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17254 (altivec_lvsl): Change constraint to b.
17255 (altivec_lvsr): Same.
17256 (altivec_lvebx): Same.
17257 (altivec_lvehx): Same.
17258 (altivec_lvewx): Same.
17259 (altivec_lvxl): Same.
17260 (altivec_lvx): Same.
17261 (altivec_stvx): Add parallel.
17262 (altivec_stvxl): Same.
17263 (altivec_stvehx): Same.
17264 (altivec_stvebx): Same.
17265 (altivec_stvebx): Same.
17267 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17269 * config.gcc: Change altivec.h to altivec-defs.h.
17271 * config/rs6000/altivec.h: Delete.
17273 * config/rs6000/altivec-defs.h: Add.
17275 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17277 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17280 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17281 less than or equal to eight bytes.
17283 * vax.md (andsi3): Remove constraints and change SET destination
17284 operand type to nonimmediate_operand.
17285 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17286 when it is a CONST_INT.
17288 2002-01-15 Jason Merrill <jason@redhat.com>
17290 * c-common.def (FILE_STMT): New code.
17291 * c-common.c (statement_code_p): It's a statement.
17292 * c-common.h (stmt_tree_s): Add x_last_filename.
17293 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17294 (last_expr_filename): New macro.
17295 * c-semantics.c (begin_stmt_tree): Initialize it.
17296 (add_stmt): If the filename changed, also insert a
17298 (expand_stmt): Handle seeing one.
17300 2002-01-15 Eric Christopher <echristo@redhat.com>
17302 * flow.c (propagate_one_insn): Add error message and print out
17303 insn for debugging.
17305 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17307 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17308 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17309 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17310 TRAMPOLINE_ALIGNMENT.
17311 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17313 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17314 PCC_BITFIELD_TYPE_MATTERS.
17315 * config/interix.h (STDC_VALUE): Remove. Use
17316 STDC_0_IN_SYSTEM_HEADERS.
17317 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17318 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17319 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17321 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17323 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17324 not work on this platform currently.
17326 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17328 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17329 readonly_warning in _().
17331 2002-01-15 Douglas B Rupp <rupp@gnat.com>
17333 * gcc.c (delete_if_ordinary): Backout previous change.
17335 2002-01-15 Kazu Hirata <kazu@hxi.com>
17337 * config/h8300/h8300.c (print_operand): Remove support for
17338 unused operand characters.
17340 * read-rtl.c: Fix formatting.
17341 * real.c: Likewise.
17342 * recog.c: Likewise.
17343 * regclass.c: Likewise.
17344 * regmove.c: Likewise.
17345 * reg-stack.c: Likewise.
17346 * reload1.c: Likewise.
17347 * rtlanal.c: Likewise.
17349 2002-01-15 Kazu Hirata <kazu@hxi.com>
17351 * config/i386/i386.c: Fix formatting.
17353 2002-01-15 Jakub Jelinek <jakub@redhat.com>
17355 * c-typeck.c (process_init_element): Don't save_expr
17356 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17358 2002-01-15 David Edelsohn <edelsohn@gnu.org>
17360 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17361 emit optional traceback table if optimize_size or TARGET_ELF.
17362 * config/rs6000/rs6000.md (prefetch): New.
17364 2002-01-15 Andreas Jaeger <aj@suse.de>
17366 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17368 2002-01-15 Kazu Hirata <kazu@hxi.com>
17370 * mips-tfile.c: Fix formatting.
17372 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17374 * unroll.c (final_reg_note_copy): Fix previous commit.
17376 2002-01-14 Kazu Hirata <kazu@hxi.com>
17378 * config/h8300/h8300-protos.h: Remove the prototype for
17380 * config/h8300/h8300.c (eq_operator): Remove.
17382 2002-01-14 Richard Henderson <rth@redhat.com>
17384 * config/i386/i386.md (prefetch): Tidy.
17385 (prefetch_3dnow): Fix locality operand.
17387 2002-01-14 Richard Henderson <rth@redhat.com>
17389 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17390 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17392 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17394 * reload1.c (reload_combine): Pass reg_sum replacement through
17395 copy_rtx in loop performing multiple changes.
17397 2002-01-14 Jakub Jelinek <jakub@redhat.com>
17399 * except.c (remove_unreachable_regions): New.
17400 (free_eh_status): Clear exception_handler_labels.
17401 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17402 (find_exception_handler_labels): Don't add the same label more than
17404 (remove_exception_handler_label): Don't die if
17405 find_exception_handler_labels hasn't been called for the current
17408 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17410 * toplev.c (rest_of_compilation): Rebuild jump labels after
17413 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17415 * doc/extend.texi: Move documentation of X86 built-in functions
17417 * doc/invoke.texi: From here.
17418 * doc/sourcebuild.texi: Document location of documentation for
17419 machine built-in functions.
17421 2002-01-13 Christopher Faylor <cgf@redhat.com>
17423 * cppfiles.c (TEST_THRESHOLD): New macro.
17424 (SHOULD_MMAP): Ditto.
17425 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17428 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17430 * unroll.c (final_reg_note_copy): Properly handle
17432 (unroll_loops): Fix LOOP_CONDITION heuristics.
17434 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
17436 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17437 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17439 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17441 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17444 2002-01-14 Tom Rix <trix@redhat.com>
17446 * config/rs6000/rs6000.md: Fix typo with sradi.
17448 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17450 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17451 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17452 (clrstrdi, clrstrsi): Adapt callers.
17454 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17456 (movti splitter): Never use register 0 as base register.
17458 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17460 * combine.c (simplify_shift_const): Always generate new rtx
17461 for shift expression instead of reusing given expression.
17463 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17465 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17466 alpha_legitimize_address unless mode is Pmode.
17468 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
17470 * doc/md.texi (Modifiers): Document the '*' constraint for the
17473 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17474 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17477 2002-01-13 Richard Henderson <rth@redhat.com>
17479 * reload.c (find_reloads): Use a hard reg destination as reload reg
17480 for an input reload of the source.
17482 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17484 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17487 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17489 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17490 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17492 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17494 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17496 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17498 2002-01-12 Tom Rix <trix@redhat.com>
17500 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17503 2002-01-12 Richard Henderson <rth@redhat.com>
17505 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17507 * doc/invoke.texi: Update Alpha options.
17509 * doc/invoke.texi: Update i386 built-in function lists.
17511 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17513 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17514 referencing outside.
17516 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17518 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17519 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17520 offsets, and change line folding.
17521 * optabs.c (expand_binop): Remove warnings.
17522 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17524 2002-01-12 Graham Stott <grahams@redhat.com>
17526 * attribs.c (handle_deprecated_attribute): constify WHAT.
17527 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17528 dangling else warning and constify WHAT.
17529 * except.h (struct function, struct inline_remap): Move
17530 struct tag forward defs before all prototypes.
17531 (duplicate_eh_regions): Whitespace.
17533 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17535 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17536 MODE_BASE_REG_CLASS.
17537 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17539 2002-01-12 Richard Henderson <rth@redhat.com>
17541 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17542 (ix86_expand_vector_move): New.
17543 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17544 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17545 Remove old prefetch builtins. Special case the logicals removed above.
17546 (ix86_expand_builtin): Likewise.
17547 (safe_vector_operand): Use V4SFmode, not TImode.
17548 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17549 (ix86_expand_timode_binop_builtin): New.
17550 * config/i386/i386-protos.h: Update.
17551 * config/i386/i386.h (enum ix86_builtins): Update.
17552 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17553 Use ix86_expand_vector_move in vector move expanders.
17554 (movti_internal, movti_rex64): Add xorps alternative.
17555 (sse_clrv4sf): Rename and adjust from sse_clrti.
17556 (prefetch): Don't work so hard.
17557 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17558 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17559 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17561 2002-01-11 Richard Henderson <rth@redhat.com>
17563 * config/i386/mmintrin.h: New file.
17564 * config/i386/xmmintrin.h: New file.
17565 * config.gcc (i?86-*-*): Add extra_headers.
17566 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17568 (simplify_binary_operation): Handle saturating arithmetic codes.
17569 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17570 not the lowpart subreg.
17571 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17573 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17575 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17577 * conflict.c (conflict_graph_compute): Free regsets when finished.
17578 * ssa.c (compute_coalesced_reg_partition): Likewise.
17580 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17582 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17583 every where we allocate a register.
17585 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17587 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17588 * lcm.c (compute_earliest, compute_farthest): Likewise.
17590 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17592 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17594 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17596 * doc/rtl.texi (Insns): Fix 2 typos.
17598 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17600 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17601 options. Use @table @gcctabopt for MMIX options. Add index
17602 entries for MMIX options. Start new paragraph with first
17603 heading of the machine-dependent options.
17605 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17608 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17609 * combine.c (force_to_mode): Same.
17610 * reload1.c (clear_reload_reg_in_use): Same.
17612 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17614 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17617 2002-01-11 Andreas Jaeger <aj@suse.de>,
17618 Brad Lucier <lucier@math.purdue.edu>
17620 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17623 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17625 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17626 Protect with IN_LIBGCC.
17627 (LINK_EH_SPEC): Add required trailing space.
17629 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17631 * c-tree.h: Move function declarations so that they are listed
17632 under the filename which contains them.
17633 (check_identifier, finish_decl_top_level,
17634 lookup_name_current_level_global, shadow_record_fields): Remove.
17636 2002-01-11 Andreas Jaeger <aj@suse.de>
17638 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17641 2002-01-10 Richard Henderson <rth@redhat.com>
17643 * config/alpha/alpha.c (print_operand): Add 'J'.
17644 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17645 new operand with the sequence number for the lituse. When splitting
17646 the insns, use gen_movdi_er_high_g and generate a sequence number.
17647 (gen_movdi_er_high_g): Print the sequence number if non-zero.
17649 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
17651 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17652 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17654 (altivec_expand_builtin): Same.
17655 (altivec_expand_stv_builtin): New.
17657 * config/rs6000/rs6000.h (rs6000_builtins): Same.
17659 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17660 ("altivec_lvehx"): New.
17661 ("altivec_lvewx"): New.
17662 ("altivec_lvxl"): New.
17663 ("altivec_lvx"): New.
17664 ("altivec_stvx"): New.
17665 ("altivec_stvebx"): New.
17666 ("altivec_stvehx"): New.
17667 ("altivec_stvewx"): New.
17668 ("altivec_stvxl"): New.
17670 2002-01-10 Richard Henderson <rth@redhat.com>
17672 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17673 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
17674 care not to delete instructions twice.
17676 2002-01-10 Zack Weinberg <zack@codesourcery.com>
17678 * toplev.c: Don't declare environ (it's not used anywhere).
17679 * configure.in: Don't check for declaration of environ.
17680 * config/i386/xm-mingw32.h: Don't #define environ.
17681 * config.in, configure: Regenerate.
17683 2002-01-10 Zack Weinberg <zack@codesourcery.com>
17685 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17686 * configure: Regenerate.
17688 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17689 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17690 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17692 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17693 LIMITS_H_TEST here, not in m68k/x-next.
17694 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17695 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17697 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17698 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17699 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
17701 * config/i386/x-djgpp: Renamed i386/t-djgpp.
17702 * config/m88k/x-dolph: Renamed m88k/t-dolph.
17703 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17704 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
17705 replacement of quadlib.asm with quadlib.c.
17707 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17708 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17709 config/rs6000/xm-beos.h: Delete file.
17711 * config.gcc: Update to match above changes.
17713 2002-01-10 Kazu Hirata <kazu@hxi.com>
17715 * config/h8300/h8300.h: Fix comment typos.
17716 * config/h8300/h8300.md: Likewise.
17717 * config/h8300/lib1funcs.asm: Likewise.
17719 2002-01-10 Dale Johannesen <dalej@apple.com>
17721 PR optimization/5269
17722 * unroll.c (precondition_loop_p): Make *increment be the correct
17723 sign when n_iterations known, to avoid confusing caller.
17725 2002-01-10 Kazu Hirata <kazu@hxi.com>
17727 * doc/extend.texi (deprecated): Fix a typo.
17729 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
17731 * basic-block.h (update_br_prob_note): Declare.
17732 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17733 (try_forward_edges): Care negative frequencies and update note.
17734 (outgoing_edges_match): Tweek conditional merging heuristics.
17735 (try_crossjump_to_edge): use update_br_prob_note.
17736 * cfglayout.c (fixup_reorder_chain): Likewise.
17737 * cfrtl.c (update_br_prob_note): New.
17738 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17740 * i386.c (ix86_decompose_address): Return -1 if address contains
17742 (legitimate_address_p): Require ix86_decompose_address to return 1.
17744 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17745 (cprop_insn): Likewise.
17747 2002-01-10 Kazu Hirata <kazu@hxi.com>
17749 * toplev.c: Fix formatting.
17750 * tree.c: Likewise.
17751 * tree-dump.c: Likewise.
17752 * unroll.c: Likewise.
17753 * unwind-dw2.c: Likewise.
17754 * unwind-dw2-fde.c: Likewise.
17755 * unwind-dw2-fde-glibc.c: Likewise.
17756 * unwind-sjlj.c: Likewise.
17758 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17760 * doc/invoke.texi: Document PDP-11 options.
17762 2002-01-10 Kazu Hirata <kazu@hxi.com>
17764 * config/h8300/h8300.h: Fix formatting.
17766 2002-01-10 Ira Ruben <ira@apple.com>
17768 Add __attribute__ ((deprecated)).
17769 * extend.texi: Document __attribute__ ((deprecated)).
17770 * invoke.texi: Document -Wno-deprecated-declarations.
17771 * testsuite/g++.dg/other/deprecated.C: New C++ test.
17772 * testsuite/gcc.dg/deprecated.c: New C test.
17773 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17774 (c_common_attribute_table): Add "deprecated" entry.
17775 (handle_deprecated_attribute): New function.
17776 * c-decl.c (deprecated_states): New enum.
17777 deprecated_state: State of "deprecated" handling.
17778 (start_decl): Set deprecated_state based on attributes.
17779 (grokdeclarator): Test for deprecated uses, propagate attribute.
17780 * c-typeck.c (build_component_ref): Test for deprecated fields.
17781 (build_external_ref): Test for deprecated primaries.
17782 * diagnostic.c (warn_deprecated_use) New function to issue
17783 warnings about __attribute__ ((depricated)) references.
17784 * flags.h (warn_deprecated_decl): Extern declared for
17785 -W[no-]deprecated-declarations option.
17786 * print-tree.c (print_node): Show deprecated flag status.
17787 * toplev.c (warn_deprecated_decl): Defined.
17788 (W_options): Added "deprecated-declaration".
17789 * toplev.h (warn_deprecated_use): Extern declared.
17790 * tree.h (struct tree_common): Define deprecated_flag.
17791 (TREE_DEPRECATED): New macro to access flag.
17792 * cp/call.c (build_call): Test for deprecated calls.
17793 * cp/class.c (add_implicitly_declared_members): Set global
17794 flag to tell grokdeclarator to not issue deprecated warnings.
17795 * cp/cp-tree.h: Add extern for adding_implicit_members.
17796 * cp/decl.c (deprecated_states): New enum.
17797 (start_decl): Set deprecated_state based on attributes.
17798 (grokdeclarator): Test for deprecated uses, propagate attribute.
17799 * cp/lex.c (do_identifier): Test for deprecated primaries.
17800 * cp/typeck.c (build_component_ref): Test for deprecated fields.
17802 2002-01-10 Ira Ruben <ira@apple.com>
17804 Fix to assign attributes to inline member functions.
17805 * cp/decl.c (start_method): Handle attrlist.
17807 2002-01-10 Kazu Hirata <kazu@hxi.com>
17809 * combine.c (expand_field_assignment): Use subreg_lsb().
17811 2002-01-10 David Edelsohn <edelsohn@gnu.org>
17813 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
17814 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
17815 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
17816 Recurse for any operand of AND as long as constant is non-zero.
17818 2002-01-10 Kazu Hirata <kazu@hxi.com>
17820 * config/h8300/h8300.md: Remove constraints from expanders.
17822 2002-01-10 Kazu Hirata <kazu@hxi.com>
17824 * varasm.c: Fix formatting.
17825 * varray.c: Likewise.
17826 * vmsdbgout.c: Likewise.
17827 * xcoffout.c: Likewise.
17829 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
17831 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
17832 update edge probabilities to match.
17834 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17836 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
17838 * doc/languages.texi, doc/sourcebuild.texi: New files.
17839 * doc/configfiles.texi: Make a subsubsection. Update.
17840 * doc/configterms.texi: Add @node. Remove warning that this isn't
17841 instructions for building GCC.
17842 * doc/makefile.texi: Make a subsection.
17843 * doc/gccint.texi: Update.
17845 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
17847 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
17849 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
17851 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
17853 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
17855 * optabs.c (expand_fix): Look for wider integer modes first.
17857 * i386.md (mov?f): Avoid the fake const double trick for medium
17859 (min?f*/max?f*): Prohibit memory operands for i387 variant.
17860 (fop_df_4): Disable for SSE compilation.
17862 2002-01-10 Graham Stott <grahams@redhat.com>
17864 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
17865 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
17867 2002-01-10 Richard Henderson <rth@redhat.com>
17869 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
17871 2002-01-10 Richard Henderson <rth@redhat.com>
17873 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
17874 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
17876 2002-01-10 Kazu Hirata <kazu@hxi.com>
17878 * combine.c (can_combine_p): Fix a comment typo.
17880 2002-01-09 Zack Weinberg <zack@codesourcery.com>
17882 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
17883 empty list correctly. Change loop index $t to $f for
17884 consistency with rest of Makefile.
17886 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
17888 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
17889 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17891 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
17892 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
17893 (altivec_init_builtins): Same.
17894 (altivec_expand_unop_builtin): Return NULL_RTX on error.
17895 (altivec_expand_binop_builtin): Same.
17896 (altivec_expand_ternop_builtin): Same.
17899 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
17900 ("altivec_vctuxs"): Fix typo.
17901 ("altivec_vnmsubfp"): Same.
17902 ("altivec_dssall"): New.
17903 ("altivec_mfvscr"): New.
17904 ("altivec_dss"): New.
17905 ("altivec_lvsl"): New.
17906 ("altivec_lvsr"): New.
17907 ("altivec_dstt"): New.
17908 ("altivec_dstst"): New.
17909 ("altivec_dststt"): New.
17910 ("altivec_dst"): New.
17912 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
17913 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17915 2002-01-09 Richard Henderson <rth@redhat.com>
17917 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
17919 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
17921 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
17923 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
17925 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
17927 2002-01-09 Kazu Hirata <kazu@hxi.com>
17929 * read-rtl.c: Fix formatting.
17930 * real.c: Likewise.
17931 * regclass.c: Likewise.
17932 * regrename.c: Likewise.
17933 * reg-stack.c: Likewise.
17934 * reload1.c: Likewise.
17935 * reload.c: Likewise.
17938 2002-01-09 Kazu Hirata <kazu@hxi.com>
17940 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
17941 to extract items in the expr_list chain.
17943 2002-01-09 Richard Henderson <rth@redhat.com>
17945 * config/vax/vax.c (vax_rtx_cost): Never abort.
17947 * config/vax/vax.h (REAL_ARITHMETIC): Define.
17949 2002-01-09 Jan Hubicka <jh@suse.cz>
17951 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
17953 2002-01-09 Richard Henderson <rth@redhat.com>
17955 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
17956 Unify code from various alternatives.
17958 2002-01-09 Richard Henderson <rth@redhat.com>
17960 * regrename.c (copy_value): Ignore the copy if the source register
17961 is present in the value chain with a narrower mode.
17963 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17965 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
17966 for the c4x target. Also improve layout.
17968 2002-01-09 Richard Henderson <rth@redhat.com>
17970 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
17971 * config/m32r/m32r.md (and ior xor splitters): Swap operands
17972 to match insn patterns.
17974 2002-01-09 Richard Henderson <rth@redhat.com>
17976 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
17977 (copyprop_hardreg_forward_1): Likewise.
17979 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
17981 * pa.md (decrement_and_branch_until_zero): Change predicate for
17982 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
17984 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
17986 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
17987 gets undefined. For Darwin.
17989 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17991 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
17993 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17995 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
17997 2002-01-08 Richard Henderson <rth@redhat.com>
17999 * regrename.c (copy_value): Ignore overlapping copies.
18001 2002-01-08 Richard Henderson <rth@redhat.com>
18003 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18004 as needed to avoid shared structure.
18006 2002-01-08 Kazu Hirata <kazu@hxi.com>
18008 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18011 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18013 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18014 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18015 documentation of obsolete macros.
18016 * system.h: Poison these macros.
18017 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18018 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18019 config/c4x/c4x.h, config/clipper/clipper.h,
18020 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18021 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18022 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18023 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18024 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18025 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18026 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18027 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18028 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18029 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18030 config/sparc/sparc.h, config/stormy16/stormy16.h,
18031 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18032 definitions and commented out definitions of obsolete macros.
18033 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18034 of MAX_INT_TYPE_SIZE.
18036 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18038 * config/s390/s390.c (s390_preferred_reload_class): Never
18039 return ADDR_REGS if it isn't a subset of the given class.
18040 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18041 FP_REGS, but all superclasses as well.
18043 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18045 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18046 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18047 must not be a const_int.
18049 2002-01-08 Richard Henderson <rth@redhat.com>
18051 * Makefile.in (toplev.o): Depend on options.h.
18052 (gcc.o): Depend on specs.h.
18054 2002-01-08 Jakub Jelinek <jakub@redhat.com>
18056 * expr.c (store_expr): Convert VOIDmode constants back to target's
18059 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18061 * doc/invoke.texi: Markup gcc as @command. Refer to
18062 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18063 of http://gcc.gnu.org/thanks.html.
18065 2002-01-08 Dale Johannesen <dalej@apple.com>
18067 * config/rs6000/rs6000.md: Add missing int register
18068 target case to movdf_low.
18070 2002-01-08 Zack Weinberg <zack@codesourcery.com>
18072 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18073 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18074 (cppinit.o): Depend on except.h.
18075 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18076 s-specs): New rules.
18078 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18079 Don't create specs.h/options.h/gencheck.h here. Remove
18080 unnecessary variable settings from last argument of AC_OUTPUT.
18081 * config.in, configure: Regenerate.
18082 * intl.c: Hardcode package name as "gcc".
18084 * cppinit.c: Include except.h.
18085 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18087 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18088 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18089 (!)USING_SJLJ_EXCEPTIONS.
18090 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18092 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18094 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18095 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18096 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18097 documentation of obsolete macros.
18098 * system.h: Poison these macros.
18099 * config/d30v/d30v.h, config/ns32k/encore.h,
18100 config/stormy16/stormy16.h: Remove definitions and commented out
18101 definitions of obsolete macros.
18103 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18105 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18106 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18109 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18111 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18112 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18113 to insn adjusting stack/frame pointer.
18114 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18115 accept operands that cause the insn to be non-splittable.
18117 2002-01-08 Graham Stott <grahams@redhat.com>
18119 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18120 (C_TYPE_FIELDS_VOLATILE): Likewise.
18121 (C_TYPE_BEING_DEFINED): Likewise.
18122 (C_IS_RESERVED_WORD): Likewise.
18123 (C_TYPE_VARIABLE_SIZE): Likewise.
18124 (C_DECL_VARIABLE_SIZE): Likewise.
18125 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18126 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18127 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18129 (C_DECL_ANTICIPATED): Likewise.
18130 (c_build_type_variant): Add parenthesis.
18132 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18134 * gcc.c (option_map): Remove --version.
18135 (process_command): Handle -fversion following the GNU Coding
18136 Standards. Partially addresses PR other/704.
18138 2002-01-08 Graham Stott <grahams@redhat.com>
18140 * combine.c (combine_instructions): Fix typo.
18142 2002-01-08 Graham Stott <grahams@redhat.com>
18144 * debug.h: Use "tree" and "rtx" throughout.
18146 * debug.c: Likewise.
18148 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18150 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18151 constant pool, use the pool's version of the symbol instead.
18153 2002-01-07 Richard Henderson <rth@redhat.com>
18155 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18156 the original register was copied in a mode with a fewer number of
18157 hard registers than the desired mode.
18158 (copyprop_hardreg_forward_1): Likewise.
18159 (debug_value_data): Fix loop test.
18160 * toplev.c (parse_options_and_default_flags): Reenable
18161 -fcprop-registers at -O1.
18163 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18165 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18166 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18168 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18171 * config/rs6000/rs6000.md: Add altivec predicate patterns.
18173 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18175 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18176 (pa_output_function_prologue): Output local label at the beginning of
18177 the prologue when profiling.
18178 (hppa_profile_hook): Use the local label rather than the function label.
18179 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18181 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18183 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18184 (altivec_expand_unop_builtin): Fix thinko.
18185 (altivec_expand_binop_builtin): Same.
18186 (altivec_expand_ternop_builtin): Same.
18187 (altivec_expand_builtin): Same.
18189 2002-01-07 Richard Henderson <rth@redhat.com>
18191 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18193 2002-01-07 Jason Merrill <jason@redhat.com>
18195 * unwind-dw2.c (execute_cfa_program): Use < again.
18197 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18199 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18201 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18203 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18204 Don't allow -1 - x -> ~x simplifications in the first pass.
18206 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18208 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18210 (altivec_expand_binop_builtin): Same.
18211 (altivec_expand_unop_builtin): Same.
18212 (print_operand): Fix typo.
18213 (bdesc_1arg): Add vupk* variants.
18215 * rs6000.h (rs6000_builtins): Add vupk* enums.
18217 * rs6000.md: Add altivec_vupk* variants.
18219 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18221 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18222 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18223 and last update dates.
18225 2002-01-07 Janis Johnson <janis187@us.ibm.com>
18227 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18229 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18231 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18232 * config/avr/avr.h (CPP_SPEC): Likewise.
18233 (LINK_SPEC): Likewise.
18234 (CRT_BINUTILS_SPECS): Likewise.
18235 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18236 * doc/invoke.texi (AVR Options): Document them.
18238 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18240 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18243 2002-01-07 Graham Stott <grahams@redhat.com>
18245 * config/i386/i386.h: Update copyright date.
18246 (HALF_PIC_PTR): Add parenthesis.
18247 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18248 (CONSTANT_ALIGNMENT): Add parenthesis.
18249 (DATA_ALIGNMENT): Likewise.
18250 (LOCAL_ALIGNMENT): Likewise.
18251 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18252 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18253 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18254 (HARD_REGNO_NREGS): Add paranethesis.
18255 (VALID_SSE_REG_MODE): Whitespace.
18256 (VALID_MMX_REG_MODE): Whitespace.
18257 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18258 (ix86_hard_regno_mode_ok): Add parenthesis.
18259 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18260 (RETURN_IN_MEMORY): Whitespace.
18261 (N_REG_CLASSES): Add parenthesis.
18262 (INTEGER_CLASS_P): Add parenthesis and wrap.
18263 (FLOAT_CLASS_P): Likewise.
18264 (SSE_CLASS_P): Likewise.
18265 (MMX_CLASS_P): Likewise.
18266 (MAYBE_INTEGER_CLASS_P): Likewise.
18267 (MAYBE_FLOAT_CLASS_P): Likewise.
18268 (MAYBE_SSE_CLASS_P): Likewise.
18269 (MAYBE_MMX_CLASS_P): Likewise.
18270 (Q_CLASS_P): Likewise.
18271 (GENERAL_REGNO_P): Uppercase macro parameter.
18272 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18273 (FP_REGNO_P): Likewise.
18274 (ANY_FP_REGNO_P): Uppercase macro parameter.
18275 (SSE_REGNO_P): Likewise.
18276 (SSE_REGNO): Likewise.
18277 (SSE_REG_P): Likewise.
18278 (SSE_FLOAT_MODE_P): Likewise.
18279 (MMX_REGNO_P): Likewise.
18280 (MMX_REG_P):Likewise.
18281 (STACK_REG_P): Likewise.
18282 (NON_STACK_REG_P): Likewise.
18283 (STACK_TOP_P): Likewise.
18284 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18285 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18286 (SECONDARY_MEMORY_NEEDED): Likewise.
18287 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18288 (MD_ASM_CLOBBERS): Whitespace and wrap.
18289 (MUST_PASS_IN_STACK): Whitespace and wrap.
18290 (RETURN_POPS_ARGS): Add parenthesis.
18291 (INIT_CUMULATIVE_ARGS): Likewise.
18292 (FUNCTION_ARG): Likewise.
18293 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18294 (SETUP_INCOMING_VARARGS): Likewise.
18295 (BUILD_VA_LIST_TYPE): Add parenthesis.
18296 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18298 (EXPAND_BUILTIN_VA_ARG): Likewise.
18299 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18300 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18301 (INITIAL_ELIMINATION_OFFSET): Likewise.
18302 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18303 (REGNO_OK_FOR_BASE_P): Likewise.
18304 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18305 (REGNO_OK_FOR_DIREG_P): Likewise.
18306 (REG_OK_FOR_INDEX_P): Whitespace.
18307 (REG_OK_FOR_BASE_P): Whitespace.
18308 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18310 (FIND_BASE_TERM): Fix typo.
18311 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18312 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18313 (SYMBOLIC_CONST; Whitespace.
18314 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18315 (ENCODE_SECTION_INFO): Whitespace.
18316 (FINALIZE_PIC): Remove do { ... } while (0).
18317 (PROMOTE_MODE): Wrap in do { ... } while (0).
18318 (CONST_COSTS): Whitespace.
18319 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18320 (REGISTER_MOVE_COST): Add parenthesis.
18321 (MEMORY_MOVE_COST): Likewise.
18322 (EXTRA_CC_MODES): Whitespace.
18323 (SELECT_CC_MODE): Add parenthesis and whitespace.
18324 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18325 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18326 (ASM_OUTPUT_LABEL): Add paramethesis.
18327 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18328 (ASM_OUTPUT_REG_POP): Likewise.
18329 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18330 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18332 * config/i386/i386.c: Update copyright.
18333 (CHECK_STACK_LIMIT): Add parenthesis.
18334 (AT_BP): Uppercase macro parameter.
18335 (x86_64_int_parameter_registers): Constify.
18336 (x86_64_int_return_registers): Likewise.
18337 (ix86_compare_op0): Use rtx.
18338 (construct_container): Constify INTREG parameter.
18339 (function_arg): Use rtx.
18341 * diagnostic.h: Update copyright date.
18342 (output_buffer_state): Add parenthesis.
18343 (output_buffer_format_args): Likewise.
18345 * combine.c (combine_instructions): Replace XEXP (links, 0)
18348 2002-01-06 H.J. Lu <hjl@gnu.org>
18350 * cfgcleanup.c (thread_jump): Fix 2 typos.
18352 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
18354 * config.gcc: Add support for --enable-altivec.
18356 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18358 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18360 2002-01-06 Jakub Jelinek <jakub@redhat.com>
18362 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18363 __objc_class_name_*.
18365 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18367 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18369 2002-01-06 Richard Henderson <rth@redhat.com>
18371 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18372 nop them out. Increment label reference count for REG_LABEL.
18373 (fill_slots_from_thread): Frob label reference count around
18374 delete_related_insns.
18376 2002-01-05 Richard Henderson <rth@redhat.com>
18378 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18381 2002-01-05 Richard Henderson <rth@redhat.com>
18383 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18384 * integrate.c (output_inline_function): Likewise.
18385 * toplev.c (rest_of_compilation): Do it here instead. Move call
18386 to remove_unnecessary_notes after emitting abstract instance.
18387 Force an emitted nested function to have its parent emited as well.
18388 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18390 (rtl_for_decl_location): Do not look at reload data structures
18391 before reload has run.
18393 2002-01-05 Kazu Hirata <kazu@hxi.com>
18395 * cse.c: Fix formatting.
18396 * dwarf2asm.c: Likewise.
18397 * dwarf2out.c: Likewise.
18398 * explow.c: Likewise.
18399 * expmed.c: Likewise.
18400 * function.c: Likewise.
18401 * gcov.c: Likewise.
18402 * gencheck.c: Likewise.
18403 * genrecog.c: Likewise.
18404 * ggc-common.c: Likewise.
18405 * ggc-page.c: Likewise.
18406 * global.c: Likewise.
18408 2002-01-05 Kazu Hirata <kazu@hxi.com>
18410 * combine.c: Fix formatting.
18412 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18415 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18417 2002-01-05 David Edelsohn <edelsohn@gnu.org>
18419 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18420 as 1 for __powerpc64__ as well.
18422 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18424 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18427 2002-01-05 Daniel Berlin <dan@dberlin.org>
18429 * lcm.c: Revert change, due to performance regression it causes on
18430 SPEC because it's slightly more conservative (sigh, I hate
18433 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18435 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18437 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18439 * doc/cppinternals.texi: Update.
18441 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18443 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18444 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18446 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18447 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18448 kludge for pre-october-14th mmix versions to handle new-found bug
18449 with PUSHJ/PUSHGO and the register stack.
18450 * config/mmix/mmix.h (struct machine_function): Rename member
18451 has_call_value_without_parameters to has_call_without_parameters.
18452 All referers changed.
18453 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18454 TARGET_MASK_BRANCH_PREDICT): New macros.
18455 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18456 -mno-reg-stack-fill-bug-workaround.
18457 * config/mmix/mmix.md ("call"): Set struct machine member
18458 has_call_without_parameters.
18460 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18462 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18464 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18466 * cfgcleanup.c: Include tm_p.h
18467 (mark_effect): Fix handling of hard register; fix handling of SET
18469 2002-01-04 Kazu Hirata <kazu@hxi.com>
18471 * config/h8300/h8300.md (anonymous patterns): Check that
18472 operands are registers before using REGNO on them.
18474 2002-01-03 Roland McGrath <roland@frob.com>
18476 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18478 2002-01-04 Jakub Jelinek <jakub@redhat.com>
18480 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18481 * c-common.h (genrtl_expr_stmt_value): Likewise.
18482 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18483 (expand_expr_stmt_value): Add maybe_last argument.
18484 Don't warn about statement with no effect if it is the last statement
18485 in expression statement.
18486 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18487 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18488 expand_expr_stmt_value.
18489 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18490 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18491 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18492 as maybe_last to expand_expr_stmt_value.
18494 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18496 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18497 be passed in, do not build it.
18498 (c_begin_if_stmt): New function.
18499 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18500 * c-common.h (c_expand_start_cond): Update prototype.
18501 (c_begin_if_stmt): Prototype new function.
18502 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18503 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18504 c_begin_while_stmt and c_finish_while_stmt_cond.
18506 2002-01-04 William Cohen <wcohen@redhat.com>
18508 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18509 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18510 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18511 * config/pa/som.h (ASM_FILE_START): Likewise.
18513 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
18515 * lcm.c: Include df.h.
18516 Add available_transfer_function prototype.
18517 (compute_available): Rework to use iterative dataflow framework.
18518 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18519 with bb_info in df.h
18520 (available_transfer_function): New function.
18522 * Makefile.in (lcm.o): add df.h to dependencies.
18524 2002-01-04 Richard Henderson <rth@redhat.com>
18526 * config/alpha/alpha.c (some_operand): Accept HIGH.
18527 (input_operand): Likewise; accept simple references to globals.
18528 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18529 (alpha_const_double_ok_for_letter_p): Likewise.
18530 (alpha_extra_constraint): Likewise.
18531 (alpha_preferred_reload_class): Likewise. Do not force
18532 symbolic constants to memory.
18533 (alpha_legitimate_address_p): Accept simple references
18534 to small_symbolic_operand.
18535 (alpha_legitimize_address): New arg scratch. Be prepared to be
18536 called when no_new_pseudos. Emit simple symbolic references.
18537 Split integers into low, high, and rest.
18538 (alpha_expand_mov): Use alpha_legitimize_address.
18539 (some_small_symbolic_mem_operand): New.
18540 (split_small_symbolic_mem_operand): New.
18541 * config/alpha/alpha-protos.h: Update.
18542 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18543 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18544 (EXTRA_CONSTRAINT): Likewise.
18545 (PREFERRED_RELOAD_CLASS): Likewise.
18546 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18547 (PREDICATE_CODES): Update.
18548 * config/alpha/alpha.md: New post-reload splitters to convert
18549 simplfied symbolic operands to the form that references $29.
18550 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18551 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18553 2002-01-03 Richard Henderson <rth@redhat.com>
18555 * local-alloc.c (function_invariant_p): Update commentary.
18557 2002-01-04 H.J. Lu <hjl@gnu.org>
18559 * toplev.c (rest_of_compilation): Fix a typo when calling
18562 2002-01-03 Kazu Hirata <kazu@hxi.com>
18564 * c-common.c: Fix formatting.
18565 * diagnostic.c: Likewise.
18566 * doloop.c: Likewise.
18567 * dwarf2out.c: Likewise.
18569 2002-01-03 Kazu Hirata <kazu@hxi.com>
18571 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18572 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18574 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18576 * cpperror.c: Update comments and copyright.
18577 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18578 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18580 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18582 * collect2.c (main): Use strcmp when testing for "-shared".
18584 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18586 * cppmacro.c: Don't include intl.h. Update comments.
18587 (new_number_token): Allocate enough buffer for 64-bit unsigned
18588 integers; update prototype.
18589 * cppmain.c: Update comments.
18591 2002-01-03 William Cohen <wcohen@redhat.com>
18593 * function.h (struct function): Add profile.
18594 (current_function_profile): New.
18595 doc/extend.texi: Update documentation.
18596 * final.c (final_start_function): Use current_function_profile
18597 instead of profile_flag.
18598 (profile_after_prologue): Likewise.
18599 * function.c (expand_function_start): Likewise.
18600 (expand_function_start): Likewise.
18601 * config/alpha/alpha.c (direct_call_operand):
18602 (alpha_does_function_need_gp): Likewise.
18603 (alpha_expand_prologue): Likewise.
18604 * config/arm/arm.c (arm_expand_prologue): Likewise.
18605 thumb_expand_prologue: Likewise.
18606 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18607 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18608 (fr30_expand_prologue): Likewise.
18609 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18610 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18611 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18612 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18613 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18614 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18615 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18616 (m32r_expand_prologue): Likewise.
18617 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18618 (m88k_expand_prologue): Likewise.
18619 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18620 * config/mips/mips.c (compute_frame_size): Likewise.
18621 (mips_expand_prologue): Likewise.
18622 (mips_can_use_return_insn): Likewise.
18623 * config/pa/elf.h (ASM_FILE_START): Likewise.
18624 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18625 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18626 * config/pa/som.h (ASM_FILE_START): Likewise.
18627 * config/romp/romp.c (romp_using_r14): Likewise.
18628 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18629 (rs6000_stack_info): Likewise.
18630 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18631 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
18632 * config/v850/v850.c (compute_register_save_size): Likewise.
18634 2002-01-03 Jakub Jelinek <jakub@redhat.com>
18636 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18637 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18639 2002-01-03 Turly O'Connor <turly@apple.com>
18641 * darwin.c (machopic_output_possible_stub_label): Don't generate
18642 stub routines for pseudo-stubs which we've just defined.
18644 2002-01-03 Kazu Hirata <kazu@hxi.com>
18646 * builtins.c: Fix formatting.
18647 * c-typeck.c: Likewise.
18648 * combine.c: Likewise.
18649 * expr.c: Likewise.
18650 * loop.c: Likewise.
18652 2002-01-03 Andreas Schwab <schwab@suse.de>
18654 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18655 and return true if _cpp_push_next_buffer pushed a new include
18657 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18658 _cpp_pop_file_buffer did not push a new file.
18659 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18661 2002-01-02 Eric Christopher <echristo@redhat.com>
18663 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18664 FIND_REG_INC_NOTE call. Update copyright.
18665 * loop.c (canonicalize_condition): Ditto.
18666 * reorg.c (delete_scheduled_jump): Ditto.
18668 2002-01-03 Kazu Hirata <kazu@hxi.com>
18670 * gcse.c: Fix formatting.
18672 2002-01-03 Graham Stott <grahams@redhat.com>
18674 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18675 forward defs for struct tags rtx_def, union_tree, rtvec_def
18676 also output corresponding typedefs for rtx, tree, and rtvec.
18678 * system.h: Move forward defs for struct tags rtx_def, union_tree,
18679 rtvec_def along with corresponding typedefs for rtx, tree, and
18680 rtvec to config.h, hconfig.h, tconfig.h.
18682 2002-01-03 Graham Stott <grahams@redhat.com>
18684 * tree.h: Update copyright date.
18685 (IS_EXPR_CODE_CLASS): Add parenthesis.
18686 (TREE_SET_CODE): Add whitespace.
18687 (TREE_CHECK): Add parenthesis.
18688 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18689 (CST_OR_CONSTRUCTOR_CHECK):
18690 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18691 (TREE_SYMBOL_REFERENCED): Whitespace.
18692 (INT_CST_LT): Likewise.
18693 (INT_CST_LT_UNSIGNED): Likewise.
18694 (tree_real_cst): Unwrap comment.
18695 (tree_string): Likewise.
18696 (tree_complex): Likewise.
18697 (IDENTIFIER_POINTER): correct cast.
18698 (SAVE_EXPR_CONTEXT): Whitespace.
18699 (EXPR_WFL_FILENAME_NODE): Likewise.
18700 (EXPR_WFL_FILENAME): Remove parenthesis.
18701 (DECL_ORIGIN): Add parenthesis.
18702 (DECL_FROM_INLINE): Use NULL_TREE.
18703 (build_int_2): Whitespace.
18704 (build_type_variant): Add parenthesis.
18706 * gcc/jcf-parse.c: Update copyright date.
18707 (yyparse): Constify resource_filename.
18709 2002-01-03 Graham Stott <grahams@redhat.com>
18711 * rtl.h: Update copyright date.
18712 (RTL_CHECK1): Wrap long line.
18713 (RTL_CHECK2): Likewise.
18714 (RTL_CHECKC1): Wrap long line and whitespace.
18715 (RTL_CHECKC2): Likewise.
18716 (XWINT): Whitespace.
18722 (XBITMAP): Likewise.
18724 (XBBDEF): Likewise.
18726 (X0WINT): Likewise.
18728 (X0UINT): Likewise.
18732 (X0MODE): Likewise.
18733 (X0BITMAP): Likewise.
18734 (X0TREE): Likewise.
18735 (X0BBDEF): Likewise.
18736 (X0ADVFLAGS): Likewise.
18737 (X0CSELIB): Likewise.
18738 (X0MEMATTR): Likewise.
18739 (XCWINT): Likewise.
18741 (XCUINT): Likewise.
18745 (XCMODE): Likewise.
18746 (XCBITMAP): Likewise.
18747 (XCTREE): Likewise.
18748 (XCBBDEF): Likewise.
18749 (XCADVFLAGS): Likewise.
18750 (XCCSELIB): Likewise.
18751 (XC2EXP): Likewise.
18752 (INSN_UID): Likewise.
18753 (PREV_INSN): Likewise.
18754 (PATTERN): Likewise.
18755 (INSN_CODE): Likewise.
18756 (PUT_REG_NOTE_KIND): Likewise.
18757 (CODE_LABEL_NUMBER): Likewise.
18758 (NOTE_SOURCE_FILE): Likewise.
18759 (NOTE_BLOCK): Likewise.
18760 (NOTE_EH_HANDLER): Likewise.
18761 (NOTE_RANGE_INFO): Likewise.
18762 (NOTE_LIVE_INFO): Likewise.
18763 (NOTE_BASIC_BLOCK): Likewise.
18764 (NOTE_EXPECTED_VALUE): Likewise.
18765 (NOTE_LINE_NUMBER): Likewise.
18766 (LABEL_NAME): Likewise.
18767 (LABEL_NUSES): Likewise.
18768 (LABEL_ALTERNATE_NAME): Likewise.
18769 (ADDRESSOF_DECL): Likewise.
18770 (JUMP_LABEL): Likewise.
18771 (LABEL_NEXTREF): Likewise.
18773 (ORIGINAL_REGNO: Likewise.
18774 (HARD_REGISTER_NUM_P): Add parenthesis.
18775 (SUBREG_REG): Whitespace.
18776 (SUBREG_BYTE): Likewise.
18777 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18778 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18779 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18780 (ASM_OPERANDS_INPUT_VEC): Likewise.
18781 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18782 (ASM_OPERANDS_INPUT): Likewise.
18783 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18784 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18785 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18786 (ASM_OPERANDS_INPUT_MODE): Likewise.
18787 (ASM_OPERANDS_SOURCE_FILE): Likewise.
18788 (ASM_OPERANDS_SOURCE_LINE): Likewise.
18789 (MEM_SET_IN_STRUCT_P): Minor reformat.
18790 (TRAP_CONDITION): Whitespace.
18791 (TRAP_CODE): Likewise.
18792 (COND_EXEC_TEST): Likewise.
18793 (COND_EXEC_CODE): Likewise.
18794 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18795 (PHI_NODE_P): Add parenthesis.
18796 (plus_constant): Whitespace and add parenthesis.
18798 2002-01-03 Kazu Hirata <kazu@hxi.com>
18800 * config/avr/avr.c: Fix comment typos.
18801 * config/c4x/c4x.md: Likewise.
18802 * config/dsp16xx/dsp16xx.h: Likewise.
18803 * config/dsp16xx/dsp16xx.md: Likewise.
18804 * config/i386/i386.md: Likewise.
18805 * config/ia64/ia64.c: Likewise.
18806 * config/m32r/m32r.h: Likewise.
18807 * config/m68hc11/m68hc11.md: Likewise.
18808 * config/mmix/mmix.c: Likewise.
18809 * config/mn10200/mn10200.c: Likewise.
18810 * config/romp/romp.c: Likewise.
18811 * config/sh/sh.c: Likewise.
18812 * config/stormy16/stormy16.c: Likewise.
18813 * config/stormy16/stormy16.h: Likewise.
18814 * config/stormy16/stormy16.md: Likewise.
18816 2002-01-03 Graham Stott <grahams@redhat.com>
18818 * loop.h: Update copyright date.
18819 (LOOP_MOVABLES): Fix typo.
18820 (LOOP_REGS): Likewise.
18821 (LOOP_IVS): Likewise.
18823 2002-01-03 Graham Stott <grahams@redhat.com>
18825 * cppinit.c: Update copyright date.
18826 Don't include output.h
18827 * Makefile.in: Update copyright date.
18830 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
18833 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
18834 (-pthread) Add to RS/6000 options.
18836 2002-01-02 Kazu Hirata <kazu@hxi.com>
18838 * except.c: Fix comment typos.
18839 * loop.c: Likewise.
18840 * varasm.c: Likewise.
18841 * doc/tm.texi: Fix a typo.
18843 2002-01-02 Jakub Jelinek <jakub@redhat.com>
18845 * c-typeck.c (output_init_element): Allow initializing static storage
18846 duration objects with compound literals.
18848 2002-01-02 Richard Henderson <rth@redhat.com>
18850 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
18853 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18855 * gcc.c (default_compilers): Const-ify.
18856 * mips-tdump.c (stab_names): Likewise.
18857 * mips-tfile.c (map_coff_types, map_coff_storage,
18858 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
18859 pseudo_ops_t, pseudo_ops): Likewise.
18860 * protoize.c (default_include): Likewise
18862 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
18863 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
18864 Add array size in declaration.
18865 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
18866 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
18867 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
18868 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
18869 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
18870 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
18871 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
18872 emtens, make_nan): Const-ify.
18873 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
18874 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
18876 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
18878 * config.gcc (ia64-*-*): Set extra_headers.
18879 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
18880 * config/alpha/t-osf: Remove.
18881 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
18883 2002-01-02 David Edelsohn <edelsohn@gnu.org>
18885 * config/rs6000/t-aix43: Revert previous change.
18887 2002-01-02 Jason Merrill <jason@redhat.com>
18889 * c-decl.c (c_expand_body): Call outlining_inline_function when
18890 emitting an inline function out of line.
18892 2002-01-02 Richard Henderson <rth@redhat.com>
18894 * dwarf2out.c (limbo_die_node): Add created_for member.
18895 (new_die): New argument created_for. Update all callers.
18896 (mark_limbo_die_list): New.
18897 (dwarf2out_init): Register limbo_die_list as a root.
18898 (dwarf2out_finish): Force insert limbo dies into their function
18901 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
18904 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
18906 2002-01-02 Kazu Hirata <kazu@hxi.com>
18908 * config/h8300/fixunssfsi.c: Update copyright.
18911 * config/h8300/h8300.c: Update copyright.
18912 Eliminate warnings.
18914 2002-01-02 Kazu Hirata <kazu@hxi.com>
18916 * config/romp/romp.c: Fix comment formatting.
18917 * config/romp/romp.h: Likewise.
18918 * config/romp/romp.md: Likewise.
18919 * config/s390/s390.c: Likewise.
18920 * config/stormy16/stormy16.c: Likewise.
18921 * config/stormy16/stormy16.h: Likewise.
18923 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
18925 * c-common.h (genrtl_expr_stmt_value): Declare.
18926 * c-semantics.c (genrtl_goto_stmt): Redirect to...
18927 (genrtl_goto_stmt_value): ... this new function. Pass new
18928 argument down to expand_expr_stmt_value, taking
18929 TREE_ADDRESSABLE into account.
18930 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
18931 STMT_EXPR as addressable, i.e., one whose result we want.
18932 * expr.c (expand_expr): Don't save expression statement value
18933 of labeled_blocks or loop_exprs.
18934 * stmt.c (expand_expr_stmt): Redirect to...
18935 (expand_expr_stmt_value): ... this new function. Use new
18936 argument to tell whether to save expression value.
18937 (expand_end_stmt_expr): Reset last_expr_type and
18938 last_expr_value if we don't have either.
18939 * tree-inline.c (declare_return_variable): Mark its use
18940 statement as addressable.
18941 * tree.h: Document new use of TREE_ADDRESSABLE.
18942 (expand_expr_stmt_value): Declare.
18944 2002-01-01 Tom Rix <trix@redhat.com>
18946 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
18947 rs6000_emit_allocate_stack.
18949 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
18951 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
18952 ${srcdir}/ginclude/ to every entry in extra_headers.
18953 * configure: Regenerate.
18954 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
18955 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
18956 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
18957 * ginclude/proto.h: Rename to config/convex/proto.h.
18959 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18961 * attribs.c (handle_vector_size_attribute): Use host_integerp
18962 and tree_int_cst; remove warnings.
18963 * caller-save.c (insert_restore): Add cast to get rid of warning.
18964 (insert_save): Likewise.
18965 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
18966 * regmove.c (find_matches): Add temporary var to kill a warning.
18968 2002-01-01 Douglas B Rupp <rupp@gnat.com>
18970 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
18971 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
18972 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
18973 (vms-dwarf2eh.o): Add Makefile rule.
18974 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
18975 * config/alpha/vms-dwarf2eh.asm: New file.
18977 * gcc.c (delete_if_ordinary): Delete all versions.
18979 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
18981 * config/mmix/mmix.md: Update FIXME to not mention
18983 (MMIX_rJ_REGNUM): New define_constants constant.
18984 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
18985 "*movdicc_real"): Adjust contraints formatting.
18986 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
18987 for branch prediction.
18988 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
18990 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
18991 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
18992 number. Delete related FIXMEs.
18993 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
18994 from number to MMIX_rJ_REGNUM.
18995 (TARGET_MASK_BRANCH_PREDICT): New.
18996 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
18997 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
18998 value. Add -mbranch-predict and -mno-branch-predict.
18999 (TARGET_VERSION): Drop date.
19000 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19001 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19002 for finding out global symbols.
19003 (mmix_asm_output_labelref): Revert condition for global symbol.
19004 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19005 (mmix_print_operand_punct_valid_p): A '+' is valid.
19007 See ChangeLog.6 for earlier changes.