1 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
4 * gcc.c (cpp_unique_options): Treat -o as indicating object file
5 only if not -E. If -E, pass -o through to the preprocessor.
7 2002-02-19 Kazu Hirata <kazu@hxi.com>
9 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10 register number with an appropriate macro.
12 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14 * doc/rtl.texi (Constants): Close @code tag.
16 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
19 ("mmx_uavgv4hi3"): Same.
20 ("pmulhrwv4hi3"): Same.
22 * tree-inline.c (walk_tree): Handle vectors.
24 * c-common.c (constant_expression_warning): Handle vectors.
25 (overflow_warning): Same.
27 * sched-deps.c (sched_analyze_2): Handle vectors.
29 * rtlanal.c (rtx_unstable_p): Handle vectors.
31 (count_occurrences): Same.
32 (regs_set_between_p): Same.
33 (modified_between_p): Same.
34 (modified_in_p): Same.
35 (volatile_insn_p): Same.
36 (volatile_refs_p): Same.
37 (side_effects_p): Same.
39 (inequality_comparisons_p): Same.
41 (computed_jump_p_1): Same.
43 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
45 (inner_mode_array): New.
46 (copy_rtx): Handle vectors.
47 (copy_most_rtx): Same.
49 (get_mode_alignment): Adjust for vectors.
51 * resource.c (mark_referenced_resources): Handle vectors.
52 (mark_set_resources): Same.
54 * reload1.c (eliminate_regs): Handle vectors.
55 (elimination_effects): Same.
56 (scan_paradoxical_subregs): Same.
58 * reload.c (subst_reg_equivs): Handle vectors.
60 * regrename.c (scan_rtx): Handle vectors.
62 * regclass.c (reg_scan_mark_refs): Handle vectors.
64 * recog.c (find_single_use_1): Handle vectors.
66 * local-alloc.c (equiv_init_varies_p): Handle vectors.
67 (contains_replace_regs): Same.
68 (memref_referenced_p): Same.
70 * integrate.c (copy_rtx_and_substitute): Handle vectors.
71 (subst_constants): Same.
73 * genattrtab.c (attr_copy_rtx): Handle vectors.
74 (encode_units_mask): Same.
75 (clear_struct_flag): Same.
76 (count_sub_rtxs): Same.
78 * gcse.c (want_to_gcse_p): Handle vectors.
79 (oprs_unchanged_p): Same.
81 (oprs_not_set_p): Same.
82 (expr_killed_p): Same.
83 (compute_transp): Same.
86 * function.c (purge_addressof_1): Do not allow paradoxical subregs
88 (fixup_var_refs_1): Same.
89 (instantiate_virtual_regs_1): Same.
91 * fold-const.c (operand_equal_p): Handle vectors.
93 (rtl_expr_nonnegative_p): Same.
95 * flow.c (mark_used_regs): Handle vectors.
97 * df.c (df_uses_record): Handle vectors.
99 * cselib.c (cselib_subst_to_values): Handle vectors.
100 (cselib_mem_conflict_p): Same.
103 * cse.c (canon_reg): Handle vectors.
105 (cse_process_notes): Same.
106 (count_reg_usage): Same.
109 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
111 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
113 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
114 (gen_rtx): Handle CONST_VECTOR.
115 (gen_const_vector_0): New.
116 (copy_rtx_if_shared): CONST_VECTORs can be shared.
117 (reset_used_flags): Same.
119 (initializer_constant_valid_p): Handle VECTOR_CST.
121 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
123 * doc/rtl.texi (Constants): Document const_vector.
124 (CONST0_RTX): Update for vectors.
127 * print-tree.c (print_node): Add case for VECTOR_CST.
129 * tree.h (TREE_VECTOR_CST_ELTS): New.
130 (struct tree_vector): New.
131 (union tree_node): Add vector node.
132 (build_vector): Add prototype.
134 * tree.def (VECTOR_CST): New.
136 * tree.c (build_vector): New.
138 * expmed.c (make_tree): Handle CONST_VECTOR.
140 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
141 (CONST_VECTOR_ELT): New.
142 (CONST_VECTOR_NUNITS): New.
144 * machmode.h (GET_MODE_INNER): New.
145 (DEF_MACHMODE): Accept 8th arg.
147 * machmode.def: Add 8th argument for vector inner mode.
148 Add inner vector modes for vectors.
150 * rtl.def (VEC_CONST): Remove.
153 * expr.c (clear_storage): Allow vectors.
154 (is_zeros_p): Handle VECTOR_CST.
156 * varasm.c (output_constant_pool): Handle vectors.
157 (rtx_const): Add veclo and vechi fields.
158 (kind): Add RTX_VECTOR.
159 (decode_rtx_const): Add case for vector.
161 * config/rs6000/rs6000-protos.h: Add zero_constant.
163 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
164 constants. Force easy vector constants into memory.
165 (easy_vector_constant): New.
166 (emit_easy_vector_constant): New.
167 (rs6000_legitimize_reload_address): Do not generate bad reloads on
170 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
172 ("altivec_lvxl"): Same.
173 (altivec_lvebx): Same.
174 (altivec_lvehx): Same.
175 (altivec_lvewx): Same.
176 ("*movv4si_const0"): New.
177 ("*movv4sf_const0"): New.
178 ("*movv8hi_const0"): New.
179 ("*movv16qi_const0"): New.
181 2002-02-18 Kazu Hirata <kazu@hxi.com>
183 * config/h8300/h8300.c (notice_update_cc): Use
186 2002-02-18 Kazu Hirata <kazu@hxi.com>
188 * config/h8300/h8300.md (divmod patterns): Change the
189 constraints for operands[1] to register_operand.
191 2002-02-18 Kazu Hirata <kazu@hxi.com>
193 * config/h8300/h8300-protos.h: Remove the prototype for
195 * config/h8300/h8300.c (p_operand): Remove.
196 * config/h8300/h8300.md: Replace p_operand with
199 2002-02-18 Philip Blundell <pb@nexus.co.uk>
201 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
203 (output_return_instruction): Allow use of LDR to unstack
204 return addresss even for interrupt handlers or when
205 interworking. If compiling for ARMv5, use interworking-safe
206 return instructions by default. Remove duplicated code and
207 lengthy "strcat" sequences.
209 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
211 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
212 (LINK_EH_SPEC): Define.
213 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
215 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
217 * config/s390/s390.c (s390_emit_prologue): Do not set the
218 frame_related flag for call-clobbered registers.
220 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
222 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
223 (construct_container): Fix handling of SSE operands.
224 (ix86_expand_builtin): Fix handling of 64bit pointers.
225 (mmx_maskmovq_rex): New pattern.
227 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
229 * regrename.c (kill_set_value): Handle subregs properly.
231 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
233 * objc/objc-act.c (handle_impent): Remove leading '*'
234 from objc_class_name.
236 2002-02-17 Richard Henderson <rth@redhat.com>
238 * config/alpha/alpha.c (some_small_symbolic_operand,
239 some_small_symbolic_operand_1, split_small_symbolic_operand,
240 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
241 Handle small SYMBOL_REFs anywhere, not just inside memories.
242 * config/alpha/alpha-protos.h: Update.
243 * config/alpha/alpha.h (PREDICATE_CODES): Update.
244 * config/alpha/alpha.md (small symbolic operand splitter): Update.
246 2002-02-17 Roland McGrath <roland@frob.com>
248 * config.gcc (powerpc-*-gnu-gnualtivec*,
249 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
250 * config/rs6000/gnu.h: New file.
251 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
252 Grok "gnu" in rs6000_abi_name.
253 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
254 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
255 Grok -mcall-gnu analogous to -mcall-linux et al.
256 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
257 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
258 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
260 2002-02-17 Jakub Jelinek <jakub@redhat.com>
263 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
266 2002-02-17 Philipp Thomas <pthomas@suse.de>
268 * config/cris/cris.h: Undefine STARTFILE_SPEC and
269 ENDFILE_SPEC before (re)defining them.
271 2002-02-17 Kazu Hirata <kazu@hxi.com>
273 * config/h8300/h8300.c: Fix formatting.
274 * config/h8300/h8300.h: Likewise.
276 2002-02-17 Philipp Thomas <pthomas@suse.de>
278 * doc/tm.texi: Explain why empty strings should not be
279 marked for translation.
281 2002-02-17 Philipp Thomas <pthomas@suse.de>
283 * final.c (output_operand_lossage): Changed to accept
284 printf style arguments. Change calls where necessary.
285 * output.h (output_operand_lossage): Change declaration
286 accordingly. Update copyright.
287 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
288 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
289 Update copyright date where necessary.
291 * config/i386/i386.c (print_operand): Likewise. Remove use of
294 * config/cris/cris.c (cris_operand_lossage): Likewise.
295 Rename parameter so that exgettext recognizes it as
296 translatable message.
297 (LOSE_AND_RETURN): Rename parameter to msgid.
299 2002-02-17 Kazu Hirata <kazu@hxi.com>
301 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
302 hard coded register number with an appropriate macro.
303 (HARD_REGNO_MODE_OK): Likewise.
304 (ARG_POINTER_REGNUM): Likewise.
305 (STATIC_CHAIN_REGNUM): Likewise.
306 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
307 * config/h8300/h8300.md (define_constants): Define more
310 2002-02-17 Philipp Thomas <pthomas@suse.de>
312 * config/i386/i386.h: Don't mark empty strings for translation.
314 2002-02-16 H.J. Lu <hjl@gnu.org>
316 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
318 2002-02-16 Zack Weinberg <zack@codesourcery.com>
320 * cppinit.c (merge_include_chains): Check for brack being
321 NULL before attempting to merge it with qtail.
323 2002-02-16 Andrew Cagney <ac131313@redhat.com>
325 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
328 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
330 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
332 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
334 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
335 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
336 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
338 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
340 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
341 now only if !TARGET_FIX.
342 (*movsi_nt_vms_fix): New pattern.
344 2002-02-16 Douglas B Rupp <rupp@gnat.com>
346 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
347 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
348 (alpha_sa_mask, alpha_sa_size): Reflect above change.
349 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
350 (alpha_start_function, alpha_expand_epilogue): Likewise.
351 (unicosmk_gen_dsib): Likewise.
353 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
355 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
357 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
359 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
360 check_and_change_labels, s390_final_chunkify): Delete.
361 (s390_split_branches, s390_chunkify_pool): New functions.
362 (s390_function_prologue): Call them.
364 * config/s390/s390.h (S390_REL_MAX): Delete.
365 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
367 * config/s390/s390.md (cjump, icjump, jump): Fix length
368 attribute calculation.
371 2002-02-15 David Edelsohn <edelsohn@gnu.org>
373 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
374 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
376 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
378 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
379 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
380 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
382 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
384 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
386 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
388 * reload.c (find_dummy_reload): Check that an output register
389 is valid for its mode.
391 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
393 * combine.c (known_cond): After replacing the REG of a SUBREG, try
396 * function.c (assign_parms): Demote promoted argument passed by
397 transparent reference.
399 2001-02-14 Joel Sherrill <joel@OARcorp.com>
401 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
402 -Acpu() and -Amachine() to eliminate warnings.
404 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
406 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
408 2002-02-14 Kazu Hirata <kazu@hxi.com>
410 * config/h8300/h8300-protos.h: Update the prototype for
412 * config/h8300/h8300.c (const_costs): Treat SET as a little
413 more expensive operation.
414 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
415 reference to const_costs.
417 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
419 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
421 2002-02-14 Jakub Jelinek <jakub@redhat.com>
424 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
425 use arguments from newtype.
427 2002-02-13 Eric Christopher <echristo@redhat.com>
429 * config/mips/mips.c (override_options): Add check for march/mipsX
430 on the same command line. Fix error message in cpu processing.
431 Remove architecture and ISA checks.
433 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
435 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
437 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
439 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
441 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
443 ("*movv8hi_internal1"): Same.
444 ("*movv16qi_internal1"): Same.
445 ("*movv4sf_internal1"): Same.
447 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
448 not push_reload for altivec modes.
450 2002-02-13 Joel Sherrill <joel@OARcorp.com>
452 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
453 all RTEMS targets including removal of #includes from config/*/rtems*.h
454 file and adding them to tm_file setting. Added xm_defines=POSIX to
456 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
457 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
458 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
459 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
460 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
461 config/m68k/rtemself.h: Ditto.
462 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
463 config/mips/rtems64.h: Ditto.
464 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
465 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
467 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
468 config/sparc/rtemself.h: Ditto.
469 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
470 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
471 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
473 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
474 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
475 target made more similar to i386-elf.
476 * config/i386/t-rtems-i386: Added soft float support and multilibs.
477 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
478 be similar to config/m68k/t-m68kelf.
479 * gthr-rtems.h: Encapsulate with extern "C" for C++.
481 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
483 * regmove.c (kill_value): Handle subregs.
485 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
487 * i386.md (mul patterns): Allow memory operand to be first;
488 add expanders where needed; fix constraints.
489 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
490 Allow memory operand to be the first.
492 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
495 2002-02-13 Jakub Jelinek <jakub@redhat.com>
498 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
501 2002-02-13 Jakub Jelinek <jakub@redhat.com>
503 PR optimization/5547:
504 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
505 all valid IA-32 address modes involving non-scaled %ebx and
506 GOT/GOTOFF as displacement.
508 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
510 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
511 after emitting ltorg insns.
513 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
514 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
515 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
516 *abssf2): Fix "op_type" attribute.
518 2002-02-13 Douglas B Rupp <rupp@gnat.com>
520 * mkconfig.sh: Avoid using a subshell redirect.
521 ($output.T): Change to $(output)T.
522 (ENABLE_NLS): Remove unneeded undef.
524 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
525 * config/alpha/x-vms (libsubdir): Define.
527 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
528 register frame procedures. Optimize retrieving context.
530 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
531 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
532 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
534 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
536 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
537 Make same change as for find_base_value.
539 2002-02-13 Kazu Hirata <kazu@hxi.com>
541 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
542 of QImode and SImode.
544 2002-02-13 Kazu Hirata <kazu@hxi.com>
546 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
547 length computation of movsi.
548 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
550 2002-02-13 Kazu Hirata <kazu@hxi.com>
552 * config/h8300/h8300.md (subqi3): Tighten the predicate for
553 operands[2] to register_operand.
555 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
557 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
559 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
561 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
562 for altivec_lvx* and altivec_stvx*.
563 ("*movv4si_internal"): Add constraint for loading from GPRs.
564 ("*movv8hi_internal1"): Same.
565 ("*movv16qi_internal1"): Same.
566 ("*movv4sf_internal1"): Same.
568 * config/rs6000/rs6000.c (altivec_register_operand): New.
570 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
571 altivec_register_operand.
573 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
575 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
578 2002-02-13 Stan Shebs <shebs@apple.com>
580 * c-typeck.c (digest_init): Handle vectors.
581 (really_start_incremental_init): Same.
582 (pop_init_level): Same.
583 (process_init_element): Same.
585 * varasm.c (output_constant): Same.
587 * expr.c (clear_storage): Same.
588 (store_constructor): Same.
590 2002-02-12 Eric Christopher <echristo@redhat.com>
592 * explow.c (hard_function_value): Add comment explaining
593 signed/unsigned comparison.
595 2002-02-12 Jakub Jelinek <jakub@redhat.com>
597 * jump.c (never_reached_warning): Add finish argument.
598 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
600 * rtl.h (never_reached_warning): Adjust prototype.
601 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
602 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
603 never_reached_warning.
605 2002-02-12 Graham Stott <grahams@redhat.com>
607 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
609 2002-02-12 Kazu Hirata <kazu@hxi.com>
611 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
612 logical shifts on H8/300.
613 (shift_alg_si): Improve several shifts on H8/300.
614 (get_shift_alg): Likewise.
616 2002-02-12 Graham Stott <grahams@redhat.com>
618 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
620 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
622 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
623 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
625 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
627 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
628 non-CONST_INT through default_assemble_integer.
629 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
630 <case 8>: Abort for CONST_DOUBLE.
632 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
634 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
636 * config/pa/pa-linux.h (LIB_SPEC): Delete.
637 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
639 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
641 * config/stormy16/stormy16.md (zero_extendqihi2): New.
643 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
645 * regrename.c (regrename_optimize): Don't accept a
646 part-clobbered register if the replaced register is not part
649 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
650 take padding into account when computing the argument value.
652 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
654 * combine.c (try_combine): Apply substitutions in
655 CALL_INSN_FUNCTION_USAGE too.
657 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
659 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
660 __builtin_altivec_abs*.
663 * config/rs6000/rs6000.h (rs6000_builtins): Add
664 ALTIVEC_BUILTIN_ABS*.
666 * config/rs6000/altivec.h: Use const char for builtins expecting
668 (vec_abs): New versions for C and C++.
671 2002-02-10 Kazu Hirata <kazu@hxi.com>
673 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
676 2002-02-10 Kazu Hirata <kazu@hxi.com>
678 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
679 constant definition from h8300.md.
680 (FRAME_POINTER_REGNUM): Likewise.
681 * config/h8300/h8300.md (define_constants): Add FP_REG.
683 2002-02-10 Kazu Hirata <kazu@hxi.com>
685 * config/h8300/h8300.c (print_operand): Remove redundant code.
687 2002-02-10 Kazu Hirata <kazu@hxi.com>
689 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
690 * config/h8300/h8300.c (byte_reg): Make it static.
692 2002-02-10 Richard Henderson <rth@redhat.com>
695 * c-typeck.c (incomplete_type_error): Handle flexible array members.
697 2002-02-10 Richard Henderson <rth@redhat.com>
700 * tree.c (append_random_chars): Don't abort if main_input_filename
703 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
705 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
707 2002-02-10 Kazu Hirata <kazu@hxi.com>
709 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
712 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
714 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
715 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
717 2002-02-09 David O'Brien <obrien@FreeBSD.org>
719 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
721 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
723 2002-02-09 Kazu Hirata <kazu@hxi.com>
725 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
726 a half of an SImode register on H8/300.
728 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
730 * i386.md (movdi_2): Add missing '!'.
732 2002-02-09 Kazu Hirata <kazu@hxi.com>
734 * config/h8300/h8300.h: Fix formatting. Remove commented-out
737 2002-02-09 Kazu Hirata <kazu@hxi.com>
739 * config/h8300/h8300.md (length): Correct the distance valid
740 for the short branch.
742 2002-02-09 Kazu Hirata <kazu@hxi.com>
744 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
746 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
748 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
750 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
753 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
757 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
758 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
759 (sh_cannot_modify_jumps_p): New function.
760 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
761 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
762 (sh_ms_bitfield_layout_p): New function.
763 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
764 Zack Weinberg <zack@codesourcery.com>
765 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
766 expand_simple_binop instead of expand_binop.
767 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
768 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
769 use of .quad and .uaquad.
770 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
771 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
772 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
773 * config/sh/sh.md (movdi_const, movdi_const_32bit,
774 movdi_const_16bit): Make sure all CONSTs have modes.
775 (sym2PIC): Ditto, but by adjusting all callers.
776 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
777 if the prologue calls the SHmedia argument decoder or register
779 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
780 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
781 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
782 (sh_expand_epilogue): Don't emit USE of return target register.
783 (prepare_move_operands): Legitimize DImode PIC addresses.
784 (sh_media_register_for_return): Skip tr0, used to initialize the
786 (sh_expand_prologue): Remove explicit USE of return register.
787 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
788 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
789 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
790 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
791 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
793 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
794 (MOVI_SHORI_BASE_OPERAND_P): New.
795 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
796 (EXTRA_CONSTRAINT_T): Define in terms of them.
797 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
798 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
799 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
800 alternatives supporting TARGET_REGS.
801 (UNSPEC_GOTPLT): New constant.
802 (movdi split): Move incrementing of LABEL_NUSES...
803 (movdi_const, movdi_const_32bit): Here. Use
804 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
805 (movdi_const_16bit): New.
806 (call, call_value) [flag_pic]: Use GOTPLT.
807 (call_pop, call_value_pop): New expands.
808 (call_pop_compact, call_pop_rettramp): New insns.
809 (call_value_pop_compact, call_value_pop_rettramp): New insns.
810 (sibcall) [flag_pic]: Use GOT.
811 (builtint_setjmp_receiver): Remove bogus, unused expand.
812 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
813 (*pt, *ptb, ptrel): New insns.
814 (sym2GOT): Handle DImode GOT.
815 (sym2GOTPLT, symGOTPLT2reg): New expands.
816 (sym2PIC): New expand.
817 (shcompact_return_tramp): Use GOTPLT to return trampoline.
818 (shcompact_return_tramp_i): Use return register explicitly.
819 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
820 disable flag_reorder_blocks.
821 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
822 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
823 clobbers, for clarity.
824 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
825 restoring of r0 in macl as MAYBE_DEAD.
826 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
827 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
828 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
829 alter_subreg all over.
830 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
831 reload, instead of emitting instructions that would require
833 (casesi_load_media): Add missing modes.
834 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
835 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
836 as used if the argument decoder is called.
837 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
838 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
839 Pmode, then extend it to DImode if necessary.
840 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
841 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
842 constants in FPU-enabled SHmedia, let them be loaded from memory.
843 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
844 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
845 Adjust whitespace in assembly output templates.
846 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
847 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
848 mode of if_then_else.
849 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
850 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
852 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
853 Joern Rennecke <amylaar@redhat.com>
854 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
855 (SUBTARGET_CPP_PTR_SPEC): New.
856 (SUBTARGET_CPP_SPEC): Remove.
857 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
858 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
859 Fix typo in previous checkin.
860 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
861 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
862 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
863 Alexandre Oliva <aoliva@redhat.com>
864 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
865 what single FP register can hold for SHmedia target.
866 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
867 Alexandre Oliva <aoliva@redhat.com>
868 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
869 Do not split into SUBREG.
870 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
871 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
872 and added new functions as specified in SH5 ABI r9.
873 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
874 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
876 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
877 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
878 gen_consttable_4 and gen_consttable_8. Emit multiple labels
879 and consttable_window_ends.
880 2001-06-03 Graham Stott <grahams@redhat,com>
881 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
882 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
883 * config/sh/sh.c (print_operand): Handle floating-point pair,
884 vector and matrix registers.
885 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
886 vector modes into account.
887 * config/sh/sh.md (movv2sf): Split move between registers into
889 (movv4sf, movv16sf): Introduce insns that get split only after
891 * config/sh/shmedia.h: Fix Copyright dates.
892 * config/sh/ushmedia.h: Likewise. Move loop counter
893 declarations into conditionals that uses them.
894 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
896 * config/sh/sshmedia.h: Fix Copyright dates.
897 (sh_media_PUTCFG): Fix constraints.
898 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
899 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
900 ptrmemfunc_vbit_in_delta for SH5.
901 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
902 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
903 * invoke.texi: Likewise.
904 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
905 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
906 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
907 GCC_pop_shmedia_regs_nofpu): New global symbols.
908 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
909 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
910 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
911 compact function with nonlocal labels.
912 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
913 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
914 (initial_elimination_offset): Account for their stack space.
915 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
916 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
917 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
918 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
919 least one of the operands to be a register.
920 (movv2sf): Likewise. Renamed to movv2sf_i.
921 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
922 prepare_move_operands() before emitting SHmedia insns.
923 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
924 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
925 Don't save nor initialize r12. Don't mis-align the stack.
926 Pad the code with a nop.
927 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
929 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
930 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
931 [__SHMEDIA__]: Implement.
932 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
933 * config/sh/sh.md: Set latency of `pt' closer to reality.
934 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
935 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
936 Set move, load and store type attributes.
937 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
938 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
940 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
941 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
942 * config/sh/sh.c (sh_media_register_for_return): New function.
943 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
944 branch-target register.
945 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
946 * config/sh/sh.md (return_media_i): Use any call-clobbered
947 branch-target register.
948 (return_media): If r18 wasn't copied in the prologue, copy it
950 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
951 Clear class FP0_REGS.
952 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
954 2001-03-08 DJ Delorie <dj@redhat.com>
955 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
956 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
957 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
958 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
959 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
960 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
961 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
962 return value correctly for call_cookie.
963 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
964 * config/sh/crt1.asm (start): Modified so as to call
965 ___setup_argv_and_call_main.
966 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
967 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
969 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
970 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
971 (STRIP_NAME_ENCODING): Use it.
972 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
973 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
974 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
975 prepare_scc_operands().
976 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
977 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
978 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
979 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
980 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
981 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
982 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
983 used in shcompact_incoming_args.
984 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
986 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
988 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
990 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
991 Simplify. Adjust. Add sanity check.
992 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
994 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
996 (udivsi3, divsi3): Use them.
997 (force_mode_for_call): New insn.
998 (call, call_value, sibcall_value): Emit it before SHcompact
1000 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1001 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1002 call cookie is non-NULL before taking its value.
1003 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1004 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1005 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1006 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1008 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1009 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1010 temporary for stack adjusts. Use MACL and MACH to pass
1011 arguments to shcompact_incoming_args.
1012 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1014 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1015 (nested_trampoline): Load static chain address into r1.
1016 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1017 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1018 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1019 fp_arith_reg_operand().
1020 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1021 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1022 and use signed compares for them.
1023 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1024 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1025 ones properly aligned.
1026 (find_barrier): Account for extra alignment needed for 8-byte wide
1028 (machine_dependent_reorg): Require a label for the second 4-byte
1029 constant after an 8-byte one.
1030 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1032 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1033 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1034 last_float when switching float modes.
1035 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1036 auto-increment for general-purpose registers.
1037 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1039 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1041 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1042 registers for varargs.
1043 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1044 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1045 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1046 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1047 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1048 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1049 call_cookie accordingly.
1050 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1051 (SHCOMPACT_BYREF): Likewise.
1052 (SHCOMPACT_FORCE_ON_STACK): New macro.
1053 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1054 (sh_builtin_saveregs): Likewise.
1055 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1056 shcompact_incoming_args): Use new shift values. Support
1057 sequences of consecutive and non-consecutive pushes/pops.
1058 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1059 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1060 * config/sh/sh.h (TEXT_SECTION): Define.
1061 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1062 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1063 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1064 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1065 return values on FPU-enabled SHmedia.
1066 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1067 FPU-enabled SHmedia.
1068 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1069 value is returned in a non-FP reg and is not returned by
1071 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1073 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1074 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1075 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1076 quad-aligned to be passed by callee-copy reference.
1077 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1078 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1079 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1080 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1081 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1082 copying low-numbered FP regs to r7 and r8.
1083 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1084 FP regs to general-purpose regs only if the copy was passed on the
1086 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1087 copying FP reg to r9.
1088 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1089 copy FP regs to general-purpose regs only in outgoing calls.
1090 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1091 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1093 * config/sh/sh.h (struct sh_args): Document all fields.
1094 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1095 passed partially on the stack should not consider making
1097 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1098 stack_regs only for incoming calls. When passing FP args,
1099 make sure there are FP regs available before modifying
1101 (SHCOMPACT_BYREF): Pass double args in general-purpose
1102 registers by reference.
1103 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1104 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1105 attempt to generate sibcalls if the caller got any arguments
1107 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1108 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1109 to 8-byte boundaries.
1110 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1111 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1112 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1113 stored in the stack.
1114 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1115 for the offsets to have the ISA bit set.
1116 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1117 invocation. Use beq instead of bgt to mark end of sequence of
1119 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1120 bgt to mark end of sequence of stores.
1121 * config/sh/sh.c (arith_operand): Don't check whether
1122 CONST_OK_FOR_J for now.
1123 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1124 instead of long for conversion.
1125 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1126 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1127 before passing it to fprintf.
1128 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1129 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1130 Call set_fpscr before reading/writing SR.
1131 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1133 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1135 (FMOVD_WORKS): Define on SH5 with FPU.
1136 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1138 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1140 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1141 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1143 (ia_main_table): Ditto.
1144 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1145 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1146 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1147 the definitions from sh.h.
1148 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1150 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1151 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1152 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1153 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1154 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1155 Increment LABEL_NUSES.
1157 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1159 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1161 * config/sh/elf.h (SIZE_TYPE): Likewise.
1162 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1163 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1164 shcompact_incoming_args): Load switch table addresses using
1166 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1167 (NO_BUILTIN_SIZE_TYPE): Define.
1168 (SIZE_TYPE): Don't define.
1169 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1170 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1171 definition of __SH5__=32 for -m5-compact-nofpu.
1172 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1174 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1175 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1176 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1177 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1178 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1179 (INSN_LENGTH_ALIGNMENT): Likewise.
1180 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1181 * config/sh/sh.md (call, call_value, sibcall): Simplify
1182 copying of non-branch-target register.
1183 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1184 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1185 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1186 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1187 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1188 floating-point values as structs.
1189 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1190 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1191 general-purpose register.
1192 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1193 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1194 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1195 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1196 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1197 (ENCODE_SECTION_INFO): Enclose variables and constants in
1199 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1200 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1201 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1202 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1203 only for LABEL_REFs. For SYMBOL_REFs, prepend
1204 SH_DATALABEL_ENCODING to the symbol name.
1205 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1207 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1208 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1210 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1211 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1212 (DATALABEL_REF_P): Don't require CONST.
1213 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1215 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1216 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1218 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1219 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1220 Use shallow_copy_rtx and PUT_MODE to change the mode of
1221 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1222 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1223 on SHmedia using GENERAL_REGs.
1224 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1225 bltu_media_i): Fix reversion of conditions.
1226 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1227 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1228 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1229 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1230 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1231 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1232 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1233 (GCC_nested_trampoline): Likewise.
1234 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1235 * config/sh/sh.c (gen_datalabel_ref): Define.
1236 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1237 (INITIALIZE_TRAMPOLINE): Likewise.
1238 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1239 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1240 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1241 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1242 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1243 (ic_invalidate): Adjust for SH5.
1244 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1245 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1247 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1248 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1249 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1250 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1251 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1252 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1253 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1254 * config/sh/sh.c (target_reg_operand): Match only target-branch
1255 registers and pseudos that aren't virtual registers.
1256 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1257 Copy operands that don't match target_reg_operand to pseudos.
1258 (call_media, call_value_media, sibcall_media): Use
1259 target_reg_operand instead of target_operand.
1260 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1261 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1262 * config/sh/sh.c (target_reg_operand): Match hardware registers
1263 other than branch-target registers.
1264 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1265 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1266 (fpscr_values) [SH5 == 32]: Define.
1267 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1268 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1269 Handle function addresses coming in SUBREGs.
1270 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1271 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1272 shcompact_return_trampoline): Use datalabel where appropriate.
1273 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1274 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1275 general-purpose register to copy one branch-target register to
1277 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1278 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1279 SYMBOL_REFs with VOIDmode.
1280 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1281 bltu_media_i): New insns.
1282 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1283 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1284 (INIT_CUMULATIVE_ARGS): Likewise.
1285 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1286 * machmode.def (V16SFmode): New mode.
1287 * c-common.c (type_for_mode): Support V2SF and V16SF.
1288 * tree.c (build_common_tree_nodes_2): Likewise.
1289 * tree.h (tree_index): Likewise.
1290 * calls.c (emit_call_1): Take args_so_far. Adjust all
1291 callers. Introduce CALL_POPS_ARGS.
1292 * tm.texi (CALL_POPS_ARGS): Document.
1293 * config/sh/crt1.asm: Implement in SHmedia mode.
1294 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1295 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1296 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1297 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1298 Implement divsi and udivsi in SHmedia mode. Introduce
1299 SHcompact trampolines.
1300 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1302 (regno_reg_class): Rewrite.
1303 (fp_reg_names): Remove.
1304 (sh_register_names, sh_additional_register_names): New.
1305 (print_operand): Added `u'. Support SUBREGs in addresses.
1306 Add parentheses around shifted CONSTs.
1307 (output_file_start): Output .mode and .abi directives.
1308 (shiftcosts, addsubcosts, multcosts): Adjust.
1309 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1310 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1311 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1312 bytes, not registers. Take into account the need for the
1313 SHcompact incoming args trampoline. Adjust all callers.
1314 (sh_expand_prologue): Take stack_regs into account. Call
1315 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1316 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1317 stack aligned as per SH5 ABI.
1318 (sh_builtin_saveregs): Support SH5 ABI.
1319 (sh_build_va_list, sh_va_start): Likewise.
1320 (initial_elimination_offset): Take alignment into account.
1321 Compute location of PR according to the SH5 stack frame.
1322 (arith_reg_operand): Reject branch-target registers.
1323 (shmedia_6bit_operand): New.
1324 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1325 (target_reg_operand): Match DImode only. Accept SUBREGs.
1326 (target_operand): New.
1327 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1328 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1329 SIBCALL_REGS for SHmedia.
1330 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1331 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1332 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1333 (TARGET_SWITCHES): New SH5 flags.
1334 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1335 VALID_REGISTER_P to disable unsupported registers.
1336 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1337 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1338 (FUNCTION_ARG_PADDING): Define.
1339 (FASTEST_ALIGNMENT): Adjust.
1340 (SH_REGISTER_NAMES_INITIALIZER): New.
1341 (sh_register_names): Declare.
1342 (DEBUG_REGISTER_NAMES): Define.
1343 (REGISTER_NAMES): Define based on sh_register_names.
1344 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1345 (sh_additional_register_names): Declare.
1346 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1347 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1348 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1349 (REGISTER_NATURAL_MODE): Define.
1350 (FIRST_PSEUDO_REGISTER): Adjust.
1351 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1352 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1353 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1354 (VECTOR_MODE_SUPPORTED_P): Define.
1355 (REG_CLASS_CONTENTS): Adjust.
1356 (SMALL_REGISTER_CLASSES): Adjust.
1357 (REG_ALLOC_ORDER): Adjust.
1358 (INDEX_REG_CLASS): Adjust.
1359 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1360 (CONST_OK_FOR_LETTER_P): Adjust.
1361 (PREFERRED_RELOAD_CLASS): Adjust.
1362 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1363 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1364 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1365 (FIRST_FP_PARM_REG): Adjust.
1366 (CALL_POPS_ARGS): Define.
1367 (FUNCTION_ARG_REGNO_P): Adjust.
1368 (struct sh_args): New fields.
1369 (GET_SH_ARG_CLASS): Adjust.
1370 (INIT_CUMULATIVE_ARGS): Adjust.
1371 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1372 (FUNCTION_ARG_ADVANCE): Adjust.
1373 (FUNCTION_ARG): Adjust.
1374 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1375 (FUNCTION_ARG_CALLEE_COPIES): Define.
1376 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1377 (STRICT_ARGUMENT_NAMING): Define.
1378 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1379 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1380 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1381 (SETUP_INCOMING_VARARGS): Adjust.
1382 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1383 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1384 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1385 (SUBREG_OK_FOR_INDEX_P): Adjust.
1386 (EXTRA_CONSTRAINT_S): Update.
1387 (EXTRA_CONSTRAINT_T): New.
1388 (EXTRA_CONSTRAINT): Adjust.
1389 (GO_IF_LEGITIMATE_INDEX): Adjust.
1390 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1391 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1393 (MAX_MOVE_MAX): Define.
1395 (CONST_COSTS): Adjust.
1396 (REGISTER_MOVE_COST): Adjust.
1397 (BRANCH_COST): Adjust.
1398 (TEXT_SECTION_ASM_OP): Adjust.
1399 (DBX_REGISTER_NUMBER): Adjust.
1400 (ASM_OUTPUT_DOUBLE_INT): New.
1401 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1402 (PREDICATE_CODES): Adjust.
1403 (PROMOTE_MODE): Adjust.
1404 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1405 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1406 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1407 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1408 (DR0_REG, DR2_REG, DR4_REG): Renumber.
1409 (TR0_REG, TR1_REG, TR2_REG): New.
1410 (XD0_REG): Renumber.
1411 (UNSPEC_COMPACT_ARGS): New.
1412 (type): Added pt and ptabs.
1413 (length): Default to 4 on SHmedia. Default pt length to 12
1414 and 20 on SHmedia32 and SHmedia64, respectively.
1415 (pt): New function unit.
1416 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
1417 Add whitespace between operands of SHmedia instructions.
1419 (adddi3_media, addsi3_media): Adjust constraints.
1420 (subsi3) [SHmedia]: Force operand 1 into a register.
1421 (udivsi3_i1_media, udivsi3_i4_media): New.
1422 (udivsi3): Support SHmedia.
1423 (divsi3_i1_media, divsi3_i4_media): New.
1424 (divsi3): Support SHmedia.
1425 (anddi3, iordi3, xordi3): Adjust constraints.
1426 (zero_extendhidi2, zero_extendqidi2): New.
1427 (extendsidi2, extendhidi2, extendqidi2): New.
1428 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1429 (pop_e, pop_fpul, pop_4): Likewise.
1430 (movsi_media): Support FP and BT registers.
1431 (movsi_media_nofpu): New. Adjust splits to DImode.
1432 (lduw, ldub): Renamed to zero_extend* above.
1433 (movqi_media): Fix typo.
1434 (movdi_media): Support FP and BT registers.
1435 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
1436 (movdi_const_32bit): New.
1437 (shori_media): Require immediate operand. Use `u' for output.
1438 (movdf_media, movsf_media): Simplified.
1439 (movdf_media_nofpu, movsf_media_nofpu): New.
1440 (movdf, movsf): Adjust
1441 (movv2sf, movv2sf, movv16sf): New.
1442 (beq_media, beq_media_i): Adjust constraints. Don't use
1443 scratch BT register.
1444 (bne_media, bne_media_i): Likewise.
1445 (bgt_media, bgt_media_i): Likewise.
1446 (bge_media, bge_media_i): Likewise.
1447 (bgtu_media, bgtu_media_i): Likewise.
1448 (bgeu_media, bgeu_media_i): Likewise.
1449 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
1450 bunordered): Emit jump insn. Force operands to registers when
1452 (jump_media, jump): Simplify.
1453 (call_compact, call_compact_rettramp): New.
1454 (call_value_compact, call_value_compact_rettramp): New.
1455 (call_media, call_value_media): Simplify.
1456 (sibcall_compact, sibcall_media): New.
1457 (call, call_value): Adjust for SHmedia and SHcompact.
1458 (sibcall, sibcall_value, untyped_call): Likewise.
1459 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
1460 (indirect_jump): Adjust for SHmedia.
1461 (casesi_jump_media): New.
1462 (nop): Re-enable for SHmedia.
1463 (call_site): Restrict to SH1.
1464 (casesi): Adjust for SHmedia.
1465 (casesi_shift_media, casesi_load_media): New.
1466 (return): Explicitly use PR register. Call return trampoline
1468 (return_i): Explicitly use PR register.
1469 (shcompact_return_tramp, shcompact_return_tramp_i): New.
1470 (return_media): Adjust.
1471 (shcompact_incoming_args): New.
1473 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1474 (movstrsi): Disable on SH5.
1475 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
1476 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
1477 (subsf3, subsf3_media): Likewise.
1478 (mulsf3, mulsf3_media, mac_media): Likewise.
1479 (divsf3, divsf3_media): Likewise.
1480 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
1481 (floatsisf2, fux_truncsfsi2): Likewise.
1482 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
1484 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
1485 (cmpunsf_media, cmpsf): Likewise.
1486 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
1487 (abssf2, abssf2_media): Likewise.
1488 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
1489 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
1490 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
1491 (floatsidf2, fix_truncdfsi2): Likewise.
1492 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
1494 (cmpeqdf_media, cmpgtdf_media): Likewise.
1495 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
1496 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
1497 (absdf2, absdf2_media): Likewise.
1498 (extendsfdf2, extendsfdf2_media): Likewise.
1499 (truncsfdf2, truncsfdf2_media): Likewise.
1500 * config/sh/sh64.h: New file.
1501 * config/sh/t-sh64: New file.
1502 * config/sh/shmedia.h: New file.
1503 * config/sh/ushmedia.h: New file.
1504 * config/sh/sshmedia.h: New file.
1505 * configure.in: Added sh64-*-elf.
1506 * configure: Rebuilt.
1507 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
1508 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
1509 (reg_class_from_letter): Use `b' for TARGET_REGS.
1510 (print_operand): Support `%M', `%m', `AND' and
1511 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
1512 (andcosts): Adjust for SHmedia.
1513 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
1515 (target_reg_operand): New function.
1516 * config/sh/sh-protos.h (target_reg_operand): Declare.
1517 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
1518 FP registers on SH5.
1519 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
1521 (TARGET_REGISTER_P): New macro.
1522 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
1523 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
1524 (EXTRA_CONSTRAINT_S): New macro.
1525 (EXTRA_CONSTRAINT): Adjust.
1526 (FLOAT_TYPE_SIZE): Define to 32.
1527 (Pmode): DImode on SHmedia.
1528 (CONST_COSTS): Adjust for SHmedia literals.
1529 (PREDICATE_CODES): Added target_reg_operand.
1530 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
1531 * config/sh/sh.md: Remove all attrs from SHmedia insns.
1532 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
1533 (cmpdi): Accept SHmedia.
1534 (movdicc_false, movdicc_true): New insns.
1535 (movdicc): New expand.
1536 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
1538 (addsi3_media): Match `S' constraint.
1539 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
1540 (negdi2): Expand for SHmedia.
1541 (one_cmpldi2): New expand.
1542 (zero_extendsidi2): Change from expand to insn.
1543 (extendsidi2): Add constraints.
1544 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
1545 LD/ST address. Fix SI immediate loading split.
1546 (movhi_media, movqi_media, lduw, ldub): New insns.
1547 (movhi, movqi): Accept SHmedia.
1548 (shori_media, movdi_media): Relax input constraints. Split
1550 (movdf_media, movsf_media): New insn. New split to movdi.
1551 (movdf, movsf): Match on SHmedia.
1552 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
1553 bgeu_media): New insns and splits. New insns with `_i' suffix.
1554 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
1555 (bunordered): New expand.
1556 (jump_compact): Renamed from `jump'.
1557 (jump_media): New insn.
1559 (call_media, call_value_media): New insns.
1560 (call, call_value): Adjust.
1561 (indirect_jump_compact): Renamed from `indirect_jump'.
1562 (indirect_jump_media): New insn.
1563 (indirect_jump): New expand.
1564 (untyped_call, return): Accept SHmedia.
1565 (return_media): New insn.
1566 (prologue, epilogue, blockage): Accept SHmedia.
1567 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1568 (sunordered): New expand.
1569 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
1570 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
1571 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
1572 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
1573 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
1574 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
1575 abssf2_media): New insns.
1576 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
1577 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
1578 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
1579 floatdidf2, floatsidf2_media, fix_truncdfdi2,
1580 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
1581 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
1582 absdf2_media): New insns.
1583 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
1584 (extendsfdf2_media, truncdfsf2_media): New insns.
1585 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1586 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
1587 * config/sh/sh.h (CONST_OK_FOR_J): Document.
1588 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
1589 * config/sh/sh.md (adddi3): New expand.
1590 (adddi3_media, adddi3z_media): New insns.
1591 (adddi3_compact): Renamed from adddi3.
1592 (addsi3_media): Use add.l r63 to add constant zero.
1593 (subdi3): New expand.
1594 (subdi3_media): New insn.
1595 (subdi3_compact): Renamed from subdi3.
1596 (mulsidi3): New expand.
1597 (mulsidi3_media): New insn.
1598 (mulsidi3_compact): Renamed from mulsidi3.
1599 (umulsidi3): New expand.
1600 (umulsidi3_media): New insn.
1601 (umulsidi3_compact): Renamed from umulsidi3.
1602 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
1603 (ashlsi3, ashrsi3, lshrsi3): Use them.
1604 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
1605 (ashldi3, ashrdi3, lshrdi3): Use them.
1606 (zero_extendsidi2): New expand.
1607 (extendsidi2): New insn.
1608 (movsi_media): New insn. Split to movdi to load constants.
1609 (movsi): Enable for shmedia.
1610 (movdi_media): New insn. Use shori_media to load wide constants.
1611 (short_media): New insn.
1612 (movdi): Enable for shmedia.
1613 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
1614 * config/sh/sh.h (CPP_SPEC): Added `m5'.
1615 (SUBTARGET_CPP_SPEC): Added `!m5'.
1616 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
1617 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
1618 to all other SH variants.
1619 (TARGET_DEFAULT): Set to SH1_BIT.
1620 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
1621 (BITS_PER_WORD): Raise to 64 on shmedia.
1622 (MAX_BITS_PER_WORD): Change to 64.
1623 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
1624 (INT_TYPE_SIZE): Keep as 32.
1625 (UNITS_PER_WORD): Raise to 8 on shmedia.
1626 (MIN_UNITS_PER_WORD): Keep as 4.
1627 (POINTER_SIZE): Raise to 64 on shmedia.
1628 (CONST_OK_FOR_J): New macro.
1629 (CONST_OK_FOR_LETTER_P): Use it.
1630 (processor_type): Add PROCESSOR_SH5.
1631 * config/sh/sh.md: Conditionalize all expands, insns and
1632 splits to TARGET_SH1.
1634 (addsi3_compact): Renamed from...
1635 (addsi3): Now an expand.
1636 (addsi3_media, subsi3_media): New insns.
1637 (subsi3): Don't negate constants with SHmedia.
1639 * hooks.c: New file.
1640 * hooks.h: New file.
1641 * Makefile.in (HOOKS_H): New.
1642 (TARGET_DEF_H): Added $(HOOKS_H).
1643 (OBJS): Added hooks.o.
1644 (cfgcleanup.o, bb-reorder.o): Added target.h.
1645 (hooks.o): Added dependencies.
1646 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
1647 (TARGET_INITIALIZER): this.
1648 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
1649 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
1650 * bb-reorder.c: Include target.h.
1651 (reorder_basic_blocks): Skip if cannot modify jumps.
1652 * cfgcleanup.c: Include target.h.
1653 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
1655 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1657 * config/mips/mips.md (casesi_internal, casesi_internal_di):
1658 Protect jump delay slot instructions with .set noreorder and
1661 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1663 * config/mips/mips.md (casesi_internal_di): Calculate
1664 the index into the target offset table correctly.
1666 2002-02-08 Richard Henderson <rth@redhat.com>
1668 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
1669 * final.c (output_addr_const): Accept and discard SUBREG.
1670 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
1671 mark them unknown instead.
1672 (simplify_subtraction): Handle RTX_UNKNOWN.
1673 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
1675 2002-02-08 David Edelsohn <edelsohn@gnu.org>
1677 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
1679 2002-02-08 Richard Henderson <rth@redhat.com>
1681 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
1683 2002-02-08 Andreas Jaeger <aj@suse.de>
1685 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
1686 * config/i386/t-linux64: New file.
1688 2002-02-08 Jakub Jelinek <jakub@redhat.com>
1690 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
1691 * c-parse.in (compstmt): Clear last_expr_type.
1693 2002-02-07 Richard Henderson <rth@redhat.com>
1695 * loop.c (strength_reduce): Sink final_value when not
1698 2002-02-07 David O'Brien <obrien@FreeBSD.org>
1700 * config/sparc/freebsd.h: Fix mismatched spec {.
1702 2002-02-07 Richard Henderson <rth@redhat.com>
1704 * cfgrtl.c: Include recog.h and insn-config.h.
1705 (keep_with_call_p): Fix general_operand invocation.
1706 * Makefile.in (cfgrtl.o): Update dependencies.
1708 2002-02-07 Kazu Hirata <kazu@hxi.com>
1710 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
1711 comment. Accept HImode only if TARGET_H8300.
1713 2002-02-07 Eric Christopher <echristo@redhat.com>
1715 * config/mips/crtn.asm: Cleanup #ifdefs.
1717 2002-02-07 Eric Christopher <echristo@redhat.com>
1719 * config/mips/crti.asm: Add changes for mips16. mips16 uses
1720 register 7 as RA instead of $31.
1721 * config/mips/crtn.asm: Ditto.
1722 * config/mips/mips.c (mips_move_2words): Add case for
1723 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
1724 (compute_frame_size): Fix typo.
1725 (save_restore_insns): Ditto. Make documentation about using
1726 register $7 as return register more precise.
1727 (mips_expand_epilogue): Fix comment. Add code to work around not
1728 being able to add to the stack pointer directly.
1729 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
1730 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
1733 2002-02-07 Tom Rix <trix@redhat.com>
1735 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
1736 immediates in ldu and stdu DS opcode field.
1737 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
1738 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
1739 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
1741 2002-02-07 Jeff Sturm <jsturm@one-point.com>
1743 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
1744 offset for stack bias.
1746 2002-02-07 H.J. Lu <hjl@gnu.org>
1748 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
1750 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
1752 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
1754 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
1756 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
1757 * i386.c (x86_order_regs_for_local_alloc): New global function.
1758 * i386.h (REG_ALLOC_ORDER): CLeanup.
1759 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
1761 2002-02-07 Richard Henderson <rth@redhat.com>
1763 PR optimization/2463
1764 * alias.c (find_base_value): Recall base values for fixed hard regs.
1765 * loop.c (loop_regs_update): Don't use single_set on non-insns.
1767 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
1769 * config/mips/mips.md (define_delay) [mips16]: Adjust required
1772 2002-02-06 Richard Henderson <rth@redhat.com>
1775 * stmt.c (resolve_operand_name_1): Take more care with mixed
1776 named and unnamed operands.
1778 2002-02-06 Janis Johnson <janis187@us.ibm.com>
1779 Jan Hubicka <jh@suse.cz>
1781 * loop.c (remove_constant_addition): Avoid clobbering a shared
1784 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
1786 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
1787 * config/s390/t-linux64: New file.
1788 * config/s390/libgcc-glibc.ver: New file.
1790 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
1792 * config/s390/linux64.h: Delete file.
1793 * config/s390/s390x.h: New file.
1794 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
1795 as target header file.
1796 * config/s390/linux.h (TARGET_VERSION): Define depending on
1797 DEFAULT_TARGET_64BIT.
1798 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
1799 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
1800 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
1801 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
1802 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
1803 (EXTRA_SPEC): New define.
1804 * config/s390/s390.h (TARGET_VERSION): Define depending on
1805 DEFAULT_TARGET_64BIT.
1806 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
1808 2002-02-06 Jason Merrill <jason@redhat.com>
1810 * c-decl.c (finish_function): Warn about a non-void function with
1811 no return statement and no abnormal exit.
1812 (current_function_returns_abnormally): New variable.
1813 (start_function): Clear it.
1814 (struct c_language_function): Add returns_abnormally.
1815 (push_c_function_context): Save it.
1816 (pop_c_function_context): Restore it.
1817 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
1818 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
1819 an explicit return type.
1820 * c-tree.h: Declare current_function_returns_abnormally.
1821 (C_FUNCTION_IMPLICIT_INT): New macro.
1822 * c-typeck.c (build_function_call): Set it.
1823 (c_expand_return): Set current_function_returns_value even if the
1826 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1829 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
1830 unsafe for reevaluation.
1832 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1835 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
1836 EXPR_STMT, but COMPOUND_STMT, recurse into it.
1838 2002-02-06 Richard Henderson <rth@redhat.com>
1840 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
1841 be a general_operand. Dest for function value must be a pseudo.
1843 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1845 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
1846 as SYMBOL_REFs from the constant pool.
1848 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1850 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
1851 passed by invisible reference.
1853 2002-02-05 Richard Henderson <rth@redhat.com>
1855 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
1857 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
1859 Implement using "base addresses" in insn operands as default.
1860 * config/mmix/mmix.c (mmix_conditional_register_usage): if
1861 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
1862 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
1863 used to read the rtx value.
1864 (mmix_target_asm_function_epilogue): Fix spacing.
1865 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
1866 (mmix_legitimate_address): Ditto.
1867 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
1868 should be loaded with a GETA insn. Don't allocate needless extra
1869 char for nul termination and fix misleading comment.
1870 (mmix_print_operand_address): Handle constants if
1871 TARGET_BASE_ADDRESSES.
1872 (mmix_output_register_setting): Use base addressing if
1873 TARGET_BASE_ADDRESSES and the number of insns is 3.
1874 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
1875 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
1876 to use R as constraint, add LDA to match s.
1877 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
1878 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
1879 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
1880 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
1881 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
1882 order with other fixed registers.
1883 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
1884 other parameter/call-clobbered registers.
1885 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
1886 -mbase-addresses, -mno-base-addresses.
1887 (MMIX Options): Ditto.
1889 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1891 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
1893 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
1895 * config/rs6000/altivec.h: Change elem to _S_elem.
1897 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
1899 * config/netbsd.h (WCHAR_TYPE): Define.
1900 (WCHAR_TYPE_SIZE): Ditto.
1902 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
1903 (WCHAR_UNSIGNED): Ditto.
1904 (WCHAR_TYPE_SIZE): Ditto.
1906 * config/arm/netbsd.h: Likewise.
1907 * config/i386/netbsd-elf.h: Likewise.
1908 * config/i386/netbsd.h: Likewise.
1909 * config/m68k/netbsd-elf.h: Likewise.
1910 * config/m68k/netbsd.h: Likewise.
1911 * config/ns32k/netbsd.h: Likewise.
1912 * config/sparc/netbsd.h: Likewise.
1913 * config/vax/netbsd.: Likewise.
1915 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1917 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
1918 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
1919 (TARGET_INITIALIZER): this.
1920 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
1921 (BITFIELD_NBYTES_LIMITED): Markup fix.
1922 * tree.h (default_ms_bitfield_layout_p): Declare.
1923 (record_layout_info): Added prev_field.
1924 * tree.c (default_ms_bitfield_layout_p): New fn.
1925 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
1926 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
1927 * stor-layout.c: Include target.h.
1928 (start_record_layout): Initialize prev_field.
1929 (place_field): Handle MS bit-field layout, and disregard
1930 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
1931 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
1932 * Makefile.in (stor-layout.o): Adjust dependencies.
1934 2002-02-05 Jason Merrill <jason@redhat.com>
1936 * c-typeck.c (convert_for_assignment): Don't allow conversions
1937 between pointers and references. Only allow lvalues to convert to
1940 * c-decl.c (finish_function): Warn about a non-void function with
1941 no return statement and no abnormal exit.
1942 (current_function_returns_abnormally): New variable.
1943 (start_function): Clear it.
1944 (struct c_language_function): Add returns_abnormally.
1945 (push_c_function_context): Save it.
1946 (pop_c_function_context): Restore it.
1947 * c-tree.h: Declare current_function_returns_abnormally.
1948 * c-typeck.c (build_function_call): Set it.
1950 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
1952 2002-02-05 Andreas Jaeger <aj@suse.de>
1954 * crtstuff.c: Fix comments.
1956 2002-02-05 Richard Henderson <rth@redhat.com>
1959 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
1960 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1963 * config/mips/mips.c (function_arg): Handle TImode.
1964 (function_arg_advance): Likewise.
1966 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
1968 * config/rs6000/altivec.h (vec_step_help): Rename to
1971 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
1973 * config/rs6000/altivec.h: Fix typos.
1975 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
1977 * config/arm/netbsd.h: Correct a comment.
1979 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
1981 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
1982 building void typed builtins.
1984 * config/rs6000/altivec.h (vec_ld*): Fix typos.
1985 (vec_step): Implement for C++.
1987 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1989 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
1991 2002-02-04 Richard Henderson <rth@redhat.com>
1993 * combine.c (nonzero_bits): Re-introduce special case for
1994 sp/fp/ap wrt REGNO_POINTER_ALIGN.
1996 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
1998 * doc/extend.texi: Warn about unsupported usage of altivec
2001 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2002 (altivec_predicate_*): New.
2004 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2005 Add C++ version of vec_*() functions.
2007 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2008 (bdesc_2arg): Remove altivec predicates.
2009 (altivec_expand_builtin): Handle predicates.
2010 (altivec_init_builtins): Handle predicates.
2011 (altivec_expand_predicate_builtin): New.
2013 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2015 * pa.c (DO_FRAME_NOTES): Move forward.
2016 (store_reg): Revise handling of frame notes.
2017 (load_reg): Likewise.
2018 (set_reg_plus_d): Likewise.
2019 (hppa_expand_prologue): Likewise.
2020 (hppa_expand_epilogue): Likewise.
2022 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2024 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2026 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2028 PR c/4475, c++/3780:
2029 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2030 * c-common.h (SWITCH_TYPE): Define.
2031 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2032 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2033 Rename spareness variable to sparseness.
2034 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2035 if non-NULL instead of TREE_TYPE (orig_index).
2036 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2037 (expand_end_case): Define using expand_end_case_type.
2038 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2039 to expand_end_case_type.
2040 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2042 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2044 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2045 (BIGGEST_ALIGNMENT): Change to 128.
2047 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2049 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2051 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2053 * pa.md (call_internal_reg_64bit): Remove unused variable.
2055 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2057 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2059 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2060 * config/arm/arm.c (current_function_anonymous_args): Delete,
2061 replace uses with cfun->machine->uses_anonymous_args.
2062 (arm_reorg): Do not reset uses_anonymous_args.
2064 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2065 any geenral register.
2067 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2069 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2072 2002-02-04 Richard Henderson <rth@redhat.com>
2074 * combine.c (force_to_mode): Remove STACK_BIAS code.
2075 (nonzero_bits): Likewise. Replace sp/fp special case with
2076 REGNO_POINTER_ALIGN.
2078 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2079 (HARD_FRAME_POINTER_REGNUM): New.
2080 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2081 (FIXED_REGS, CALL_USED_REGS): Update.
2082 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2083 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2084 (HARD_REGNO_NREGS): Update for SFP.
2085 (STACK_POINTER_OFFSET): Include bias here ...
2086 (FIRST_PARM_OFFSET): ... not here.
2087 (STACK_BIAS): Remove.
2088 (INIT_EXPANDERS): New.
2089 (STARTING_FRAME_OFFSET): Do not include bias.
2090 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2091 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2092 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2093 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2094 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2095 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2096 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2097 (MUST_SAVE_REGISTER): Likewise.
2098 (sparc_flat_function_prologue): Likewise.
2099 (sparc_flat_function_epilogue): Likewise.
2100 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2101 (sparc_init_modes): SFP is GENERAL_REGS.
2102 (sparc_builtin_saveregs): SFP does not have bias applied.
2104 2002-02-04 Richard Henderson <rth@redhat.com>
2106 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2107 current_function_is_thunk.
2108 (alpha_sa_mask): Distinguish between current_function_is_thunk
2109 called from ASM_OUTPUT_MI_THUNK and not.
2110 (alpha_does_function_need_gp): Thunks always need gp.
2111 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2112 (alpha_output_mi_thunk_osf): New.
2113 * config/alpha/alpha-protos.h: Update.
2114 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2116 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2118 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2119 function types, not when they're taken away.
2121 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2123 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2124 CODE_LABEL and jump table when replacing a table jump with a
2127 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2129 * config/s390/s390-protos.h (legitimize_la_operand,
2130 s390_secondary_input_reload_class, s390_plus_operand,
2131 s390_expand_plus_operand): Add prototypes.
2133 config/s390/s390.c (s390_secondary_input_reload_class,
2134 s390_plus_operand, s390_expand_plus_operand): New functions.
2136 (struct s390_address): New member 'pointer'.
2137 (s390_decompose_address): Compute it.
2138 (legitimate_la_operand_p): Use it.
2139 (legitimize_la_operand): New function.
2140 (movti, movdi, movdf splitters): Call it.
2142 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2143 (PREDICATE_CODES): Add s390_plus_operand.
2145 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2146 (la_ccclobber): Allow GENERAL_REGS as output operand.
2148 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2149 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2150 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2152 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2154 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2155 register names for regular asm () construct.
2157 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2159 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2162 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2164 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2167 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2169 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2170 constant pool to be identical by string address and index.
2172 2002-02-04 Anthony Green <green@redhat.com>
2174 * output.h (SECTION_OVERRIDE): Define.
2175 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2177 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2179 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2180 by existing arm*-*-netbsd* (a.out) target.
2181 (ns32k-*-netbsdelf*): Likewise.
2182 (sparc-*-netbsdelf*): Likewise.
2183 (vax-*-netbsdelf*): Likewise.
2185 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2187 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2188 headers and libobjc headers.
2190 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2192 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2193 (_mingw.h): Remove duplicate include.
2195 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2197 * config.gcc: Set cpu_type to m68k for 68010, as well.
2198 (m68010-*-netbsdelf*): New...
2199 (m68k*-*-netbsdelf*): ...targets.
2200 * config/m68k/netbsd-elf.h: New file.
2202 2002-02-02 Kazu Hirata <kazu@hxi.com>
2204 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2206 2002-02-02 Kazu Hirata <kazu@hxi.com>
2208 * config/h8300/h8300.c (h8_push_ops): Move inside
2210 (h8_pop_ops): Likewise.
2211 (h8_move_ops): Likewise.
2213 2002-02-02 Kazu Hirata <kazu@hxi.com>
2215 * config/h8300/h8300.c (os_task): Make it static.
2216 (monitor): Likewise.
2217 (pragma_saveall): Likewise.
2219 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2221 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2222 constant is a valid sign-extension for Pmode.
2224 2002-02-02 Kazu Hirata <kazu@hxi.com>
2226 * config/h8300/h8300.c: Fix formatting.
2228 2002-02-02 Kazu Hirata <kazu@hxi.com>
2230 * config/h8300/h8300.md: Fix formatting.
2232 2002-02-02 Kazu Hirata <kazu@hxi.com>
2234 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2235 predicates of operands[1]. Split the patterns for each
2238 2002-02-02 Kazu Hirata <kazu@hxi.com>
2240 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2241 of operands[1] to register_operand.
2243 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2245 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2246 * cpphash.c (_cpp_init_hashtable): Similarly.
2247 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2248 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2249 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2250 (cpp_handle_option): Handle the new options.
2251 * cpplex.c (cpp_interpret_charconst): Use new flag.
2252 * cpplib.h (struct cpp_options): New member signed_char.
2253 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2254 (cpp_options): Handle -fsigned-char and -funsigned-char.
2255 (static_specs): Remove signed_char_spec.
2256 (do_spec1): Don't handle %c.
2257 * system.h: Poison SIGNED_CHAR_SPEC.
2258 * tradcif.y (yylex): Use flag_signed_char.
2259 * tradcpp.h (flag_signed_char): New.
2260 * tradcpp.c (flag_signed_char): New.
2261 (main): Handle new command-line options.
2262 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2264 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2265 * avr/avr.h: Remove old comments.
2266 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2267 (CC1_SPEC): Pass -fsigned-char if -mic*.
2268 (SIGNED_CHAR_SPEC): Remove.
2270 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2272 2002-02-01 Eric Christopher <echristo@redhat.com>
2274 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2275 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2276 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2277 (ASM_OUTPUT_REG_POP): Ditto.
2279 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2281 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2284 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2286 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2288 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2291 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2294 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2296 * cfganal.c: Include tm_p.h.
2297 (keep_with_call_p): Fix the test that determines if a register holds
2298 the return value of a call.
2300 2002-02-01 DJ Delorie <dj@redhat.com>
2302 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2303 we are given conflicting registers, switch to the other one we
2304 had allocated for us.
2305 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2306 as TImode so we know when the "other" register is available.
2308 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2310 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2313 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2315 * cfganal.c (keep_with_call_p): New function.
2316 (flow_call_edges_add): Prevent splitting a block between a call and
2317 a single-set instruction that should be kept in the same block.
2319 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2321 * doc/install.texi (avr): Update outdated URL.
2323 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2325 * config/stormy16/stormy16.md (pushqi): New.
2329 (movhi): Remove stack operands.
2331 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2332 nonimmediate_nonstack_operand.
2333 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2335 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2338 2002-01-31 Jason Merrill <jason@redhat.com>
2340 * Makefile.in (c-parse.c): Handle .output file.
2341 * objc/Make-lang.in (objc-parse.c): Likewise.
2343 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2345 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2346 the -me[lb] option is given. Don't output the default flag
2349 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2351 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2352 the primary source file; this has not been done yet.
2353 * c-decl.c (c_expand_body): Reset input_filename from
2354 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2356 2002-01-31 Kazu Hirata <kazu@hxi.com>
2358 * rtlanal.c (subreg_regno_offset): Do not use
2359 SUBREG_REGNO_OFFSET.
2360 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2361 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2363 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2365 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2366 version rather than GNATS version in --version output.
2368 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2370 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2371 when copying back from a temporary.
2373 2002-01-30 Richard Henderson <rth@redhat.com>
2375 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2376 and new_dest are the same.
2378 2002-01-30 Richard Henderson <rth@redhat.com>
2381 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2382 * rtl.c (note_insn_name): Update.
2383 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2384 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2385 to perform loop rotation.
2386 (expand_exit_loop_top_cond): New.
2387 * tree.h (expand_exit_loop_top_cond): Declare it.
2388 * c-semantics.c (genrtl_while_stmt): Use it.
2389 (genrtl_for_stmt): Likewise.
2391 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2393 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2394 arguments to 64-bit boundaries on 64-bit ABIs.
2396 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2398 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2400 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2402 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2405 2002-01-30 David O'Brien <obrien@FreeBSD.org>
2407 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2408 * config/sparc/sparc_bi.h: Remove file.
2409 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2411 2002-01-30 Richard Henderson <rth@redhat.com>
2413 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2415 2002-01-30 Zack Weinberg <zack@codesourcery.com>
2417 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2419 2002-01-30 Jason Merrill <jason@redhat.com>
2421 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2422 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2423 (reg_save): Use DW_CFA_offset_extended_sf instead.
2425 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2427 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2429 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2432 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
2434 * rs6000.md ("*call_value_local32"): Remove constraints.
2435 ("*call_value_local64"): Same.
2436 ("*call_value_indirect_nonlocal_aix32"): Same.
2437 ("*call_value_nonlocal_aix32"): Same.
2438 ("*call_value_indirect_nonlocal_aix64"): Same.
2439 ("*call_value_nonlocal_aix64"): Same.
2440 ("*call_value_nonlocal_sysv"): Same.
2442 2002-01-29 Richard Henderson <rth@redhat.com>
2444 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2446 2002-01-29 Richard Henderson <rth@redhat.com>
2448 * expr.c (force_operand): Ignore flag_pic for detecting pic
2450 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2451 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2452 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2453 instead of open-coded loop.
2454 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
2455 be fixed when in use.
2457 2002-01-29 Richard Henderson <rth@redhat.com>
2459 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
2460 * sched-rgn.c (propagate_deps): Update them.
2461 * sched-deps.c (sched_analyze_insn): Update them. Flush the
2462 clobbers list when either gets too long.
2464 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2466 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
2467 and INDEX_REGS the same as GENERAL_REGS.
2468 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2470 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2472 * tree.c (build_nonstandard_integer_type): Correct prototype.
2474 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
2476 * config/s390/s390.md (movstrsico, movstrdix_64,
2477 movstrsix_31): Remove, replace by ...
2478 (movstrdi_short, movstrsi_short, movstrdi_long,
2479 movstrsi_long): ... these. New.
2480 (movstrdi, movstrsi): Adapt.
2482 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
2483 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
2484 Remove unnecessary CC clobber.
2485 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
2486 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
2488 (divmoddi4): Don't partially initialize TImode register.
2490 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
2492 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
2494 2002-01-29 Richard Henderson <rth@redhat.com>
2496 * flow.c (print_rtl_and_abort): Remove.
2497 (print_rtl_and_abort_fcn): Remove.
2498 (verify_local_live_at_start): Use dump_bb instead.
2499 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
2500 (verify_wide_reg_1): Return 2 on mode test failure.
2502 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2504 PR c/3325, c/3326, c/2511, c/3347
2505 * c-decl.c (enum_decl_context): Remove BITFIELD.
2506 (grokdeclarator): Take bitfield width as an input.
2507 Ensure bitfields are given the correct type. Perform
2508 bitfield width validation with build_bitfield_integer_type
2509 rather than waiting for finish_struct.
2510 (grok_typename, grok_typename_in_parm_context, start_decl,
2511 push_parmdecl, grokfield, start_function): Update calls to
2513 (build_bitfield_integer_type): New function.
2514 (finish_struct): Move bitfield validation to grokdeclarator
2515 and build_bitfield_integer_type.
2516 * tree.c (build_nonstandard_integer_type): New function.
2517 * tree.h (build_nonstandard_integer_type): New prototype.
2519 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
2521 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2524 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
2525 don't ignore unrecognized -W* options.
2526 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
2527 * cpplib.h (cpp_handle_option): Adjust prototype.
2528 * c-decl.c (c_decode_options): Pass 0 as last argument to
2532 * gcc.c (cpp_unique_options): Split from cpp_options.
2533 (cpp_options): Source cpp_unique_options.
2534 (default_compilers): Use cpp_unique_options instead of cpp_options
2535 when used together with cc1_options.
2536 (static_specs): Add cpp_unique_options.
2537 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
2538 when used together with cc1_options.
2540 2002-01-29 Kazu Hirata <kazu@hxi.com>
2542 * config/h8300/h8300-protos.h: Update the prototype of
2544 * config/h8300/h8300.c (output_a_shift): Remove an unused
2545 argument 'insn'. Remove redundant code.
2546 * config/h8300/h8300.md: Adust to the new prototype of
2549 2002-01-29 Kazu Hirata <kazu@hxi.com>
2551 * config/h8300/h8300-protos.h: Update the prototypes of
2552 emit_a_rotate and expand_a_rotate.
2553 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
2554 first argument to 'enum rtx_code'.
2555 (expand_a_rotate): Likewise.
2557 2002-01-28 Kazu Hirata <kazu@hxi.com>
2559 * config/h8300/h8300-protos.h: Update the prototype of
2561 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
2563 * config/h8300/h8300.md: Adjust to the new prototype.
2565 2002-01-28 Kazu Hirata <kazu@hxi.com>
2567 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
2570 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2572 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
2573 is a fixed register before returning pic_offset_table_rtx.
2574 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
2575 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
2577 2002-01-28 Jason Merrill <jason@redhat.com>
2579 * dwarf2.h: Sync with src version.
2581 2002-01-28 Paul Koning <pkoning@equallogic.com>
2583 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
2585 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
2586 * doc/extend.texi (__builtin_prefetch): Update documentation:
2587 first argument is now const void ptr.
2589 2002-01-28 Kazu Hirata <kazu@hxi.com>
2591 * config/h8300/h8300-protos.h: Remove an unused prototype.
2593 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
2595 * toplev.c (lang_independent_init): Round up identifier size.
2597 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
2599 * config.gcc: Revert previous change.
2601 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
2603 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
2605 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
2607 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
2608 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
2609 other non-elf netbsd config frags.
2610 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
2611 collect2 will does that.
2612 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
2613 shared-lib frobbing will work.
2615 2002-01-28 Kazu Hirata <kazu@hxi.com>
2617 * config/h8300/h8300.h: Fix formatting.
2618 * config/h8300/h8300.md: Likewise.
2620 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
2622 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
2623 the old, removed AAA_standards fix.
2624 * fixinc/fixincl.x: Rebuilt.
2626 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
2628 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
2629 atexit call in crtbegin, hooked in after call to frame_dummy;
2630 register EH before registering __fini__start.
2632 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
2634 * config/rs6000/altivec.h: Remove spurious semicolons.
2636 2002-01-27 Kazu Hirata <kazu@hxi.com>
2638 * config/h8300/h8300.md: Replace dead bit extraction patterns
2639 with ones that work.
2641 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2643 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
2644 if not STRICT_ALIGNMENT.
2645 * rtl.h (MEM_ALIGN): Likewise.
2647 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
2649 * doc/invoke.texi (-fdump-translation-unit): Revert this
2650 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
2652 2002-01-27 Kazu Hirata <kazu@hxi.com>
2654 * config/h8300/h8300.md (define_constants): New.
2655 (anonymous patterns) Use defined constants appropriately.
2657 2002-01-27 Kazu Hirata <kazu@hxi.com>
2659 * config/h8300/h8300.c (function_arg): Remove redundant code.
2661 2002-01-26 Richard Henderson <rth@redhat.com>
2663 * sched-deps.c (reg_pending_uses_head): New.
2664 (reg_pending_barrier): Rename from reg_pending_sets_all.
2665 (find_insn_list): Don't mark inline.
2666 (find_insn_mem_list): Remove.
2667 (add_dependence_list, add_dependence_list_and_free): New.
2668 (flush_pending_lists): Replace only_write param with separate
2669 for_read and for_write parameters. Update all callers. Use
2670 add_dependence_list_and_free.
2671 (sched_analyze_1): Do not add reg dependencies here; just set
2672 the pending bits. Use add_dependence_list.
2673 (sched_analyze_2): Likewise.
2674 (sched_analyze_insn): Replace schedule_barrier_found with
2675 reg_pending_barrier. Add all dependencies for pending reg
2676 uses, sets, and clobbers.
2677 (sched_analyze): Don't add reg dependencies for calls, just
2678 set pending bits. Use regs_invalidated_by_call. Treat
2679 sched_before_next_call as a normal list, not a fake insn.
2680 (init_deps): No funny init for sched_before_next_call.
2681 (free_deps): Free pending mems lists. Don't zero reg_last.
2682 (init_deps_global): Init reg_pending_uses.
2683 (finish_deps_global): Free it.
2684 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
2685 (find_insn_mem_list): Remove.
2686 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
2687 (propagate_deps): Use them. Zero temp mem lists.
2689 2002-01-26 Richard Henderson <rth@redhat.com>
2691 * Makefile.in (CRTSTUFF_CFLAGS): New.
2692 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
2693 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
2694 crtstuff.c instead of alpha assembly version.
2695 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
2696 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
2697 not FORCE_{INIT,FINI}_SECTION_ALIGN.
2698 (__do_global_dtors_aux): Mark used.
2699 (frame_dummy, __do_global_ctors_aux): Mark used.
2700 (fini_dummy, init_dummy): Remove.
2702 * config/alpha/crtbegin.asm: Remove file.
2703 * config/alpha/crtend.asm: Remove file.
2704 * config/alpha/t-crtbe: Remove file.
2705 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
2706 (LINK_EH_SPEC): New.
2708 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
2709 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
2710 calling constructors.
2711 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
2713 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
2714 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
2715 CRT_END_INIT_DUMMY hack.
2716 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
2717 FORCE_{INIT,FINI}_SECTION_ALIGN.
2719 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
2720 FORCE_{INIT,FINI}_SECTION_ALIGN.
2722 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
2723 invocation sequence.
2724 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
2726 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
2727 (FORCE_CODE_SECTION_ALIGN): New.
2729 2002-01-26 Richard Henderson <rth@redhat.com>
2731 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
2733 2002-01-26 Richard Henderson <rth@redhat.com>
2735 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
2736 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
2738 2002-01-26 Kazu Hirata <kazu@hxi.com>
2740 * config/h8300/h8300.md: Remove bit extraction patterns that
2741 cannot be triggered.
2742 Restrict each bit extraction pattern to a variant on which the
2745 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
2747 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
2749 2002-01-26 Kazu Hirata <kazu@hxi.com>
2751 * config/h8300/h8300.md: Remove bit test patterns that cannot
2753 Restrict each bit test pattern to a variant on which the
2756 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2758 * builtins.c (expand_builtin_strncat): Remove redundant check for
2761 2002-01-25 David O'Brien <obrien@FreeBSD.org>
2763 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
2765 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
2768 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
2770 * dbxout.c (dbxout_init): Use assemble_name rather than just
2771 stripping off the first character.
2772 (dbxout_source_file): Likewise.
2774 2002-01-25 DJ Delorie <dj@redhat.com>
2776 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
2777 using rtx_equal_p, not by comparing pointers.
2779 2002-01-25 Steve Ellcey <sje@cup.hp.com>
2781 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
2782 for PIC_OFFSET_TABLE_REGNUM.
2783 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
2785 2002-01-25 David O'Brien <obrien@FreeBSD.org>
2787 * config.gcc (x86_64-*-freebsd*): New target.
2788 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
2790 (i[34567]86-*-freebsd*): Don't include svr4.h.
2791 * config/i386/freebsd64.h: New file.
2793 2002-01-25 Douglas B Rupp <rupp@gnat.com>
2795 * config/alpha/x-vms (version): Make static.
2797 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
2798 in previous checkin.
2800 * Makefile.in (install-headers-cp): New target.
2801 * config.gcc (alpha-dec-*vms*): Install headers with
2804 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
2806 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
2809 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2811 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
2812 of compare_tree_int.
2813 (expand_builtin_strncat): Likewise.
2814 * c-decl.c (finish_struct): Use tree_low_cst.
2815 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
2816 * tree.c (compare_tree_int): Likewise.
2818 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
2820 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
2821 adjustments even if they are implemented by more than two insns.
2823 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
2825 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
2826 * df.h (struct ref): Kill B.
2827 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
2829 * basic-block.h (PROP_EQUAL_NOTES): New flag.
2830 * flow.c (propagate_one_insn): Use it.
2831 (mark_used_regs): Handle NIL.
2833 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
2835 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
2838 2002-01-25 David Edelsohn <edelsohn@gnu.org>
2840 * rs6000.md (prefetch): Make address V4SI mode so that the address
2841 is restricted to legitimate form for instruction.
2843 2002-01-25 Bob Wilson <bob.wilson@acm.org>
2845 * doc/install.texi (xtensa-*-elf): New target.
2846 (xtensa-*-linux*): New target.
2847 * doc/contrib.texi: Add myself.
2849 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2851 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
2852 purpose register to hold an SImode (or smaller) value.
2854 2002-01-25 Jakub Jelinek <jakub@redhat.com>
2856 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
2858 * crtstuff.c: Likewise.
2860 2002-01-25 Kazu Hirata <kazu@hxi.com>
2862 * config/h8300/h8300.md (negation patterns): Tighten
2863 predicates to register_operand.
2865 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
2867 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
2870 * builtins.c (expand_builtin_prefetch): Same.
2872 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2874 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
2877 2002-01-24 Kazu Hirata <kazu@hxi.com>
2879 * config/h8300/h8300.c (print_operand): Remove support for
2880 operand character 'A'.
2881 * config/h8300/h8300.md (three anonymous patterns): Replace
2882 operand character 'A' with either 'T' or 'S'.
2884 2002-01-24 Kazu Hirata <kazu@hxi.com>
2886 * config/h8300/h8300.c (print_operand): Remove support for
2887 operand character 'U'.
2889 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
2891 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
2893 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
2895 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
2896 values to be assigned to the stack pointer.
2898 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
2900 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
2901 to const_double needs to be done right for big-endian systems.
2903 2002-01-24 Jason Merrill <jason@redhat.com>
2906 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
2907 to can_throw_internal.
2909 2002-01-23 Richard Henderson <rth@redhat.com>
2911 * fold-const.c (fold): Change UINT_MAX test to check vs precision
2912 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
2914 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2916 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
2917 (symGOT2reg): Use them, then set as GOT value as unchanging.
2918 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
2919 as a temporary, if possible.
2920 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
2921 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
2923 2002-01-23 Kazu Hirata <kazu@hxi.com>
2925 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
2926 accept to accept 0x80 as operands[2].
2928 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2930 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
2932 2002-01-23 Richard Henderson <rth@redhat.com>
2934 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
2936 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
2938 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
2939 (parmlist_or_identifiers_1): Verify that only a parmlist follows
2942 2002-01-23 Richard Henderson <rth@redhat.com>
2944 * expr.c (move_by_pieces_1): Extend size before negation.
2946 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
2947 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
2948 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
2949 * config/m68k/t-m68kelf: Likewise.
2951 2002-01-23 Bob Wilson <bob.wilson@acm.org>
2953 * config/xtensa/elf.h: New file.
2954 * config/xtensa/lib1funcs.asm: New file.
2955 * config/xtensa/lib2funcs.S: New file.
2956 * config/xtensa/linux.h: New file.
2957 * config/xtensa/t-xtensa: New file.
2958 * config/xtensa/xtensa-config.h: New file.
2959 * config/xtensa/xtensa-protos.h: New file.
2960 * config/xtensa/xtensa.c: New file.
2961 * config/xtensa/xtensa.h: New file.
2962 * config/xtensa/xtensa.md: New file.
2963 * config.gcc (xtensa-*-elf*): New target.
2964 (xtensa-*-linux*): New target.
2965 * cse.c (canon_hash): Compare rtx pointers instead of register
2966 numbers. This is required for the Xtensa port.
2967 * integrate.c (copy_insn_list): Handle case where the static
2968 chain is in memory and the memory address has to be copied to
2970 * doc/invoke.texi (Option Summary): Add Xtensa options.
2971 (Xtensa Options): New node.
2972 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
2974 2002-01-23 Zack Weinberg <zack@codesourcery.com>
2976 * diagnostic.c (internal_error): Do ICE suppression only
2977 when ENABLE_CHECKING is not defined.
2979 * c-typeck.c (require_complete_type): Return error_mark_node
2980 if type is error_mark_node.
2982 2002-01-23 Janis Johnson <janis187@us.ibm.com>
2984 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
2985 -Os and issue a warning.
2987 2002-01-23 Zack Weinberg <zack@codesourcery.com>
2989 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
2990 current (lack of) need for host configuration by hand.
2992 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
2993 references. Documentation of some target macros moved from
2994 hostconfig.texi to tm.texi.
2996 2002-01-23 Will Cohen <wcohen@redhat.com>
2998 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3001 2002-01-23 Kazu Hirata <kazu@hxi.com>
3003 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3006 2002-01-23 Jason Merrill <jason@redhat.com>
3008 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3010 * function.c (assign_parms): Don't put args of inline functions
3011 into registers when not optimizing.
3013 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3015 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3016 (prologue_use): New pattern.
3017 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3018 preference to gen_rtx_USE.
3019 (thumb_expand_prologue): Use gen_prologue_use in preference to
3021 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3024 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3026 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3028 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3031 * doc/extend.texi: Correct documentation of __alignof__.
3033 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3035 * params.h: Rename arguments of DEFPARAM so that it will be
3036 recognized as a translation keyword.
3038 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3040 * extend.texi: Document altivec functions.
3041 Fix N-bit adjectives in X86 builtin documentation.
3043 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3045 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3046 auto_inc_dec values.
3048 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3050 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3052 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3054 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3056 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3058 2002-01-22 Richard Henderson <rth@redhat.com>
3060 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3061 copy_insn not copy_rtx.
3063 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3065 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3066 "nonzero" as that might add "1" bits. Ensure "constop" is
3067 properly sign extened.
3068 (force_to_mode): Tweak for sign extended constop.
3070 2002-01-22 Richard Henderson <rth@redhat.com>
3072 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3073 for_each_rtx instead of assuming we're already looking at the MEM.
3074 (split_small_symbolic_mem_operand): Likewise.
3075 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3076 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3078 2002-01-22 Richard Henderson <rth@redhat.com>
3080 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3081 sequence number for the literal.
3082 (divmoddi_internal_er): Likewise.
3084 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3087 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3088 in LIBICONV variable.
3089 * configure: Regenerated.
3091 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3093 * dependence.c (build_def_use): Remove array_idx.
3095 * dwarfout.c (last_filename): Remove.
3096 (output_compile_unit_die): Remove last_filename.
3098 2002-01-22 Roger Sayle <roger@eyesopen.com>
3099 Richard Henderson <rth@redhat.com>
3102 * fold-const.c (fold): Optimize unsigned comparisons against
3103 UINT_MAX (and similar unsigned constants).
3105 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3107 * Makefile.in (loop.o): Depend on OPTABS_H.
3108 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3109 against the predicate.
3112 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3113 for the address operand.
3115 2002-01-22 Richard Henderson <rth@redhat.com>
3117 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3119 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3122 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3125 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3127 * config.gcc (x86_64-*-netbsd*): New target.
3128 * config/i386/netbsd64.h: New file.
3130 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3132 * regrename.c (kill_value): Fix typo.
3134 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3136 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3138 * config/rs6000/rs6000.h: Same.
3140 * function.c (instantiate_virtual_regs): Remove
3141 STARTING_FRAME_PHASE.
3142 (assign_stack_local_1): Same.
3143 Calculate frame phase.
3145 2002-01-22 Nick Clifton <nickc@redhat.com>
3147 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3148 variable declaration to outer scope in order to simplify
3150 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3151 arm_hard_regno_mode_ok.
3152 * config/arm/arm-protos.h: Add a prototype for
3153 arm_hard_regno_mode_ok.
3154 * config/arm/arm.c (soft_df_operand): Remove now redundant
3155 check for DImode values using IP_REGNUM.
3156 (nonimmediate_soft_df_operand): Remove now redundant check for
3157 DImode values using IP_REGNUM.
3158 (arm_hard_regno_mode_ok): New function. New check: make sure
3159 that DImode values are not stored in IP_REGNUM.
3161 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3163 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3165 2002-01-22 Jason Merrill <jason@redhat.com>
3167 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3168 consistency if this COMPOUND_STMT is scoped.
3170 2002-01-22 Kazu Hirata <kazu@hxi.com>
3172 * predict.c: Fix formatting.
3173 * print-tree.c: Likewise.
3174 * protoize.c: Likewise.
3177 * sbitmap.h: Likewise.
3179 * sched-deps.c: Likewise.
3180 * sched-vis.c: Likewise.
3181 * sdbout.c: Likewise.
3182 * sibcall.c: Likewise.
3184 * ssa-ccp.c: Likewise.
3185 * ssa-dce.c: Likewise.
3187 * stor-layout.c: Likewise.
3188 * system.h: Likewise.
3190 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3192 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3193 if fits in bounds of base type.
3195 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3196 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3197 (add_bound_info, default): If can't find a context, make a
3199 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3201 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3203 * c-typeck.c (parser_build_binary_op): If result from
3204 build_binary_op is ERROR_MARK just return error_mark_node without
3207 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3209 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3210 Split a.out-specific bits into...
3211 * config/netbsd-aout.h: ...this.
3212 * config/netbsd-elf.h: New file.
3213 * config/alpha/netbsd-elf.h: Remove.
3214 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3215 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3216 (STARTFILE_SPEC): Remove redundant definition.
3217 (ENDFILE_SPEC): Likewise.
3218 (LINK_SPEC): Likewise.
3219 (CPP_SPEC): Likewise.
3220 (ASM_SPEC): Likewise.
3221 (LIB_SPEC): Likewise.
3222 (SWITCH_TAKES_ARG): Likewise.
3223 (TARGET_MEM_FUNCTIONS): Likewise.
3224 (CPP_PREDEFINES): Redefine.
3225 (ASM_FINAL_SPEC): Remove redefinition.
3226 (ASM_COMMENT_START): Redefine.
3227 (FUNCTION_PROFILER): Define.
3228 (TARGET_VERSION): Redefine.
3229 Comment and formatting cleanup.
3230 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3231 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3232 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3233 big- or little-endian.
3234 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3235 * config.gcc (*-*-netbsd*): Add definitions common to all
3237 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3238 gnu_ld definitions. Add netbsd-elf.h to and remove
3239 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3240 tmake_file, and don't lose previous tmake_file contents.
3241 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3242 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3243 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3244 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3245 (mipsel-*-netbsd*): Rename this to...
3246 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3247 mips/little.h to tm_file for mips*el-*.
3248 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3249 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3250 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3252 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3254 * pa-protos.h (reg_before_reload_operand): New function prototype.
3255 * pa.c (reg_before_reload_operand): New function implementation.
3256 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3259 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3261 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3263 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3265 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3266 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3267 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3268 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3269 (ENDFILE_SPEC): Undefine.
3270 (STARTFILE_SPEC): Redefine for PA.
3272 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3274 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3276 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3278 * config.gcc: Add entries to supported PowerPC --with-cpu
3281 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3283 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3284 true for 64-bit mode only SSE registers in 32-bit mode.
3286 2002-01-21 Kazu Hirata <kazu@hxi.com>
3288 * unwind-dw2.c: Fix formatting.
3289 * unwind-dw2-fde.c: Likewise.
3290 * unwind-dw2-fde.h: Likewise.
3291 * unwind-pe.h: Likewise.
3292 * varasm.c: Likewise.
3293 * varray.h: Likewise.
3295 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3297 Remove workaround for register stack overwrite bug in mmix.
3298 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3299 support for TARGET_REG_STACK_FILL_BUG.
3300 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3301 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3303 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3304 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3305 -mno-reg-stack-fill-bug-workaround.
3306 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3307 machine member has_call_without_parameters.
3308 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3309 -mreg-stack-fill-bug-workaround and
3310 -mno-reg-stack-fill-bug-workaround.
3311 (MMIX Options): Ditto.
3313 2002-01-21 Kazu Hirata <kazu@hxi.com>
3315 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3317 Remove redundant code.
3319 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3321 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3322 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3323 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3324 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3325 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3326 out target macro definitions and non-target-specific comments
3327 mostly taken from old versions of the manual.
3329 2002-01-20 Kazu Hirata <kazu@hxi.com>
3331 * config/h8300/h8300.h: Fix comment formatting.
3332 * config/ia64/aix.h: Likewise.
3333 * config/ia64/ia64-protos.h: Likewise.
3334 * config/ia64/ia64.c: Likewise.
3335 * config/ia64/ia64.h: Likewise.
3336 * config/ia64/ia64intrin.h: Likewise.
3337 * config/ia64/linux.h: Likewise.
3338 * config/ia64/unwind-aix.c: Likewise.
3339 * config/ia64/unwind-ia64.c: Likewise.
3341 2002-01-20 Kazu Hirata <kazu@hxi.com>
3343 * config/h8300/h8300.c: Revise comments about shift code.
3345 2002-01-20 Kazu Hirata <kazu@hxi.com>
3347 * config/h8300/h8300.c (function_arg): Update a comment.
3349 2002-01-20 Kazu Hirata <kazu@hxi.com>
3351 * config/h8300/h8300.md: Update the comments at the beginning
3354 2002-01-20 Kazu Hirata <kazu@hxi.com>
3356 * config/i370/i370.c: Fix comment formatting.
3357 * config/i370/i370.h: Likewise.
3358 * config/i370/i370.md: Likewise.
3359 * config/i370/linux.h: Likewise.
3361 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3363 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3365 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3366 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3369 2002-01-20 Graham Stott <grahams@redhat.com>
3371 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3373 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3375 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3377 2002-01-19 Tom Rix <trix@redhat.com>
3379 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3381 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3383 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3385 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3386 STARTING_FRAME_PHASE.
3387 (STARTING_FRAME_PHASE): New.
3388 (instantiate_virtual_regs): Check saneness of
3389 STARTING_FRAME_PHASE.
3391 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3393 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3395 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3397 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3399 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3400 be used for bootstrapping GCC 3.0.
3402 2002-01-18 Kazu Hirata <kazu@hxi.com>
3404 * config/h8300/h8300.md: Fix an insn length.
3406 2002-01-18 Kazu Hirata <kazu@hxi.com>
3408 * bitmap.h: Fix comment formatting.
3409 * combine.c: Likewise.
3410 * cppfiles.c: Likewise.
3411 * c-pragma.h: Likewise.
3412 * c-typeck.c: Likewise.
3414 * dwarf2out.c: Likewise.
3415 * function.c: Likewise.
3417 * genattrtab.c: Likewise.
3418 * gthr-win32.h: Likewise.
3419 * haifa-sched.c: Likewise.
3420 * predict.c: Likewise.
3421 * rtlanal.c: Likewise.
3423 * unwind-dw2-fde.h: Likewise.
3424 * unwind-pe.h: Likewise.
3425 * vmsdbgout.c: Likewise.
3427 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3429 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3430 if type_required and passed decl.
3432 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
3434 * config.gcc (cpu_type): Include altivec.h in powerpc
3438 * config/rs6000/altivec.h: New.
3440 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3442 * doc/install.texi (*-ibm-aix*): Update assembler and exception
3443 handling information.
3444 * doc/trouble.texi (Interoperation): Add libstdc++ information
3446 (Misunderstandings): Add template instantiation and static template
3447 member information for AIX.
3449 2002-01-17 Jason Merrill <jason@redhat.com>
3451 * dbxout.c (dbxout_type): Support const and volatile.
3453 * except.c (add_partial_entry): Remove backwards compatibility code.
3454 (end_protect_partials): Likewise.
3456 2002-01-17 Jakub Jelinek <jakub@redhat.com>
3458 * config/ia64/ia64.md (prologue_use): New.
3459 * config/ia64/ia64.c (ia64_expand_prologue): Use
3460 gen_prologue_use instead of gen_rtx_USE.
3461 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
3462 as CODE_FOR_pred_rel_mutex.
3463 (ia64_sched_reorder2): Likewise.
3465 2002-01-16 Eric Christopher <echristo@redhat.com>
3467 * config/mips/r3900.h: Reformat.
3468 (SUBTARGET_CPP_SIZE_SPEC): Remove.
3469 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3470 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
3471 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
3472 * config/mips/t-elf: Remove mips3 multilib.
3474 2002-01-16 H.J. Lu <hjl@gnu.org>
3476 * config/mips/linux.h: Include "mips/abi64.h".
3478 2002-01-16 H.J. Lu <hjl@gnu.org>
3480 * config/mips/t-linux: New.
3482 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
3484 * config/mips/linux.h: Don't include "gofast.h".
3485 (INIT_SUBTARGET_OPTABS): Removed.
3487 2002-01-16 Kazu Hirata <kazu@hxi.com>
3489 * config/h8300/h8300-protos.h: Replace emit_a_shift with
3491 * config/h8300/h8300.c: Likewise.
3492 * config/h8300/h8300.md: Likewise.
3494 2002-01-16 Kazu Hirata <kazu@hxi.com>
3496 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
3497 spaces after an opcode name.
3498 (pushqi1_h8300hs): Likewise.
3499 (pushhi1_h8300hs): Likewise.
3501 2002-01-16 Kazu Hirata <kazu@hxi.com>
3503 * doc/extend.texi: Replace "option" with "attribute"
3506 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3508 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
3509 (and:DI () (const_int -8)).
3510 (split_small_symbolic_mem_operand): Split
3511 (mem (and:DI () (const_int -8)).
3513 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3516 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
3517 same way as TYPE_IMUL.
3518 (ultrasparc_sched_reorder): Likewise.
3519 * config/sparc/sparc.md (type): Add comment to update
3520 ultrasparc_sched_reorder when making changes.
3522 2002-01-16 Kazu Hirata <kazu@hxi.com>
3524 * doc/invoke.texi: Change the dump file name of block
3525 reordering pass from 28.bbro to 29.bbro.
3528 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
3530 * i386.md (minsf splitter): Fix pasto.
3532 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3534 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
3535 to frame pointer initialisation instruction.
3536 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
3537 initialisation instruction.
3538 (soft_df_operand): Do not accept the IP register.
3539 (nonimmediate_soft_df_operand): Do not accept the IP register.
3541 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3544 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
3545 MASK_V8 being both set.
3547 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
3549 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
3550 insn for GOT register; add REG_MAYBE_DEAD notes instead.
3551 config/s390/s390.md (call, call_value): Add GOT register to
3552 CALL_INSN_FUNCTION_USAGE where needed.
3553 (call_exp, call_value_exp): New.
3555 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3557 * config/arm/arm.c: General formatting tidy up.
3559 2002-01-16 Graham Stott <grahams@redhat.com>
3561 * calls.c (try_to_integrate): Use "(size_t)" intermediate
3562 cast and when casting an integer literal to "rtx" pointer.
3563 (expand_call): Likewise.
3564 * flow.c (try_pre_increment): Likewise.
3565 (find_use_as_address): Likewise.
3566 * integrate.c (expand_iline_function): Likewise.
3567 * regmove.c (try_auto_increment): Likewise.
3569 2002-01-16 Graham Stott <grahams@redhat.com>
3571 * sched-rgn.c (passed): Use sbitmap_free.
3574 (in_queue): Likewise.
3575 (in_stack): Likewise.
3577 2002-01-15 Eric Christopher <echristo@redhat.com>
3579 * flow.c (propagate_one_insn): Change to use fatal_insn.
3581 2002-01-15 Kazu Hirata <kazu@hxi.com>
3583 * expmed.c (extract_fixed_bit_field): Remove unused code.
3584 * system.h: Poison SLOW_ZERO_EXTEND.
3585 * doc/tm.texi: Remove.
3586 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
3587 * config/arm/arm.h: Likewise.
3588 * config/avr/avr.h: Likewise.
3589 * config/clipper/clipper.h: Likewise.
3590 * config/convex/convex.h: Likewise.
3591 * config/d30v/d30v.h: Likewise.
3592 * config/dsp16xx/dsp16xx.h: Likewise.
3593 * config/elxsi/elxsi.h: Likewise.
3594 * config/fr30/fr30.h: Likewise.
3595 * config/h8300/h8300.h: Likewise.
3596 * config/i370/i370.h: Likewise.
3597 * config/i386/i386.h: Likewise.
3598 * config/m68k/m68k.h: Likewise.
3599 * config/mips/mips.h: Likewise.
3600 * config/ns32k/ns32k.h: Likewise.
3601 * config/pdp11/pdp11.h: Likewise.
3602 * config/pj/pj.h: Likewise.
3603 * config/s390/s390.h: Likewise.
3604 * config/sh/sh.h: Likewise.
3605 * config/stormy16/stormy16.h: Likewise.
3606 * config/v850/v850.h: Likewise.
3607 * config/vax/vax.h: Likewise.
3608 * config/we32k/we32k.h: Likewise.
3610 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
3612 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
3613 (altivec_lvsl): Change constraint to b.
3614 (altivec_lvsr): Same.
3615 (altivec_lvebx): Same.
3616 (altivec_lvehx): Same.
3617 (altivec_lvewx): Same.
3618 (altivec_lvxl): Same.
3619 (altivec_lvx): Same.
3620 (altivec_stvx): Add parallel.
3621 (altivec_stvxl): Same.
3622 (altivec_stvehx): Same.
3623 (altivec_stvebx): Same.
3624 (altivec_stvebx): Same.
3626 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
3628 * config.gcc: Change altivec.h to altivec-defs.h.
3630 * config/rs6000/altivec.h: Delete.
3632 * config/rs6000/altivec-defs.h: Add.
3634 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3636 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
3639 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
3640 less than or equal to eight bytes.
3642 * vax.md (andsi3): Remove constraints and change SET destination
3643 operand type to nonimmediate_operand.
3644 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
3645 when it is a CONST_INT.
3647 2002-01-15 Jason Merrill <jason@redhat.com>
3649 * c-common.def (FILE_STMT): New code.
3650 * c-common.c (statement_code_p): It's a statement.
3651 * c-common.h (stmt_tree_s): Add x_last_filename.
3652 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
3653 (last_expr_filename): New macro.
3654 * c-semantics.c (begin_stmt_tree): Initialize it.
3655 (add_stmt): If the filename changed, also insert a
3657 (expand_stmt): Handle seeing one.
3659 2002-01-15 Eric Christopher <echristo@redhat.com>
3661 * flow.c (propagate_one_insn): Add error message and print out
3664 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
3666 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
3667 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
3668 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
3669 TRAMPOLINE_ALIGNMENT.
3670 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
3672 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
3673 PCC_BITFIELD_TYPE_MATTERS.
3674 * config/interix.h (STDC_VALUE): Remove. Use
3675 STDC_0_IN_SYSTEM_HEADERS.
3676 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
3677 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
3678 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
3680 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
3682 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
3683 not work on this platform currently.
3685 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
3687 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
3688 readonly_warning in _().
3690 2002-01-15 Douglas B Rupp <rupp@gnat.com>
3692 * gcc.c (delete_if_ordinary): Backout previous change.
3694 2002-01-15 Kazu Hirata <kazu@hxi.com>
3696 * config/h8300/h8300.c (print_operand): Remove support for
3697 unused operand characters.
3699 * read-rtl.c: Fix formatting.
3701 * recog.c: Likewise.
3702 * regclass.c: Likewise.
3703 * regmove.c: Likewise.
3704 * reg-stack.c: Likewise.
3705 * reload1.c: Likewise.
3706 * rtlanal.c: Likewise.
3708 2002-01-15 Kazu Hirata <kazu@hxi.com>
3710 * config/i386/i386.c: Fix formatting.
3712 2002-01-15 Jakub Jelinek <jakub@redhat.com>
3714 * c-typeck.c (process_init_element): Don't save_expr
3715 COMPOUND_LITERAL_EXPR if just its initializer will be used.
3717 2002-01-15 David Edelsohn <edelsohn@gnu.org>
3719 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
3720 emit optional traceback table if optimize_size or TARGET_ELF.
3721 * config/rs6000/rs6000.md (prefetch): New.
3723 2002-01-15 Andreas Jaeger <aj@suse.de>
3725 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
3727 2002-01-15 Kazu Hirata <kazu@hxi.com>
3729 * mips-tfile.c: Fix formatting.
3731 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
3733 * unroll.c (final_reg_note_copy): Fix previous commit.
3735 2002-01-14 Kazu Hirata <kazu@hxi.com>
3737 * config/h8300/h8300-protos.h: Remove the prototype for
3739 * config/h8300/h8300.c (eq_operator): Remove.
3741 2002-01-14 Richard Henderson <rth@redhat.com>
3743 * config/i386/i386.md (prefetch): Tidy.
3744 (prefetch_3dnow): Fix locality operand.
3746 2002-01-14 Richard Henderson <rth@redhat.com>
3748 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
3749 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
3751 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
3753 * reload1.c (reload_combine): Pass reg_sum replacement through
3754 copy_rtx in loop performing multiple changes.
3756 2002-01-14 Jakub Jelinek <jakub@redhat.com>
3758 * except.c (remove_unreachable_regions): New.
3759 (free_eh_status): Clear exception_handler_labels.
3760 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
3761 (find_exception_handler_labels): Don't add the same label more than
3763 (remove_exception_handler_label): Don't die if
3764 find_exception_handler_labels hasn't been called for the current
3767 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
3769 * toplev.c (rest_of_compilation): Rebuild jump labels after
3772 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
3774 * doc/extend.texi: Move documentation of X86 built-in functions
3776 * doc/invoke.texi: From here.
3777 * doc/sourcebuild.texi: Document location of documentation for
3778 machine built-in functions.
3780 2002-01-13 Christopher Faylor <cgf@redhat.com>
3782 * cppfiles.c (TEST_THRESHOLD): New macro.
3783 (SHOULD_MMAP): Ditto.
3784 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
3787 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
3789 * unroll.c (final_reg_note_copy): Properly handle
3791 (unroll_loops): Fix LOOP_CONDITION heuristics.
3793 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
3795 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
3796 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
3798 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
3800 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
3803 2002-01-14 Tom Rix <trix@redhat.com>
3805 * config/rs6000/rs6000.md: Fix typo with sradi.
3807 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
3809 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
3810 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
3811 (clrstrdi, clrstrsi): Adapt callers.
3813 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
3815 (movti splitter): Never use register 0 as base register.
3817 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3819 * combine.c (simplify_shift_const): Always generate new rtx
3820 for shift expression instead of reusing given expression.
3822 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3824 * config/alpha/alpha.c (alpha_expand_mov): Don't call
3825 alpha_legitimize_address unless mode is Pmode.
3827 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
3829 * doc/md.texi (Modifiers): Document the '*' constraint for the
3832 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
3833 * doc/extend.texi (Function Attributes): 'interrupt' is valid
3836 2002-01-13 Richard Henderson <rth@redhat.com>
3838 * reload.c (find_reloads): Use a hard reg destination as reload reg
3839 for an input reload of the source.
3841 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3843 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
3846 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
3848 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3849 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3851 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
3853 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3855 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
3857 2002-01-12 Tom Rix <trix@redhat.com>
3859 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
3862 2002-01-12 Richard Henderson <rth@redhat.com>
3864 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
3866 * doc/invoke.texi: Update Alpha options.
3868 * doc/invoke.texi: Update i386 built-in function lists.
3870 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
3872 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
3873 referencing outside.
3875 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3877 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
3878 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
3879 offsets, and change line folding.
3880 * optabs.c (expand_binop): Remove warnings.
3881 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
3883 2002-01-12 Graham Stott <grahams@redhat.com>
3885 * attribs.c (handle_deprecated_attribute): constify WHAT.
3886 * diagnostic.c (warn_deprecated_use): Add braces, fixes
3887 dangling else warning and constify WHAT.
3888 * except.h (struct function, struct inline_remap): Move
3889 struct tag forward defs before all prototypes.
3890 (duplicate_eh_regions): Whitespace.
3892 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
3894 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
3895 MODE_BASE_REG_CLASS.
3896 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
3898 2002-01-12 Richard Henderson <rth@redhat.com>
3900 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
3901 (ix86_expand_vector_move): New.
3902 (bdesc_2arg): Remove andps, andnps, orps, xorps.
3903 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
3904 Remove old prefetch builtins. Special case the logicals removed above.
3905 (ix86_expand_builtin): Likewise.
3906 (safe_vector_operand): Use V4SFmode, not TImode.
3907 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
3908 (ix86_expand_timode_binop_builtin): New.
3909 * config/i386/i386-protos.h: Update.
3910 * config/i386/i386.h (enum ix86_builtins): Update.
3911 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
3912 Use ix86_expand_vector_move in vector move expanders.
3913 (movti_internal, movti_rex64): Add xorps alternative.
3914 (sse_clrv4sf): Rename and adjust from sse_clrti.
3915 (prefetch): Don't work so hard.
3916 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
3917 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
3918 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
3920 2002-01-11 Richard Henderson <rth@redhat.com>
3922 * config/i386/mmintrin.h: New file.
3923 * config/i386/xmmintrin.h: New file.
3924 * config.gcc (i?86-*-*): Add extra_headers.
3925 * simplify-rtx.c (simplify_unary_operation): Handle saturating
3927 (simplify_binary_operation): Handle saturating arithmetic codes.
3928 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
3929 not the lowpart subreg.
3930 (ix86_expand_builtin): Return a TImode dummy register instead of 0
3932 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
3934 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3936 * conflict.c (conflict_graph_compute): Free regsets when finished.
3937 * ssa.c (compute_coalesced_reg_partition): Likewise.
3939 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3941 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
3942 every where we allocate a register.
3944 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3946 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
3947 * lcm.c (compute_earliest, compute_farthest): Likewise.
3949 2002-01-11 Janis Johnson <janis187@us.ibm.com>
3951 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
3953 2002-01-11 Janis Johnson <janis187@us.ibm.com>
3955 * doc/rtl.texi (Insns): Fix 2 typos.
3957 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
3959 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
3960 options. Use @table @gcctabopt for MMIX options. Add index
3961 entries for MMIX options. Start new paragraph with first
3962 heading of the machine-dependent options.
3964 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
3967 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
3968 * combine.c (force_to_mode): Same.
3969 * reload1.c (clear_reload_reg_in_use): Same.
3971 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
3973 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
3976 2002-01-11 Andreas Jaeger <aj@suse.de>,
3977 Brad Lucier <lucier@math.purdue.edu>
3979 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
3982 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
3984 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
3985 Protect with IN_LIBGCC.
3986 (LINK_EH_SPEC): Add required trailing space.
3988 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
3990 * c-tree.h: Move function declarations so that they are listed
3991 under the filename which contains them.
3992 (check_identifier, finish_decl_top_level,
3993 lookup_name_current_level_global, shadow_record_fields): Remove.
3995 2002-01-11 Andreas Jaeger <aj@suse.de>
3997 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4000 2002-01-10 Richard Henderson <rth@redhat.com>
4002 * config/alpha/alpha.c (print_operand): Add 'J'.
4003 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4004 new operand with the sequence number for the lituse. When splitting
4005 the insns, use gen_movdi_er_high_g and generate a sequence number.
4006 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4008 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4010 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4011 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4013 (altivec_expand_builtin): Same.
4014 (altivec_expand_stv_builtin): New.
4016 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4018 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4019 ("altivec_lvehx"): New.
4020 ("altivec_lvewx"): New.
4021 ("altivec_lvxl"): New.
4022 ("altivec_lvx"): New.
4023 ("altivec_stvx"): New.
4024 ("altivec_stvebx"): New.
4025 ("altivec_stvehx"): New.
4026 ("altivec_stvewx"): New.
4027 ("altivec_stvxl"): New.
4029 2002-01-10 Richard Henderson <rth@redhat.com>
4031 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4032 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4033 care not to delete instructions twice.
4035 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4037 * toplev.c: Don't declare environ (it's not used anywhere).
4038 * configure.in: Don't check for declaration of environ.
4039 * config/i386/xm-mingw32.h: Don't #define environ.
4040 * config.in, configure: Regenerate.
4042 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4044 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4045 * configure: Regenerate.
4047 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4048 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4049 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4051 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4052 LIMITS_H_TEST here, not in m68k/x-next.
4053 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4054 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4056 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4057 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4058 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4060 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4061 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4062 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4063 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4064 replacement of quadlib.asm with quadlib.c.
4066 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4067 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4068 config/rs6000/xm-beos.h: Delete file.
4070 * config.gcc: Update to match above changes.
4072 2002-01-10 Kazu Hirata <kazu@hxi.com>
4074 * config/h8300/h8300.h: Fix comment typos.
4075 * config/h8300/h8300.md: Likewise.
4076 * config/h8300/lib1funcs.asm: Likewise.
4078 2002-01-10 Dale Johannesen <dalej@apple.com>
4080 PR optimization/5269
4081 * unroll.c (precondition_loop_p): Make *increment be the correct
4082 sign when n_iterations known, to avoid confusing caller.
4084 2002-01-10 Kazu Hirata <kazu@hxi.com>
4086 * doc/extend.texi (deprecated): Fix a typo.
4088 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4090 * basic-block.h (update_br_prob_note): Declare.
4091 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4092 (try_forward_edges): Care negative frequencies and update note.
4093 (outgoing_edges_match): Tweek conditional merging heuristics.
4094 (try_crossjump_to_edge): use update_br_prob_note.
4095 * cfglayout.c (fixup_reorder_chain): Likewise.
4096 * cfrtl.c (update_br_prob_note): New.
4097 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4099 * i386.c (ix86_decompose_address): Return -1 if address contains
4101 (legitimate_address_p): Require ix86_decompose_address to return 1.
4103 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4104 (cprop_insn): Likewise.
4106 2002-01-10 Kazu Hirata <kazu@hxi.com>
4108 * toplev.c: Fix formatting.
4110 * tree-dump.c: Likewise.
4111 * unroll.c: Likewise.
4112 * unwind-dw2.c: Likewise.
4113 * unwind-dw2-fde.c: Likewise.
4114 * unwind-dw2-fde-glibc.c: Likewise.
4115 * unwind-sjlj.c: Likewise.
4117 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4119 * doc/invoke.texi: Document PDP-11 options.
4121 2002-01-10 Kazu Hirata <kazu@hxi.com>
4123 * config/h8300/h8300.h: Fix formatting.
4125 2002-01-10 Ira Ruben <ira@apple.com>
4127 Add __attribute__ ((deprecated)).
4128 * extend.texi: Document __attribute__ ((deprecated)).
4129 * invoke.texi: Document -Wno-deprecated-declarations.
4130 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4131 * testsuite/gcc.dg/deprecated.c: New C test.
4132 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4133 (c_common_attribute_table): Add "deprecated" entry.
4134 (handle_deprecated_attribute): New function.
4135 * c-decl.c (deprecated_states): New enum.
4136 deprecated_state: State of "deprecated" handling.
4137 (start_decl): Set deprecated_state based on attributes.
4138 (grokdeclarator): Test for deprecated uses, propagate attribute.
4139 * c-typeck.c (build_component_ref): Test for deprecated fields.
4140 (build_external_ref): Test for deprecated primaries.
4141 * diagnostic.c (warn_deprecated_use) New function to issue
4142 warnings about __attribute__ ((depricated)) references.
4143 * flags.h (warn_deprecated_decl): Extern declared for
4144 -W[no-]deprecated-declarations option.
4145 * print-tree.c (print_node): Show deprecated flag status.
4146 * toplev.c (warn_deprecated_decl): Defined.
4147 (W_options): Added "deprecated-declaration".
4148 * toplev.h (warn_deprecated_use): Extern declared.
4149 * tree.h (struct tree_common): Define deprecated_flag.
4150 (TREE_DEPRECATED): New macro to access flag.
4151 * cp/call.c (build_call): Test for deprecated calls.
4152 * cp/class.c (add_implicitly_declared_members): Set global
4153 flag to tell grokdeclarator to not issue deprecated warnings.
4154 * cp/cp-tree.h: Add extern for adding_implicit_members.
4155 * cp/decl.c (deprecated_states): New enum.
4156 (start_decl): Set deprecated_state based on attributes.
4157 (grokdeclarator): Test for deprecated uses, propagate attribute.
4158 * cp/lex.c (do_identifier): Test for deprecated primaries.
4159 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4161 2002-01-10 Ira Ruben <ira@apple.com>
4163 Fix to assign attributes to inline member functions.
4164 * cp/decl.c (start_method): Handle attrlist.
4166 2002-01-10 Kazu Hirata <kazu@hxi.com>
4168 * combine.c (expand_field_assignment): Use subreg_lsb().
4170 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4172 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4173 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4174 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4175 Recurse for any operand of AND as long as constant is non-zero.
4177 2002-01-10 Kazu Hirata <kazu@hxi.com>
4179 * config/h8300/h8300.md: Remove constraints from expanders.
4181 2002-01-10 Kazu Hirata <kazu@hxi.com>
4183 * varasm.c: Fix formatting.
4184 * varray.c: Likewise.
4185 * vmsdbgout.c: Likewise.
4186 * xcoffout.c: Likewise.
4188 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4190 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4191 update edge probabilities to match.
4193 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4195 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4197 * doc/languages.texi, doc/sourcebuild.texi: New files.
4198 * doc/configfiles.texi: Make a subsubsection. Update.
4199 * doc/configterms.texi: Add @node. Remove warning that this isn't
4200 instructions for building GCC.
4201 * doc/makefile.texi: Make a subsection.
4202 * doc/gccint.texi: Update.
4204 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4206 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4208 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4210 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4212 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4214 * optabs.c (expand_fix): Look for wider integer modes first.
4216 * i386.md (mov?f): Avoid the fake const double trick for medium
4218 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4219 (fop_df_4): Disable for SSE compilation.
4221 2002-01-10 Graham Stott <grahams@redhat.com>
4223 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4224 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4226 2002-01-10 Richard Henderson <rth@redhat.com>
4228 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4230 2002-01-10 Richard Henderson <rth@redhat.com>
4232 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4233 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4235 2002-01-10 Kazu Hirata <kazu@hxi.com>
4237 * combine.c (can_combine_p): Fix a comment typo.
4239 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4241 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4242 empty list correctly. Change loop index $t to $f for
4243 consistency with rest of Makefile.
4245 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4247 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4248 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4250 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4251 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4252 (altivec_init_builtins): Same.
4253 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4254 (altivec_expand_binop_builtin): Same.
4255 (altivec_expand_ternop_builtin): Same.
4258 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4259 ("altivec_vctuxs"): Fix typo.
4260 ("altivec_vnmsubfp"): Same.
4261 ("altivec_dssall"): New.
4262 ("altivec_mfvscr"): New.
4263 ("altivec_dss"): New.
4264 ("altivec_lvsl"): New.
4265 ("altivec_lvsr"): New.
4266 ("altivec_dstt"): New.
4267 ("altivec_dstst"): New.
4268 ("altivec_dststt"): New.
4269 ("altivec_dst"): New.
4271 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4272 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4274 2002-01-09 Richard Henderson <rth@redhat.com>
4276 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4278 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4280 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4282 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4284 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4286 2002-01-09 Kazu Hirata <kazu@hxi.com>
4288 * read-rtl.c: Fix formatting.
4290 * regclass.c: Likewise.
4291 * regrename.c: Likewise.
4292 * reg-stack.c: Likewise.
4293 * reload1.c: Likewise.
4294 * reload.c: Likewise.
4297 2002-01-09 Kazu Hirata <kazu@hxi.com>
4299 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4300 to extract items in the expr_list chain.
4302 2002-01-09 Richard Henderson <rth@redhat.com>
4304 * config/vax/vax.c (vax_rtx_cost): Never abort.
4306 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4308 2002-01-09 Jan Hubicka <jh@suse.cz>
4310 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4312 2002-01-09 Richard Henderson <rth@redhat.com>
4314 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4315 Unify code from various alternatives.
4317 2002-01-09 Richard Henderson <rth@redhat.com>
4319 * regrename.c (copy_value): Ignore the copy if the source register
4320 is present in the value chain with a narrower mode.
4322 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4324 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4325 for the c4x target. Also improve layout.
4327 2002-01-09 Richard Henderson <rth@redhat.com>
4329 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4330 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4331 to match insn patterns.
4333 2002-01-09 Richard Henderson <rth@redhat.com>
4335 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4336 (copyprop_hardreg_forward_1): Likewise.
4338 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4340 * pa.md (decrement_and_branch_until_zero): Change predicate for
4341 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4343 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4345 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4346 gets undefined. For Darwin.
4348 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4350 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4352 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4354 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4356 2002-01-08 Richard Henderson <rth@redhat.com>
4358 * regrename.c (copy_value): Ignore overlapping copies.
4360 2002-01-08 Richard Henderson <rth@redhat.com>
4362 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4363 as needed to avoid shared structure.
4365 2002-01-08 Kazu Hirata <kazu@hxi.com>
4367 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4370 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4372 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4373 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4374 documentation of obsolete macros.
4375 * system.h: Poison these macros.
4376 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4377 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4378 config/c4x/c4x.h, config/clipper/clipper.h,
4379 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4380 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4381 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4382 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4383 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4384 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4385 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4386 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4387 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4388 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4389 config/sparc/sparc.h, config/stormy16/stormy16.h,
4390 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4391 definitions and commented out definitions of obsolete macros.
4392 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4393 of MAX_INT_TYPE_SIZE.
4395 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4397 * config/s390/s390.c (s390_preferred_reload_class): Never
4398 return ADDR_REGS if it isn't a subset of the given class.
4399 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4400 FP_REGS, but all superclasses as well.
4402 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4404 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4405 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4406 must not be a const_int.
4408 2002-01-08 Richard Henderson <rth@redhat.com>
4410 * Makefile.in (toplev.o): Depend on options.h.
4411 (gcc.o): Depend on specs.h.
4413 2002-01-08 Jakub Jelinek <jakub@redhat.com>
4415 * expr.c (store_expr): Convert VOIDmode constants back to target's
4418 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4420 * doc/invoke.texi: Markup gcc as @command. Refer to
4421 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4422 of http://gcc.gnu.org/thanks.html.
4424 2002-01-08 Dale Johannesen <dalej@apple.com>
4426 * config/rs6000/rs6000.md: Add missing int register
4427 target case to movdf_low.
4429 2002-01-08 Zack Weinberg <zack@codesourcery.com>
4431 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4432 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
4433 (cppinit.o): Depend on except.h.
4434 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4435 s-specs): New rules.
4437 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4438 Don't create specs.h/options.h/gencheck.h here. Remove
4439 unnecessary variable settings from last argument of AC_OUTPUT.
4440 * config.in, configure: Regenerate.
4441 * intl.c: Hardcode package name as "gcc".
4443 * cppinit.c: Include except.h.
4444 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4446 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4447 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4448 (!)USING_SJLJ_EXCEPTIONS.
4449 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4451 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4453 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
4454 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
4455 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
4456 documentation of obsolete macros.
4457 * system.h: Poison these macros.
4458 * config/d30v/d30v.h, config/ns32k/encore.h,
4459 config/stormy16/stormy16.h: Remove definitions and commented out
4460 definitions of obsolete macros.
4462 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
4464 * objc/objc-act.c (handle_class_ref): Mark the declaration of
4465 %sobjc_class_ref_%s as used - to prevent unwanted compiler
4468 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4470 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
4471 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
4472 to insn adjusting stack/frame pointer.
4473 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
4474 accept operands that cause the insn to be non-splittable.
4476 2002-01-08 Graham Stott <grahams@redhat.com>
4478 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
4479 (C_TYPE_FIELDS_VOLATILE): Likewise.
4480 (C_TYPE_BEING_DEFINED): Likewise.
4481 (C_IS_RESERVED_WORD): Likewise.
4482 (C_TYPE_VARIABLE_SIZE): Likewise.
4483 (C_DECL_VARIABLE_SIZE): Likewise.
4484 (C_MISSING_PROTOTYPE_WARNED): Likewise.
4485 (C_SET_EXP_ORIGINAL_CODE): Likewise.
4486 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
4488 (C_DECL_ANTICIPATED): Likewise.
4489 (c_build_type_variant): Add parenthesis.
4491 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4493 * gcc.c (option_map): Remove --version.
4494 (process_command): Handle -fversion following the GNU Coding
4495 Standards. Partially addresses PR other/704.
4497 2002-01-08 Graham Stott <grahams@redhat.com>
4499 * combine.c (combine_instructions): Fix typo.
4501 2002-01-08 Graham Stott <grahams@redhat.com>
4503 * debug.h: Use "tree" and "rtx" throughout.
4505 * debug.c: Likewise.
4507 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
4509 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
4510 constant pool, use the pool's version of the symbol instead.
4512 2002-01-07 Richard Henderson <rth@redhat.com>
4514 * regrename.c (find_oldest_value_reg): Ignore the value chain if
4515 the original register was copied in a mode with a fewer number of
4516 hard registers than the desired mode.
4517 (copyprop_hardreg_forward_1): Likewise.
4518 (debug_value_data): Fix loop test.
4519 * toplev.c (parse_options_and_default_flags): Reenable
4520 -fcprop-registers at -O1.
4522 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4524 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
4525 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
4527 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
4530 * config/rs6000/rs6000.md: Add altivec predicate patterns.
4532 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4534 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
4535 (pa_output_function_prologue): Output local label at the beginning of
4536 the prologue when profiling.
4537 (hppa_profile_hook): Use the local label rather than the function label.
4538 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
4540 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4542 * config/rs6000/rs6000.c (print_operand): Remove extra space.
4543 (altivec_expand_unop_builtin): Fix thinko.
4544 (altivec_expand_binop_builtin): Same.
4545 (altivec_expand_ternop_builtin): Same.
4546 (altivec_expand_builtin): Same.
4548 2002-01-07 Richard Henderson <rth@redhat.com>
4550 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
4552 2002-01-07 Jason Merrill <jason@redhat.com>
4554 * unwind-dw2.c (execute_cfa_program): Use < again.
4556 2002-01-07 Jakub Jelinek <jakub@redhat.com>
4558 * predict.c (combine_predictions_for_insn): Avoid division by zero.
4560 2002-01-07 Jakub Jelinek <jakub@redhat.com>
4562 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
4563 Don't allow -1 - x -> ~x simplifications in the first pass.
4565 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4567 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
4569 (altivec_expand_binop_builtin): Same.
4570 (altivec_expand_unop_builtin): Same.
4571 (print_operand): Fix typo.
4572 (bdesc_1arg): Add vupk* variants.
4574 * rs6000.h (rs6000_builtins): Add vupk* enums.
4576 * rs6000.md: Add altivec_vupk* variants.
4578 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
4580 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
4581 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
4582 and last update dates.
4584 2002-01-07 Janis Johnson <janis187@us.ibm.com>
4586 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
4588 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
4590 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
4591 * config/avr/avr.h (CPP_SPEC): Likewise.
4592 (LINK_SPEC): Likewise.
4593 (CRT_BINUTILS_SPECS): Likewise.
4594 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4595 * doc/invoke.texi (AVR Options): Document them.
4597 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
4599 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
4602 2002-01-07 Graham Stott <grahams@redhat.com>
4604 * config/i386/i386.h: Update copyright date.
4605 (HALF_PIC_PTR): Add parenthesis.
4606 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
4607 (CONSTANT_ALIGNMENT): Add parenthesis.
4608 (DATA_ALIGNMENT): Likewise.
4609 (LOCAL_ALIGNMENT): Likewise.
4610 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
4611 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
4612 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
4613 (HARD_REGNO_NREGS): Add paranethesis.
4614 (VALID_SSE_REG_MODE): Whitespace.
4615 (VALID_MMX_REG_MODE): Whitespace.
4616 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
4617 (ix86_hard_regno_mode_ok): Add parenthesis.
4618 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
4619 (RETURN_IN_MEMORY): Whitespace.
4620 (N_REG_CLASSES): Add parenthesis.
4621 (INTEGER_CLASS_P): Add parenthesis and wrap.
4622 (FLOAT_CLASS_P): Likewise.
4623 (SSE_CLASS_P): Likewise.
4624 (MMX_CLASS_P): Likewise.
4625 (MAYBE_INTEGER_CLASS_P): Likewise.
4626 (MAYBE_FLOAT_CLASS_P): Likewise.
4627 (MAYBE_SSE_CLASS_P): Likewise.
4628 (MAYBE_MMX_CLASS_P): Likewise.
4629 (Q_CLASS_P): Likewise.
4630 (GENERAL_REGNO_P): Uppercase macro parameter.
4631 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
4632 (FP_REGNO_P): Likewise.
4633 (ANY_FP_REGNO_P): Uppercase macro parameter.
4634 (SSE_REGNO_P): Likewise.
4635 (SSE_REGNO): Likewise.
4636 (SSE_REG_P): Likewise.
4637 (SSE_FLOAT_MODE_P): Likewise.
4638 (MMX_REGNO_P): Likewise.
4639 (MMX_REG_P):Likewise.
4640 (STACK_REG_P): Likewise.
4641 (NON_STACK_REG_P): Likewise.
4642 (STACK_TOP_P): Likewise.
4643 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
4644 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
4645 (SECONDARY_MEMORY_NEEDED): Likewise.
4646 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
4647 (MD_ASM_CLOBBERS): Whitespace and wrap.
4648 (MUST_PASS_IN_STACK): Whitespace and wrap.
4649 (RETURN_POPS_ARGS): Add parenthesis.
4650 (INIT_CUMULATIVE_ARGS): Likewise.
4651 (FUNCTION_ARG): Likewise.
4652 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
4653 (SETUP_INCOMING_VARARGS): Likewise.
4654 (BUILD_VA_LIST_TYPE): Add parenthesis.
4655 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
4657 (EXPAND_BUILTIN_VA_ARG): Likewise.
4658 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
4659 (INITIALIZE_TRAMPOLINE): Add parenthesis.
4660 (INITIAL_ELIMINATION_OFFSET): Likewise.
4661 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
4662 (REGNO_OK_FOR_BASE_P): Likewise.
4663 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
4664 (REGNO_OK_FOR_DIREG_P): Likewise.
4665 (REG_OK_FOR_INDEX_P): Whitespace.
4666 (REG_OK_FOR_BASE_P): Whitespace.
4667 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
4669 (FIND_BASE_TERM): Fix typo.
4670 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
4671 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
4672 (SYMBOLIC_CONST; Whitespace.
4673 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
4674 (ENCODE_SECTION_INFO): Whitespace.
4675 (FINALIZE_PIC): Remove do { ... } while (0).
4676 (PROMOTE_MODE): Wrap in do { ... } while (0).
4677 (CONST_COSTS): Whitespace.
4678 (RTX_COSTS): Add paramethesis, whitespace and wrap.
4679 (REGISTER_MOVE_COST): Add parenthesis.
4680 (MEMORY_MOVE_COST): Likewise.
4681 (EXTRA_CC_MODES): Whitespace.
4682 (SELECT_CC_MODE): Add parenthesis and whitespace.
4683 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
4684 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
4685 (ASM_OUTPUT_LABEL): Add paramethesis.
4686 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
4687 (ASM_OUTPUT_REG_POP): Likewise.
4688 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
4689 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4691 * config/i386/i386.c: Update copyright.
4692 (CHECK_STACK_LIMIT): Add parenthesis.
4693 (AT_BP): Uppercase macro parameter.
4694 (x86_64_int_parameter_registers): Constify.
4695 (x86_64_int_return_registers): Likewise.
4696 (ix86_compare_op0): Use rtx.
4697 (construct_container): Constify INTREG parameter.
4698 (function_arg): Use rtx.
4700 * diagnostic.h: Update copyright date.
4701 (output_buffer_state): Add parenthesis.
4702 (output_buffer_format_args): Likewise.
4704 * combine.c (combine_instructions): Replace XEXP (links, 0)
4707 2002-01-06 H.J. Lu <hjl@gnu.org>
4709 * cfgcleanup.c (thread_jump): Fix 2 typos.
4711 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
4713 * config.gcc: Add support for --enable-altivec.
4715 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
4717 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
4719 2002-01-06 Jakub Jelinek <jakub@redhat.com>
4721 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
4722 __objc_class_name_*.
4724 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
4726 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
4728 2002-01-06 Richard Henderson <rth@redhat.com>
4730 * reorg.c (emit_delay_sequence): Remove death notes, not merely
4731 nop them out. Increment label reference count for REG_LABEL.
4732 (fill_slots_from_thread): Frob label reference count around
4733 delete_related_insns.
4735 2002-01-05 Richard Henderson <rth@redhat.com>
4737 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
4740 2002-01-05 Richard Henderson <rth@redhat.com>
4742 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
4743 * integrate.c (output_inline_function): Likewise.
4744 * toplev.c (rest_of_compilation): Do it here instead. Move call
4745 to remove_unnecessary_notes after emitting abstract instance.
4746 Force an emitted nested function to have its parent emited as well.
4747 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
4749 (rtl_for_decl_location): Do not look at reload data structures
4750 before reload has run.
4752 2002-01-05 Kazu Hirata <kazu@hxi.com>
4754 * cse.c: Fix formatting.
4755 * dwarf2asm.c: Likewise.
4756 * dwarf2out.c: Likewise.
4757 * explow.c: Likewise.
4758 * expmed.c: Likewise.
4759 * function.c: Likewise.
4761 * gencheck.c: Likewise.
4762 * genrecog.c: Likewise.
4763 * ggc-common.c: Likewise.
4764 * ggc-page.c: Likewise.
4765 * global.c: Likewise.
4767 2002-01-05 Kazu Hirata <kazu@hxi.com>
4769 * combine.c: Fix formatting.
4771 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
4774 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
4776 2002-01-05 David Edelsohn <edelsohn@gnu.org>
4778 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
4779 as 1 for __powerpc64__ as well.
4781 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
4783 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
4786 2002-01-05 Daniel Berlin <dan@dberlin.org>
4788 * lcm.c: Revert change, due to performance regression it causes on
4789 SPEC because it's slightly more conservative (sigh, I hate
4792 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
4794 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
4796 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
4798 * doc/cppinternals.texi: Update.
4800 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
4802 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
4803 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
4805 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
4806 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
4807 kludge for pre-october-14th mmix versions to handle new-found bug
4808 with PUSHJ/PUSHGO and the register stack.
4809 * config/mmix/mmix.h (struct machine_function): Rename member
4810 has_call_value_without_parameters to has_call_without_parameters.
4811 All referers changed.
4812 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
4813 TARGET_MASK_BRANCH_PREDICT): New macros.
4814 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
4815 -mno-reg-stack-fill-bug-workaround.
4816 * config/mmix/mmix.md ("call"): Set struct machine member
4817 has_call_without_parameters.
4819 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
4821 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
4823 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
4825 * cfgcleanup.c: Include tm_p.h
4826 (mark_effect): Fix handling of hard register; fix handling of SET
4828 2002-01-04 Kazu Hirata <kazu@hxi.com>
4830 * config/h8300/h8300.md (anonymous patterns): Check that
4831 operands are registers before using REGNO on them.
4833 2002-01-03 Roland McGrath <roland@frob.com>
4835 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
4837 2002-01-04 Jakub Jelinek <jakub@redhat.com>
4839 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
4840 * c-common.h (genrtl_expr_stmt_value): Likewise.
4841 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
4842 (expand_expr_stmt_value): Add maybe_last argument.
4843 Don't warn about statement with no effect if it is the last statement
4844 in expression statement.
4845 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
4846 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
4847 expand_expr_stmt_value.
4848 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
4849 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
4850 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
4851 as maybe_last to expand_expr_stmt_value.
4853 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
4855 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
4856 be passed in, do not build it.
4857 (c_begin_if_stmt): New function.
4858 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4859 * c-common.h (c_expand_start_cond): Update prototype.
4860 (c_begin_if_stmt): Prototype new function.
4861 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4862 * c-parse.in (if_prefix): Use c_begin_if_stmt,
4863 c_begin_while_stmt and c_finish_while_stmt_cond.
4865 2002-01-04 William Cohen <wcohen@redhat.com>
4867 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
4868 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
4869 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
4870 * config/pa/som.h (ASM_FILE_START): Likewise.
4872 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
4874 * lcm.c: Include df.h.
4875 Add available_transfer_function prototype.
4876 (compute_available): Rework to use iterative dataflow framework.
4877 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
4878 with bb_info in df.h
4879 (available_transfer_function): New function.
4881 * Makefile.in (lcm.o): add df.h to dependencies.
4883 2002-01-04 Richard Henderson <rth@redhat.com>
4885 * config/alpha/alpha.c (some_operand): Accept HIGH.
4886 (input_operand): Likewise; accept simple references to globals.
4887 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
4888 (alpha_const_double_ok_for_letter_p): Likewise.
4889 (alpha_extra_constraint): Likewise.
4890 (alpha_preferred_reload_class): Likewise. Do not force
4891 symbolic constants to memory.
4892 (alpha_legitimate_address_p): Accept simple references
4893 to small_symbolic_operand.
4894 (alpha_legitimize_address): New arg scratch. Be prepared to be
4895 called when no_new_pseudos. Emit simple symbolic references.
4896 Split integers into low, high, and rest.
4897 (alpha_expand_mov): Use alpha_legitimize_address.
4898 (some_small_symbolic_mem_operand): New.
4899 (split_small_symbolic_mem_operand): New.
4900 * config/alpha/alpha-protos.h: Update.
4901 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
4902 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
4903 (EXTRA_CONSTRAINT): Likewise.
4904 (PREFERRED_RELOAD_CLASS): Likewise.
4905 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
4906 (PREDICATE_CODES): Update.
4907 * config/alpha/alpha.md: New post-reload splitters to convert
4908 simplfied symbolic operands to the form that references $29.
4909 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
4910 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
4912 2002-01-03 Richard Henderson <rth@redhat.com>
4914 * local-alloc.c (function_invariant_p): Update commentary.
4916 2002-01-04 H.J. Lu <hjl@gnu.org>
4918 * toplev.c (rest_of_compilation): Fix a typo when calling
4921 2002-01-03 Kazu Hirata <kazu@hxi.com>
4923 * c-common.c: Fix formatting.
4924 * diagnostic.c: Likewise.
4925 * doloop.c: Likewise.
4926 * dwarf2out.c: Likewise.
4928 2002-01-03 Kazu Hirata <kazu@hxi.com>
4930 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
4931 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
4933 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
4935 * cpperror.c: Update comments and copyright.
4936 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
4937 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
4939 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4941 * collect2.c (main): Use strcmp when testing for "-shared".
4943 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
4945 * cppmacro.c: Don't include intl.h. Update comments.
4946 (new_number_token): Allocate enough buffer for 64-bit unsigned
4947 integers; update prototype.
4948 * cppmain.c: Update comments.
4950 2002-01-03 William Cohen <wcohen@redhat.com>
4952 * function.h (struct function): Add profile.
4953 (current_function_profile): New.
4954 doc/extend.texi: Update documentation.
4955 * final.c (final_start_function): Use current_function_profile
4956 instead of profile_flag.
4957 (profile_after_prologue): Likewise.
4958 * function.c (expand_function_start): Likewise.
4959 (expand_function_start): Likewise.
4960 * config/alpha/alpha.c (direct_call_operand):
4961 (alpha_does_function_need_gp): Likewise.
4962 (alpha_expand_prologue): Likewise.
4963 * config/arm/arm.c (arm_expand_prologue): Likewise.
4964 thumb_expand_prologue: Likewise.
4965 * config/d30v/d30v.c (d30v_stack_info): Likewise.
4966 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
4967 (fr30_expand_prologue): Likewise.
4968 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
4969 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
4970 * config/i386/i386.h (FINALIZE_PIC): Likewise.
4971 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
4972 * config/i960/i960.c (i960_output_function_prologue): Likewise.
4973 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4974 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
4975 (m32r_expand_prologue): Likewise.
4976 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
4977 (m88k_expand_prologue): Likewise.
4978 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
4979 * config/mips/mips.c (compute_frame_size): Likewise.
4980 (mips_expand_prologue): Likewise.
4981 (mips_can_use_return_insn): Likewise.
4982 * config/pa/elf.h (ASM_FILE_START): Likewise.
4983 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
4984 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
4985 * config/pa/som.h (ASM_FILE_START): Likewise.
4986 * config/romp/romp.c (romp_using_r14): Likewise.
4987 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
4988 (rs6000_stack_info): Likewise.
4989 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4990 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4991 * config/v850/v850.c (compute_register_save_size): Likewise.
4993 2002-01-03 Jakub Jelinek <jakub@redhat.com>
4995 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
4996 gen_lowpart_common fails, use gen_lowpart_SUBREG.
4998 2002-01-03 Turly O'Connor <turly@apple.com>
5000 * darwin.c (machopic_output_possible_stub_label): Don't generate
5001 stub routines for pseudo-stubs which we've just defined.
5003 2002-01-03 Kazu Hirata <kazu@hxi.com>
5005 * builtins.c: Fix formatting.
5006 * c-typeck.c: Likewise.
5007 * combine.c: Likewise.
5011 2002-01-03 Andreas Schwab <schwab@suse.de>
5013 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5014 and return true if _cpp_push_next_buffer pushed a new include
5016 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5017 _cpp_pop_file_buffer did not push a new file.
5018 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5020 2002-01-02 Eric Christopher <echristo@redhat.com>
5022 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5023 FIND_REG_INC_NOTE call. Update copyright.
5024 * loop.c (canonicalize_condition): Ditto.
5025 * reorg.c (delete_scheduled_jump): Ditto.
5027 2002-01-03 Kazu Hirata <kazu@hxi.com>
5029 * gcse.c: Fix formatting.
5031 2002-01-03 Graham Stott <grahams@redhat.com>
5033 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5034 forward defs for struct tags rtx_def, union_tree, rtvec_def
5035 also output corresponding typedefs for rtx, tree, and rtvec.
5037 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5038 rtvec_def along with corresponding typedefs for rtx, tree, and
5039 rtvec to config.h, hconfig.h, tconfig.h.
5041 2002-01-03 Graham Stott <grahams@redhat.com>
5043 * tree.h: Update copyright date.
5044 (IS_EXPR_CODE_CLASS): Add parenthesis.
5045 (TREE_SET_CODE): Add whitespace.
5046 (TREE_CHECK): Add parenthesis.
5047 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5048 (CST_OR_CONSTRUCTOR_CHECK):
5049 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5050 (TREE_SYMBOL_REFERENCED): Whitespace.
5051 (INT_CST_LT): Likewise.
5052 (INT_CST_LT_UNSIGNED): Likewise.
5053 (tree_real_cst): Unwrap comment.
5054 (tree_string): Likewise.
5055 (tree_complex): Likewise.
5056 (IDENTIFIER_POINTER): correct cast.
5057 (SAVE_EXPR_CONTEXT): Whitespace.
5058 (EXPR_WFL_FILENAME_NODE): Likewise.
5059 (EXPR_WFL_FILENAME): Remove parenthesis.
5060 (DECL_ORIGIN): Add parenthesis.
5061 (DECL_FROM_INLINE): Use NULL_TREE.
5062 (build_int_2): Whitespace.
5063 (build_type_variant): Add parenthesis.
5065 * gcc/jcf-parse.c: Update copyright date.
5066 (yyparse): Constify resource_filename.
5068 2002-01-03 Graham Stott <grahams@redhat.com>
5070 * rtl.h: Update copyright date.
5071 (RTL_CHECK1): Wrap long line.
5072 (RTL_CHECK2): Likewise.
5073 (RTL_CHECKC1): Wrap long line and whitespace.
5074 (RTL_CHECKC2): Likewise.
5075 (XWINT): Whitespace.
5081 (XBITMAP): Likewise.
5092 (X0BITMAP): Likewise.
5094 (X0BBDEF): Likewise.
5095 (X0ADVFLAGS): Likewise.
5096 (X0CSELIB): Likewise.
5097 (X0MEMATTR): Likewise.
5105 (XCBITMAP): Likewise.
5107 (XCBBDEF): Likewise.
5108 (XCADVFLAGS): Likewise.
5109 (XCCSELIB): Likewise.
5111 (INSN_UID): Likewise.
5112 (PREV_INSN): Likewise.
5113 (PATTERN): Likewise.
5114 (INSN_CODE): Likewise.
5115 (PUT_REG_NOTE_KIND): Likewise.
5116 (CODE_LABEL_NUMBER): Likewise.
5117 (NOTE_SOURCE_FILE): Likewise.
5118 (NOTE_BLOCK): Likewise.
5119 (NOTE_EH_HANDLER): Likewise.
5120 (NOTE_RANGE_INFO): Likewise.
5121 (NOTE_LIVE_INFO): Likewise.
5122 (NOTE_BASIC_BLOCK): Likewise.
5123 (NOTE_EXPECTED_VALUE): Likewise.
5124 (NOTE_LINE_NUMBER): Likewise.
5125 (LABEL_NAME): Likewise.
5126 (LABEL_NUSES): Likewise.
5127 (LABEL_ALTERNATE_NAME): Likewise.
5128 (ADDRESSOF_DECL): Likewise.
5129 (JUMP_LABEL): Likewise.
5130 (LABEL_NEXTREF): Likewise.
5132 (ORIGINAL_REGNO: Likewise.
5133 (HARD_REGISTER_NUM_P): Add parenthesis.
5134 (SUBREG_REG): Whitespace.
5135 (SUBREG_BYTE): Likewise.
5136 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5137 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5138 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5139 (ASM_OPERANDS_INPUT_VEC): Likewise.
5140 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5141 (ASM_OPERANDS_INPUT): Likewise.
5142 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5143 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5144 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5145 (ASM_OPERANDS_INPUT_MODE): Likewise.
5146 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5147 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5148 (MEM_SET_IN_STRUCT_P): Minor reformat.
5149 (TRAP_CONDITION): Whitespace.
5150 (TRAP_CODE): Likewise.
5151 (COND_EXEC_TEST): Likewise.
5152 (COND_EXEC_CODE): Likewise.
5153 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5154 (PHI_NODE_P): Add parenthesis.
5155 (plus_constant): Whitespace and add parenthesis.
5157 2002-01-03 Kazu Hirata <kazu@hxi.com>
5159 * config/avr/avr.c: Fix comment typos.
5160 * config/c4x/c4x.md: Likewise.
5161 * config/dsp16xx/dsp16xx.h: Likewise.
5162 * config/dsp16xx/dsp16xx.md: Likewise.
5163 * config/i386/i386.md: Likewise.
5164 * config/ia64/ia64.c: Likewise.
5165 * config/m32r/m32r.h: Likewise.
5166 * config/m68hc11/m68hc11.md: Likewise.
5167 * config/mmix/mmix.c: Likewise.
5168 * config/mn10200/mn10200.c: Likewise.
5169 * config/romp/romp.c: Likewise.
5170 * config/sh/sh.c: Likewise.
5171 * config/stormy16/stormy16.c: Likewise.
5172 * config/stormy16/stormy16.h: Likewise.
5173 * config/stormy16/stormy16.md: Likewise.
5175 2002-01-03 Graham Stott <grahams@redhat.com>
5177 * loop.h: Update copyright date.
5178 (LOOP_MOVABLES): Fix typo.
5179 (LOOP_REGS): Likewise.
5180 (LOOP_IVS): Likewise.
5182 2002-01-03 Graham Stott <grahams@redhat.com>
5184 * cppinit.c: Update copyright date.
5185 Don't include output.h
5186 * Makefile.in: Update copyright date.
5189 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5192 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5193 (-pthread) Add to RS/6000 options.
5195 2002-01-02 Kazu Hirata <kazu@hxi.com>
5197 * except.c: Fix comment typos.
5199 * varasm.c: Likewise.
5200 * doc/tm.texi: Fix a typo.
5202 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5204 * c-typeck.c (output_init_element): Allow initializing static storage
5205 duration objects with compound literals.
5207 2002-01-02 Richard Henderson <rth@redhat.com>
5209 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5212 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5214 * gcc.c (default_compilers): Const-ify.
5215 * mips-tdump.c (stab_names): Likewise.
5216 * mips-tfile.c (map_coff_types, map_coff_storage,
5217 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5218 pseudo_ops_t, pseudo_ops): Likewise.
5219 * protoize.c (default_include): Likewise
5221 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5222 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5223 Add array size in declaration.
5224 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5225 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5226 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5227 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5228 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5229 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5230 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5231 emtens, make_nan): Const-ify.
5232 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5233 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5235 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5237 * config.gcc (ia64-*-*): Set extra_headers.
5238 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5239 * config/alpha/t-osf: Remove.
5240 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5242 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5244 * config/rs6000/t-aix43: Revert previous change.
5246 2002-01-02 Jason Merrill <jason@redhat.com>
5248 * c-decl.c (c_expand_body): Call outlining_inline_function when
5249 emitting an inline function out of line.
5251 2002-01-02 Richard Henderson <rth@redhat.com>
5253 * dwarf2out.c (limbo_die_node): Add created_for member.
5254 (new_die): New argument created_for. Update all callers.
5255 (mark_limbo_die_list): New.
5256 (dwarf2out_init): Register limbo_die_list as a root.
5257 (dwarf2out_finish): Force insert limbo dies into their function
5260 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5263 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5265 2002-01-02 Kazu Hirata <kazu@hxi.com>
5267 * config/h8300/fixunssfsi.c: Update copyright.
5270 * config/h8300/h8300.c: Update copyright.
5273 2002-01-02 Kazu Hirata <kazu@hxi.com>
5275 * config/romp/romp.c: Fix comment formatting.
5276 * config/romp/romp.h: Likewise.
5277 * config/romp/romp.md: Likewise.
5278 * config/s390/s390.c: Likewise.
5279 * config/stormy16/stormy16.c: Likewise.
5280 * config/stormy16/stormy16.h: Likewise.
5282 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5284 * c-common.h (genrtl_expr_stmt_value): Declare.
5285 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5286 (genrtl_goto_stmt_value): ... this new function. Pass new
5287 argument down to expand_expr_stmt_value, taking
5288 TREE_ADDRESSABLE into account.
5289 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5290 STMT_EXPR as addressable, i.e., one whose result we want.
5291 * expr.c (expand_expr): Don't save expression statement value
5292 of labeled_blocks or loop_exprs.
5293 * stmt.c (expand_expr_stmt): Redirect to...
5294 (expand_expr_stmt_value): ... this new function. Use new
5295 argument to tell whether to save expression value.
5296 (expand_end_stmt_expr): Reset last_expr_type and
5297 last_expr_value if we don't have either.
5298 * tree-inline.c (declare_return_variable): Mark its use
5299 statement as addressable.
5300 * tree.h: Document new use of TREE_ADDRESSABLE.
5301 (expand_expr_stmt_value): Declare.
5303 2002-01-01 Tom Rix <trix@redhat.com>
5305 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5306 rs6000_emit_allocate_stack.
5308 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5310 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5311 ${srcdir}/ginclude/ to every entry in extra_headers.
5312 * configure: Regenerate.
5313 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5314 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5315 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5316 * ginclude/proto.h: Rename to config/convex/proto.h.
5318 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5320 * attribs.c (handle_vector_size_attribute): Use host_integerp
5321 and tree_int_cst; remove warnings.
5322 * caller-save.c (insert_restore): Add cast to get rid of warning.
5323 (insert_save): Likewise.
5324 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5325 * regmove.c (find_matches): Add temporary var to kill a warning.
5327 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5329 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5330 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5331 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5332 (vms-dwarf2eh.o): Add Makefile rule.
5333 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5334 * config/alpha/vms-dwarf2eh.asm: New file.
5336 * gcc.c (delete_if_ordinary): Delete all versions.
5338 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5340 * config/mmix/mmix.md: Update FIXME to not mention
5342 (MMIX_rJ_REGNUM): New define_constants constant.
5343 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5344 "*movdicc_real"): Adjust contraints formatting.
5345 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5346 for branch prediction.
5347 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5349 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5350 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5351 number. Delete related FIXMEs.
5352 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5353 from number to MMIX_rJ_REGNUM.
5354 (TARGET_MASK_BRANCH_PREDICT): New.
5355 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5356 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5357 value. Add -mbranch-predict and -mno-branch-predict.
5358 (TARGET_VERSION): Drop date.
5359 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5360 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5361 for finding out global symbols.
5362 (mmix_asm_output_labelref): Revert condition for global symbol.
5363 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5364 (mmix_print_operand_punct_valid_p): A '+' is valid.
5366 See ChangeLog.6 for earlier changes.