1 2002-02-20 Diego Novillo <dnovillo@redhat.com>
3 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4 operations if the field does not start at a mode boundary.
6 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
10 Also done for -Acpu and -Amachine.
12 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
14 * cppinit.c (init_dependency_output): Take deps output file
15 from -o if none given with -MF. Suppress normal output.
16 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17 * doc/cpp.texi, doc/invoke.texi: Update.
19 2002-02-19 Zack Weinberg <zack@codesourcery.com>
21 * toplev.c (output_quoted_string): Write unprintable
22 characters with octal escapes.
24 2002-02-19 David Edelsohn <edelsohn@gnu.org>
26 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
27 really_call_used[VRSAVE_REGNO] if not Altivec.
29 2002-02-19 Alan Modra <amodra@bigpond.net.au>
31 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
33 (constant_pool_expr_1): Fix formatting.
34 (rs6000_legitimize_reload_address): Likewise.
36 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
41 2002-02-19 Zack Weinberg <zack@codesourcery.com>
43 * tree.h (struct tree_common): Remove aux. Add unused_0 at
44 end of first block of bitfields (which was only seven bits);
45 rename dummy to unused_1; remove comment which is no longer true.
47 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
49 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
51 2002-02-19 Philip Blundell <pb@nexus.co.uk>
54 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
58 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
59 arm_is_longcall_p rather than inspecting call-type cookie
61 (call_value_insn) [TARGET_THUMB]: Likewise.
63 2002-02-19 Graham Stott <grahams@redhat.com>
65 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
67 2002-02-19 David Edelsohn <edelsohn@gnu.org>
69 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
70 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
71 (FP_SAVE_INLINE): Delete.
73 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
74 * config/rs6000/eabi.asm: Remove ABI save restore routines.
75 * config/rs6000/t-ppccomm: Build crtsavres.o.
76 * config/rs6000/crtsavres.asm: New file.
78 2002-02-19 Philip Blundell <philb@gnu.org>
80 * config/arm/arm.c (use_return_insn): Don't reject interrupt
82 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
83 (output_return_instruction): Allow interrupt functions to return with
84 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
85 (arm_expand_prologue): Subtract 4 before stacking LR in an
88 2002-02-19 Philip Blundell <pb@nexus.co.uk>
90 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
91 decl, not just FUNCTION_DECL.
92 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
93 (arm_assemble_integer): Likewise.
94 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
97 2002-02-19 matthew green <mrg@eterna.com.au>
99 * config.gcc (sparc-*-netbsdelf*): Enable target.
100 (sparc64-*-netbsd*): New target.
101 * config/sparc/netbsd-elf.h: New file.
102 * config/sparc/t-netbsd64: New file.
104 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
106 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
108 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
110 * doc/invoke.texi: explicitly list the style guidelines that
113 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
115 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
117 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
120 * gcc.c (cpp_unique_options): Treat -o as indicating object file
121 only if not -E. If -E, pass -o through to the preprocessor.
123 2002-02-19 Kazu Hirata <kazu@hxi.com>
125 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
126 register number with an appropriate macro.
128 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
130 * doc/rtl.texi (Constants): Close @code tag.
132 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
134 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
135 ("mmx_uavgv4hi3"): Same.
136 ("pmulhrwv4hi3"): Same.
138 * tree-inline.c (walk_tree): Handle vectors.
140 * c-common.c (constant_expression_warning): Handle vectors.
141 (overflow_warning): Same.
143 * sched-deps.c (sched_analyze_2): Handle vectors.
145 * rtlanal.c (rtx_unstable_p): Handle vectors.
146 (rtx_varies_p): Same.
147 (count_occurrences): Same.
148 (regs_set_between_p): Same.
149 (modified_between_p): Same.
150 (modified_in_p): Same.
151 (volatile_insn_p): Same.
152 (volatile_refs_p): Same.
153 (side_effects_p): Same.
155 (inequality_comparisons_p): Same.
156 (replace_regs): Same.
157 (computed_jump_p_1): Same.
159 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
161 (inner_mode_array): New.
162 (copy_rtx): Handle vectors.
163 (copy_most_rtx): Same.
165 (get_mode_alignment): Adjust for vectors.
167 * resource.c (mark_referenced_resources): Handle vectors.
168 (mark_set_resources): Same.
170 * reload1.c (eliminate_regs): Handle vectors.
171 (elimination_effects): Same.
172 (scan_paradoxical_subregs): Same.
174 * reload.c (subst_reg_equivs): Handle vectors.
176 * regrename.c (scan_rtx): Handle vectors.
178 * regclass.c (reg_scan_mark_refs): Handle vectors.
180 * recog.c (find_single_use_1): Handle vectors.
182 * local-alloc.c (equiv_init_varies_p): Handle vectors.
183 (contains_replace_regs): Same.
184 (memref_referenced_p): Same.
186 * integrate.c (copy_rtx_and_substitute): Handle vectors.
187 (subst_constants): Same.
189 * genattrtab.c (attr_copy_rtx): Handle vectors.
190 (encode_units_mask): Same.
191 (clear_struct_flag): Same.
192 (count_sub_rtxs): Same.
194 * gcse.c (want_to_gcse_p): Handle vectors.
195 (oprs_unchanged_p): Same.
197 (oprs_not_set_p): Same.
198 (expr_killed_p): Same.
199 (compute_transp): Same.
200 (store_ops_ok): Same.
202 * function.c (purge_addressof_1): Do not allow paradoxical subregs
204 (fixup_var_refs_1): Same.
205 (instantiate_virtual_regs_1): Same.
207 * fold-const.c (operand_equal_p): Handle vectors.
209 (rtl_expr_nonnegative_p): Same.
211 * flow.c (mark_used_regs): Handle vectors.
213 * df.c (df_uses_record): Handle vectors.
215 * cselib.c (cselib_subst_to_values): Handle vectors.
216 (cselib_mem_conflict_p): Same.
219 * cse.c (canon_reg): Handle vectors.
221 (cse_process_notes): Same.
222 (count_reg_usage): Same.
225 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
227 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
229 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
230 (gen_rtx): Handle CONST_VECTOR.
231 (gen_const_vector_0): New.
232 (copy_rtx_if_shared): CONST_VECTORs can be shared.
233 (reset_used_flags): Same.
235 (initializer_constant_valid_p): Handle VECTOR_CST.
237 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
239 * doc/rtl.texi (Constants): Document const_vector.
240 (CONST0_RTX): Update for vectors.
243 * print-tree.c (print_node): Add case for VECTOR_CST.
245 * tree.h (TREE_VECTOR_CST_ELTS): New.
246 (struct tree_vector): New.
247 (union tree_node): Add vector node.
248 (build_vector): Add prototype.
250 * tree.def (VECTOR_CST): New.
252 * tree.c (build_vector): New.
254 * expmed.c (make_tree): Handle CONST_VECTOR.
256 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
257 (CONST_VECTOR_ELT): New.
258 (CONST_VECTOR_NUNITS): New.
260 * machmode.h (GET_MODE_INNER): New.
261 (DEF_MACHMODE): Accept 8th arg.
263 * machmode.def: Add 8th argument for vector inner mode.
264 Add inner vector modes for vectors.
266 * rtl.def (VEC_CONST): Remove.
269 * expr.c (clear_storage): Allow vectors.
270 (is_zeros_p): Handle VECTOR_CST.
272 * varasm.c (output_constant_pool): Handle vectors.
273 (rtx_const): Add veclo and vechi fields.
274 (kind): Add RTX_VECTOR.
275 (decode_rtx_const): Add case for vector.
277 * config/rs6000/rs6000-protos.h: Add zero_constant.
279 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
280 constants. Force easy vector constants into memory.
281 (easy_vector_constant): New.
282 (emit_easy_vector_constant): New.
283 (rs6000_legitimize_reload_address): Do not generate bad reloads on
286 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
288 ("altivec_lvxl"): Same.
289 (altivec_lvebx): Same.
290 (altivec_lvehx): Same.
291 (altivec_lvewx): Same.
292 ("*movv4si_const0"): New.
293 ("*movv4sf_const0"): New.
294 ("*movv8hi_const0"): New.
295 ("*movv16qi_const0"): New.
297 2002-02-18 Kazu Hirata <kazu@hxi.com>
299 * config/h8300/h8300.c (notice_update_cc): Use
302 2002-02-18 Kazu Hirata <kazu@hxi.com>
304 * config/h8300/h8300.md (divmod patterns): Change the
305 constraints for operands[1] to register_operand.
307 2002-02-18 Kazu Hirata <kazu@hxi.com>
309 * config/h8300/h8300-protos.h: Remove the prototype for
311 * config/h8300/h8300.c (p_operand): Remove.
312 * config/h8300/h8300.md: Replace p_operand with
315 2002-02-18 Philip Blundell <pb@nexus.co.uk>
317 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
319 (output_return_instruction): Allow use of LDR to unstack
320 return addresss even for interrupt handlers or when
321 interworking. If compiling for ARMv5, use interworking-safe
322 return instructions by default. Remove duplicated code and
323 lengthy "strcat" sequences.
325 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
327 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
328 (LINK_EH_SPEC): Define.
329 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
331 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
333 * config/s390/s390.c (s390_emit_prologue): Do not set the
334 frame_related flag for call-clobbered registers.
336 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
338 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
339 (construct_container): Fix handling of SSE operands.
340 (ix86_expand_builtin): Fix handling of 64bit pointers.
341 (mmx_maskmovq_rex): New pattern.
343 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
345 * regrename.c (kill_set_value): Handle subregs properly.
347 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
349 * objc/objc-act.c (handle_impent): Remove leading '*'
350 from objc_class_name.
352 2002-02-17 Richard Henderson <rth@redhat.com>
354 * config/alpha/alpha.c (some_small_symbolic_operand,
355 some_small_symbolic_operand_1, split_small_symbolic_operand,
356 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
357 Handle small SYMBOL_REFs anywhere, not just inside memories.
358 * config/alpha/alpha-protos.h: Update.
359 * config/alpha/alpha.h (PREDICATE_CODES): Update.
360 * config/alpha/alpha.md (small symbolic operand splitter): Update.
362 2002-02-17 Roland McGrath <roland@frob.com>
364 * config.gcc (powerpc-*-gnu-gnualtivec*,
365 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
366 * config/rs6000/gnu.h: New file.
367 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
368 Grok "gnu" in rs6000_abi_name.
369 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
370 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
371 Grok -mcall-gnu analogous to -mcall-linux et al.
372 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
373 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
374 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
376 2002-02-17 Jakub Jelinek <jakub@redhat.com>
379 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
382 2002-02-17 Philipp Thomas <pthomas@suse.de>
384 * config/cris/cris.h: Undefine STARTFILE_SPEC and
385 ENDFILE_SPEC before (re)defining them.
387 2002-02-17 Kazu Hirata <kazu@hxi.com>
389 * config/h8300/h8300.c: Fix formatting.
390 * config/h8300/h8300.h: Likewise.
392 2002-02-17 Philipp Thomas <pthomas@suse.de>
394 * doc/tm.texi: Explain why empty strings should not be
395 marked for translation.
397 2002-02-17 Philipp Thomas <pthomas@suse.de>
399 * final.c (output_operand_lossage): Changed to accept
400 printf style arguments. Change calls where necessary.
401 * output.h (output_operand_lossage): Change declaration
402 accordingly. Update copyright.
403 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
404 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
405 Update copyright date where necessary.
407 * config/i386/i386.c (print_operand): Likewise. Remove use of
410 * config/cris/cris.c (cris_operand_lossage): Likewise.
411 Rename parameter so that exgettext recognizes it as
412 translatable message.
413 (LOSE_AND_RETURN): Rename parameter to msgid.
415 2002-02-17 Kazu Hirata <kazu@hxi.com>
417 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
418 hard coded register number with an appropriate macro.
419 (HARD_REGNO_MODE_OK): Likewise.
420 (ARG_POINTER_REGNUM): Likewise.
421 (STATIC_CHAIN_REGNUM): Likewise.
422 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
423 * config/h8300/h8300.md (define_constants): Define more
426 2002-02-17 Philipp Thomas <pthomas@suse.de>
428 * config/i386/i386.h: Don't mark empty strings for translation.
430 2002-02-16 H.J. Lu <hjl@gnu.org>
432 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
434 2002-02-16 Zack Weinberg <zack@codesourcery.com>
436 * cppinit.c (merge_include_chains): Check for brack being
437 NULL before attempting to merge it with qtail.
439 2002-02-16 Andrew Cagney <ac131313@redhat.com>
441 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
444 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
446 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
448 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
450 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
451 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
452 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
454 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
456 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
457 now only if !TARGET_FIX.
458 (*movsi_nt_vms_fix): New pattern.
460 2002-02-16 Douglas B Rupp <rupp@gnat.com>
462 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
463 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
464 (alpha_sa_mask, alpha_sa_size): Reflect above change.
465 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
466 (alpha_start_function, alpha_expand_epilogue): Likewise.
467 (unicosmk_gen_dsib): Likewise.
469 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
471 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
473 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
475 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
476 check_and_change_labels, s390_final_chunkify): Delete.
477 (s390_split_branches, s390_chunkify_pool): New functions.
478 (s390_function_prologue): Call them.
480 * config/s390/s390.h (S390_REL_MAX): Delete.
481 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
483 * config/s390/s390.md (cjump, icjump, jump): Fix length
484 attribute calculation.
487 2002-02-15 David Edelsohn <edelsohn@gnu.org>
489 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
490 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
492 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
494 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
495 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
496 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
498 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
500 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
502 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
504 * reload.c (find_dummy_reload): Check that an output register
505 is valid for its mode.
507 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
509 * combine.c (known_cond): After replacing the REG of a SUBREG, try
512 * function.c (assign_parms): Demote promoted argument passed by
513 transparent reference.
515 2001-02-14 Joel Sherrill <joel@OARcorp.com>
517 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
518 -Acpu() and -Amachine() to eliminate warnings.
520 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
522 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
524 2002-02-14 Kazu Hirata <kazu@hxi.com>
526 * config/h8300/h8300-protos.h: Update the prototype for
528 * config/h8300/h8300.c (const_costs): Treat SET as a little
529 more expensive operation.
530 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
531 reference to const_costs.
533 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
535 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
537 2002-02-14 Jakub Jelinek <jakub@redhat.com>
540 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
541 use arguments from newtype.
543 2002-02-13 Eric Christopher <echristo@redhat.com>
545 * config/mips/mips.c (override_options): Add check for march/mipsX
546 on the same command line. Fix error message in cpu processing.
547 Remove architecture and ISA checks.
549 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
551 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
553 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
555 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
557 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
559 ("*movv8hi_internal1"): Same.
560 ("*movv16qi_internal1"): Same.
561 ("*movv4sf_internal1"): Same.
563 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
564 not push_reload for altivec modes.
566 2002-02-13 Joel Sherrill <joel@OARcorp.com>
568 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
569 all RTEMS targets including removal of #includes from config/*/rtems*.h
570 file and adding them to tm_file setting. Added xm_defines=POSIX to
572 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
573 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
574 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
575 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
576 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
577 config/m68k/rtemself.h: Ditto.
578 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
579 config/mips/rtems64.h: Ditto.
580 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
581 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
583 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
584 config/sparc/rtemself.h: Ditto.
585 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
586 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
587 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
589 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
590 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
591 target made more similar to i386-elf.
592 * config/i386/t-rtems-i386: Added soft float support and multilibs.
593 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
594 be similar to config/m68k/t-m68kelf.
595 * gthr-rtems.h: Encapsulate with extern "C" for C++.
597 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
599 * regmove.c (kill_value): Handle subregs.
601 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
603 * i386.md (mul patterns): Allow memory operand to be first;
604 add expanders where needed; fix constraints.
605 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
606 Allow memory operand to be the first.
608 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
611 2002-02-13 Jakub Jelinek <jakub@redhat.com>
614 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
617 2002-02-13 Jakub Jelinek <jakub@redhat.com>
619 PR optimization/5547:
620 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
621 all valid IA-32 address modes involving non-scaled %ebx and
622 GOT/GOTOFF as displacement.
624 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
626 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
627 after emitting ltorg insns.
629 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
630 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
631 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
632 *abssf2): Fix "op_type" attribute.
634 2002-02-13 Douglas B Rupp <rupp@gnat.com>
636 * mkconfig.sh: Avoid using a subshell redirect.
637 ($output.T): Change to $(output)T.
638 (ENABLE_NLS): Remove unneeded undef.
640 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
641 * config/alpha/x-vms (libsubdir): Define.
643 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
644 register frame procedures. Optimize retrieving context.
646 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
647 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
648 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
650 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
652 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
653 Make same change as for find_base_value.
655 2002-02-13 Kazu Hirata <kazu@hxi.com>
657 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
658 of QImode and SImode.
660 2002-02-13 Kazu Hirata <kazu@hxi.com>
662 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
663 length computation of movsi.
664 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
666 2002-02-13 Kazu Hirata <kazu@hxi.com>
668 * config/h8300/h8300.md (subqi3): Tighten the predicate for
669 operands[2] to register_operand.
671 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
673 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
675 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
677 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
678 for altivec_lvx* and altivec_stvx*.
679 ("*movv4si_internal"): Add constraint for loading from GPRs.
680 ("*movv8hi_internal1"): Same.
681 ("*movv16qi_internal1"): Same.
682 ("*movv4sf_internal1"): Same.
684 * config/rs6000/rs6000.c (altivec_register_operand): New.
686 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
687 altivec_register_operand.
689 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
691 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
694 2002-02-13 Stan Shebs <shebs@apple.com>
696 * c-typeck.c (digest_init): Handle vectors.
697 (really_start_incremental_init): Same.
698 (pop_init_level): Same.
699 (process_init_element): Same.
701 * varasm.c (output_constant): Same.
703 * expr.c (clear_storage): Same.
704 (store_constructor): Same.
706 2002-02-12 Eric Christopher <echristo@redhat.com>
708 * explow.c (hard_function_value): Add comment explaining
709 signed/unsigned comparison.
711 2002-02-12 Jakub Jelinek <jakub@redhat.com>
713 * jump.c (never_reached_warning): Add finish argument.
714 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
716 * rtl.h (never_reached_warning): Adjust prototype.
717 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
718 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
719 never_reached_warning.
721 2002-02-12 Graham Stott <grahams@redhat.com>
723 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
725 2002-02-12 Kazu Hirata <kazu@hxi.com>
727 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
728 logical shifts on H8/300.
729 (shift_alg_si): Improve several shifts on H8/300.
730 (get_shift_alg): Likewise.
732 2002-02-12 Graham Stott <grahams@redhat.com>
734 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
736 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
738 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
739 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
741 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
743 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
744 non-CONST_INT through default_assemble_integer.
745 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
746 <case 8>: Abort for CONST_DOUBLE.
748 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
750 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
752 * config/pa/pa-linux.h (LIB_SPEC): Delete.
753 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
755 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
757 * config/stormy16/stormy16.md (zero_extendqihi2): New.
759 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
761 * regrename.c (regrename_optimize): Don't accept a
762 part-clobbered register if the replaced register is not part
765 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
766 take padding into account when computing the argument value.
768 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
770 * combine.c (try_combine): Apply substitutions in
771 CALL_INSN_FUNCTION_USAGE too.
773 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
775 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
776 __builtin_altivec_abs*.
779 * config/rs6000/rs6000.h (rs6000_builtins): Add
780 ALTIVEC_BUILTIN_ABS*.
782 * config/rs6000/altivec.h: Use const char for builtins expecting
784 (vec_abs): New versions for C and C++.
787 2002-02-10 Kazu Hirata <kazu@hxi.com>
789 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
792 2002-02-10 Kazu Hirata <kazu@hxi.com>
794 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
795 constant definition from h8300.md.
796 (FRAME_POINTER_REGNUM): Likewise.
797 * config/h8300/h8300.md (define_constants): Add FP_REG.
799 2002-02-10 Kazu Hirata <kazu@hxi.com>
801 * config/h8300/h8300.c (print_operand): Remove redundant code.
803 2002-02-10 Kazu Hirata <kazu@hxi.com>
805 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
806 * config/h8300/h8300.c (byte_reg): Make it static.
808 2002-02-10 Richard Henderson <rth@redhat.com>
811 * c-typeck.c (incomplete_type_error): Handle flexible array members.
813 2002-02-10 Richard Henderson <rth@redhat.com>
816 * tree.c (append_random_chars): Don't abort if main_input_filename
819 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
821 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
823 2002-02-10 Kazu Hirata <kazu@hxi.com>
825 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
828 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
830 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
831 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
833 2002-02-09 David O'Brien <obrien@FreeBSD.org>
835 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
837 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
839 2002-02-09 Kazu Hirata <kazu@hxi.com>
841 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
842 a half of an SImode register on H8/300.
844 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
846 * i386.md (movdi_2): Add missing '!'.
848 2002-02-09 Kazu Hirata <kazu@hxi.com>
850 * config/h8300/h8300.h: Fix formatting. Remove commented-out
853 2002-02-09 Kazu Hirata <kazu@hxi.com>
855 * config/h8300/h8300.md (length): Correct the distance valid
856 for the short branch.
858 2002-02-09 Kazu Hirata <kazu@hxi.com>
860 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
862 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
864 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
866 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
869 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
873 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
874 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
875 (sh_cannot_modify_jumps_p): New function.
876 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
877 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
878 (sh_ms_bitfield_layout_p): New function.
879 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
880 Zack Weinberg <zack@codesourcery.com>
881 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
882 expand_simple_binop instead of expand_binop.
883 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
884 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
885 use of .quad and .uaquad.
886 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
887 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
888 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
889 * config/sh/sh.md (movdi_const, movdi_const_32bit,
890 movdi_const_16bit): Make sure all CONSTs have modes.
891 (sym2PIC): Ditto, but by adjusting all callers.
892 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
893 if the prologue calls the SHmedia argument decoder or register
895 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
896 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
897 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
898 (sh_expand_epilogue): Don't emit USE of return target register.
899 (prepare_move_operands): Legitimize DImode PIC addresses.
900 (sh_media_register_for_return): Skip tr0, used to initialize the
902 (sh_expand_prologue): Remove explicit USE of return register.
903 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
904 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
905 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
906 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
907 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
909 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
910 (MOVI_SHORI_BASE_OPERAND_P): New.
911 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
912 (EXTRA_CONSTRAINT_T): Define in terms of them.
913 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
914 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
915 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
916 alternatives supporting TARGET_REGS.
917 (UNSPEC_GOTPLT): New constant.
918 (movdi split): Move incrementing of LABEL_NUSES...
919 (movdi_const, movdi_const_32bit): Here. Use
920 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
921 (movdi_const_16bit): New.
922 (call, call_value) [flag_pic]: Use GOTPLT.
923 (call_pop, call_value_pop): New expands.
924 (call_pop_compact, call_pop_rettramp): New insns.
925 (call_value_pop_compact, call_value_pop_rettramp): New insns.
926 (sibcall) [flag_pic]: Use GOT.
927 (builtint_setjmp_receiver): Remove bogus, unused expand.
928 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
929 (*pt, *ptb, ptrel): New insns.
930 (sym2GOT): Handle DImode GOT.
931 (sym2GOTPLT, symGOTPLT2reg): New expands.
932 (sym2PIC): New expand.
933 (shcompact_return_tramp): Use GOTPLT to return trampoline.
934 (shcompact_return_tramp_i): Use return register explicitly.
935 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
936 disable flag_reorder_blocks.
937 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
938 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
939 clobbers, for clarity.
940 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
941 restoring of r0 in macl as MAYBE_DEAD.
942 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
943 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
944 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
945 alter_subreg all over.
946 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
947 reload, instead of emitting instructions that would require
949 (casesi_load_media): Add missing modes.
950 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
951 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
952 as used if the argument decoder is called.
953 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
954 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
955 Pmode, then extend it to DImode if necessary.
956 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
957 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
958 constants in FPU-enabled SHmedia, let them be loaded from memory.
959 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
960 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
961 Adjust whitespace in assembly output templates.
962 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
963 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
964 mode of if_then_else.
965 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
966 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
968 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
969 Joern Rennecke <amylaar@redhat.com>
970 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
971 (SUBTARGET_CPP_PTR_SPEC): New.
972 (SUBTARGET_CPP_SPEC): Remove.
973 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
974 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
975 Fix typo in previous checkin.
976 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
977 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
978 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
979 Alexandre Oliva <aoliva@redhat.com>
980 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
981 what single FP register can hold for SHmedia target.
982 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
983 Alexandre Oliva <aoliva@redhat.com>
984 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
985 Do not split into SUBREG.
986 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
987 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
988 and added new functions as specified in SH5 ABI r9.
989 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
990 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
992 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
993 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
994 gen_consttable_4 and gen_consttable_8. Emit multiple labels
995 and consttable_window_ends.
996 2001-06-03 Graham Stott <grahams@redhat,com>
997 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
998 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
999 * config/sh/sh.c (print_operand): Handle floating-point pair,
1000 vector and matrix registers.
1001 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1002 vector modes into account.
1003 * config/sh/sh.md (movv2sf): Split move between registers into
1005 (movv4sf, movv16sf): Introduce insns that get split only after
1007 * config/sh/shmedia.h: Fix Copyright dates.
1008 * config/sh/ushmedia.h: Likewise. Move loop counter
1009 declarations into conditionals that uses them.
1010 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1012 * config/sh/sshmedia.h: Fix Copyright dates.
1013 (sh_media_PUTCFG): Fix constraints.
1014 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1015 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1016 ptrmemfunc_vbit_in_delta for SH5.
1017 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1018 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1019 * invoke.texi: Likewise.
1020 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1021 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1022 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1023 GCC_pop_shmedia_regs_nofpu): New global symbols.
1024 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1025 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1026 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1027 compact function with nonlocal labels.
1028 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1029 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1030 (initial_elimination_offset): Account for their stack space.
1031 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1032 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1033 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1034 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1035 least one of the operands to be a register.
1036 (movv2sf): Likewise. Renamed to movv2sf_i.
1037 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1038 prepare_move_operands() before emitting SHmedia insns.
1039 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1040 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1041 Don't save nor initialize r12. Don't mis-align the stack.
1042 Pad the code with a nop.
1043 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1045 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1046 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1047 [__SHMEDIA__]: Implement.
1048 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1049 * config/sh/sh.md: Set latency of `pt' closer to reality.
1050 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1051 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1052 Set move, load and store type attributes.
1053 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1054 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1056 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1057 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1058 * config/sh/sh.c (sh_media_register_for_return): New function.
1059 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1060 branch-target register.
1061 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1062 * config/sh/sh.md (return_media_i): Use any call-clobbered
1063 branch-target register.
1064 (return_media): If r18 wasn't copied in the prologue, copy it
1066 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1067 Clear class FP0_REGS.
1068 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1070 2001-03-08 DJ Delorie <dj@redhat.com>
1071 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1072 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1073 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1074 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1075 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1076 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1077 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1078 return value correctly for call_cookie.
1079 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1080 * config/sh/crt1.asm (start): Modified so as to call
1081 ___setup_argv_and_call_main.
1082 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1083 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1085 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1086 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1087 (STRIP_NAME_ENCODING): Use it.
1088 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1089 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1090 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1091 prepare_scc_operands().
1092 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1093 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1094 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1095 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1096 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1097 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1098 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1099 used in shcompact_incoming_args.
1100 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1102 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1104 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1106 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1107 Simplify. Adjust. Add sanity check.
1108 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1110 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1112 (udivsi3, divsi3): Use them.
1113 (force_mode_for_call): New insn.
1114 (call, call_value, sibcall_value): Emit it before SHcompact
1116 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1117 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1118 call cookie is non-NULL before taking its value.
1119 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1120 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1121 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1122 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1124 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1125 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1126 temporary for stack adjusts. Use MACL and MACH to pass
1127 arguments to shcompact_incoming_args.
1128 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1130 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1131 (nested_trampoline): Load static chain address into r1.
1132 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1133 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1134 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1135 fp_arith_reg_operand().
1136 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1137 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1138 and use signed compares for them.
1139 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1140 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1141 ones properly aligned.
1142 (find_barrier): Account for extra alignment needed for 8-byte wide
1144 (machine_dependent_reorg): Require a label for the second 4-byte
1145 constant after an 8-byte one.
1146 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1148 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1149 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1150 last_float when switching float modes.
1151 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1152 auto-increment for general-purpose registers.
1153 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1155 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1157 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1158 registers for varargs.
1159 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1160 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1161 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1162 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1163 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1164 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1165 call_cookie accordingly.
1166 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1167 (SHCOMPACT_BYREF): Likewise.
1168 (SHCOMPACT_FORCE_ON_STACK): New macro.
1169 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1170 (sh_builtin_saveregs): Likewise.
1171 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1172 shcompact_incoming_args): Use new shift values. Support
1173 sequences of consecutive and non-consecutive pushes/pops.
1174 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1175 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1176 * config/sh/sh.h (TEXT_SECTION): Define.
1177 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1178 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1179 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1180 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1181 return values on FPU-enabled SHmedia.
1182 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1183 FPU-enabled SHmedia.
1184 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1185 value is returned in a non-FP reg and is not returned by
1187 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1189 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1190 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1191 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1192 quad-aligned to be passed by callee-copy reference.
1193 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1194 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1195 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1196 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1197 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1198 copying low-numbered FP regs to r7 and r8.
1199 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1200 FP regs to general-purpose regs only if the copy was passed on the
1202 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1203 copying FP reg to r9.
1204 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1205 copy FP regs to general-purpose regs only in outgoing calls.
1206 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1207 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1209 * config/sh/sh.h (struct sh_args): Document all fields.
1210 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1211 passed partially on the stack should not consider making
1213 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1214 stack_regs only for incoming calls. When passing FP args,
1215 make sure there are FP regs available before modifying
1217 (SHCOMPACT_BYREF): Pass double args in general-purpose
1218 registers by reference.
1219 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1220 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1221 attempt to generate sibcalls if the caller got any arguments
1223 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1224 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1225 to 8-byte boundaries.
1226 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1227 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1228 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1229 stored in the stack.
1230 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1231 for the offsets to have the ISA bit set.
1232 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1233 invocation. Use beq instead of bgt to mark end of sequence of
1235 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1236 bgt to mark end of sequence of stores.
1237 * config/sh/sh.c (arith_operand): Don't check whether
1238 CONST_OK_FOR_J for now.
1239 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1240 instead of long for conversion.
1241 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1242 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1243 before passing it to fprintf.
1244 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1245 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1246 Call set_fpscr before reading/writing SR.
1247 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1249 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1251 (FMOVD_WORKS): Define on SH5 with FPU.
1252 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1254 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1256 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1257 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1259 (ia_main_table): Ditto.
1260 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1261 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1262 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1263 the definitions from sh.h.
1264 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1266 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1267 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1268 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1269 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1270 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1271 Increment LABEL_NUSES.
1273 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1275 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1277 * config/sh/elf.h (SIZE_TYPE): Likewise.
1278 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1279 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1280 shcompact_incoming_args): Load switch table addresses using
1282 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1283 (NO_BUILTIN_SIZE_TYPE): Define.
1284 (SIZE_TYPE): Don't define.
1285 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1286 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1287 definition of __SH5__=32 for -m5-compact-nofpu.
1288 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1290 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1291 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1292 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1293 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1294 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1295 (INSN_LENGTH_ALIGNMENT): Likewise.
1296 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1297 * config/sh/sh.md (call, call_value, sibcall): Simplify
1298 copying of non-branch-target register.
1299 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1300 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1301 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1302 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1303 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1304 floating-point values as structs.
1305 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1306 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1307 general-purpose register.
1308 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1309 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1310 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1311 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1312 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1313 (ENCODE_SECTION_INFO): Enclose variables and constants in
1315 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1316 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1317 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1318 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1319 only for LABEL_REFs. For SYMBOL_REFs, prepend
1320 SH_DATALABEL_ENCODING to the symbol name.
1321 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1323 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1324 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1326 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1327 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1328 (DATALABEL_REF_P): Don't require CONST.
1329 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1331 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1332 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1334 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1335 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1336 Use shallow_copy_rtx and PUT_MODE to change the mode of
1337 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1338 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1339 on SHmedia using GENERAL_REGs.
1340 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1341 bltu_media_i): Fix reversion of conditions.
1342 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1343 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1344 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1345 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1346 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1347 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1348 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1349 (GCC_nested_trampoline): Likewise.
1350 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1351 * config/sh/sh.c (gen_datalabel_ref): Define.
1352 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1353 (INITIALIZE_TRAMPOLINE): Likewise.
1354 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1355 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1356 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1357 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1358 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1359 (ic_invalidate): Adjust for SH5.
1360 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1361 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1363 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1364 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1365 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1366 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1367 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1368 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1369 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1370 * config/sh/sh.c (target_reg_operand): Match only target-branch
1371 registers and pseudos that aren't virtual registers.
1372 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1373 Copy operands that don't match target_reg_operand to pseudos.
1374 (call_media, call_value_media, sibcall_media): Use
1375 target_reg_operand instead of target_operand.
1376 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1377 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1378 * config/sh/sh.c (target_reg_operand): Match hardware registers
1379 other than branch-target registers.
1380 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1381 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1382 (fpscr_values) [SH5 == 32]: Define.
1383 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1384 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1385 Handle function addresses coming in SUBREGs.
1386 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1387 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1388 shcompact_return_trampoline): Use datalabel where appropriate.
1389 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1390 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1391 general-purpose register to copy one branch-target register to
1393 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1394 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1395 SYMBOL_REFs with VOIDmode.
1396 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1397 bltu_media_i): New insns.
1398 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1399 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1400 (INIT_CUMULATIVE_ARGS): Likewise.
1401 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1402 * machmode.def (V16SFmode): New mode.
1403 * c-common.c (type_for_mode): Support V2SF and V16SF.
1404 * tree.c (build_common_tree_nodes_2): Likewise.
1405 * tree.h (tree_index): Likewise.
1406 * calls.c (emit_call_1): Take args_so_far. Adjust all
1407 callers. Introduce CALL_POPS_ARGS.
1408 * tm.texi (CALL_POPS_ARGS): Document.
1409 * config/sh/crt1.asm: Implement in SHmedia mode.
1410 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1411 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1412 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1413 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1414 Implement divsi and udivsi in SHmedia mode. Introduce
1415 SHcompact trampolines.
1416 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1418 (regno_reg_class): Rewrite.
1419 (fp_reg_names): Remove.
1420 (sh_register_names, sh_additional_register_names): New.
1421 (print_operand): Added `u'. Support SUBREGs in addresses.
1422 Add parentheses around shifted CONSTs.
1423 (output_file_start): Output .mode and .abi directives.
1424 (shiftcosts, addsubcosts, multcosts): Adjust.
1425 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1426 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1427 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1428 bytes, not registers. Take into account the need for the
1429 SHcompact incoming args trampoline. Adjust all callers.
1430 (sh_expand_prologue): Take stack_regs into account. Call
1431 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1432 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1433 stack aligned as per SH5 ABI.
1434 (sh_builtin_saveregs): Support SH5 ABI.
1435 (sh_build_va_list, sh_va_start): Likewise.
1436 (initial_elimination_offset): Take alignment into account.
1437 Compute location of PR according to the SH5 stack frame.
1438 (arith_reg_operand): Reject branch-target registers.
1439 (shmedia_6bit_operand): New.
1440 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1441 (target_reg_operand): Match DImode only. Accept SUBREGs.
1442 (target_operand): New.
1443 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1444 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1445 SIBCALL_REGS for SHmedia.
1446 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1447 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1448 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1449 (TARGET_SWITCHES): New SH5 flags.
1450 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1451 VALID_REGISTER_P to disable unsupported registers.
1452 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1453 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1454 (FUNCTION_ARG_PADDING): Define.
1455 (FASTEST_ALIGNMENT): Adjust.
1456 (SH_REGISTER_NAMES_INITIALIZER): New.
1457 (sh_register_names): Declare.
1458 (DEBUG_REGISTER_NAMES): Define.
1459 (REGISTER_NAMES): Define based on sh_register_names.
1460 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1461 (sh_additional_register_names): Declare.
1462 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1463 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1464 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1465 (REGISTER_NATURAL_MODE): Define.
1466 (FIRST_PSEUDO_REGISTER): Adjust.
1467 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1468 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1469 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1470 (VECTOR_MODE_SUPPORTED_P): Define.
1471 (REG_CLASS_CONTENTS): Adjust.
1472 (SMALL_REGISTER_CLASSES): Adjust.
1473 (REG_ALLOC_ORDER): Adjust.
1474 (INDEX_REG_CLASS): Adjust.
1475 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1476 (CONST_OK_FOR_LETTER_P): Adjust.
1477 (PREFERRED_RELOAD_CLASS): Adjust.
1478 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1479 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1480 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1481 (FIRST_FP_PARM_REG): Adjust.
1482 (CALL_POPS_ARGS): Define.
1483 (FUNCTION_ARG_REGNO_P): Adjust.
1484 (struct sh_args): New fields.
1485 (GET_SH_ARG_CLASS): Adjust.
1486 (INIT_CUMULATIVE_ARGS): Adjust.
1487 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1488 (FUNCTION_ARG_ADVANCE): Adjust.
1489 (FUNCTION_ARG): Adjust.
1490 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1491 (FUNCTION_ARG_CALLEE_COPIES): Define.
1492 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1493 (STRICT_ARGUMENT_NAMING): Define.
1494 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1495 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1496 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1497 (SETUP_INCOMING_VARARGS): Adjust.
1498 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1499 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1500 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1501 (SUBREG_OK_FOR_INDEX_P): Adjust.
1502 (EXTRA_CONSTRAINT_S): Update.
1503 (EXTRA_CONSTRAINT_T): New.
1504 (EXTRA_CONSTRAINT): Adjust.
1505 (GO_IF_LEGITIMATE_INDEX): Adjust.
1506 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1507 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1509 (MAX_MOVE_MAX): Define.
1511 (CONST_COSTS): Adjust.
1512 (REGISTER_MOVE_COST): Adjust.
1513 (BRANCH_COST): Adjust.
1514 (TEXT_SECTION_ASM_OP): Adjust.
1515 (DBX_REGISTER_NUMBER): Adjust.
1516 (ASM_OUTPUT_DOUBLE_INT): New.
1517 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1518 (PREDICATE_CODES): Adjust.
1519 (PROMOTE_MODE): Adjust.
1520 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1521 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1522 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1523 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1524 (DR0_REG, DR2_REG, DR4_REG): Renumber.
1525 (TR0_REG, TR1_REG, TR2_REG): New.
1526 (XD0_REG): Renumber.
1527 (UNSPEC_COMPACT_ARGS): New.
1528 (type): Added pt and ptabs.
1529 (length): Default to 4 on SHmedia. Default pt length to 12
1530 and 20 on SHmedia32 and SHmedia64, respectively.
1531 (pt): New function unit.
1532 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
1533 Add whitespace between operands of SHmedia instructions.
1535 (adddi3_media, addsi3_media): Adjust constraints.
1536 (subsi3) [SHmedia]: Force operand 1 into a register.
1537 (udivsi3_i1_media, udivsi3_i4_media): New.
1538 (udivsi3): Support SHmedia.
1539 (divsi3_i1_media, divsi3_i4_media): New.
1540 (divsi3): Support SHmedia.
1541 (anddi3, iordi3, xordi3): Adjust constraints.
1542 (zero_extendhidi2, zero_extendqidi2): New.
1543 (extendsidi2, extendhidi2, extendqidi2): New.
1544 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1545 (pop_e, pop_fpul, pop_4): Likewise.
1546 (movsi_media): Support FP and BT registers.
1547 (movsi_media_nofpu): New. Adjust splits to DImode.
1548 (lduw, ldub): Renamed to zero_extend* above.
1549 (movqi_media): Fix typo.
1550 (movdi_media): Support FP and BT registers.
1551 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
1552 (movdi_const_32bit): New.
1553 (shori_media): Require immediate operand. Use `u' for output.
1554 (movdf_media, movsf_media): Simplified.
1555 (movdf_media_nofpu, movsf_media_nofpu): New.
1556 (movdf, movsf): Adjust
1557 (movv2sf, movv2sf, movv16sf): New.
1558 (beq_media, beq_media_i): Adjust constraints. Don't use
1559 scratch BT register.
1560 (bne_media, bne_media_i): Likewise.
1561 (bgt_media, bgt_media_i): Likewise.
1562 (bge_media, bge_media_i): Likewise.
1563 (bgtu_media, bgtu_media_i): Likewise.
1564 (bgeu_media, bgeu_media_i): Likewise.
1565 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
1566 bunordered): Emit jump insn. Force operands to registers when
1568 (jump_media, jump): Simplify.
1569 (call_compact, call_compact_rettramp): New.
1570 (call_value_compact, call_value_compact_rettramp): New.
1571 (call_media, call_value_media): Simplify.
1572 (sibcall_compact, sibcall_media): New.
1573 (call, call_value): Adjust for SHmedia and SHcompact.
1574 (sibcall, sibcall_value, untyped_call): Likewise.
1575 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
1576 (indirect_jump): Adjust for SHmedia.
1577 (casesi_jump_media): New.
1578 (nop): Re-enable for SHmedia.
1579 (call_site): Restrict to SH1.
1580 (casesi): Adjust for SHmedia.
1581 (casesi_shift_media, casesi_load_media): New.
1582 (return): Explicitly use PR register. Call return trampoline
1584 (return_i): Explicitly use PR register.
1585 (shcompact_return_tramp, shcompact_return_tramp_i): New.
1586 (return_media): Adjust.
1587 (shcompact_incoming_args): New.
1589 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1590 (movstrsi): Disable on SH5.
1591 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
1592 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
1593 (subsf3, subsf3_media): Likewise.
1594 (mulsf3, mulsf3_media, mac_media): Likewise.
1595 (divsf3, divsf3_media): Likewise.
1596 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
1597 (floatsisf2, fux_truncsfsi2): Likewise.
1598 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
1600 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
1601 (cmpunsf_media, cmpsf): Likewise.
1602 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
1603 (abssf2, abssf2_media): Likewise.
1604 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
1605 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
1606 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
1607 (floatsidf2, fix_truncdfsi2): Likewise.
1608 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
1610 (cmpeqdf_media, cmpgtdf_media): Likewise.
1611 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
1612 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
1613 (absdf2, absdf2_media): Likewise.
1614 (extendsfdf2, extendsfdf2_media): Likewise.
1615 (truncsfdf2, truncsfdf2_media): Likewise.
1616 * config/sh/sh64.h: New file.
1617 * config/sh/t-sh64: New file.
1618 * config/sh/shmedia.h: New file.
1619 * config/sh/ushmedia.h: New file.
1620 * config/sh/sshmedia.h: New file.
1621 * configure.in: Added sh64-*-elf.
1622 * configure: Rebuilt.
1623 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
1624 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
1625 (reg_class_from_letter): Use `b' for TARGET_REGS.
1626 (print_operand): Support `%M', `%m', `AND' and
1627 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
1628 (andcosts): Adjust for SHmedia.
1629 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
1631 (target_reg_operand): New function.
1632 * config/sh/sh-protos.h (target_reg_operand): Declare.
1633 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
1634 FP registers on SH5.
1635 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
1637 (TARGET_REGISTER_P): New macro.
1638 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
1639 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
1640 (EXTRA_CONSTRAINT_S): New macro.
1641 (EXTRA_CONSTRAINT): Adjust.
1642 (FLOAT_TYPE_SIZE): Define to 32.
1643 (Pmode): DImode on SHmedia.
1644 (CONST_COSTS): Adjust for SHmedia literals.
1645 (PREDICATE_CODES): Added target_reg_operand.
1646 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
1647 * config/sh/sh.md: Remove all attrs from SHmedia insns.
1648 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
1649 (cmpdi): Accept SHmedia.
1650 (movdicc_false, movdicc_true): New insns.
1651 (movdicc): New expand.
1652 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
1654 (addsi3_media): Match `S' constraint.
1655 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
1656 (negdi2): Expand for SHmedia.
1657 (one_cmpldi2): New expand.
1658 (zero_extendsidi2): Change from expand to insn.
1659 (extendsidi2): Add constraints.
1660 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
1661 LD/ST address. Fix SI immediate loading split.
1662 (movhi_media, movqi_media, lduw, ldub): New insns.
1663 (movhi, movqi): Accept SHmedia.
1664 (shori_media, movdi_media): Relax input constraints. Split
1666 (movdf_media, movsf_media): New insn. New split to movdi.
1667 (movdf, movsf): Match on SHmedia.
1668 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
1669 bgeu_media): New insns and splits. New insns with `_i' suffix.
1670 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
1671 (bunordered): New expand.
1672 (jump_compact): Renamed from `jump'.
1673 (jump_media): New insn.
1675 (call_media, call_value_media): New insns.
1676 (call, call_value): Adjust.
1677 (indirect_jump_compact): Renamed from `indirect_jump'.
1678 (indirect_jump_media): New insn.
1679 (indirect_jump): New expand.
1680 (untyped_call, return): Accept SHmedia.
1681 (return_media): New insn.
1682 (prologue, epilogue, blockage): Accept SHmedia.
1683 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1684 (sunordered): New expand.
1685 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
1686 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
1687 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
1688 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
1689 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
1690 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
1691 abssf2_media): New insns.
1692 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
1693 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
1694 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
1695 floatdidf2, floatsidf2_media, fix_truncdfdi2,
1696 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
1697 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
1698 absdf2_media): New insns.
1699 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
1700 (extendsfdf2_media, truncdfsf2_media): New insns.
1701 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1702 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
1703 * config/sh/sh.h (CONST_OK_FOR_J): Document.
1704 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
1705 * config/sh/sh.md (adddi3): New expand.
1706 (adddi3_media, adddi3z_media): New insns.
1707 (adddi3_compact): Renamed from adddi3.
1708 (addsi3_media): Use add.l r63 to add constant zero.
1709 (subdi3): New expand.
1710 (subdi3_media): New insn.
1711 (subdi3_compact): Renamed from subdi3.
1712 (mulsidi3): New expand.
1713 (mulsidi3_media): New insn.
1714 (mulsidi3_compact): Renamed from mulsidi3.
1715 (umulsidi3): New expand.
1716 (umulsidi3_media): New insn.
1717 (umulsidi3_compact): Renamed from umulsidi3.
1718 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
1719 (ashlsi3, ashrsi3, lshrsi3): Use them.
1720 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
1721 (ashldi3, ashrdi3, lshrdi3): Use them.
1722 (zero_extendsidi2): New expand.
1723 (extendsidi2): New insn.
1724 (movsi_media): New insn. Split to movdi to load constants.
1725 (movsi): Enable for shmedia.
1726 (movdi_media): New insn. Use shori_media to load wide constants.
1727 (short_media): New insn.
1728 (movdi): Enable for shmedia.
1729 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
1730 * config/sh/sh.h (CPP_SPEC): Added `m5'.
1731 (SUBTARGET_CPP_SPEC): Added `!m5'.
1732 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
1733 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
1734 to all other SH variants.
1735 (TARGET_DEFAULT): Set to SH1_BIT.
1736 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
1737 (BITS_PER_WORD): Raise to 64 on shmedia.
1738 (MAX_BITS_PER_WORD): Change to 64.
1739 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
1740 (INT_TYPE_SIZE): Keep as 32.
1741 (UNITS_PER_WORD): Raise to 8 on shmedia.
1742 (MIN_UNITS_PER_WORD): Keep as 4.
1743 (POINTER_SIZE): Raise to 64 on shmedia.
1744 (CONST_OK_FOR_J): New macro.
1745 (CONST_OK_FOR_LETTER_P): Use it.
1746 (processor_type): Add PROCESSOR_SH5.
1747 * config/sh/sh.md: Conditionalize all expands, insns and
1748 splits to TARGET_SH1.
1750 (addsi3_compact): Renamed from...
1751 (addsi3): Now an expand.
1752 (addsi3_media, subsi3_media): New insns.
1753 (subsi3): Don't negate constants with SHmedia.
1755 * hooks.c: New file.
1756 * hooks.h: New file.
1757 * Makefile.in (HOOKS_H): New.
1758 (TARGET_DEF_H): Added $(HOOKS_H).
1759 (OBJS): Added hooks.o.
1760 (cfgcleanup.o, bb-reorder.o): Added target.h.
1761 (hooks.o): Added dependencies.
1762 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
1763 (TARGET_INITIALIZER): this.
1764 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
1765 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
1766 * bb-reorder.c: Include target.h.
1767 (reorder_basic_blocks): Skip if cannot modify jumps.
1768 * cfgcleanup.c: Include target.h.
1769 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
1771 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1773 * config/mips/mips.md (casesi_internal, casesi_internal_di):
1774 Protect jump delay slot instructions with .set noreorder and
1777 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1779 * config/mips/mips.md (casesi_internal_di): Calculate
1780 the index into the target offset table correctly.
1782 2002-02-08 Richard Henderson <rth@redhat.com>
1784 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
1785 * final.c (output_addr_const): Accept and discard SUBREG.
1786 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
1787 mark them unknown instead.
1788 (simplify_subtraction): Handle RTX_UNKNOWN.
1789 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
1791 2002-02-08 David Edelsohn <edelsohn@gnu.org>
1793 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
1795 2002-02-08 Richard Henderson <rth@redhat.com>
1797 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
1799 2002-02-08 Andreas Jaeger <aj@suse.de>
1801 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
1802 * config/i386/t-linux64: New file.
1804 2002-02-08 Jakub Jelinek <jakub@redhat.com>
1806 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
1807 * c-parse.in (compstmt): Clear last_expr_type.
1809 2002-02-07 Richard Henderson <rth@redhat.com>
1811 * loop.c (strength_reduce): Sink final_value when not
1814 2002-02-07 David O'Brien <obrien@FreeBSD.org>
1816 * config/sparc/freebsd.h: Fix mismatched spec {.
1818 2002-02-07 Richard Henderson <rth@redhat.com>
1820 * cfgrtl.c: Include recog.h and insn-config.h.
1821 (keep_with_call_p): Fix general_operand invocation.
1822 * Makefile.in (cfgrtl.o): Update dependencies.
1824 2002-02-07 Kazu Hirata <kazu@hxi.com>
1826 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
1827 comment. Accept HImode only if TARGET_H8300.
1829 2002-02-07 Eric Christopher <echristo@redhat.com>
1831 * config/mips/crtn.asm: Cleanup #ifdefs.
1833 2002-02-07 Eric Christopher <echristo@redhat.com>
1835 * config/mips/crti.asm: Add changes for mips16. mips16 uses
1836 register 7 as RA instead of $31.
1837 * config/mips/crtn.asm: Ditto.
1838 * config/mips/mips.c (mips_move_2words): Add case for
1839 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
1840 (compute_frame_size): Fix typo.
1841 (save_restore_insns): Ditto. Make documentation about using
1842 register $7 as return register more precise.
1843 (mips_expand_epilogue): Fix comment. Add code to work around not
1844 being able to add to the stack pointer directly.
1845 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
1846 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
1849 2002-02-07 Tom Rix <trix@redhat.com>
1851 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
1852 immediates in ldu and stdu DS opcode field.
1853 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
1854 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
1855 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
1857 2002-02-07 Jeff Sturm <jsturm@one-point.com>
1859 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
1860 offset for stack bias.
1862 2002-02-07 H.J. Lu <hjl@gnu.org>
1864 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
1866 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
1868 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
1870 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
1872 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
1873 * i386.c (x86_order_regs_for_local_alloc): New global function.
1874 * i386.h (REG_ALLOC_ORDER): CLeanup.
1875 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
1877 2002-02-07 Richard Henderson <rth@redhat.com>
1879 PR optimization/2463
1880 * alias.c (find_base_value): Recall base values for fixed hard regs.
1881 * loop.c (loop_regs_update): Don't use single_set on non-insns.
1883 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
1885 * config/mips/mips.md (define_delay) [mips16]: Adjust required
1888 2002-02-06 Richard Henderson <rth@redhat.com>
1891 * stmt.c (resolve_operand_name_1): Take more care with mixed
1892 named and unnamed operands.
1894 2002-02-06 Janis Johnson <janis187@us.ibm.com>
1895 Jan Hubicka <jh@suse.cz>
1897 * loop.c (remove_constant_addition): Avoid clobbering a shared
1900 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
1902 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
1903 * config/s390/t-linux64: New file.
1904 * config/s390/libgcc-glibc.ver: New file.
1906 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
1908 * config/s390/linux64.h: Delete file.
1909 * config/s390/s390x.h: New file.
1910 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
1911 as target header file.
1912 * config/s390/linux.h (TARGET_VERSION): Define depending on
1913 DEFAULT_TARGET_64BIT.
1914 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
1915 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
1916 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
1917 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
1918 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
1919 (EXTRA_SPEC): New define.
1920 * config/s390/s390.h (TARGET_VERSION): Define depending on
1921 DEFAULT_TARGET_64BIT.
1922 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
1924 2002-02-06 Jason Merrill <jason@redhat.com>
1926 * c-decl.c (finish_function): Warn about a non-void function with
1927 no return statement and no abnormal exit.
1928 (current_function_returns_abnormally): New variable.
1929 (start_function): Clear it.
1930 (struct c_language_function): Add returns_abnormally.
1931 (push_c_function_context): Save it.
1932 (pop_c_function_context): Restore it.
1933 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
1934 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
1935 an explicit return type.
1936 * c-tree.h: Declare current_function_returns_abnormally.
1937 (C_FUNCTION_IMPLICIT_INT): New macro.
1938 * c-typeck.c (build_function_call): Set it.
1939 (c_expand_return): Set current_function_returns_value even if the
1942 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1945 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
1946 unsafe for reevaluation.
1948 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1951 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
1952 EXPR_STMT, but COMPOUND_STMT, recurse into it.
1954 2002-02-06 Richard Henderson <rth@redhat.com>
1956 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
1957 be a general_operand. Dest for function value must be a pseudo.
1959 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1961 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
1962 as SYMBOL_REFs from the constant pool.
1964 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1966 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
1967 passed by invisible reference.
1969 2002-02-05 Richard Henderson <rth@redhat.com>
1971 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
1973 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
1975 Implement using "base addresses" in insn operands as default.
1976 * config/mmix/mmix.c (mmix_conditional_register_usage): if
1977 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
1978 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
1979 used to read the rtx value.
1980 (mmix_target_asm_function_epilogue): Fix spacing.
1981 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
1982 (mmix_legitimate_address): Ditto.
1983 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
1984 should be loaded with a GETA insn. Don't allocate needless extra
1985 char for nul termination and fix misleading comment.
1986 (mmix_print_operand_address): Handle constants if
1987 TARGET_BASE_ADDRESSES.
1988 (mmix_output_register_setting): Use base addressing if
1989 TARGET_BASE_ADDRESSES and the number of insns is 3.
1990 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
1991 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
1992 to use R as constraint, add LDA to match s.
1993 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
1994 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
1995 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
1996 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
1997 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
1998 order with other fixed registers.
1999 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2000 other parameter/call-clobbered registers.
2001 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2002 -mbase-addresses, -mno-base-addresses.
2003 (MMIX Options): Ditto.
2005 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2007 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2009 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2011 * config/rs6000/altivec.h: Change elem to _S_elem.
2013 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2015 * config/netbsd.h (WCHAR_TYPE): Define.
2016 (WCHAR_TYPE_SIZE): Ditto.
2018 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2019 (WCHAR_UNSIGNED): Ditto.
2020 (WCHAR_TYPE_SIZE): Ditto.
2022 * config/arm/netbsd.h: Likewise.
2023 * config/i386/netbsd-elf.h: Likewise.
2024 * config/i386/netbsd.h: Likewise.
2025 * config/m68k/netbsd-elf.h: Likewise.
2026 * config/m68k/netbsd.h: Likewise.
2027 * config/ns32k/netbsd.h: Likewise.
2028 * config/sparc/netbsd.h: Likewise.
2029 * config/vax/netbsd.: Likewise.
2031 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2033 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2034 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2035 (TARGET_INITIALIZER): this.
2036 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2037 (BITFIELD_NBYTES_LIMITED): Markup fix.
2038 * tree.h (default_ms_bitfield_layout_p): Declare.
2039 (record_layout_info): Added prev_field.
2040 * tree.c (default_ms_bitfield_layout_p): New fn.
2041 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2042 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2043 * stor-layout.c: Include target.h.
2044 (start_record_layout): Initialize prev_field.
2045 (place_field): Handle MS bit-field layout, and disregard
2046 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2047 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2048 * Makefile.in (stor-layout.o): Adjust dependencies.
2050 2002-02-05 Jason Merrill <jason@redhat.com>
2052 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2054 2002-02-05 Andreas Jaeger <aj@suse.de>
2056 * crtstuff.c: Fix comments.
2058 2002-02-05 Richard Henderson <rth@redhat.com>
2061 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2062 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2065 * config/mips/mips.c (function_arg): Handle TImode.
2066 (function_arg_advance): Likewise.
2068 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2070 * config/rs6000/altivec.h (vec_step_help): Rename to
2073 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2075 * config/rs6000/altivec.h: Fix typos.
2077 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2079 * config/arm/netbsd.h: Correct a comment.
2081 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2083 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2084 building void typed builtins.
2086 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2087 (vec_step): Implement for C++.
2089 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2091 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2093 2002-02-04 Richard Henderson <rth@redhat.com>
2095 * combine.c (nonzero_bits): Re-introduce special case for
2096 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2098 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2100 * doc/extend.texi: Warn about unsupported usage of altivec
2103 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2104 (altivec_predicate_*): New.
2106 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2107 Add C++ version of vec_*() functions.
2109 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2110 (bdesc_2arg): Remove altivec predicates.
2111 (altivec_expand_builtin): Handle predicates.
2112 (altivec_init_builtins): Handle predicates.
2113 (altivec_expand_predicate_builtin): New.
2115 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2117 * pa.c (DO_FRAME_NOTES): Move forward.
2118 (store_reg): Revise handling of frame notes.
2119 (load_reg): Likewise.
2120 (set_reg_plus_d): Likewise.
2121 (hppa_expand_prologue): Likewise.
2122 (hppa_expand_epilogue): Likewise.
2124 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2126 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2128 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2130 PR c/4475, c++/3780:
2131 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2132 * c-common.h (SWITCH_TYPE): Define.
2133 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2134 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2135 Rename spareness variable to sparseness.
2136 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2137 if non-NULL instead of TREE_TYPE (orig_index).
2138 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2139 (expand_end_case): Define using expand_end_case_type.
2140 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2141 to expand_end_case_type.
2142 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2144 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2146 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2147 (BIGGEST_ALIGNMENT): Change to 128.
2149 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2151 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2153 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2155 * pa.md (call_internal_reg_64bit): Remove unused variable.
2157 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2159 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2161 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2162 * config/arm/arm.c (current_function_anonymous_args): Delete,
2163 replace uses with cfun->machine->uses_anonymous_args.
2164 (arm_reorg): Do not reset uses_anonymous_args.
2166 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2167 any geenral register.
2169 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2171 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2174 2002-02-04 Richard Henderson <rth@redhat.com>
2176 * combine.c (force_to_mode): Remove STACK_BIAS code.
2177 (nonzero_bits): Likewise. Replace sp/fp special case with
2178 REGNO_POINTER_ALIGN.
2180 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2181 (HARD_FRAME_POINTER_REGNUM): New.
2182 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2183 (FIXED_REGS, CALL_USED_REGS): Update.
2184 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2185 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2186 (HARD_REGNO_NREGS): Update for SFP.
2187 (STACK_POINTER_OFFSET): Include bias here ...
2188 (FIRST_PARM_OFFSET): ... not here.
2189 (STACK_BIAS): Remove.
2190 (INIT_EXPANDERS): New.
2191 (STARTING_FRAME_OFFSET): Do not include bias.
2192 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2193 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2194 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2195 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2196 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2197 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2198 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2199 (MUST_SAVE_REGISTER): Likewise.
2200 (sparc_flat_function_prologue): Likewise.
2201 (sparc_flat_function_epilogue): Likewise.
2202 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2203 (sparc_init_modes): SFP is GENERAL_REGS.
2204 (sparc_builtin_saveregs): SFP does not have bias applied.
2206 2002-02-04 Richard Henderson <rth@redhat.com>
2208 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2209 current_function_is_thunk.
2210 (alpha_sa_mask): Distinguish between current_function_is_thunk
2211 called from ASM_OUTPUT_MI_THUNK and not.
2212 (alpha_does_function_need_gp): Thunks always need gp.
2213 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2214 (alpha_output_mi_thunk_osf): New.
2215 * config/alpha/alpha-protos.h: Update.
2216 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2218 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2220 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2221 function types, not when they're taken away.
2223 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2225 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2226 CODE_LABEL and jump table when replacing a table jump with a
2229 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2231 * config/s390/s390-protos.h (legitimize_la_operand,
2232 s390_secondary_input_reload_class, s390_plus_operand,
2233 s390_expand_plus_operand): Add prototypes.
2235 config/s390/s390.c (s390_secondary_input_reload_class,
2236 s390_plus_operand, s390_expand_plus_operand): New functions.
2238 (struct s390_address): New member 'pointer'.
2239 (s390_decompose_address): Compute it.
2240 (legitimate_la_operand_p): Use it.
2241 (legitimize_la_operand): New function.
2242 (movti, movdi, movdf splitters): Call it.
2244 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2245 (PREDICATE_CODES): Add s390_plus_operand.
2247 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2248 (la_ccclobber): Allow GENERAL_REGS as output operand.
2250 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2251 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2252 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2254 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2256 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2257 register names for regular asm () construct.
2259 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2261 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2264 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2266 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2269 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2271 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2272 constant pool to be identical by string address and index.
2274 2002-02-04 Anthony Green <green@redhat.com>
2276 * output.h (SECTION_OVERRIDE): Define.
2277 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2279 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2281 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2282 by existing arm*-*-netbsd* (a.out) target.
2283 (ns32k-*-netbsdelf*): Likewise.
2284 (sparc-*-netbsdelf*): Likewise.
2285 (vax-*-netbsdelf*): Likewise.
2287 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2289 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2290 headers and libobjc headers.
2292 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2294 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2295 (_mingw.h): Remove duplicate include.
2297 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2299 * config.gcc: Set cpu_type to m68k for 68010, as well.
2300 (m68010-*-netbsdelf*): New...
2301 (m68k*-*-netbsdelf*): ...targets.
2302 * config/m68k/netbsd-elf.h: New file.
2304 2002-02-02 Kazu Hirata <kazu@hxi.com>
2306 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2308 2002-02-02 Kazu Hirata <kazu@hxi.com>
2310 * config/h8300/h8300.c (h8_push_ops): Move inside
2312 (h8_pop_ops): Likewise.
2313 (h8_move_ops): Likewise.
2315 2002-02-02 Kazu Hirata <kazu@hxi.com>
2317 * config/h8300/h8300.c (os_task): Make it static.
2318 (monitor): Likewise.
2319 (pragma_saveall): Likewise.
2321 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2323 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2324 constant is a valid sign-extension for Pmode.
2326 2002-02-02 Kazu Hirata <kazu@hxi.com>
2328 * config/h8300/h8300.c: Fix formatting.
2330 2002-02-02 Kazu Hirata <kazu@hxi.com>
2332 * config/h8300/h8300.md: Fix formatting.
2334 2002-02-02 Kazu Hirata <kazu@hxi.com>
2336 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2337 predicates of operands[1]. Split the patterns for each
2340 2002-02-02 Kazu Hirata <kazu@hxi.com>
2342 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2343 of operands[1] to register_operand.
2345 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2347 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2348 * cpphash.c (_cpp_init_hashtable): Similarly.
2349 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2350 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2351 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2352 (cpp_handle_option): Handle the new options.
2353 * cpplex.c (cpp_interpret_charconst): Use new flag.
2354 * cpplib.h (struct cpp_options): New member signed_char.
2355 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2356 (cpp_options): Handle -fsigned-char and -funsigned-char.
2357 (static_specs): Remove signed_char_spec.
2358 (do_spec1): Don't handle %c.
2359 * system.h: Poison SIGNED_CHAR_SPEC.
2360 * tradcif.y (yylex): Use flag_signed_char.
2361 * tradcpp.h (flag_signed_char): New.
2362 * tradcpp.c (flag_signed_char): New.
2363 (main): Handle new command-line options.
2364 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2366 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2367 * avr/avr.h: Remove old comments.
2368 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2369 (CC1_SPEC): Pass -fsigned-char if -mic*.
2370 (SIGNED_CHAR_SPEC): Remove.
2372 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2374 2002-02-01 Eric Christopher <echristo@redhat.com>
2376 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2377 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2378 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2379 (ASM_OUTPUT_REG_POP): Ditto.
2381 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2383 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2386 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2388 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2390 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2393 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2396 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2398 * cfganal.c: Include tm_p.h.
2399 (keep_with_call_p): Fix the test that determines if a register holds
2400 the return value of a call.
2402 2002-02-01 DJ Delorie <dj@redhat.com>
2404 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2405 we are given conflicting registers, switch to the other one we
2406 had allocated for us.
2407 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2408 as TImode so we know when the "other" register is available.
2410 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2412 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2415 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2417 * cfganal.c (keep_with_call_p): New function.
2418 (flow_call_edges_add): Prevent splitting a block between a call and
2419 a single-set instruction that should be kept in the same block.
2421 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2423 * doc/install.texi (avr): Update outdated URL.
2425 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2427 * config/stormy16/stormy16.md (pushqi): New.
2431 (movhi): Remove stack operands.
2433 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2434 nonimmediate_nonstack_operand.
2435 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2437 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2440 2002-01-31 Jason Merrill <jason@redhat.com>
2442 * Makefile.in (c-parse.c): Handle .output file.
2443 * objc/Make-lang.in (objc-parse.c): Likewise.
2445 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2447 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2448 the -me[lb] option is given. Don't output the default flag
2451 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2453 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2454 the primary source file; this has not been done yet.
2455 * c-decl.c (c_expand_body): Reset input_filename from
2456 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2458 2002-01-31 Kazu Hirata <kazu@hxi.com>
2460 * rtlanal.c (subreg_regno_offset): Do not use
2461 SUBREG_REGNO_OFFSET.
2462 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2463 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2465 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2467 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2468 version rather than GNATS version in --version output.
2470 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2472 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2473 when copying back from a temporary.
2475 2002-01-30 Richard Henderson <rth@redhat.com>
2477 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2478 and new_dest are the same.
2480 2002-01-30 Richard Henderson <rth@redhat.com>
2483 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2484 * rtl.c (note_insn_name): Update.
2485 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2486 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2487 to perform loop rotation.
2488 (expand_exit_loop_top_cond): New.
2489 * tree.h (expand_exit_loop_top_cond): Declare it.
2490 * c-semantics.c (genrtl_while_stmt): Use it.
2491 (genrtl_for_stmt): Likewise.
2493 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2495 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2496 arguments to 64-bit boundaries on 64-bit ABIs.
2498 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2500 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2502 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2504 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2507 2002-01-30 David O'Brien <obrien@FreeBSD.org>
2509 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2510 * config/sparc/sparc_bi.h: Remove file.
2511 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2513 2002-01-30 Richard Henderson <rth@redhat.com>
2515 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2517 2002-01-30 Zack Weinberg <zack@codesourcery.com>
2519 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2521 2002-01-30 Jason Merrill <jason@redhat.com>
2523 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2524 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2525 (reg_save): Use DW_CFA_offset_extended_sf instead.
2527 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2529 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2531 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2534 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
2536 * rs6000.md ("*call_value_local32"): Remove constraints.
2537 ("*call_value_local64"): Same.
2538 ("*call_value_indirect_nonlocal_aix32"): Same.
2539 ("*call_value_nonlocal_aix32"): Same.
2540 ("*call_value_indirect_nonlocal_aix64"): Same.
2541 ("*call_value_nonlocal_aix64"): Same.
2542 ("*call_value_nonlocal_sysv"): Same.
2544 2002-01-29 Richard Henderson <rth@redhat.com>
2546 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2548 2002-01-29 Richard Henderson <rth@redhat.com>
2550 * expr.c (force_operand): Ignore flag_pic for detecting pic
2552 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2553 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2554 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2555 instead of open-coded loop.
2556 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
2557 be fixed when in use.
2559 2002-01-29 Richard Henderson <rth@redhat.com>
2561 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
2562 * sched-rgn.c (propagate_deps): Update them.
2563 * sched-deps.c (sched_analyze_insn): Update them. Flush the
2564 clobbers list when either gets too long.
2566 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2568 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
2569 and INDEX_REGS the same as GENERAL_REGS.
2570 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2572 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2574 * tree.c (build_nonstandard_integer_type): Correct prototype.
2576 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
2578 * config/s390/s390.md (movstrsico, movstrdix_64,
2579 movstrsix_31): Remove, replace by ...
2580 (movstrdi_short, movstrsi_short, movstrdi_long,
2581 movstrsi_long): ... these. New.
2582 (movstrdi, movstrsi): Adapt.
2584 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
2585 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
2586 Remove unnecessary CC clobber.
2587 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
2588 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
2590 (divmoddi4): Don't partially initialize TImode register.
2592 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
2594 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
2596 2002-01-29 Richard Henderson <rth@redhat.com>
2598 * flow.c (print_rtl_and_abort): Remove.
2599 (print_rtl_and_abort_fcn): Remove.
2600 (verify_local_live_at_start): Use dump_bb instead.
2601 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
2602 (verify_wide_reg_1): Return 2 on mode test failure.
2604 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2606 PR c/3325, c/3326, c/2511, c/3347
2607 * c-decl.c (enum_decl_context): Remove BITFIELD.
2608 (grokdeclarator): Take bitfield width as an input.
2609 Ensure bitfields are given the correct type. Perform
2610 bitfield width validation with build_bitfield_integer_type
2611 rather than waiting for finish_struct.
2612 (grok_typename, grok_typename_in_parm_context, start_decl,
2613 push_parmdecl, grokfield, start_function): Update calls to
2615 (build_bitfield_integer_type): New function.
2616 (finish_struct): Move bitfield validation to grokdeclarator
2617 and build_bitfield_integer_type.
2618 * tree.c (build_nonstandard_integer_type): New function.
2619 * tree.h (build_nonstandard_integer_type): New prototype.
2621 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
2623 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2626 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
2627 don't ignore unrecognized -W* options.
2628 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
2629 * cpplib.h (cpp_handle_option): Adjust prototype.
2630 * c-decl.c (c_decode_options): Pass 0 as last argument to
2634 * gcc.c (cpp_unique_options): Split from cpp_options.
2635 (cpp_options): Source cpp_unique_options.
2636 (default_compilers): Use cpp_unique_options instead of cpp_options
2637 when used together with cc1_options.
2638 (static_specs): Add cpp_unique_options.
2639 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
2640 when used together with cc1_options.
2642 2002-01-29 Kazu Hirata <kazu@hxi.com>
2644 * config/h8300/h8300-protos.h: Update the prototype of
2646 * config/h8300/h8300.c (output_a_shift): Remove an unused
2647 argument 'insn'. Remove redundant code.
2648 * config/h8300/h8300.md: Adust to the new prototype of
2651 2002-01-29 Kazu Hirata <kazu@hxi.com>
2653 * config/h8300/h8300-protos.h: Update the prototypes of
2654 emit_a_rotate and expand_a_rotate.
2655 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
2656 first argument to 'enum rtx_code'.
2657 (expand_a_rotate): Likewise.
2659 2002-01-28 Kazu Hirata <kazu@hxi.com>
2661 * config/h8300/h8300-protos.h: Update the prototype of
2663 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
2665 * config/h8300/h8300.md: Adjust to the new prototype.
2667 2002-01-28 Kazu Hirata <kazu@hxi.com>
2669 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
2672 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2674 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
2675 is a fixed register before returning pic_offset_table_rtx.
2676 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
2677 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
2679 2002-01-28 Jason Merrill <jason@redhat.com>
2681 * dwarf2.h: Sync with src version.
2683 2002-01-28 Paul Koning <pkoning@equallogic.com>
2685 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
2687 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
2688 * doc/extend.texi (__builtin_prefetch): Update documentation:
2689 first argument is now const void ptr.
2691 2002-01-28 Kazu Hirata <kazu@hxi.com>
2693 * config/h8300/h8300-protos.h: Remove an unused prototype.
2695 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
2697 * toplev.c (lang_independent_init): Round up identifier size.
2699 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
2701 * config.gcc: Revert previous change.
2703 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
2705 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
2707 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
2709 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
2710 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
2711 other non-elf netbsd config frags.
2712 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
2713 collect2 will does that.
2714 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
2715 shared-lib frobbing will work.
2717 2002-01-28 Kazu Hirata <kazu@hxi.com>
2719 * config/h8300/h8300.h: Fix formatting.
2720 * config/h8300/h8300.md: Likewise.
2722 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
2724 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
2725 the old, removed AAA_standards fix.
2726 * fixinc/fixincl.x: Rebuilt.
2728 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
2730 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
2731 atexit call in crtbegin, hooked in after call to frame_dummy;
2732 register EH before registering __fini__start.
2734 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
2736 * config/rs6000/altivec.h: Remove spurious semicolons.
2738 2002-01-27 Kazu Hirata <kazu@hxi.com>
2740 * config/h8300/h8300.md: Replace dead bit extraction patterns
2741 with ones that work.
2743 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2745 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
2746 if not STRICT_ALIGNMENT.
2747 * rtl.h (MEM_ALIGN): Likewise.
2749 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
2751 * doc/invoke.texi (-fdump-translation-unit): Revert this
2752 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
2754 2002-01-27 Kazu Hirata <kazu@hxi.com>
2756 * config/h8300/h8300.md (define_constants): New.
2757 (anonymous patterns) Use defined constants appropriately.
2759 2002-01-27 Kazu Hirata <kazu@hxi.com>
2761 * config/h8300/h8300.c (function_arg): Remove redundant code.
2763 2002-01-26 Richard Henderson <rth@redhat.com>
2765 * sched-deps.c (reg_pending_uses_head): New.
2766 (reg_pending_barrier): Rename from reg_pending_sets_all.
2767 (find_insn_list): Don't mark inline.
2768 (find_insn_mem_list): Remove.
2769 (add_dependence_list, add_dependence_list_and_free): New.
2770 (flush_pending_lists): Replace only_write param with separate
2771 for_read and for_write parameters. Update all callers. Use
2772 add_dependence_list_and_free.
2773 (sched_analyze_1): Do not add reg dependencies here; just set
2774 the pending bits. Use add_dependence_list.
2775 (sched_analyze_2): Likewise.
2776 (sched_analyze_insn): Replace schedule_barrier_found with
2777 reg_pending_barrier. Add all dependencies for pending reg
2778 uses, sets, and clobbers.
2779 (sched_analyze): Don't add reg dependencies for calls, just
2780 set pending bits. Use regs_invalidated_by_call. Treat
2781 sched_before_next_call as a normal list, not a fake insn.
2782 (init_deps): No funny init for sched_before_next_call.
2783 (free_deps): Free pending mems lists. Don't zero reg_last.
2784 (init_deps_global): Init reg_pending_uses.
2785 (finish_deps_global): Free it.
2786 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
2787 (find_insn_mem_list): Remove.
2788 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
2789 (propagate_deps): Use them. Zero temp mem lists.
2791 2002-01-26 Richard Henderson <rth@redhat.com>
2793 * Makefile.in (CRTSTUFF_CFLAGS): New.
2794 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
2795 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
2796 crtstuff.c instead of alpha assembly version.
2797 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
2798 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
2799 not FORCE_{INIT,FINI}_SECTION_ALIGN.
2800 (__do_global_dtors_aux): Mark used.
2801 (frame_dummy, __do_global_ctors_aux): Mark used.
2802 (fini_dummy, init_dummy): Remove.
2804 * config/alpha/crtbegin.asm: Remove file.
2805 * config/alpha/crtend.asm: Remove file.
2806 * config/alpha/t-crtbe: Remove file.
2807 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
2808 (LINK_EH_SPEC): New.
2810 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
2811 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
2812 calling constructors.
2813 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
2815 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
2816 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
2817 CRT_END_INIT_DUMMY hack.
2818 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
2819 FORCE_{INIT,FINI}_SECTION_ALIGN.
2821 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
2822 FORCE_{INIT,FINI}_SECTION_ALIGN.
2824 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
2825 invocation sequence.
2826 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
2828 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
2829 (FORCE_CODE_SECTION_ALIGN): New.
2831 2002-01-26 Richard Henderson <rth@redhat.com>
2833 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
2835 2002-01-26 Richard Henderson <rth@redhat.com>
2837 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
2838 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
2840 2002-01-26 Kazu Hirata <kazu@hxi.com>
2842 * config/h8300/h8300.md: Remove bit extraction patterns that
2843 cannot be triggered.
2844 Restrict each bit extraction pattern to a variant on which the
2847 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
2849 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
2851 2002-01-26 Kazu Hirata <kazu@hxi.com>
2853 * config/h8300/h8300.md: Remove bit test patterns that cannot
2855 Restrict each bit test pattern to a variant on which the
2858 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2860 * builtins.c (expand_builtin_strncat): Remove redundant check for
2863 2002-01-25 David O'Brien <obrien@FreeBSD.org>
2865 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
2867 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
2870 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
2872 * dbxout.c (dbxout_init): Use assemble_name rather than just
2873 stripping off the first character.
2874 (dbxout_source_file): Likewise.
2876 2002-01-25 DJ Delorie <dj@redhat.com>
2878 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
2879 using rtx_equal_p, not by comparing pointers.
2881 2002-01-25 Steve Ellcey <sje@cup.hp.com>
2883 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
2884 for PIC_OFFSET_TABLE_REGNUM.
2885 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
2887 2002-01-25 David O'Brien <obrien@FreeBSD.org>
2889 * config.gcc (x86_64-*-freebsd*): New target.
2890 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
2892 (i[34567]86-*-freebsd*): Don't include svr4.h.
2893 * config/i386/freebsd64.h: New file.
2895 2002-01-25 Douglas B Rupp <rupp@gnat.com>
2897 * config/alpha/x-vms (version): Make static.
2899 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
2900 in previous checkin.
2902 * Makefile.in (install-headers-cp): New target.
2903 * config.gcc (alpha-dec-*vms*): Install headers with
2906 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
2908 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
2911 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2913 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
2914 of compare_tree_int.
2915 (expand_builtin_strncat): Likewise.
2916 * c-decl.c (finish_struct): Use tree_low_cst.
2917 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
2918 * tree.c (compare_tree_int): Likewise.
2920 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
2922 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
2923 adjustments even if they are implemented by more than two insns.
2925 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
2927 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
2928 * df.h (struct ref): Kill B.
2929 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
2931 * basic-block.h (PROP_EQUAL_NOTES): New flag.
2932 * flow.c (propagate_one_insn): Use it.
2933 (mark_used_regs): Handle NIL.
2935 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
2937 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
2940 2002-01-25 David Edelsohn <edelsohn@gnu.org>
2942 * rs6000.md (prefetch): Make address V4SI mode so that the address
2943 is restricted to legitimate form for instruction.
2945 2002-01-25 Bob Wilson <bob.wilson@acm.org>
2947 * doc/install.texi (xtensa-*-elf): New target.
2948 (xtensa-*-linux*): New target.
2949 * doc/contrib.texi: Add myself.
2951 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2953 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
2954 purpose register to hold an SImode (or smaller) value.
2956 2002-01-25 Jakub Jelinek <jakub@redhat.com>
2958 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
2960 * crtstuff.c: Likewise.
2962 2002-01-25 Kazu Hirata <kazu@hxi.com>
2964 * config/h8300/h8300.md (negation patterns): Tighten
2965 predicates to register_operand.
2967 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
2969 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
2972 * builtins.c (expand_builtin_prefetch): Same.
2974 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2976 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
2979 2002-01-24 Kazu Hirata <kazu@hxi.com>
2981 * config/h8300/h8300.c (print_operand): Remove support for
2982 operand character 'A'.
2983 * config/h8300/h8300.md (three anonymous patterns): Replace
2984 operand character 'A' with either 'T' or 'S'.
2986 2002-01-24 Kazu Hirata <kazu@hxi.com>
2988 * config/h8300/h8300.c (print_operand): Remove support for
2989 operand character 'U'.
2991 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
2993 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
2995 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
2997 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
2998 values to be assigned to the stack pointer.
3000 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3002 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3003 to const_double needs to be done right for big-endian systems.
3005 2002-01-24 Jason Merrill <jason@redhat.com>
3008 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3009 to can_throw_internal.
3011 2002-01-23 Richard Henderson <rth@redhat.com>
3013 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3014 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3016 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3018 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3019 (symGOT2reg): Use them, then set as GOT value as unchanging.
3020 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3021 as a temporary, if possible.
3022 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3023 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3025 2002-01-23 Kazu Hirata <kazu@hxi.com>
3027 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3028 accept to accept 0x80 as operands[2].
3030 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3032 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3034 2002-01-23 Richard Henderson <rth@redhat.com>
3036 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3038 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3040 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3041 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3044 2002-01-23 Richard Henderson <rth@redhat.com>
3046 * expr.c (move_by_pieces_1): Extend size before negation.
3048 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3049 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3050 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3051 * config/m68k/t-m68kelf: Likewise.
3053 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3055 * config/xtensa/elf.h: New file.
3056 * config/xtensa/lib1funcs.asm: New file.
3057 * config/xtensa/lib2funcs.S: New file.
3058 * config/xtensa/linux.h: New file.
3059 * config/xtensa/t-xtensa: New file.
3060 * config/xtensa/xtensa-config.h: New file.
3061 * config/xtensa/xtensa-protos.h: New file.
3062 * config/xtensa/xtensa.c: New file.
3063 * config/xtensa/xtensa.h: New file.
3064 * config/xtensa/xtensa.md: New file.
3065 * config.gcc (xtensa-*-elf*): New target.
3066 (xtensa-*-linux*): New target.
3067 * cse.c (canon_hash): Compare rtx pointers instead of register
3068 numbers. This is required for the Xtensa port.
3069 * integrate.c (copy_insn_list): Handle case where the static
3070 chain is in memory and the memory address has to be copied to
3072 * doc/invoke.texi (Option Summary): Add Xtensa options.
3073 (Xtensa Options): New node.
3074 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3076 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3078 * diagnostic.c (internal_error): Do ICE suppression only
3079 when ENABLE_CHECKING is not defined.
3081 * c-typeck.c (require_complete_type): Return error_mark_node
3082 if type is error_mark_node.
3084 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3086 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3087 -Os and issue a warning.
3089 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3091 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3092 current (lack of) need for host configuration by hand.
3094 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3095 references. Documentation of some target macros moved from
3096 hostconfig.texi to tm.texi.
3098 2002-01-23 Will Cohen <wcohen@redhat.com>
3100 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3103 2002-01-23 Kazu Hirata <kazu@hxi.com>
3105 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3108 2002-01-23 Jason Merrill <jason@redhat.com>
3110 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3112 * function.c (assign_parms): Don't put args of inline functions
3113 into registers when not optimizing.
3115 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3117 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3118 (prologue_use): New pattern.
3119 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3120 preference to gen_rtx_USE.
3121 (thumb_expand_prologue): Use gen_prologue_use in preference to
3123 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3126 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3128 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3130 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3133 * doc/extend.texi: Correct documentation of __alignof__.
3135 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3137 * params.h: Rename arguments of DEFPARAM so that it will be
3138 recognized as a translation keyword.
3140 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3142 * extend.texi: Document altivec functions.
3143 Fix N-bit adjectives in X86 builtin documentation.
3145 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3147 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3148 auto_inc_dec values.
3150 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3152 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3154 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3156 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3158 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3160 2002-01-22 Richard Henderson <rth@redhat.com>
3162 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3163 copy_insn not copy_rtx.
3165 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3167 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3168 "nonzero" as that might add "1" bits. Ensure "constop" is
3169 properly sign extened.
3170 (force_to_mode): Tweak for sign extended constop.
3172 2002-01-22 Richard Henderson <rth@redhat.com>
3174 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3175 for_each_rtx instead of assuming we're already looking at the MEM.
3176 (split_small_symbolic_mem_operand): Likewise.
3177 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3178 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3180 2002-01-22 Richard Henderson <rth@redhat.com>
3182 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3183 sequence number for the literal.
3184 (divmoddi_internal_er): Likewise.
3186 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3189 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3190 in LIBICONV variable.
3191 * configure: Regenerated.
3193 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3195 * dependence.c (build_def_use): Remove array_idx.
3197 * dwarfout.c (last_filename): Remove.
3198 (output_compile_unit_die): Remove last_filename.
3200 2002-01-22 Roger Sayle <roger@eyesopen.com>
3201 Richard Henderson <rth@redhat.com>
3204 * fold-const.c (fold): Optimize unsigned comparisons against
3205 UINT_MAX (and similar unsigned constants).
3207 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3209 * Makefile.in (loop.o): Depend on OPTABS_H.
3210 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3211 against the predicate.
3214 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3215 for the address operand.
3217 2002-01-22 Richard Henderson <rth@redhat.com>
3219 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3221 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3224 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3227 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3229 * config.gcc (x86_64-*-netbsd*): New target.
3230 * config/i386/netbsd64.h: New file.
3232 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3234 * regrename.c (kill_value): Fix typo.
3236 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3238 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3240 * config/rs6000/rs6000.h: Same.
3242 * function.c (instantiate_virtual_regs): Remove
3243 STARTING_FRAME_PHASE.
3244 (assign_stack_local_1): Same.
3245 Calculate frame phase.
3247 2002-01-22 Nick Clifton <nickc@redhat.com>
3249 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3250 variable declaration to outer scope in order to simplify
3252 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3253 arm_hard_regno_mode_ok.
3254 * config/arm/arm-protos.h: Add a prototype for
3255 arm_hard_regno_mode_ok.
3256 * config/arm/arm.c (soft_df_operand): Remove now redundant
3257 check for DImode values using IP_REGNUM.
3258 (nonimmediate_soft_df_operand): Remove now redundant check for
3259 DImode values using IP_REGNUM.
3260 (arm_hard_regno_mode_ok): New function. New check: make sure
3261 that DImode values are not stored in IP_REGNUM.
3263 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3265 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3267 2002-01-22 Jason Merrill <jason@redhat.com>
3269 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3270 consistency if this COMPOUND_STMT is scoped.
3272 2002-01-22 Kazu Hirata <kazu@hxi.com>
3274 * predict.c: Fix formatting.
3275 * print-tree.c: Likewise.
3276 * protoize.c: Likewise.
3279 * sbitmap.h: Likewise.
3281 * sched-deps.c: Likewise.
3282 * sched-vis.c: Likewise.
3283 * sdbout.c: Likewise.
3284 * sibcall.c: Likewise.
3286 * ssa-ccp.c: Likewise.
3287 * ssa-dce.c: Likewise.
3289 * stor-layout.c: Likewise.
3290 * system.h: Likewise.
3292 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3294 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3295 if fits in bounds of base type.
3297 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3298 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3299 (add_bound_info, default): If can't find a context, make a
3301 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3303 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3305 * c-typeck.c (parser_build_binary_op): If result from
3306 build_binary_op is ERROR_MARK just return error_mark_node without
3309 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3311 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3312 Split a.out-specific bits into...
3313 * config/netbsd-aout.h: ...this.
3314 * config/netbsd-elf.h: New file.
3315 * config/alpha/netbsd-elf.h: Remove.
3316 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3317 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3318 (STARTFILE_SPEC): Remove redundant definition.
3319 (ENDFILE_SPEC): Likewise.
3320 (LINK_SPEC): Likewise.
3321 (CPP_SPEC): Likewise.
3322 (ASM_SPEC): Likewise.
3323 (LIB_SPEC): Likewise.
3324 (SWITCH_TAKES_ARG): Likewise.
3325 (TARGET_MEM_FUNCTIONS): Likewise.
3326 (CPP_PREDEFINES): Redefine.
3327 (ASM_FINAL_SPEC): Remove redefinition.
3328 (ASM_COMMENT_START): Redefine.
3329 (FUNCTION_PROFILER): Define.
3330 (TARGET_VERSION): Redefine.
3331 Comment and formatting cleanup.
3332 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3333 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3334 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3335 big- or little-endian.
3336 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3337 * config.gcc (*-*-netbsd*): Add definitions common to all
3339 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3340 gnu_ld definitions. Add netbsd-elf.h to and remove
3341 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3342 tmake_file, and don't lose previous tmake_file contents.
3343 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3344 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3345 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3346 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3347 (mipsel-*-netbsd*): Rename this to...
3348 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3349 mips/little.h to tm_file for mips*el-*.
3350 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3351 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3352 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3354 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3356 * pa-protos.h (reg_before_reload_operand): New function prototype.
3357 * pa.c (reg_before_reload_operand): New function implementation.
3358 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3361 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3363 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3365 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3367 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3368 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3369 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3370 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3371 (ENDFILE_SPEC): Undefine.
3372 (STARTFILE_SPEC): Redefine for PA.
3374 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3376 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3378 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3380 * config.gcc: Add entries to supported PowerPC --with-cpu
3383 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3385 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3386 true for 64-bit mode only SSE registers in 32-bit mode.
3388 2002-01-21 Kazu Hirata <kazu@hxi.com>
3390 * unwind-dw2.c: Fix formatting.
3391 * unwind-dw2-fde.c: Likewise.
3392 * unwind-dw2-fde.h: Likewise.
3393 * unwind-pe.h: Likewise.
3394 * varasm.c: Likewise.
3395 * varray.h: Likewise.
3397 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3399 Remove workaround for register stack overwrite bug in mmix.
3400 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3401 support for TARGET_REG_STACK_FILL_BUG.
3402 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3403 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3405 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3406 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3407 -mno-reg-stack-fill-bug-workaround.
3408 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3409 machine member has_call_without_parameters.
3410 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3411 -mreg-stack-fill-bug-workaround and
3412 -mno-reg-stack-fill-bug-workaround.
3413 (MMIX Options): Ditto.
3415 2002-01-21 Kazu Hirata <kazu@hxi.com>
3417 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3419 Remove redundant code.
3421 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3423 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3424 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3425 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3426 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3427 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3428 out target macro definitions and non-target-specific comments
3429 mostly taken from old versions of the manual.
3431 2002-01-20 Kazu Hirata <kazu@hxi.com>
3433 * config/h8300/h8300.h: Fix comment formatting.
3434 * config/ia64/aix.h: Likewise.
3435 * config/ia64/ia64-protos.h: Likewise.
3436 * config/ia64/ia64.c: Likewise.
3437 * config/ia64/ia64.h: Likewise.
3438 * config/ia64/ia64intrin.h: Likewise.
3439 * config/ia64/linux.h: Likewise.
3440 * config/ia64/unwind-aix.c: Likewise.
3441 * config/ia64/unwind-ia64.c: Likewise.
3443 2002-01-20 Kazu Hirata <kazu@hxi.com>
3445 * config/h8300/h8300.c: Revise comments about shift code.
3447 2002-01-20 Kazu Hirata <kazu@hxi.com>
3449 * config/h8300/h8300.c (function_arg): Update a comment.
3451 2002-01-20 Kazu Hirata <kazu@hxi.com>
3453 * config/h8300/h8300.md: Update the comments at the beginning
3456 2002-01-20 Kazu Hirata <kazu@hxi.com>
3458 * config/i370/i370.c: Fix comment formatting.
3459 * config/i370/i370.h: Likewise.
3460 * config/i370/i370.md: Likewise.
3461 * config/i370/linux.h: Likewise.
3463 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3465 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3467 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3468 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3471 2002-01-20 Graham Stott <grahams@redhat.com>
3473 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3475 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3477 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3479 2002-01-19 Tom Rix <trix@redhat.com>
3481 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3483 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3485 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3487 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3488 STARTING_FRAME_PHASE.
3489 (STARTING_FRAME_PHASE): New.
3490 (instantiate_virtual_regs): Check saneness of
3491 STARTING_FRAME_PHASE.
3493 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3495 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3497 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3499 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3501 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3502 be used for bootstrapping GCC 3.0.
3504 2002-01-18 Kazu Hirata <kazu@hxi.com>
3506 * config/h8300/h8300.md: Fix an insn length.
3508 2002-01-18 Kazu Hirata <kazu@hxi.com>
3510 * bitmap.h: Fix comment formatting.
3511 * combine.c: Likewise.
3512 * cppfiles.c: Likewise.
3513 * c-pragma.h: Likewise.
3514 * c-typeck.c: Likewise.
3516 * dwarf2out.c: Likewise.
3517 * function.c: Likewise.
3519 * genattrtab.c: Likewise.
3520 * gthr-win32.h: Likewise.
3521 * haifa-sched.c: Likewise.
3522 * predict.c: Likewise.
3523 * rtlanal.c: Likewise.
3525 * unwind-dw2-fde.h: Likewise.
3526 * unwind-pe.h: Likewise.
3527 * vmsdbgout.c: Likewise.
3529 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3531 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3532 if type_required and passed decl.
3534 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
3536 * config.gcc (cpu_type): Include altivec.h in powerpc
3540 * config/rs6000/altivec.h: New.
3542 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3544 * doc/install.texi (*-ibm-aix*): Update assembler and exception
3545 handling information.
3546 * doc/trouble.texi (Interoperation): Add libstdc++ information
3548 (Misunderstandings): Add template instantiation and static template
3549 member information for AIX.
3551 2002-01-17 Jason Merrill <jason@redhat.com>
3553 * dbxout.c (dbxout_type): Support const and volatile.
3555 * except.c (add_partial_entry): Remove backwards compatibility code.
3556 (end_protect_partials): Likewise.
3558 2002-01-17 Jakub Jelinek <jakub@redhat.com>
3560 * config/ia64/ia64.md (prologue_use): New.
3561 * config/ia64/ia64.c (ia64_expand_prologue): Use
3562 gen_prologue_use instead of gen_rtx_USE.
3563 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
3564 as CODE_FOR_pred_rel_mutex.
3565 (ia64_sched_reorder2): Likewise.
3567 2002-01-16 Eric Christopher <echristo@redhat.com>
3569 * config/mips/r3900.h: Reformat.
3570 (SUBTARGET_CPP_SIZE_SPEC): Remove.
3571 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3572 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
3573 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
3574 * config/mips/t-elf: Remove mips3 multilib.
3576 2002-01-16 H.J. Lu <hjl@gnu.org>
3578 * config/mips/linux.h: Include "mips/abi64.h".
3580 2002-01-16 H.J. Lu <hjl@gnu.org>
3582 * config/mips/t-linux: New.
3584 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
3586 * config/mips/linux.h: Don't include "gofast.h".
3587 (INIT_SUBTARGET_OPTABS): Removed.
3589 2002-01-16 Kazu Hirata <kazu@hxi.com>
3591 * config/h8300/h8300-protos.h: Replace emit_a_shift with
3593 * config/h8300/h8300.c: Likewise.
3594 * config/h8300/h8300.md: Likewise.
3596 2002-01-16 Kazu Hirata <kazu@hxi.com>
3598 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
3599 spaces after an opcode name.
3600 (pushqi1_h8300hs): Likewise.
3601 (pushhi1_h8300hs): Likewise.
3603 2002-01-16 Kazu Hirata <kazu@hxi.com>
3605 * doc/extend.texi: Replace "option" with "attribute"
3608 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3610 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
3611 (and:DI () (const_int -8)).
3612 (split_small_symbolic_mem_operand): Split
3613 (mem (and:DI () (const_int -8)).
3615 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3618 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
3619 same way as TYPE_IMUL.
3620 (ultrasparc_sched_reorder): Likewise.
3621 * config/sparc/sparc.md (type): Add comment to update
3622 ultrasparc_sched_reorder when making changes.
3624 2002-01-16 Kazu Hirata <kazu@hxi.com>
3626 * doc/invoke.texi: Change the dump file name of block
3627 reordering pass from 28.bbro to 29.bbro.
3630 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
3632 * i386.md (minsf splitter): Fix pasto.
3634 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3636 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
3637 to frame pointer initialisation instruction.
3638 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
3639 initialisation instruction.
3640 (soft_df_operand): Do not accept the IP register.
3641 (nonimmediate_soft_df_operand): Do not accept the IP register.
3643 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3646 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
3647 MASK_V8 being both set.
3649 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
3651 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
3652 insn for GOT register; add REG_MAYBE_DEAD notes instead.
3653 config/s390/s390.md (call, call_value): Add GOT register to
3654 CALL_INSN_FUNCTION_USAGE where needed.
3655 (call_exp, call_value_exp): New.
3657 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3659 * config/arm/arm.c: General formatting tidy up.
3661 2002-01-16 Graham Stott <grahams@redhat.com>
3663 * calls.c (try_to_integrate): Use "(size_t)" intermediate
3664 cast and when casting an integer literal to "rtx" pointer.
3665 (expand_call): Likewise.
3666 * flow.c (try_pre_increment): Likewise.
3667 (find_use_as_address): Likewise.
3668 * integrate.c (expand_iline_function): Likewise.
3669 * regmove.c (try_auto_increment): Likewise.
3671 2002-01-16 Graham Stott <grahams@redhat.com>
3673 * sched-rgn.c (passed): Use sbitmap_free.
3676 (in_queue): Likewise.
3677 (in_stack): Likewise.
3679 2002-01-15 Eric Christopher <echristo@redhat.com>
3681 * flow.c (propagate_one_insn): Change to use fatal_insn.
3683 2002-01-15 Kazu Hirata <kazu@hxi.com>
3685 * expmed.c (extract_fixed_bit_field): Remove unused code.
3686 * system.h: Poison SLOW_ZERO_EXTEND.
3687 * doc/tm.texi: Remove.
3688 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
3689 * config/arm/arm.h: Likewise.
3690 * config/avr/avr.h: Likewise.
3691 * config/clipper/clipper.h: Likewise.
3692 * config/convex/convex.h: Likewise.
3693 * config/d30v/d30v.h: Likewise.
3694 * config/dsp16xx/dsp16xx.h: Likewise.
3695 * config/elxsi/elxsi.h: Likewise.
3696 * config/fr30/fr30.h: Likewise.
3697 * config/h8300/h8300.h: Likewise.
3698 * config/i370/i370.h: Likewise.
3699 * config/i386/i386.h: Likewise.
3700 * config/m68k/m68k.h: Likewise.
3701 * config/mips/mips.h: Likewise.
3702 * config/ns32k/ns32k.h: Likewise.
3703 * config/pdp11/pdp11.h: Likewise.
3704 * config/pj/pj.h: Likewise.
3705 * config/s390/s390.h: Likewise.
3706 * config/sh/sh.h: Likewise.
3707 * config/stormy16/stormy16.h: Likewise.
3708 * config/v850/v850.h: Likewise.
3709 * config/vax/vax.h: Likewise.
3710 * config/we32k/we32k.h: Likewise.
3712 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
3714 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
3715 (altivec_lvsl): Change constraint to b.
3716 (altivec_lvsr): Same.
3717 (altivec_lvebx): Same.
3718 (altivec_lvehx): Same.
3719 (altivec_lvewx): Same.
3720 (altivec_lvxl): Same.
3721 (altivec_lvx): Same.
3722 (altivec_stvx): Add parallel.
3723 (altivec_stvxl): Same.
3724 (altivec_stvehx): Same.
3725 (altivec_stvebx): Same.
3726 (altivec_stvebx): Same.
3728 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
3730 * config.gcc: Change altivec.h to altivec-defs.h.
3732 * config/rs6000/altivec.h: Delete.
3734 * config/rs6000/altivec-defs.h: Add.
3736 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3738 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
3741 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
3742 less than or equal to eight bytes.
3744 * vax.md (andsi3): Remove constraints and change SET destination
3745 operand type to nonimmediate_operand.
3746 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
3747 when it is a CONST_INT.
3749 2002-01-15 Jason Merrill <jason@redhat.com>
3751 * c-common.def (FILE_STMT): New code.
3752 * c-common.c (statement_code_p): It's a statement.
3753 * c-common.h (stmt_tree_s): Add x_last_filename.
3754 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
3755 (last_expr_filename): New macro.
3756 * c-semantics.c (begin_stmt_tree): Initialize it.
3757 (add_stmt): If the filename changed, also insert a
3759 (expand_stmt): Handle seeing one.
3761 2002-01-15 Eric Christopher <echristo@redhat.com>
3763 * flow.c (propagate_one_insn): Add error message and print out
3766 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
3768 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
3769 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
3770 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
3771 TRAMPOLINE_ALIGNMENT.
3772 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
3774 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
3775 PCC_BITFIELD_TYPE_MATTERS.
3776 * config/interix.h (STDC_VALUE): Remove. Use
3777 STDC_0_IN_SYSTEM_HEADERS.
3778 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
3779 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
3780 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
3782 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
3784 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
3785 not work on this platform currently.
3787 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
3789 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
3790 readonly_warning in _().
3792 2002-01-15 Douglas B Rupp <rupp@gnat.com>
3794 * gcc.c (delete_if_ordinary): Backout previous change.
3796 2002-01-15 Kazu Hirata <kazu@hxi.com>
3798 * config/h8300/h8300.c (print_operand): Remove support for
3799 unused operand characters.
3801 * read-rtl.c: Fix formatting.
3803 * recog.c: Likewise.
3804 * regclass.c: Likewise.
3805 * regmove.c: Likewise.
3806 * reg-stack.c: Likewise.
3807 * reload1.c: Likewise.
3808 * rtlanal.c: Likewise.
3810 2002-01-15 Kazu Hirata <kazu@hxi.com>
3812 * config/i386/i386.c: Fix formatting.
3814 2002-01-15 Jakub Jelinek <jakub@redhat.com>
3816 * c-typeck.c (process_init_element): Don't save_expr
3817 COMPOUND_LITERAL_EXPR if just its initializer will be used.
3819 2002-01-15 David Edelsohn <edelsohn@gnu.org>
3821 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
3822 emit optional traceback table if optimize_size or TARGET_ELF.
3823 * config/rs6000/rs6000.md (prefetch): New.
3825 2002-01-15 Andreas Jaeger <aj@suse.de>
3827 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
3829 2002-01-15 Kazu Hirata <kazu@hxi.com>
3831 * mips-tfile.c: Fix formatting.
3833 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
3835 * unroll.c (final_reg_note_copy): Fix previous commit.
3837 2002-01-14 Kazu Hirata <kazu@hxi.com>
3839 * config/h8300/h8300-protos.h: Remove the prototype for
3841 * config/h8300/h8300.c (eq_operator): Remove.
3843 2002-01-14 Richard Henderson <rth@redhat.com>
3845 * config/i386/i386.md (prefetch): Tidy.
3846 (prefetch_3dnow): Fix locality operand.
3848 2002-01-14 Richard Henderson <rth@redhat.com>
3850 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
3851 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
3853 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
3855 * reload1.c (reload_combine): Pass reg_sum replacement through
3856 copy_rtx in loop performing multiple changes.
3858 2002-01-14 Jakub Jelinek <jakub@redhat.com>
3860 * except.c (remove_unreachable_regions): New.
3861 (free_eh_status): Clear exception_handler_labels.
3862 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
3863 (find_exception_handler_labels): Don't add the same label more than
3865 (remove_exception_handler_label): Don't die if
3866 find_exception_handler_labels hasn't been called for the current
3869 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
3871 * toplev.c (rest_of_compilation): Rebuild jump labels after
3874 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
3876 * doc/extend.texi: Move documentation of X86 built-in functions
3878 * doc/invoke.texi: From here.
3879 * doc/sourcebuild.texi: Document location of documentation for
3880 machine built-in functions.
3882 2002-01-13 Christopher Faylor <cgf@redhat.com>
3884 * cppfiles.c (TEST_THRESHOLD): New macro.
3885 (SHOULD_MMAP): Ditto.
3886 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
3889 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
3891 * unroll.c (final_reg_note_copy): Properly handle
3893 (unroll_loops): Fix LOOP_CONDITION heuristics.
3895 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
3897 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
3898 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
3900 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
3902 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
3905 2002-01-14 Tom Rix <trix@redhat.com>
3907 * config/rs6000/rs6000.md: Fix typo with sradi.
3909 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
3911 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
3912 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
3913 (clrstrdi, clrstrsi): Adapt callers.
3915 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
3917 (movti splitter): Never use register 0 as base register.
3919 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3921 * combine.c (simplify_shift_const): Always generate new rtx
3922 for shift expression instead of reusing given expression.
3924 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3926 * config/alpha/alpha.c (alpha_expand_mov): Don't call
3927 alpha_legitimize_address unless mode is Pmode.
3929 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
3931 * doc/md.texi (Modifiers): Document the '*' constraint for the
3934 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
3935 * doc/extend.texi (Function Attributes): 'interrupt' is valid
3938 2002-01-13 Richard Henderson <rth@redhat.com>
3940 * reload.c (find_reloads): Use a hard reg destination as reload reg
3941 for an input reload of the source.
3943 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3945 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
3948 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
3950 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3951 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3953 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
3955 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3957 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
3959 2002-01-12 Tom Rix <trix@redhat.com>
3961 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
3964 2002-01-12 Richard Henderson <rth@redhat.com>
3966 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
3968 * doc/invoke.texi: Update Alpha options.
3970 * doc/invoke.texi: Update i386 built-in function lists.
3972 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
3974 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
3975 referencing outside.
3977 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3979 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
3980 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
3981 offsets, and change line folding.
3982 * optabs.c (expand_binop): Remove warnings.
3983 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
3985 2002-01-12 Graham Stott <grahams@redhat.com>
3987 * attribs.c (handle_deprecated_attribute): constify WHAT.
3988 * diagnostic.c (warn_deprecated_use): Add braces, fixes
3989 dangling else warning and constify WHAT.
3990 * except.h (struct function, struct inline_remap): Move
3991 struct tag forward defs before all prototypes.
3992 (duplicate_eh_regions): Whitespace.
3994 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
3996 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
3997 MODE_BASE_REG_CLASS.
3998 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4000 2002-01-12 Richard Henderson <rth@redhat.com>
4002 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4003 (ix86_expand_vector_move): New.
4004 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4005 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4006 Remove old prefetch builtins. Special case the logicals removed above.
4007 (ix86_expand_builtin): Likewise.
4008 (safe_vector_operand): Use V4SFmode, not TImode.
4009 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4010 (ix86_expand_timode_binop_builtin): New.
4011 * config/i386/i386-protos.h: Update.
4012 * config/i386/i386.h (enum ix86_builtins): Update.
4013 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4014 Use ix86_expand_vector_move in vector move expanders.
4015 (movti_internal, movti_rex64): Add xorps alternative.
4016 (sse_clrv4sf): Rename and adjust from sse_clrti.
4017 (prefetch): Don't work so hard.
4018 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4019 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4020 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4022 2002-01-11 Richard Henderson <rth@redhat.com>
4024 * config/i386/mmintrin.h: New file.
4025 * config/i386/xmmintrin.h: New file.
4026 * config.gcc (i?86-*-*): Add extra_headers.
4027 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4029 (simplify_binary_operation): Handle saturating arithmetic codes.
4030 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4031 not the lowpart subreg.
4032 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4034 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4036 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4038 * conflict.c (conflict_graph_compute): Free regsets when finished.
4039 * ssa.c (compute_coalesced_reg_partition): Likewise.
4041 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4043 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4044 every where we allocate a register.
4046 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4048 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4049 * lcm.c (compute_earliest, compute_farthest): Likewise.
4051 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4053 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4055 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4057 * doc/rtl.texi (Insns): Fix 2 typos.
4059 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4061 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4062 options. Use @table @gcctabopt for MMIX options. Add index
4063 entries for MMIX options. Start new paragraph with first
4064 heading of the machine-dependent options.
4066 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4069 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4070 * combine.c (force_to_mode): Same.
4071 * reload1.c (clear_reload_reg_in_use): Same.
4073 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4075 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4078 2002-01-11 Andreas Jaeger <aj@suse.de>,
4079 Brad Lucier <lucier@math.purdue.edu>
4081 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4084 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4086 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4087 Protect with IN_LIBGCC.
4088 (LINK_EH_SPEC): Add required trailing space.
4090 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4092 * c-tree.h: Move function declarations so that they are listed
4093 under the filename which contains them.
4094 (check_identifier, finish_decl_top_level,
4095 lookup_name_current_level_global, shadow_record_fields): Remove.
4097 2002-01-11 Andreas Jaeger <aj@suse.de>
4099 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4102 2002-01-10 Richard Henderson <rth@redhat.com>
4104 * config/alpha/alpha.c (print_operand): Add 'J'.
4105 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4106 new operand with the sequence number for the lituse. When splitting
4107 the insns, use gen_movdi_er_high_g and generate a sequence number.
4108 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4110 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4112 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4113 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4115 (altivec_expand_builtin): Same.
4116 (altivec_expand_stv_builtin): New.
4118 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4120 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4121 ("altivec_lvehx"): New.
4122 ("altivec_lvewx"): New.
4123 ("altivec_lvxl"): New.
4124 ("altivec_lvx"): New.
4125 ("altivec_stvx"): New.
4126 ("altivec_stvebx"): New.
4127 ("altivec_stvehx"): New.
4128 ("altivec_stvewx"): New.
4129 ("altivec_stvxl"): New.
4131 2002-01-10 Richard Henderson <rth@redhat.com>
4133 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4134 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4135 care not to delete instructions twice.
4137 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4139 * toplev.c: Don't declare environ (it's not used anywhere).
4140 * configure.in: Don't check for declaration of environ.
4141 * config/i386/xm-mingw32.h: Don't #define environ.
4142 * config.in, configure: Regenerate.
4144 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4146 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4147 * configure: Regenerate.
4149 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4150 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4151 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4153 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4154 LIMITS_H_TEST here, not in m68k/x-next.
4155 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4156 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4158 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4159 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4160 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4162 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4163 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4164 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4165 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4166 replacement of quadlib.asm with quadlib.c.
4168 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4169 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4170 config/rs6000/xm-beos.h: Delete file.
4172 * config.gcc: Update to match above changes.
4174 2002-01-10 Kazu Hirata <kazu@hxi.com>
4176 * config/h8300/h8300.h: Fix comment typos.
4177 * config/h8300/h8300.md: Likewise.
4178 * config/h8300/lib1funcs.asm: Likewise.
4180 2002-01-10 Dale Johannesen <dalej@apple.com>
4182 PR optimization/5269
4183 * unroll.c (precondition_loop_p): Make *increment be the correct
4184 sign when n_iterations known, to avoid confusing caller.
4186 2002-01-10 Kazu Hirata <kazu@hxi.com>
4188 * doc/extend.texi (deprecated): Fix a typo.
4190 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4192 * basic-block.h (update_br_prob_note): Declare.
4193 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4194 (try_forward_edges): Care negative frequencies and update note.
4195 (outgoing_edges_match): Tweek conditional merging heuristics.
4196 (try_crossjump_to_edge): use update_br_prob_note.
4197 * cfglayout.c (fixup_reorder_chain): Likewise.
4198 * cfrtl.c (update_br_prob_note): New.
4199 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4201 * i386.c (ix86_decompose_address): Return -1 if address contains
4203 (legitimate_address_p): Require ix86_decompose_address to return 1.
4205 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4206 (cprop_insn): Likewise.
4208 2002-01-10 Kazu Hirata <kazu@hxi.com>
4210 * toplev.c: Fix formatting.
4212 * tree-dump.c: Likewise.
4213 * unroll.c: Likewise.
4214 * unwind-dw2.c: Likewise.
4215 * unwind-dw2-fde.c: Likewise.
4216 * unwind-dw2-fde-glibc.c: Likewise.
4217 * unwind-sjlj.c: Likewise.
4219 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4221 * doc/invoke.texi: Document PDP-11 options.
4223 2002-01-10 Kazu Hirata <kazu@hxi.com>
4225 * config/h8300/h8300.h: Fix formatting.
4227 2002-01-10 Ira Ruben <ira@apple.com>
4229 Add __attribute__ ((deprecated)).
4230 * extend.texi: Document __attribute__ ((deprecated)).
4231 * invoke.texi: Document -Wno-deprecated-declarations.
4232 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4233 * testsuite/gcc.dg/deprecated.c: New C test.
4234 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4235 (c_common_attribute_table): Add "deprecated" entry.
4236 (handle_deprecated_attribute): New function.
4237 * c-decl.c (deprecated_states): New enum.
4238 deprecated_state: State of "deprecated" handling.
4239 (start_decl): Set deprecated_state based on attributes.
4240 (grokdeclarator): Test for deprecated uses, propagate attribute.
4241 * c-typeck.c (build_component_ref): Test for deprecated fields.
4242 (build_external_ref): Test for deprecated primaries.
4243 * diagnostic.c (warn_deprecated_use) New function to issue
4244 warnings about __attribute__ ((depricated)) references.
4245 * flags.h (warn_deprecated_decl): Extern declared for
4246 -W[no-]deprecated-declarations option.
4247 * print-tree.c (print_node): Show deprecated flag status.
4248 * toplev.c (warn_deprecated_decl): Defined.
4249 (W_options): Added "deprecated-declaration".
4250 * toplev.h (warn_deprecated_use): Extern declared.
4251 * tree.h (struct tree_common): Define deprecated_flag.
4252 (TREE_DEPRECATED): New macro to access flag.
4253 * cp/call.c (build_call): Test for deprecated calls.
4254 * cp/class.c (add_implicitly_declared_members): Set global
4255 flag to tell grokdeclarator to not issue deprecated warnings.
4256 * cp/cp-tree.h: Add extern for adding_implicit_members.
4257 * cp/decl.c (deprecated_states): New enum.
4258 (start_decl): Set deprecated_state based on attributes.
4259 (grokdeclarator): Test for deprecated uses, propagate attribute.
4260 * cp/lex.c (do_identifier): Test for deprecated primaries.
4261 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4263 2002-01-10 Ira Ruben <ira@apple.com>
4265 Fix to assign attributes to inline member functions.
4266 * cp/decl.c (start_method): Handle attrlist.
4268 2002-01-10 Kazu Hirata <kazu@hxi.com>
4270 * combine.c (expand_field_assignment): Use subreg_lsb().
4272 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4274 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4275 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4276 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4277 Recurse for any operand of AND as long as constant is non-zero.
4279 2002-01-10 Kazu Hirata <kazu@hxi.com>
4281 * config/h8300/h8300.md: Remove constraints from expanders.
4283 2002-01-10 Kazu Hirata <kazu@hxi.com>
4285 * varasm.c: Fix formatting.
4286 * varray.c: Likewise.
4287 * vmsdbgout.c: Likewise.
4288 * xcoffout.c: Likewise.
4290 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4292 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4293 update edge probabilities to match.
4295 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4297 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4299 * doc/languages.texi, doc/sourcebuild.texi: New files.
4300 * doc/configfiles.texi: Make a subsubsection. Update.
4301 * doc/configterms.texi: Add @node. Remove warning that this isn't
4302 instructions for building GCC.
4303 * doc/makefile.texi: Make a subsection.
4304 * doc/gccint.texi: Update.
4306 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4308 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4310 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4312 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4314 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4316 * optabs.c (expand_fix): Look for wider integer modes first.
4318 * i386.md (mov?f): Avoid the fake const double trick for medium
4320 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4321 (fop_df_4): Disable for SSE compilation.
4323 2002-01-10 Graham Stott <grahams@redhat.com>
4325 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4326 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4328 2002-01-10 Richard Henderson <rth@redhat.com>
4330 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4332 2002-01-10 Richard Henderson <rth@redhat.com>
4334 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4335 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4337 2002-01-10 Kazu Hirata <kazu@hxi.com>
4339 * combine.c (can_combine_p): Fix a comment typo.
4341 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4343 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4344 empty list correctly. Change loop index $t to $f for
4345 consistency with rest of Makefile.
4347 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4349 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4350 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4352 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4353 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4354 (altivec_init_builtins): Same.
4355 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4356 (altivec_expand_binop_builtin): Same.
4357 (altivec_expand_ternop_builtin): Same.
4360 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4361 ("altivec_vctuxs"): Fix typo.
4362 ("altivec_vnmsubfp"): Same.
4363 ("altivec_dssall"): New.
4364 ("altivec_mfvscr"): New.
4365 ("altivec_dss"): New.
4366 ("altivec_lvsl"): New.
4367 ("altivec_lvsr"): New.
4368 ("altivec_dstt"): New.
4369 ("altivec_dstst"): New.
4370 ("altivec_dststt"): New.
4371 ("altivec_dst"): New.
4373 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4374 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4376 2002-01-09 Richard Henderson <rth@redhat.com>
4378 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4380 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4382 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4384 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4386 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4388 2002-01-09 Kazu Hirata <kazu@hxi.com>
4390 * read-rtl.c: Fix formatting.
4392 * regclass.c: Likewise.
4393 * regrename.c: Likewise.
4394 * reg-stack.c: Likewise.
4395 * reload1.c: Likewise.
4396 * reload.c: Likewise.
4399 2002-01-09 Kazu Hirata <kazu@hxi.com>
4401 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4402 to extract items in the expr_list chain.
4404 2002-01-09 Richard Henderson <rth@redhat.com>
4406 * config/vax/vax.c (vax_rtx_cost): Never abort.
4408 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4410 2002-01-09 Jan Hubicka <jh@suse.cz>
4412 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4414 2002-01-09 Richard Henderson <rth@redhat.com>
4416 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4417 Unify code from various alternatives.
4419 2002-01-09 Richard Henderson <rth@redhat.com>
4421 * regrename.c (copy_value): Ignore the copy if the source register
4422 is present in the value chain with a narrower mode.
4424 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4426 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4427 for the c4x target. Also improve layout.
4429 2002-01-09 Richard Henderson <rth@redhat.com>
4431 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4432 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4433 to match insn patterns.
4435 2002-01-09 Richard Henderson <rth@redhat.com>
4437 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4438 (copyprop_hardreg_forward_1): Likewise.
4440 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4442 * pa.md (decrement_and_branch_until_zero): Change predicate for
4443 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4445 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4447 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4448 gets undefined. For Darwin.
4450 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4452 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4454 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4456 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4458 2002-01-08 Richard Henderson <rth@redhat.com>
4460 * regrename.c (copy_value): Ignore overlapping copies.
4462 2002-01-08 Richard Henderson <rth@redhat.com>
4464 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4465 as needed to avoid shared structure.
4467 2002-01-08 Kazu Hirata <kazu@hxi.com>
4469 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4472 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4474 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4475 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4476 documentation of obsolete macros.
4477 * system.h: Poison these macros.
4478 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4479 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4480 config/c4x/c4x.h, config/clipper/clipper.h,
4481 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4482 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4483 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4484 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4485 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4486 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4487 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4488 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4489 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4490 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4491 config/sparc/sparc.h, config/stormy16/stormy16.h,
4492 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4493 definitions and commented out definitions of obsolete macros.
4494 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4495 of MAX_INT_TYPE_SIZE.
4497 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4499 * config/s390/s390.c (s390_preferred_reload_class): Never
4500 return ADDR_REGS if it isn't a subset of the given class.
4501 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4502 FP_REGS, but all superclasses as well.
4504 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4506 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4507 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4508 must not be a const_int.
4510 2002-01-08 Richard Henderson <rth@redhat.com>
4512 * Makefile.in (toplev.o): Depend on options.h.
4513 (gcc.o): Depend on specs.h.
4515 2002-01-08 Jakub Jelinek <jakub@redhat.com>
4517 * expr.c (store_expr): Convert VOIDmode constants back to target's
4520 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4522 * doc/invoke.texi: Markup gcc as @command. Refer to
4523 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4524 of http://gcc.gnu.org/thanks.html.
4526 2002-01-08 Dale Johannesen <dalej@apple.com>
4528 * config/rs6000/rs6000.md: Add missing int register
4529 target case to movdf_low.
4531 2002-01-08 Zack Weinberg <zack@codesourcery.com>
4533 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4534 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
4535 (cppinit.o): Depend on except.h.
4536 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4537 s-specs): New rules.
4539 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4540 Don't create specs.h/options.h/gencheck.h here. Remove
4541 unnecessary variable settings from last argument of AC_OUTPUT.
4542 * config.in, configure: Regenerate.
4543 * intl.c: Hardcode package name as "gcc".
4545 * cppinit.c: Include except.h.
4546 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4548 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4549 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4550 (!)USING_SJLJ_EXCEPTIONS.
4551 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4553 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4555 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
4556 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
4557 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
4558 documentation of obsolete macros.
4559 * system.h: Poison these macros.
4560 * config/d30v/d30v.h, config/ns32k/encore.h,
4561 config/stormy16/stormy16.h: Remove definitions and commented out
4562 definitions of obsolete macros.
4564 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
4566 * objc/objc-act.c (handle_class_ref): Mark the declaration of
4567 %sobjc_class_ref_%s as used - to prevent unwanted compiler
4570 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4572 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
4573 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
4574 to insn adjusting stack/frame pointer.
4575 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
4576 accept operands that cause the insn to be non-splittable.
4578 2002-01-08 Graham Stott <grahams@redhat.com>
4580 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
4581 (C_TYPE_FIELDS_VOLATILE): Likewise.
4582 (C_TYPE_BEING_DEFINED): Likewise.
4583 (C_IS_RESERVED_WORD): Likewise.
4584 (C_TYPE_VARIABLE_SIZE): Likewise.
4585 (C_DECL_VARIABLE_SIZE): Likewise.
4586 (C_MISSING_PROTOTYPE_WARNED): Likewise.
4587 (C_SET_EXP_ORIGINAL_CODE): Likewise.
4588 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
4590 (C_DECL_ANTICIPATED): Likewise.
4591 (c_build_type_variant): Add parenthesis.
4593 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4595 * gcc.c (option_map): Remove --version.
4596 (process_command): Handle -fversion following the GNU Coding
4597 Standards. Partially addresses PR other/704.
4599 2002-01-08 Graham Stott <grahams@redhat.com>
4601 * combine.c (combine_instructions): Fix typo.
4603 2002-01-08 Graham Stott <grahams@redhat.com>
4605 * debug.h: Use "tree" and "rtx" throughout.
4607 * debug.c: Likewise.
4609 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
4611 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
4612 constant pool, use the pool's version of the symbol instead.
4614 2002-01-07 Richard Henderson <rth@redhat.com>
4616 * regrename.c (find_oldest_value_reg): Ignore the value chain if
4617 the original register was copied in a mode with a fewer number of
4618 hard registers than the desired mode.
4619 (copyprop_hardreg_forward_1): Likewise.
4620 (debug_value_data): Fix loop test.
4621 * toplev.c (parse_options_and_default_flags): Reenable
4622 -fcprop-registers at -O1.
4624 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4626 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
4627 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
4629 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
4632 * config/rs6000/rs6000.md: Add altivec predicate patterns.
4634 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4636 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
4637 (pa_output_function_prologue): Output local label at the beginning of
4638 the prologue when profiling.
4639 (hppa_profile_hook): Use the local label rather than the function label.
4640 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
4642 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4644 * config/rs6000/rs6000.c (print_operand): Remove extra space.
4645 (altivec_expand_unop_builtin): Fix thinko.
4646 (altivec_expand_binop_builtin): Same.
4647 (altivec_expand_ternop_builtin): Same.
4648 (altivec_expand_builtin): Same.
4650 2002-01-07 Richard Henderson <rth@redhat.com>
4652 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
4654 2002-01-07 Jason Merrill <jason@redhat.com>
4656 * unwind-dw2.c (execute_cfa_program): Use < again.
4658 2002-01-07 Jakub Jelinek <jakub@redhat.com>
4660 * predict.c (combine_predictions_for_insn): Avoid division by zero.
4662 2002-01-07 Jakub Jelinek <jakub@redhat.com>
4664 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
4665 Don't allow -1 - x -> ~x simplifications in the first pass.
4667 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4669 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
4671 (altivec_expand_binop_builtin): Same.
4672 (altivec_expand_unop_builtin): Same.
4673 (print_operand): Fix typo.
4674 (bdesc_1arg): Add vupk* variants.
4676 * rs6000.h (rs6000_builtins): Add vupk* enums.
4678 * rs6000.md: Add altivec_vupk* variants.
4680 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
4682 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
4683 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
4684 and last update dates.
4686 2002-01-07 Janis Johnson <janis187@us.ibm.com>
4688 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
4690 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
4692 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
4693 * config/avr/avr.h (CPP_SPEC): Likewise.
4694 (LINK_SPEC): Likewise.
4695 (CRT_BINUTILS_SPECS): Likewise.
4696 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4697 * doc/invoke.texi (AVR Options): Document them.
4699 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
4701 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
4704 2002-01-07 Graham Stott <grahams@redhat.com>
4706 * config/i386/i386.h: Update copyright date.
4707 (HALF_PIC_PTR): Add parenthesis.
4708 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
4709 (CONSTANT_ALIGNMENT): Add parenthesis.
4710 (DATA_ALIGNMENT): Likewise.
4711 (LOCAL_ALIGNMENT): Likewise.
4712 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
4713 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
4714 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
4715 (HARD_REGNO_NREGS): Add paranethesis.
4716 (VALID_SSE_REG_MODE): Whitespace.
4717 (VALID_MMX_REG_MODE): Whitespace.
4718 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
4719 (ix86_hard_regno_mode_ok): Add parenthesis.
4720 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
4721 (RETURN_IN_MEMORY): Whitespace.
4722 (N_REG_CLASSES): Add parenthesis.
4723 (INTEGER_CLASS_P): Add parenthesis and wrap.
4724 (FLOAT_CLASS_P): Likewise.
4725 (SSE_CLASS_P): Likewise.
4726 (MMX_CLASS_P): Likewise.
4727 (MAYBE_INTEGER_CLASS_P): Likewise.
4728 (MAYBE_FLOAT_CLASS_P): Likewise.
4729 (MAYBE_SSE_CLASS_P): Likewise.
4730 (MAYBE_MMX_CLASS_P): Likewise.
4731 (Q_CLASS_P): Likewise.
4732 (GENERAL_REGNO_P): Uppercase macro parameter.
4733 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
4734 (FP_REGNO_P): Likewise.
4735 (ANY_FP_REGNO_P): Uppercase macro parameter.
4736 (SSE_REGNO_P): Likewise.
4737 (SSE_REGNO): Likewise.
4738 (SSE_REG_P): Likewise.
4739 (SSE_FLOAT_MODE_P): Likewise.
4740 (MMX_REGNO_P): Likewise.
4741 (MMX_REG_P):Likewise.
4742 (STACK_REG_P): Likewise.
4743 (NON_STACK_REG_P): Likewise.
4744 (STACK_TOP_P): Likewise.
4745 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
4746 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
4747 (SECONDARY_MEMORY_NEEDED): Likewise.
4748 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
4749 (MD_ASM_CLOBBERS): Whitespace and wrap.
4750 (MUST_PASS_IN_STACK): Whitespace and wrap.
4751 (RETURN_POPS_ARGS): Add parenthesis.
4752 (INIT_CUMULATIVE_ARGS): Likewise.
4753 (FUNCTION_ARG): Likewise.
4754 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
4755 (SETUP_INCOMING_VARARGS): Likewise.
4756 (BUILD_VA_LIST_TYPE): Add parenthesis.
4757 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
4759 (EXPAND_BUILTIN_VA_ARG): Likewise.
4760 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
4761 (INITIALIZE_TRAMPOLINE): Add parenthesis.
4762 (INITIAL_ELIMINATION_OFFSET): Likewise.
4763 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
4764 (REGNO_OK_FOR_BASE_P): Likewise.
4765 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
4766 (REGNO_OK_FOR_DIREG_P): Likewise.
4767 (REG_OK_FOR_INDEX_P): Whitespace.
4768 (REG_OK_FOR_BASE_P): Whitespace.
4769 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
4771 (FIND_BASE_TERM): Fix typo.
4772 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
4773 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
4774 (SYMBOLIC_CONST; Whitespace.
4775 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
4776 (ENCODE_SECTION_INFO): Whitespace.
4777 (FINALIZE_PIC): Remove do { ... } while (0).
4778 (PROMOTE_MODE): Wrap in do { ... } while (0).
4779 (CONST_COSTS): Whitespace.
4780 (RTX_COSTS): Add paramethesis, whitespace and wrap.
4781 (REGISTER_MOVE_COST): Add parenthesis.
4782 (MEMORY_MOVE_COST): Likewise.
4783 (EXTRA_CC_MODES): Whitespace.
4784 (SELECT_CC_MODE): Add parenthesis and whitespace.
4785 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
4786 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
4787 (ASM_OUTPUT_LABEL): Add paramethesis.
4788 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
4789 (ASM_OUTPUT_REG_POP): Likewise.
4790 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
4791 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4793 * config/i386/i386.c: Update copyright.
4794 (CHECK_STACK_LIMIT): Add parenthesis.
4795 (AT_BP): Uppercase macro parameter.
4796 (x86_64_int_parameter_registers): Constify.
4797 (x86_64_int_return_registers): Likewise.
4798 (ix86_compare_op0): Use rtx.
4799 (construct_container): Constify INTREG parameter.
4800 (function_arg): Use rtx.
4802 * diagnostic.h: Update copyright date.
4803 (output_buffer_state): Add parenthesis.
4804 (output_buffer_format_args): Likewise.
4806 * combine.c (combine_instructions): Replace XEXP (links, 0)
4809 2002-01-06 H.J. Lu <hjl@gnu.org>
4811 * cfgcleanup.c (thread_jump): Fix 2 typos.
4813 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
4815 * config.gcc: Add support for --enable-altivec.
4817 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
4819 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
4821 2002-01-06 Jakub Jelinek <jakub@redhat.com>
4823 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
4824 __objc_class_name_*.
4826 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
4828 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
4830 2002-01-06 Richard Henderson <rth@redhat.com>
4832 * reorg.c (emit_delay_sequence): Remove death notes, not merely
4833 nop them out. Increment label reference count for REG_LABEL.
4834 (fill_slots_from_thread): Frob label reference count around
4835 delete_related_insns.
4837 2002-01-05 Richard Henderson <rth@redhat.com>
4839 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
4842 2002-01-05 Richard Henderson <rth@redhat.com>
4844 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
4845 * integrate.c (output_inline_function): Likewise.
4846 * toplev.c (rest_of_compilation): Do it here instead. Move call
4847 to remove_unnecessary_notes after emitting abstract instance.
4848 Force an emitted nested function to have its parent emited as well.
4849 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
4851 (rtl_for_decl_location): Do not look at reload data structures
4852 before reload has run.
4854 2002-01-05 Kazu Hirata <kazu@hxi.com>
4856 * cse.c: Fix formatting.
4857 * dwarf2asm.c: Likewise.
4858 * dwarf2out.c: Likewise.
4859 * explow.c: Likewise.
4860 * expmed.c: Likewise.
4861 * function.c: Likewise.
4863 * gencheck.c: Likewise.
4864 * genrecog.c: Likewise.
4865 * ggc-common.c: Likewise.
4866 * ggc-page.c: Likewise.
4867 * global.c: Likewise.
4869 2002-01-05 Kazu Hirata <kazu@hxi.com>
4871 * combine.c: Fix formatting.
4873 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
4876 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
4878 2002-01-05 David Edelsohn <edelsohn@gnu.org>
4880 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
4881 as 1 for __powerpc64__ as well.
4883 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
4885 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
4888 2002-01-05 Daniel Berlin <dan@dberlin.org>
4890 * lcm.c: Revert change, due to performance regression it causes on
4891 SPEC because it's slightly more conservative (sigh, I hate
4894 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
4896 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
4898 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
4900 * doc/cppinternals.texi: Update.
4902 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
4904 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
4905 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
4907 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
4908 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
4909 kludge for pre-october-14th mmix versions to handle new-found bug
4910 with PUSHJ/PUSHGO and the register stack.
4911 * config/mmix/mmix.h (struct machine_function): Rename member
4912 has_call_value_without_parameters to has_call_without_parameters.
4913 All referers changed.
4914 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
4915 TARGET_MASK_BRANCH_PREDICT): New macros.
4916 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
4917 -mno-reg-stack-fill-bug-workaround.
4918 * config/mmix/mmix.md ("call"): Set struct machine member
4919 has_call_without_parameters.
4921 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
4923 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
4925 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
4927 * cfgcleanup.c: Include tm_p.h
4928 (mark_effect): Fix handling of hard register; fix handling of SET
4930 2002-01-04 Kazu Hirata <kazu@hxi.com>
4932 * config/h8300/h8300.md (anonymous patterns): Check that
4933 operands are registers before using REGNO on them.
4935 2002-01-03 Roland McGrath <roland@frob.com>
4937 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
4939 2002-01-04 Jakub Jelinek <jakub@redhat.com>
4941 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
4942 * c-common.h (genrtl_expr_stmt_value): Likewise.
4943 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
4944 (expand_expr_stmt_value): Add maybe_last argument.
4945 Don't warn about statement with no effect if it is the last statement
4946 in expression statement.
4947 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
4948 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
4949 expand_expr_stmt_value.
4950 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
4951 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
4952 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
4953 as maybe_last to expand_expr_stmt_value.
4955 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
4957 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
4958 be passed in, do not build it.
4959 (c_begin_if_stmt): New function.
4960 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4961 * c-common.h (c_expand_start_cond): Update prototype.
4962 (c_begin_if_stmt): Prototype new function.
4963 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4964 * c-parse.in (if_prefix): Use c_begin_if_stmt,
4965 c_begin_while_stmt and c_finish_while_stmt_cond.
4967 2002-01-04 William Cohen <wcohen@redhat.com>
4969 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
4970 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
4971 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
4972 * config/pa/som.h (ASM_FILE_START): Likewise.
4974 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
4976 * lcm.c: Include df.h.
4977 Add available_transfer_function prototype.
4978 (compute_available): Rework to use iterative dataflow framework.
4979 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
4980 with bb_info in df.h
4981 (available_transfer_function): New function.
4983 * Makefile.in (lcm.o): add df.h to dependencies.
4985 2002-01-04 Richard Henderson <rth@redhat.com>
4987 * config/alpha/alpha.c (some_operand): Accept HIGH.
4988 (input_operand): Likewise; accept simple references to globals.
4989 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
4990 (alpha_const_double_ok_for_letter_p): Likewise.
4991 (alpha_extra_constraint): Likewise.
4992 (alpha_preferred_reload_class): Likewise. Do not force
4993 symbolic constants to memory.
4994 (alpha_legitimate_address_p): Accept simple references
4995 to small_symbolic_operand.
4996 (alpha_legitimize_address): New arg scratch. Be prepared to be
4997 called when no_new_pseudos. Emit simple symbolic references.
4998 Split integers into low, high, and rest.
4999 (alpha_expand_mov): Use alpha_legitimize_address.
5000 (some_small_symbolic_mem_operand): New.
5001 (split_small_symbolic_mem_operand): New.
5002 * config/alpha/alpha-protos.h: Update.
5003 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5004 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5005 (EXTRA_CONSTRAINT): Likewise.
5006 (PREFERRED_RELOAD_CLASS): Likewise.
5007 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5008 (PREDICATE_CODES): Update.
5009 * config/alpha/alpha.md: New post-reload splitters to convert
5010 simplfied symbolic operands to the form that references $29.
5011 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5012 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5014 2002-01-03 Richard Henderson <rth@redhat.com>
5016 * local-alloc.c (function_invariant_p): Update commentary.
5018 2002-01-04 H.J. Lu <hjl@gnu.org>
5020 * toplev.c (rest_of_compilation): Fix a typo when calling
5023 2002-01-03 Kazu Hirata <kazu@hxi.com>
5025 * c-common.c: Fix formatting.
5026 * diagnostic.c: Likewise.
5027 * doloop.c: Likewise.
5028 * dwarf2out.c: Likewise.
5030 2002-01-03 Kazu Hirata <kazu@hxi.com>
5032 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5033 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5035 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5037 * cpperror.c: Update comments and copyright.
5038 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5039 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5041 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5043 * collect2.c (main): Use strcmp when testing for "-shared".
5045 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5047 * cppmacro.c: Don't include intl.h. Update comments.
5048 (new_number_token): Allocate enough buffer for 64-bit unsigned
5049 integers; update prototype.
5050 * cppmain.c: Update comments.
5052 2002-01-03 William Cohen <wcohen@redhat.com>
5054 * function.h (struct function): Add profile.
5055 (current_function_profile): New.
5056 doc/extend.texi: Update documentation.
5057 * final.c (final_start_function): Use current_function_profile
5058 instead of profile_flag.
5059 (profile_after_prologue): Likewise.
5060 * function.c (expand_function_start): Likewise.
5061 (expand_function_start): Likewise.
5062 * config/alpha/alpha.c (direct_call_operand):
5063 (alpha_does_function_need_gp): Likewise.
5064 (alpha_expand_prologue): Likewise.
5065 * config/arm/arm.c (arm_expand_prologue): Likewise.
5066 thumb_expand_prologue: Likewise.
5067 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5068 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5069 (fr30_expand_prologue): Likewise.
5070 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5071 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5072 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5073 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5074 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5075 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5076 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5077 (m32r_expand_prologue): Likewise.
5078 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5079 (m88k_expand_prologue): Likewise.
5080 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5081 * config/mips/mips.c (compute_frame_size): Likewise.
5082 (mips_expand_prologue): Likewise.
5083 (mips_can_use_return_insn): Likewise.
5084 * config/pa/elf.h (ASM_FILE_START): Likewise.
5085 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5086 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5087 * config/pa/som.h (ASM_FILE_START): Likewise.
5088 * config/romp/romp.c (romp_using_r14): Likewise.
5089 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5090 (rs6000_stack_info): Likewise.
5091 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5092 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5093 * config/v850/v850.c (compute_register_save_size): Likewise.
5095 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5097 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5098 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5100 2002-01-03 Turly O'Connor <turly@apple.com>
5102 * darwin.c (machopic_output_possible_stub_label): Don't generate
5103 stub routines for pseudo-stubs which we've just defined.
5105 2002-01-03 Kazu Hirata <kazu@hxi.com>
5107 * builtins.c: Fix formatting.
5108 * c-typeck.c: Likewise.
5109 * combine.c: Likewise.
5113 2002-01-03 Andreas Schwab <schwab@suse.de>
5115 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5116 and return true if _cpp_push_next_buffer pushed a new include
5118 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5119 _cpp_pop_file_buffer did not push a new file.
5120 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5122 2002-01-02 Eric Christopher <echristo@redhat.com>
5124 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5125 FIND_REG_INC_NOTE call. Update copyright.
5126 * loop.c (canonicalize_condition): Ditto.
5127 * reorg.c (delete_scheduled_jump): Ditto.
5129 2002-01-03 Kazu Hirata <kazu@hxi.com>
5131 * gcse.c: Fix formatting.
5133 2002-01-03 Graham Stott <grahams@redhat.com>
5135 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5136 forward defs for struct tags rtx_def, union_tree, rtvec_def
5137 also output corresponding typedefs for rtx, tree, and rtvec.
5139 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5140 rtvec_def along with corresponding typedefs for rtx, tree, and
5141 rtvec to config.h, hconfig.h, tconfig.h.
5143 2002-01-03 Graham Stott <grahams@redhat.com>
5145 * tree.h: Update copyright date.
5146 (IS_EXPR_CODE_CLASS): Add parenthesis.
5147 (TREE_SET_CODE): Add whitespace.
5148 (TREE_CHECK): Add parenthesis.
5149 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5150 (CST_OR_CONSTRUCTOR_CHECK):
5151 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5152 (TREE_SYMBOL_REFERENCED): Whitespace.
5153 (INT_CST_LT): Likewise.
5154 (INT_CST_LT_UNSIGNED): Likewise.
5155 (tree_real_cst): Unwrap comment.
5156 (tree_string): Likewise.
5157 (tree_complex): Likewise.
5158 (IDENTIFIER_POINTER): correct cast.
5159 (SAVE_EXPR_CONTEXT): Whitespace.
5160 (EXPR_WFL_FILENAME_NODE): Likewise.
5161 (EXPR_WFL_FILENAME): Remove parenthesis.
5162 (DECL_ORIGIN): Add parenthesis.
5163 (DECL_FROM_INLINE): Use NULL_TREE.
5164 (build_int_2): Whitespace.
5165 (build_type_variant): Add parenthesis.
5167 * gcc/jcf-parse.c: Update copyright date.
5168 (yyparse): Constify resource_filename.
5170 2002-01-03 Graham Stott <grahams@redhat.com>
5172 * rtl.h: Update copyright date.
5173 (RTL_CHECK1): Wrap long line.
5174 (RTL_CHECK2): Likewise.
5175 (RTL_CHECKC1): Wrap long line and whitespace.
5176 (RTL_CHECKC2): Likewise.
5177 (XWINT): Whitespace.
5183 (XBITMAP): Likewise.
5194 (X0BITMAP): Likewise.
5196 (X0BBDEF): Likewise.
5197 (X0ADVFLAGS): Likewise.
5198 (X0CSELIB): Likewise.
5199 (X0MEMATTR): Likewise.
5207 (XCBITMAP): Likewise.
5209 (XCBBDEF): Likewise.
5210 (XCADVFLAGS): Likewise.
5211 (XCCSELIB): Likewise.
5213 (INSN_UID): Likewise.
5214 (PREV_INSN): Likewise.
5215 (PATTERN): Likewise.
5216 (INSN_CODE): Likewise.
5217 (PUT_REG_NOTE_KIND): Likewise.
5218 (CODE_LABEL_NUMBER): Likewise.
5219 (NOTE_SOURCE_FILE): Likewise.
5220 (NOTE_BLOCK): Likewise.
5221 (NOTE_EH_HANDLER): Likewise.
5222 (NOTE_RANGE_INFO): Likewise.
5223 (NOTE_LIVE_INFO): Likewise.
5224 (NOTE_BASIC_BLOCK): Likewise.
5225 (NOTE_EXPECTED_VALUE): Likewise.
5226 (NOTE_LINE_NUMBER): Likewise.
5227 (LABEL_NAME): Likewise.
5228 (LABEL_NUSES): Likewise.
5229 (LABEL_ALTERNATE_NAME): Likewise.
5230 (ADDRESSOF_DECL): Likewise.
5231 (JUMP_LABEL): Likewise.
5232 (LABEL_NEXTREF): Likewise.
5234 (ORIGINAL_REGNO: Likewise.
5235 (HARD_REGISTER_NUM_P): Add parenthesis.
5236 (SUBREG_REG): Whitespace.
5237 (SUBREG_BYTE): Likewise.
5238 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5239 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5240 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5241 (ASM_OPERANDS_INPUT_VEC): Likewise.
5242 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5243 (ASM_OPERANDS_INPUT): Likewise.
5244 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5245 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5246 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5247 (ASM_OPERANDS_INPUT_MODE): Likewise.
5248 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5249 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5250 (MEM_SET_IN_STRUCT_P): Minor reformat.
5251 (TRAP_CONDITION): Whitespace.
5252 (TRAP_CODE): Likewise.
5253 (COND_EXEC_TEST): Likewise.
5254 (COND_EXEC_CODE): Likewise.
5255 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5256 (PHI_NODE_P): Add parenthesis.
5257 (plus_constant): Whitespace and add parenthesis.
5259 2002-01-03 Kazu Hirata <kazu@hxi.com>
5261 * config/avr/avr.c: Fix comment typos.
5262 * config/c4x/c4x.md: Likewise.
5263 * config/dsp16xx/dsp16xx.h: Likewise.
5264 * config/dsp16xx/dsp16xx.md: Likewise.
5265 * config/i386/i386.md: Likewise.
5266 * config/ia64/ia64.c: Likewise.
5267 * config/m32r/m32r.h: Likewise.
5268 * config/m68hc11/m68hc11.md: Likewise.
5269 * config/mmix/mmix.c: Likewise.
5270 * config/mn10200/mn10200.c: Likewise.
5271 * config/romp/romp.c: Likewise.
5272 * config/sh/sh.c: Likewise.
5273 * config/stormy16/stormy16.c: Likewise.
5274 * config/stormy16/stormy16.h: Likewise.
5275 * config/stormy16/stormy16.md: Likewise.
5277 2002-01-03 Graham Stott <grahams@redhat.com>
5279 * loop.h: Update copyright date.
5280 (LOOP_MOVABLES): Fix typo.
5281 (LOOP_REGS): Likewise.
5282 (LOOP_IVS): Likewise.
5284 2002-01-03 Graham Stott <grahams@redhat.com>
5286 * cppinit.c: Update copyright date.
5287 Don't include output.h
5288 * Makefile.in: Update copyright date.
5291 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5294 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5295 (-pthread) Add to RS/6000 options.
5297 2002-01-02 Kazu Hirata <kazu@hxi.com>
5299 * except.c: Fix comment typos.
5301 * varasm.c: Likewise.
5302 * doc/tm.texi: Fix a typo.
5304 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5306 * c-typeck.c (output_init_element): Allow initializing static storage
5307 duration objects with compound literals.
5309 2002-01-02 Richard Henderson <rth@redhat.com>
5311 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5314 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5316 * gcc.c (default_compilers): Const-ify.
5317 * mips-tdump.c (stab_names): Likewise.
5318 * mips-tfile.c (map_coff_types, map_coff_storage,
5319 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5320 pseudo_ops_t, pseudo_ops): Likewise.
5321 * protoize.c (default_include): Likewise
5323 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5324 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5325 Add array size in declaration.
5326 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5327 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5328 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5329 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5330 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5331 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5332 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5333 emtens, make_nan): Const-ify.
5334 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5335 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5337 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5339 * config.gcc (ia64-*-*): Set extra_headers.
5340 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5341 * config/alpha/t-osf: Remove.
5342 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5344 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5346 * config/rs6000/t-aix43: Revert previous change.
5348 2002-01-02 Jason Merrill <jason@redhat.com>
5350 * c-decl.c (c_expand_body): Call outlining_inline_function when
5351 emitting an inline function out of line.
5353 2002-01-02 Richard Henderson <rth@redhat.com>
5355 * dwarf2out.c (limbo_die_node): Add created_for member.
5356 (new_die): New argument created_for. Update all callers.
5357 (mark_limbo_die_list): New.
5358 (dwarf2out_init): Register limbo_die_list as a root.
5359 (dwarf2out_finish): Force insert limbo dies into their function
5362 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5365 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5367 2002-01-02 Kazu Hirata <kazu@hxi.com>
5369 * config/h8300/fixunssfsi.c: Update copyright.
5372 * config/h8300/h8300.c: Update copyright.
5375 2002-01-02 Kazu Hirata <kazu@hxi.com>
5377 * config/romp/romp.c: Fix comment formatting.
5378 * config/romp/romp.h: Likewise.
5379 * config/romp/romp.md: Likewise.
5380 * config/s390/s390.c: Likewise.
5381 * config/stormy16/stormy16.c: Likewise.
5382 * config/stormy16/stormy16.h: Likewise.
5384 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5386 * c-common.h (genrtl_expr_stmt_value): Declare.
5387 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5388 (genrtl_goto_stmt_value): ... this new function. Pass new
5389 argument down to expand_expr_stmt_value, taking
5390 TREE_ADDRESSABLE into account.
5391 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5392 STMT_EXPR as addressable, i.e., one whose result we want.
5393 * expr.c (expand_expr): Don't save expression statement value
5394 of labeled_blocks or loop_exprs.
5395 * stmt.c (expand_expr_stmt): Redirect to...
5396 (expand_expr_stmt_value): ... this new function. Use new
5397 argument to tell whether to save expression value.
5398 (expand_end_stmt_expr): Reset last_expr_type and
5399 last_expr_value if we don't have either.
5400 * tree-inline.c (declare_return_variable): Mark its use
5401 statement as addressable.
5402 * tree.h: Document new use of TREE_ADDRESSABLE.
5403 (expand_expr_stmt_value): Declare.
5405 2002-01-01 Tom Rix <trix@redhat.com>
5407 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5408 rs6000_emit_allocate_stack.
5410 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5412 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5413 ${srcdir}/ginclude/ to every entry in extra_headers.
5414 * configure: Regenerate.
5415 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5416 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5417 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5418 * ginclude/proto.h: Rename to config/convex/proto.h.
5420 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5422 * attribs.c (handle_vector_size_attribute): Use host_integerp
5423 and tree_int_cst; remove warnings.
5424 * caller-save.c (insert_restore): Add cast to get rid of warning.
5425 (insert_save): Likewise.
5426 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5427 * regmove.c (find_matches): Add temporary var to kill a warning.
5429 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5431 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5432 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5433 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5434 (vms-dwarf2eh.o): Add Makefile rule.
5435 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5436 * config/alpha/vms-dwarf2eh.asm: New file.
5438 * gcc.c (delete_if_ordinary): Delete all versions.
5440 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5442 * config/mmix/mmix.md: Update FIXME to not mention
5444 (MMIX_rJ_REGNUM): New define_constants constant.
5445 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5446 "*movdicc_real"): Adjust contraints formatting.
5447 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5448 for branch prediction.
5449 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5451 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5452 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5453 number. Delete related FIXMEs.
5454 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5455 from number to MMIX_rJ_REGNUM.
5456 (TARGET_MASK_BRANCH_PREDICT): New.
5457 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5458 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5459 value. Add -mbranch-predict and -mno-branch-predict.
5460 (TARGET_VERSION): Drop date.
5461 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5462 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5463 for finding out global symbols.
5464 (mmix_asm_output_labelref): Revert condition for global symbol.
5465 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5466 (mmix_print_operand_punct_valid_p): A '+' is valid.
5468 See ChangeLog.6 for earlier changes.