1 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
3 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4 for (const_int 0) in X not just INTVAL.
6 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8 * doc/extend.texi: Avoid or reduce overfull hboxes.
10 2002-02-20 Diego Novillo <dnovillo@redhat.com>
12 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13 operations if the field does not start at a mode boundary.
15 2001-02-20 Joel Sherrill <joel@OARcorp.com>
17 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
18 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
19 Also done for -Acpu and -Amachine.
21 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
23 * cppinit.c (init_dependency_output): Take deps output file
24 from -o if none given with -MF. Suppress normal output.
25 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
26 * doc/cpp.texi, doc/invoke.texi: Update.
28 2002-02-19 Zack Weinberg <zack@codesourcery.com>
30 * toplev.c (output_quoted_string): Write unprintable
31 characters with octal escapes.
33 2002-02-19 David Edelsohn <edelsohn@gnu.org>
35 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
36 really_call_used[VRSAVE_REGNO] if not Altivec.
38 2002-02-19 Alan Modra <amodra@bigpond.net.au>
40 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
42 (constant_pool_expr_1): Fix formatting.
43 (rs6000_legitimize_reload_address): Likewise.
45 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
47 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
50 2002-02-19 Zack Weinberg <zack@codesourcery.com>
52 * tree.h (struct tree_common): Remove aux. Add unused_0 at
53 end of first block of bitfields (which was only seven bits);
54 rename dummy to unused_1; remove comment which is no longer true.
56 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
58 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
60 2002-02-19 Philip Blundell <pb@nexus.co.uk>
63 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
67 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
68 arm_is_longcall_p rather than inspecting call-type cookie
70 (call_value_insn) [TARGET_THUMB]: Likewise.
72 2002-02-19 Graham Stott <grahams@redhat.com>
74 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
76 2002-02-19 David Edelsohn <edelsohn@gnu.org>
78 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
79 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
80 (FP_SAVE_INLINE): Delete.
82 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
83 * config/rs6000/eabi.asm: Remove ABI save restore routines.
84 * config/rs6000/t-ppccomm: Build crtsavres.o.
85 * config/rs6000/crtsavres.asm: New file.
87 2002-02-19 Philip Blundell <philb@gnu.org>
89 * config/arm/arm.c (use_return_insn): Don't reject interrupt
91 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
92 (output_return_instruction): Allow interrupt functions to return with
93 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
94 (arm_expand_prologue): Subtract 4 before stacking LR in an
97 2002-02-19 Philip Blundell <pb@nexus.co.uk>
99 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
100 decl, not just FUNCTION_DECL.
101 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
102 (arm_assemble_integer): Likewise.
103 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
106 2002-02-19 matthew green <mrg@eterna.com.au>
108 * config.gcc (sparc-*-netbsdelf*): Enable target.
109 (sparc64-*-netbsd*): New target.
110 * config/sparc/netbsd-elf.h: New file.
111 * config/sparc/t-netbsd64: New file.
113 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
115 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
117 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
119 * doc/invoke.texi: explicitly list the style guidelines that
122 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
124 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
126 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
129 * gcc.c (cpp_unique_options): Treat -o as indicating object file
130 only if not -E. If -E, pass -o through to the preprocessor.
132 2002-02-19 Kazu Hirata <kazu@hxi.com>
134 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
135 register number with an appropriate macro.
137 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
139 * doc/rtl.texi (Constants): Close @code tag.
141 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
143 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
144 ("mmx_uavgv4hi3"): Same.
145 ("pmulhrwv4hi3"): Same.
147 * tree-inline.c (walk_tree): Handle vectors.
149 * c-common.c (constant_expression_warning): Handle vectors.
150 (overflow_warning): Same.
152 * sched-deps.c (sched_analyze_2): Handle vectors.
154 * rtlanal.c (rtx_unstable_p): Handle vectors.
155 (rtx_varies_p): Same.
156 (count_occurrences): Same.
157 (regs_set_between_p): Same.
158 (modified_between_p): Same.
159 (modified_in_p): Same.
160 (volatile_insn_p): Same.
161 (volatile_refs_p): Same.
162 (side_effects_p): Same.
164 (inequality_comparisons_p): Same.
165 (replace_regs): Same.
166 (computed_jump_p_1): Same.
168 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
170 (inner_mode_array): New.
171 (copy_rtx): Handle vectors.
172 (copy_most_rtx): Same.
174 (get_mode_alignment): Adjust for vectors.
176 * resource.c (mark_referenced_resources): Handle vectors.
177 (mark_set_resources): Same.
179 * reload1.c (eliminate_regs): Handle vectors.
180 (elimination_effects): Same.
181 (scan_paradoxical_subregs): Same.
183 * reload.c (subst_reg_equivs): Handle vectors.
185 * regrename.c (scan_rtx): Handle vectors.
187 * regclass.c (reg_scan_mark_refs): Handle vectors.
189 * recog.c (find_single_use_1): Handle vectors.
191 * local-alloc.c (equiv_init_varies_p): Handle vectors.
192 (contains_replace_regs): Same.
193 (memref_referenced_p): Same.
195 * integrate.c (copy_rtx_and_substitute): Handle vectors.
196 (subst_constants): Same.
198 * genattrtab.c (attr_copy_rtx): Handle vectors.
199 (encode_units_mask): Same.
200 (clear_struct_flag): Same.
201 (count_sub_rtxs): Same.
203 * gcse.c (want_to_gcse_p): Handle vectors.
204 (oprs_unchanged_p): Same.
206 (oprs_not_set_p): Same.
207 (expr_killed_p): Same.
208 (compute_transp): Same.
209 (store_ops_ok): Same.
211 * function.c (purge_addressof_1): Do not allow paradoxical subregs
213 (fixup_var_refs_1): Same.
214 (instantiate_virtual_regs_1): Same.
216 * fold-const.c (operand_equal_p): Handle vectors.
218 (rtl_expr_nonnegative_p): Same.
220 * flow.c (mark_used_regs): Handle vectors.
222 * df.c (df_uses_record): Handle vectors.
224 * cselib.c (cselib_subst_to_values): Handle vectors.
225 (cselib_mem_conflict_p): Same.
228 * cse.c (canon_reg): Handle vectors.
230 (cse_process_notes): Same.
231 (count_reg_usage): Same.
234 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
236 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
238 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
239 (gen_rtx): Handle CONST_VECTOR.
240 (gen_const_vector_0): New.
241 (copy_rtx_if_shared): CONST_VECTORs can be shared.
242 (reset_used_flags): Same.
244 (initializer_constant_valid_p): Handle VECTOR_CST.
246 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
248 * doc/rtl.texi (Constants): Document const_vector.
249 (CONST0_RTX): Update for vectors.
252 * print-tree.c (print_node): Add case for VECTOR_CST.
254 * tree.h (TREE_VECTOR_CST_ELTS): New.
255 (struct tree_vector): New.
256 (union tree_node): Add vector node.
257 (build_vector): Add prototype.
259 * tree.def (VECTOR_CST): New.
261 * tree.c (build_vector): New.
263 * expmed.c (make_tree): Handle CONST_VECTOR.
265 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
266 (CONST_VECTOR_ELT): New.
267 (CONST_VECTOR_NUNITS): New.
269 * machmode.h (GET_MODE_INNER): New.
270 (DEF_MACHMODE): Accept 8th arg.
272 * machmode.def: Add 8th argument for vector inner mode.
273 Add inner vector modes for vectors.
275 * rtl.def (VEC_CONST): Remove.
278 * expr.c (clear_storage): Allow vectors.
279 (is_zeros_p): Handle VECTOR_CST.
281 * varasm.c (output_constant_pool): Handle vectors.
282 (rtx_const): Add veclo and vechi fields.
283 (kind): Add RTX_VECTOR.
284 (decode_rtx_const): Add case for vector.
286 * config/rs6000/rs6000-protos.h: Add zero_constant.
288 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
289 constants. Force easy vector constants into memory.
290 (easy_vector_constant): New.
291 (emit_easy_vector_constant): New.
292 (rs6000_legitimize_reload_address): Do not generate bad reloads on
295 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
297 ("altivec_lvxl"): Same.
298 (altivec_lvebx): Same.
299 (altivec_lvehx): Same.
300 (altivec_lvewx): Same.
301 ("*movv4si_const0"): New.
302 ("*movv4sf_const0"): New.
303 ("*movv8hi_const0"): New.
304 ("*movv16qi_const0"): New.
306 2002-02-18 Kazu Hirata <kazu@hxi.com>
308 * config/h8300/h8300.c (notice_update_cc): Use
311 2002-02-18 Kazu Hirata <kazu@hxi.com>
313 * config/h8300/h8300.md (divmod patterns): Change the
314 constraints for operands[1] to register_operand.
316 2002-02-18 Kazu Hirata <kazu@hxi.com>
318 * config/h8300/h8300-protos.h: Remove the prototype for
320 * config/h8300/h8300.c (p_operand): Remove.
321 * config/h8300/h8300.md: Replace p_operand with
324 2002-02-18 Philip Blundell <pb@nexus.co.uk>
326 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
328 (output_return_instruction): Allow use of LDR to unstack
329 return addresss even for interrupt handlers or when
330 interworking. If compiling for ARMv5, use interworking-safe
331 return instructions by default. Remove duplicated code and
332 lengthy "strcat" sequences.
334 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
336 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
337 (LINK_EH_SPEC): Define.
338 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
340 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
342 * config/s390/s390.c (s390_emit_prologue): Do not set the
343 frame_related flag for call-clobbered registers.
345 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
347 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
348 (construct_container): Fix handling of SSE operands.
349 (ix86_expand_builtin): Fix handling of 64bit pointers.
350 (mmx_maskmovq_rex): New pattern.
352 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
354 * regrename.c (kill_set_value): Handle subregs properly.
356 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
358 * objc/objc-act.c (handle_impent): Remove leading '*'
359 from objc_class_name.
361 2002-02-17 Richard Henderson <rth@redhat.com>
363 * config/alpha/alpha.c (some_small_symbolic_operand,
364 some_small_symbolic_operand_1, split_small_symbolic_operand,
365 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
366 Handle small SYMBOL_REFs anywhere, not just inside memories.
367 * config/alpha/alpha-protos.h: Update.
368 * config/alpha/alpha.h (PREDICATE_CODES): Update.
369 * config/alpha/alpha.md (small symbolic operand splitter): Update.
371 2002-02-17 Roland McGrath <roland@frob.com>
373 * config.gcc (powerpc-*-gnu-gnualtivec*,
374 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
375 * config/rs6000/gnu.h: New file.
376 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
377 Grok "gnu" in rs6000_abi_name.
378 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
379 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
380 Grok -mcall-gnu analogous to -mcall-linux et al.
381 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
382 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
383 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
385 2002-02-17 Jakub Jelinek <jakub@redhat.com>
388 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
391 2002-02-17 Philipp Thomas <pthomas@suse.de>
393 * config/cris/cris.h: Undefine STARTFILE_SPEC and
394 ENDFILE_SPEC before (re)defining them.
396 2002-02-17 Kazu Hirata <kazu@hxi.com>
398 * config/h8300/h8300.c: Fix formatting.
399 * config/h8300/h8300.h: Likewise.
401 2002-02-17 Philipp Thomas <pthomas@suse.de>
403 * doc/tm.texi: Explain why empty strings should not be
404 marked for translation.
406 2002-02-17 Philipp Thomas <pthomas@suse.de>
408 * final.c (output_operand_lossage): Changed to accept
409 printf style arguments. Change calls where necessary.
410 * output.h (output_operand_lossage): Change declaration
411 accordingly. Update copyright.
412 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
413 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
414 Update copyright date where necessary.
416 * config/i386/i386.c (print_operand): Likewise. Remove use of
419 * config/cris/cris.c (cris_operand_lossage): Likewise.
420 Rename parameter so that exgettext recognizes it as
421 translatable message.
422 (LOSE_AND_RETURN): Rename parameter to msgid.
424 2002-02-17 Kazu Hirata <kazu@hxi.com>
426 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
427 hard coded register number with an appropriate macro.
428 (HARD_REGNO_MODE_OK): Likewise.
429 (ARG_POINTER_REGNUM): Likewise.
430 (STATIC_CHAIN_REGNUM): Likewise.
431 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
432 * config/h8300/h8300.md (define_constants): Define more
435 2002-02-17 Philipp Thomas <pthomas@suse.de>
437 * config/i386/i386.h: Don't mark empty strings for translation.
439 2002-02-16 H.J. Lu <hjl@gnu.org>
441 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
443 2002-02-16 Zack Weinberg <zack@codesourcery.com>
445 * cppinit.c (merge_include_chains): Check for brack being
446 NULL before attempting to merge it with qtail.
448 2002-02-16 Andrew Cagney <ac131313@redhat.com>
450 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
453 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
455 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
457 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
459 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
460 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
461 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
463 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
465 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
466 now only if !TARGET_FIX.
467 (*movsi_nt_vms_fix): New pattern.
469 2002-02-16 Douglas B Rupp <rupp@gnat.com>
471 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
472 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
473 (alpha_sa_mask, alpha_sa_size): Reflect above change.
474 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
475 (alpha_start_function, alpha_expand_epilogue): Likewise.
476 (unicosmk_gen_dsib): Likewise.
478 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
480 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
482 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
484 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
485 check_and_change_labels, s390_final_chunkify): Delete.
486 (s390_split_branches, s390_chunkify_pool): New functions.
487 (s390_function_prologue): Call them.
489 * config/s390/s390.h (S390_REL_MAX): Delete.
490 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
492 * config/s390/s390.md (cjump, icjump, jump): Fix length
493 attribute calculation.
496 2002-02-15 David Edelsohn <edelsohn@gnu.org>
498 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
499 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
501 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
503 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
504 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
505 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
507 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
509 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
511 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
513 * reload.c (find_dummy_reload): Check that an output register
514 is valid for its mode.
516 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
518 * combine.c (known_cond): After replacing the REG of a SUBREG, try
521 * function.c (assign_parms): Demote promoted argument passed by
522 transparent reference.
524 2001-02-14 Joel Sherrill <joel@OARcorp.com>
526 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
527 -Acpu() and -Amachine() to eliminate warnings.
529 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
531 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
533 2002-02-14 Kazu Hirata <kazu@hxi.com>
535 * config/h8300/h8300-protos.h: Update the prototype for
537 * config/h8300/h8300.c (const_costs): Treat SET as a little
538 more expensive operation.
539 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
540 reference to const_costs.
542 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
544 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
546 2002-02-14 Jakub Jelinek <jakub@redhat.com>
549 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
550 use arguments from newtype.
552 2002-02-13 Eric Christopher <echristo@redhat.com>
554 * config/mips/mips.c (override_options): Add check for march/mipsX
555 on the same command line. Fix error message in cpu processing.
556 Remove architecture and ISA checks.
558 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
560 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
562 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
564 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
566 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
568 ("*movv8hi_internal1"): Same.
569 ("*movv16qi_internal1"): Same.
570 ("*movv4sf_internal1"): Same.
572 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
573 not push_reload for altivec modes.
575 2002-02-13 Joel Sherrill <joel@OARcorp.com>
577 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
578 all RTEMS targets including removal of #includes from config/*/rtems*.h
579 file and adding them to tm_file setting. Added xm_defines=POSIX to
581 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
582 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
583 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
584 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
585 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
586 config/m68k/rtemself.h: Ditto.
587 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
588 config/mips/rtems64.h: Ditto.
589 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
590 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
592 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
593 config/sparc/rtemself.h: Ditto.
594 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
595 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
596 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
598 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
599 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
600 target made more similar to i386-elf.
601 * config/i386/t-rtems-i386: Added soft float support and multilibs.
602 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
603 be similar to config/m68k/t-m68kelf.
604 * gthr-rtems.h: Encapsulate with extern "C" for C++.
606 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
608 * regmove.c (kill_value): Handle subregs.
610 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
612 * i386.md (mul patterns): Allow memory operand to be first;
613 add expanders where needed; fix constraints.
614 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
615 Allow memory operand to be the first.
617 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
620 2002-02-13 Jakub Jelinek <jakub@redhat.com>
623 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
626 2002-02-13 Jakub Jelinek <jakub@redhat.com>
628 PR optimization/5547:
629 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
630 all valid IA-32 address modes involving non-scaled %ebx and
631 GOT/GOTOFF as displacement.
633 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
635 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
636 after emitting ltorg insns.
638 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
639 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
640 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
641 *abssf2): Fix "op_type" attribute.
643 2002-02-13 Douglas B Rupp <rupp@gnat.com>
645 * mkconfig.sh: Avoid using a subshell redirect.
646 ($output.T): Change to $(output)T.
647 (ENABLE_NLS): Remove unneeded undef.
649 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
650 * config/alpha/x-vms (libsubdir): Define.
652 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
653 register frame procedures. Optimize retrieving context.
655 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
656 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
657 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
659 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
661 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
662 Make same change as for find_base_value.
664 2002-02-13 Kazu Hirata <kazu@hxi.com>
666 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
667 of QImode and SImode.
669 2002-02-13 Kazu Hirata <kazu@hxi.com>
671 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
672 length computation of movsi.
673 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
675 2002-02-13 Kazu Hirata <kazu@hxi.com>
677 * config/h8300/h8300.md (subqi3): Tighten the predicate for
678 operands[2] to register_operand.
680 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
682 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
684 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
686 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
687 for altivec_lvx* and altivec_stvx*.
688 ("*movv4si_internal"): Add constraint for loading from GPRs.
689 ("*movv8hi_internal1"): Same.
690 ("*movv16qi_internal1"): Same.
691 ("*movv4sf_internal1"): Same.
693 * config/rs6000/rs6000.c (altivec_register_operand): New.
695 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
696 altivec_register_operand.
698 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
700 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
703 2002-02-13 Stan Shebs <shebs@apple.com>
705 * c-typeck.c (digest_init): Handle vectors.
706 (really_start_incremental_init): Same.
707 (pop_init_level): Same.
708 (process_init_element): Same.
710 * varasm.c (output_constant): Same.
712 * expr.c (clear_storage): Same.
713 (store_constructor): Same.
715 2002-02-12 Eric Christopher <echristo@redhat.com>
717 * explow.c (hard_function_value): Add comment explaining
718 signed/unsigned comparison.
720 2002-02-12 Jakub Jelinek <jakub@redhat.com>
722 * jump.c (never_reached_warning): Add finish argument.
723 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
725 * rtl.h (never_reached_warning): Adjust prototype.
726 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
727 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
728 never_reached_warning.
730 2002-02-12 Graham Stott <grahams@redhat.com>
732 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
734 2002-02-12 Kazu Hirata <kazu@hxi.com>
736 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
737 logical shifts on H8/300.
738 (shift_alg_si): Improve several shifts on H8/300.
739 (get_shift_alg): Likewise.
741 2002-02-12 Graham Stott <grahams@redhat.com>
743 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
745 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
747 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
748 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
750 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
752 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
753 non-CONST_INT through default_assemble_integer.
754 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
755 <case 8>: Abort for CONST_DOUBLE.
757 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
759 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
761 * config/pa/pa-linux.h (LIB_SPEC): Delete.
762 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
764 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
766 * config/stormy16/stormy16.md (zero_extendqihi2): New.
768 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
770 * regrename.c (regrename_optimize): Don't accept a
771 part-clobbered register if the replaced register is not part
774 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
775 take padding into account when computing the argument value.
777 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
779 * combine.c (try_combine): Apply substitutions in
780 CALL_INSN_FUNCTION_USAGE too.
782 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
784 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
785 __builtin_altivec_abs*.
788 * config/rs6000/rs6000.h (rs6000_builtins): Add
789 ALTIVEC_BUILTIN_ABS*.
791 * config/rs6000/altivec.h: Use const char for builtins expecting
793 (vec_abs): New versions for C and C++.
796 2002-02-10 Kazu Hirata <kazu@hxi.com>
798 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
801 2002-02-10 Kazu Hirata <kazu@hxi.com>
803 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
804 constant definition from h8300.md.
805 (FRAME_POINTER_REGNUM): Likewise.
806 * config/h8300/h8300.md (define_constants): Add FP_REG.
808 2002-02-10 Kazu Hirata <kazu@hxi.com>
810 * config/h8300/h8300.c (print_operand): Remove redundant code.
812 2002-02-10 Kazu Hirata <kazu@hxi.com>
814 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
815 * config/h8300/h8300.c (byte_reg): Make it static.
817 2002-02-10 Richard Henderson <rth@redhat.com>
820 * c-typeck.c (incomplete_type_error): Handle flexible array members.
822 2002-02-10 Richard Henderson <rth@redhat.com>
825 * tree.c (append_random_chars): Don't abort if main_input_filename
828 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
830 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
832 2002-02-10 Kazu Hirata <kazu@hxi.com>
834 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
837 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
839 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
840 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
842 2002-02-09 David O'Brien <obrien@FreeBSD.org>
844 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
846 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
848 2002-02-09 Kazu Hirata <kazu@hxi.com>
850 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
851 a half of an SImode register on H8/300.
853 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
855 * i386.md (movdi_2): Add missing '!'.
857 2002-02-09 Kazu Hirata <kazu@hxi.com>
859 * config/h8300/h8300.h: Fix formatting. Remove commented-out
862 2002-02-09 Kazu Hirata <kazu@hxi.com>
864 * config/h8300/h8300.md (length): Correct the distance valid
865 for the short branch.
867 2002-02-09 Kazu Hirata <kazu@hxi.com>
869 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
871 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
873 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
875 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
878 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
882 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
883 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
884 (sh_cannot_modify_jumps_p): New function.
885 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
886 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
887 (sh_ms_bitfield_layout_p): New function.
888 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
889 Zack Weinberg <zack@codesourcery.com>
890 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
891 expand_simple_binop instead of expand_binop.
892 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
893 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
894 use of .quad and .uaquad.
895 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
896 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
897 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
898 * config/sh/sh.md (movdi_const, movdi_const_32bit,
899 movdi_const_16bit): Make sure all CONSTs have modes.
900 (sym2PIC): Ditto, but by adjusting all callers.
901 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
902 if the prologue calls the SHmedia argument decoder or register
904 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
905 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
906 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
907 (sh_expand_epilogue): Don't emit USE of return target register.
908 (prepare_move_operands): Legitimize DImode PIC addresses.
909 (sh_media_register_for_return): Skip tr0, used to initialize the
911 (sh_expand_prologue): Remove explicit USE of return register.
912 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
913 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
914 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
915 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
916 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
918 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
919 (MOVI_SHORI_BASE_OPERAND_P): New.
920 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
921 (EXTRA_CONSTRAINT_T): Define in terms of them.
922 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
923 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
924 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
925 alternatives supporting TARGET_REGS.
926 (UNSPEC_GOTPLT): New constant.
927 (movdi split): Move incrementing of LABEL_NUSES...
928 (movdi_const, movdi_const_32bit): Here. Use
929 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
930 (movdi_const_16bit): New.
931 (call, call_value) [flag_pic]: Use GOTPLT.
932 (call_pop, call_value_pop): New expands.
933 (call_pop_compact, call_pop_rettramp): New insns.
934 (call_value_pop_compact, call_value_pop_rettramp): New insns.
935 (sibcall) [flag_pic]: Use GOT.
936 (builtint_setjmp_receiver): Remove bogus, unused expand.
937 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
938 (*pt, *ptb, ptrel): New insns.
939 (sym2GOT): Handle DImode GOT.
940 (sym2GOTPLT, symGOTPLT2reg): New expands.
941 (sym2PIC): New expand.
942 (shcompact_return_tramp): Use GOTPLT to return trampoline.
943 (shcompact_return_tramp_i): Use return register explicitly.
944 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
945 disable flag_reorder_blocks.
946 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
947 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
948 clobbers, for clarity.
949 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
950 restoring of r0 in macl as MAYBE_DEAD.
951 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
952 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
953 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
954 alter_subreg all over.
955 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
956 reload, instead of emitting instructions that would require
958 (casesi_load_media): Add missing modes.
959 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
960 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
961 as used if the argument decoder is called.
962 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
963 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
964 Pmode, then extend it to DImode if necessary.
965 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
966 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
967 constants in FPU-enabled SHmedia, let them be loaded from memory.
968 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
969 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
970 Adjust whitespace in assembly output templates.
971 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
972 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
973 mode of if_then_else.
974 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
975 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
977 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
978 Joern Rennecke <amylaar@redhat.com>
979 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
980 (SUBTARGET_CPP_PTR_SPEC): New.
981 (SUBTARGET_CPP_SPEC): Remove.
982 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
983 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
984 Fix typo in previous checkin.
985 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
986 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
987 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
988 Alexandre Oliva <aoliva@redhat.com>
989 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
990 what single FP register can hold for SHmedia target.
991 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
992 Alexandre Oliva <aoliva@redhat.com>
993 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
994 Do not split into SUBREG.
995 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
996 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
997 and added new functions as specified in SH5 ABI r9.
998 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
999 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1001 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1002 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1003 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1004 and consttable_window_ends.
1005 2001-06-03 Graham Stott <grahams@redhat,com>
1006 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1007 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1008 * config/sh/sh.c (print_operand): Handle floating-point pair,
1009 vector and matrix registers.
1010 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1011 vector modes into account.
1012 * config/sh/sh.md (movv2sf): Split move between registers into
1014 (movv4sf, movv16sf): Introduce insns that get split only after
1016 * config/sh/shmedia.h: Fix Copyright dates.
1017 * config/sh/ushmedia.h: Likewise. Move loop counter
1018 declarations into conditionals that uses them.
1019 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1021 * config/sh/sshmedia.h: Fix Copyright dates.
1022 (sh_media_PUTCFG): Fix constraints.
1023 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1024 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1025 ptrmemfunc_vbit_in_delta for SH5.
1026 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1027 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1028 * invoke.texi: Likewise.
1029 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1030 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1031 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1032 GCC_pop_shmedia_regs_nofpu): New global symbols.
1033 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1034 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1035 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1036 compact function with nonlocal labels.
1037 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1038 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1039 (initial_elimination_offset): Account for their stack space.
1040 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1041 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1042 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1043 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1044 least one of the operands to be a register.
1045 (movv2sf): Likewise. Renamed to movv2sf_i.
1046 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1047 prepare_move_operands() before emitting SHmedia insns.
1048 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1049 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1050 Don't save nor initialize r12. Don't mis-align the stack.
1051 Pad the code with a nop.
1052 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1054 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1055 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1056 [__SHMEDIA__]: Implement.
1057 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1058 * config/sh/sh.md: Set latency of `pt' closer to reality.
1059 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1060 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1061 Set move, load and store type attributes.
1062 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1063 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1065 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1066 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1067 * config/sh/sh.c (sh_media_register_for_return): New function.
1068 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1069 branch-target register.
1070 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1071 * config/sh/sh.md (return_media_i): Use any call-clobbered
1072 branch-target register.
1073 (return_media): If r18 wasn't copied in the prologue, copy it
1075 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1076 Clear class FP0_REGS.
1077 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1079 2001-03-08 DJ Delorie <dj@redhat.com>
1080 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1081 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1082 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1083 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1084 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1085 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1086 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1087 return value correctly for call_cookie.
1088 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1089 * config/sh/crt1.asm (start): Modified so as to call
1090 ___setup_argv_and_call_main.
1091 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1092 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1094 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1095 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1096 (STRIP_NAME_ENCODING): Use it.
1097 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1098 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1099 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1100 prepare_scc_operands().
1101 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1102 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1103 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1104 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1105 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1106 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1107 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1108 used in shcompact_incoming_args.
1109 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1111 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1113 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1115 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1116 Simplify. Adjust. Add sanity check.
1117 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1119 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1121 (udivsi3, divsi3): Use them.
1122 (force_mode_for_call): New insn.
1123 (call, call_value, sibcall_value): Emit it before SHcompact
1125 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1126 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1127 call cookie is non-NULL before taking its value.
1128 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1129 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1130 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1131 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1133 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1134 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1135 temporary for stack adjusts. Use MACL and MACH to pass
1136 arguments to shcompact_incoming_args.
1137 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1139 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1140 (nested_trampoline): Load static chain address into r1.
1141 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1142 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1143 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1144 fp_arith_reg_operand().
1145 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1146 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1147 and use signed compares for them.
1148 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1149 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1150 ones properly aligned.
1151 (find_barrier): Account for extra alignment needed for 8-byte wide
1153 (machine_dependent_reorg): Require a label for the second 4-byte
1154 constant after an 8-byte one.
1155 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1157 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1158 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1159 last_float when switching float modes.
1160 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1161 auto-increment for general-purpose registers.
1162 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1164 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1166 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1167 registers for varargs.
1168 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1169 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1170 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1171 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1172 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1173 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1174 call_cookie accordingly.
1175 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1176 (SHCOMPACT_BYREF): Likewise.
1177 (SHCOMPACT_FORCE_ON_STACK): New macro.
1178 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1179 (sh_builtin_saveregs): Likewise.
1180 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1181 shcompact_incoming_args): Use new shift values. Support
1182 sequences of consecutive and non-consecutive pushes/pops.
1183 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1184 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1185 * config/sh/sh.h (TEXT_SECTION): Define.
1186 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1187 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1188 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1189 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1190 return values on FPU-enabled SHmedia.
1191 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1192 FPU-enabled SHmedia.
1193 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1194 value is returned in a non-FP reg and is not returned by
1196 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1198 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1199 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1200 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1201 quad-aligned to be passed by callee-copy reference.
1202 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1203 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1204 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1205 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1206 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1207 copying low-numbered FP regs to r7 and r8.
1208 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1209 FP regs to general-purpose regs only if the copy was passed on the
1211 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1212 copying FP reg to r9.
1213 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1214 copy FP regs to general-purpose regs only in outgoing calls.
1215 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1216 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1218 * config/sh/sh.h (struct sh_args): Document all fields.
1219 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1220 passed partially on the stack should not consider making
1222 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1223 stack_regs only for incoming calls. When passing FP args,
1224 make sure there are FP regs available before modifying
1226 (SHCOMPACT_BYREF): Pass double args in general-purpose
1227 registers by reference.
1228 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1229 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1230 attempt to generate sibcalls if the caller got any arguments
1232 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1233 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1234 to 8-byte boundaries.
1235 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1236 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1237 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1238 stored in the stack.
1239 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1240 for the offsets to have the ISA bit set.
1241 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1242 invocation. Use beq instead of bgt to mark end of sequence of
1244 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1245 bgt to mark end of sequence of stores.
1246 * config/sh/sh.c (arith_operand): Don't check whether
1247 CONST_OK_FOR_J for now.
1248 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1249 instead of long for conversion.
1250 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1251 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1252 before passing it to fprintf.
1253 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1254 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1255 Call set_fpscr before reading/writing SR.
1256 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1258 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1260 (FMOVD_WORKS): Define on SH5 with FPU.
1261 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1263 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1265 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1266 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1268 (ia_main_table): Ditto.
1269 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1270 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1271 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1272 the definitions from sh.h.
1273 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1275 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1276 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1277 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1278 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1279 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1280 Increment LABEL_NUSES.
1282 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1284 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1286 * config/sh/elf.h (SIZE_TYPE): Likewise.
1287 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1288 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1289 shcompact_incoming_args): Load switch table addresses using
1291 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1292 (NO_BUILTIN_SIZE_TYPE): Define.
1293 (SIZE_TYPE): Don't define.
1294 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1295 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1296 definition of __SH5__=32 for -m5-compact-nofpu.
1297 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1299 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1300 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1301 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1302 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1303 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1304 (INSN_LENGTH_ALIGNMENT): Likewise.
1305 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1306 * config/sh/sh.md (call, call_value, sibcall): Simplify
1307 copying of non-branch-target register.
1308 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1309 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1310 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1311 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1312 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1313 floating-point values as structs.
1314 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1315 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1316 general-purpose register.
1317 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1318 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1319 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1320 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1321 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1322 (ENCODE_SECTION_INFO): Enclose variables and constants in
1324 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1325 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1326 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1327 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1328 only for LABEL_REFs. For SYMBOL_REFs, prepend
1329 SH_DATALABEL_ENCODING to the symbol name.
1330 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1332 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1333 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1335 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1336 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1337 (DATALABEL_REF_P): Don't require CONST.
1338 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1340 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1341 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1343 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1344 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1345 Use shallow_copy_rtx and PUT_MODE to change the mode of
1346 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1347 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1348 on SHmedia using GENERAL_REGs.
1349 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1350 bltu_media_i): Fix reversion of conditions.
1351 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1352 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1353 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1354 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1355 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1356 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1357 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1358 (GCC_nested_trampoline): Likewise.
1359 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1360 * config/sh/sh.c (gen_datalabel_ref): Define.
1361 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1362 (INITIALIZE_TRAMPOLINE): Likewise.
1363 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1364 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1365 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1366 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1367 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1368 (ic_invalidate): Adjust for SH5.
1369 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1370 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1372 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1373 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1374 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1375 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1376 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1377 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1378 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1379 * config/sh/sh.c (target_reg_operand): Match only target-branch
1380 registers and pseudos that aren't virtual registers.
1381 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1382 Copy operands that don't match target_reg_operand to pseudos.
1383 (call_media, call_value_media, sibcall_media): Use
1384 target_reg_operand instead of target_operand.
1385 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1386 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1387 * config/sh/sh.c (target_reg_operand): Match hardware registers
1388 other than branch-target registers.
1389 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1390 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1391 (fpscr_values) [SH5 == 32]: Define.
1392 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1393 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1394 Handle function addresses coming in SUBREGs.
1395 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1396 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1397 shcompact_return_trampoline): Use datalabel where appropriate.
1398 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1399 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1400 general-purpose register to copy one branch-target register to
1402 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1403 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1404 SYMBOL_REFs with VOIDmode.
1405 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1406 bltu_media_i): New insns.
1407 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1408 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1409 (INIT_CUMULATIVE_ARGS): Likewise.
1410 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1411 * machmode.def (V16SFmode): New mode.
1412 * c-common.c (type_for_mode): Support V2SF and V16SF.
1413 * tree.c (build_common_tree_nodes_2): Likewise.
1414 * tree.h (tree_index): Likewise.
1415 * calls.c (emit_call_1): Take args_so_far. Adjust all
1416 callers. Introduce CALL_POPS_ARGS.
1417 * tm.texi (CALL_POPS_ARGS): Document.
1418 * config/sh/crt1.asm: Implement in SHmedia mode.
1419 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1420 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1421 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1422 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1423 Implement divsi and udivsi in SHmedia mode. Introduce
1424 SHcompact trampolines.
1425 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1427 (regno_reg_class): Rewrite.
1428 (fp_reg_names): Remove.
1429 (sh_register_names, sh_additional_register_names): New.
1430 (print_operand): Added `u'. Support SUBREGs in addresses.
1431 Add parentheses around shifted CONSTs.
1432 (output_file_start): Output .mode and .abi directives.
1433 (shiftcosts, addsubcosts, multcosts): Adjust.
1434 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1435 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1436 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1437 bytes, not registers. Take into account the need for the
1438 SHcompact incoming args trampoline. Adjust all callers.
1439 (sh_expand_prologue): Take stack_regs into account. Call
1440 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1441 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1442 stack aligned as per SH5 ABI.
1443 (sh_builtin_saveregs): Support SH5 ABI.
1444 (sh_build_va_list, sh_va_start): Likewise.
1445 (initial_elimination_offset): Take alignment into account.
1446 Compute location of PR according to the SH5 stack frame.
1447 (arith_reg_operand): Reject branch-target registers.
1448 (shmedia_6bit_operand): New.
1449 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1450 (target_reg_operand): Match DImode only. Accept SUBREGs.
1451 (target_operand): New.
1452 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1453 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1454 SIBCALL_REGS for SHmedia.
1455 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1456 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1457 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1458 (TARGET_SWITCHES): New SH5 flags.
1459 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1460 VALID_REGISTER_P to disable unsupported registers.
1461 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1462 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1463 (FUNCTION_ARG_PADDING): Define.
1464 (FASTEST_ALIGNMENT): Adjust.
1465 (SH_REGISTER_NAMES_INITIALIZER): New.
1466 (sh_register_names): Declare.
1467 (DEBUG_REGISTER_NAMES): Define.
1468 (REGISTER_NAMES): Define based on sh_register_names.
1469 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1470 (sh_additional_register_names): Declare.
1471 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1472 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1473 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1474 (REGISTER_NATURAL_MODE): Define.
1475 (FIRST_PSEUDO_REGISTER): Adjust.
1476 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1477 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1478 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1479 (VECTOR_MODE_SUPPORTED_P): Define.
1480 (REG_CLASS_CONTENTS): Adjust.
1481 (SMALL_REGISTER_CLASSES): Adjust.
1482 (REG_ALLOC_ORDER): Adjust.
1483 (INDEX_REG_CLASS): Adjust.
1484 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1485 (CONST_OK_FOR_LETTER_P): Adjust.
1486 (PREFERRED_RELOAD_CLASS): Adjust.
1487 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1488 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1489 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1490 (FIRST_FP_PARM_REG): Adjust.
1491 (CALL_POPS_ARGS): Define.
1492 (FUNCTION_ARG_REGNO_P): Adjust.
1493 (struct sh_args): New fields.
1494 (GET_SH_ARG_CLASS): Adjust.
1495 (INIT_CUMULATIVE_ARGS): Adjust.
1496 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1497 (FUNCTION_ARG_ADVANCE): Adjust.
1498 (FUNCTION_ARG): Adjust.
1499 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1500 (FUNCTION_ARG_CALLEE_COPIES): Define.
1501 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1502 (STRICT_ARGUMENT_NAMING): Define.
1503 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1504 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1505 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1506 (SETUP_INCOMING_VARARGS): Adjust.
1507 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1508 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1509 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1510 (SUBREG_OK_FOR_INDEX_P): Adjust.
1511 (EXTRA_CONSTRAINT_S): Update.
1512 (EXTRA_CONSTRAINT_T): New.
1513 (EXTRA_CONSTRAINT): Adjust.
1514 (GO_IF_LEGITIMATE_INDEX): Adjust.
1515 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1516 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1518 (MAX_MOVE_MAX): Define.
1520 (CONST_COSTS): Adjust.
1521 (REGISTER_MOVE_COST): Adjust.
1522 (BRANCH_COST): Adjust.
1523 (TEXT_SECTION_ASM_OP): Adjust.
1524 (DBX_REGISTER_NUMBER): Adjust.
1525 (ASM_OUTPUT_DOUBLE_INT): New.
1526 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1527 (PREDICATE_CODES): Adjust.
1528 (PROMOTE_MODE): Adjust.
1529 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1530 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1531 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1532 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1533 (DR0_REG, DR2_REG, DR4_REG): Renumber.
1534 (TR0_REG, TR1_REG, TR2_REG): New.
1535 (XD0_REG): Renumber.
1536 (UNSPEC_COMPACT_ARGS): New.
1537 (type): Added pt and ptabs.
1538 (length): Default to 4 on SHmedia. Default pt length to 12
1539 and 20 on SHmedia32 and SHmedia64, respectively.
1540 (pt): New function unit.
1541 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
1542 Add whitespace between operands of SHmedia instructions.
1544 (adddi3_media, addsi3_media): Adjust constraints.
1545 (subsi3) [SHmedia]: Force operand 1 into a register.
1546 (udivsi3_i1_media, udivsi3_i4_media): New.
1547 (udivsi3): Support SHmedia.
1548 (divsi3_i1_media, divsi3_i4_media): New.
1549 (divsi3): Support SHmedia.
1550 (anddi3, iordi3, xordi3): Adjust constraints.
1551 (zero_extendhidi2, zero_extendqidi2): New.
1552 (extendsidi2, extendhidi2, extendqidi2): New.
1553 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1554 (pop_e, pop_fpul, pop_4): Likewise.
1555 (movsi_media): Support FP and BT registers.
1556 (movsi_media_nofpu): New. Adjust splits to DImode.
1557 (lduw, ldub): Renamed to zero_extend* above.
1558 (movqi_media): Fix typo.
1559 (movdi_media): Support FP and BT registers.
1560 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
1561 (movdi_const_32bit): New.
1562 (shori_media): Require immediate operand. Use `u' for output.
1563 (movdf_media, movsf_media): Simplified.
1564 (movdf_media_nofpu, movsf_media_nofpu): New.
1565 (movdf, movsf): Adjust
1566 (movv2sf, movv2sf, movv16sf): New.
1567 (beq_media, beq_media_i): Adjust constraints. Don't use
1568 scratch BT register.
1569 (bne_media, bne_media_i): Likewise.
1570 (bgt_media, bgt_media_i): Likewise.
1571 (bge_media, bge_media_i): Likewise.
1572 (bgtu_media, bgtu_media_i): Likewise.
1573 (bgeu_media, bgeu_media_i): Likewise.
1574 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
1575 bunordered): Emit jump insn. Force operands to registers when
1577 (jump_media, jump): Simplify.
1578 (call_compact, call_compact_rettramp): New.
1579 (call_value_compact, call_value_compact_rettramp): New.
1580 (call_media, call_value_media): Simplify.
1581 (sibcall_compact, sibcall_media): New.
1582 (call, call_value): Adjust for SHmedia and SHcompact.
1583 (sibcall, sibcall_value, untyped_call): Likewise.
1584 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
1585 (indirect_jump): Adjust for SHmedia.
1586 (casesi_jump_media): New.
1587 (nop): Re-enable for SHmedia.
1588 (call_site): Restrict to SH1.
1589 (casesi): Adjust for SHmedia.
1590 (casesi_shift_media, casesi_load_media): New.
1591 (return): Explicitly use PR register. Call return trampoline
1593 (return_i): Explicitly use PR register.
1594 (shcompact_return_tramp, shcompact_return_tramp_i): New.
1595 (return_media): Adjust.
1596 (shcompact_incoming_args): New.
1598 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1599 (movstrsi): Disable on SH5.
1600 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
1601 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
1602 (subsf3, subsf3_media): Likewise.
1603 (mulsf3, mulsf3_media, mac_media): Likewise.
1604 (divsf3, divsf3_media): Likewise.
1605 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
1606 (floatsisf2, fux_truncsfsi2): Likewise.
1607 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
1609 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
1610 (cmpunsf_media, cmpsf): Likewise.
1611 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
1612 (abssf2, abssf2_media): Likewise.
1613 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
1614 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
1615 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
1616 (floatsidf2, fix_truncdfsi2): Likewise.
1617 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
1619 (cmpeqdf_media, cmpgtdf_media): Likewise.
1620 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
1621 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
1622 (absdf2, absdf2_media): Likewise.
1623 (extendsfdf2, extendsfdf2_media): Likewise.
1624 (truncsfdf2, truncsfdf2_media): Likewise.
1625 * config/sh/sh64.h: New file.
1626 * config/sh/t-sh64: New file.
1627 * config/sh/shmedia.h: New file.
1628 * config/sh/ushmedia.h: New file.
1629 * config/sh/sshmedia.h: New file.
1630 * configure.in: Added sh64-*-elf.
1631 * configure: Rebuilt.
1632 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
1633 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
1634 (reg_class_from_letter): Use `b' for TARGET_REGS.
1635 (print_operand): Support `%M', `%m', `AND' and
1636 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
1637 (andcosts): Adjust for SHmedia.
1638 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
1640 (target_reg_operand): New function.
1641 * config/sh/sh-protos.h (target_reg_operand): Declare.
1642 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
1643 FP registers on SH5.
1644 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
1646 (TARGET_REGISTER_P): New macro.
1647 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
1648 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
1649 (EXTRA_CONSTRAINT_S): New macro.
1650 (EXTRA_CONSTRAINT): Adjust.
1651 (FLOAT_TYPE_SIZE): Define to 32.
1652 (Pmode): DImode on SHmedia.
1653 (CONST_COSTS): Adjust for SHmedia literals.
1654 (PREDICATE_CODES): Added target_reg_operand.
1655 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
1656 * config/sh/sh.md: Remove all attrs from SHmedia insns.
1657 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
1658 (cmpdi): Accept SHmedia.
1659 (movdicc_false, movdicc_true): New insns.
1660 (movdicc): New expand.
1661 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
1663 (addsi3_media): Match `S' constraint.
1664 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
1665 (negdi2): Expand for SHmedia.
1666 (one_cmpldi2): New expand.
1667 (zero_extendsidi2): Change from expand to insn.
1668 (extendsidi2): Add constraints.
1669 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
1670 LD/ST address. Fix SI immediate loading split.
1671 (movhi_media, movqi_media, lduw, ldub): New insns.
1672 (movhi, movqi): Accept SHmedia.
1673 (shori_media, movdi_media): Relax input constraints. Split
1675 (movdf_media, movsf_media): New insn. New split to movdi.
1676 (movdf, movsf): Match on SHmedia.
1677 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
1678 bgeu_media): New insns and splits. New insns with `_i' suffix.
1679 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
1680 (bunordered): New expand.
1681 (jump_compact): Renamed from `jump'.
1682 (jump_media): New insn.
1684 (call_media, call_value_media): New insns.
1685 (call, call_value): Adjust.
1686 (indirect_jump_compact): Renamed from `indirect_jump'.
1687 (indirect_jump_media): New insn.
1688 (indirect_jump): New expand.
1689 (untyped_call, return): Accept SHmedia.
1690 (return_media): New insn.
1691 (prologue, epilogue, blockage): Accept SHmedia.
1692 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1693 (sunordered): New expand.
1694 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
1695 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
1696 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
1697 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
1698 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
1699 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
1700 abssf2_media): New insns.
1701 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
1702 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
1703 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
1704 floatdidf2, floatsidf2_media, fix_truncdfdi2,
1705 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
1706 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
1707 absdf2_media): New insns.
1708 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
1709 (extendsfdf2_media, truncdfsf2_media): New insns.
1710 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1711 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
1712 * config/sh/sh.h (CONST_OK_FOR_J): Document.
1713 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
1714 * config/sh/sh.md (adddi3): New expand.
1715 (adddi3_media, adddi3z_media): New insns.
1716 (adddi3_compact): Renamed from adddi3.
1717 (addsi3_media): Use add.l r63 to add constant zero.
1718 (subdi3): New expand.
1719 (subdi3_media): New insn.
1720 (subdi3_compact): Renamed from subdi3.
1721 (mulsidi3): New expand.
1722 (mulsidi3_media): New insn.
1723 (mulsidi3_compact): Renamed from mulsidi3.
1724 (umulsidi3): New expand.
1725 (umulsidi3_media): New insn.
1726 (umulsidi3_compact): Renamed from umulsidi3.
1727 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
1728 (ashlsi3, ashrsi3, lshrsi3): Use them.
1729 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
1730 (ashldi3, ashrdi3, lshrdi3): Use them.
1731 (zero_extendsidi2): New expand.
1732 (extendsidi2): New insn.
1733 (movsi_media): New insn. Split to movdi to load constants.
1734 (movsi): Enable for shmedia.
1735 (movdi_media): New insn. Use shori_media to load wide constants.
1736 (short_media): New insn.
1737 (movdi): Enable for shmedia.
1738 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
1739 * config/sh/sh.h (CPP_SPEC): Added `m5'.
1740 (SUBTARGET_CPP_SPEC): Added `!m5'.
1741 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
1742 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
1743 to all other SH variants.
1744 (TARGET_DEFAULT): Set to SH1_BIT.
1745 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
1746 (BITS_PER_WORD): Raise to 64 on shmedia.
1747 (MAX_BITS_PER_WORD): Change to 64.
1748 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
1749 (INT_TYPE_SIZE): Keep as 32.
1750 (UNITS_PER_WORD): Raise to 8 on shmedia.
1751 (MIN_UNITS_PER_WORD): Keep as 4.
1752 (POINTER_SIZE): Raise to 64 on shmedia.
1753 (CONST_OK_FOR_J): New macro.
1754 (CONST_OK_FOR_LETTER_P): Use it.
1755 (processor_type): Add PROCESSOR_SH5.
1756 * config/sh/sh.md: Conditionalize all expands, insns and
1757 splits to TARGET_SH1.
1759 (addsi3_compact): Renamed from...
1760 (addsi3): Now an expand.
1761 (addsi3_media, subsi3_media): New insns.
1762 (subsi3): Don't negate constants with SHmedia.
1764 * hooks.c: New file.
1765 * hooks.h: New file.
1766 * Makefile.in (HOOKS_H): New.
1767 (TARGET_DEF_H): Added $(HOOKS_H).
1768 (OBJS): Added hooks.o.
1769 (cfgcleanup.o, bb-reorder.o): Added target.h.
1770 (hooks.o): Added dependencies.
1771 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
1772 (TARGET_INITIALIZER): this.
1773 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
1774 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
1775 * bb-reorder.c: Include target.h.
1776 (reorder_basic_blocks): Skip if cannot modify jumps.
1777 * cfgcleanup.c: Include target.h.
1778 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
1780 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1782 * config/mips/mips.md (casesi_internal, casesi_internal_di):
1783 Protect jump delay slot instructions with .set noreorder and
1786 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1788 * config/mips/mips.md (casesi_internal_di): Calculate
1789 the index into the target offset table correctly.
1791 2002-02-08 Richard Henderson <rth@redhat.com>
1793 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
1794 * final.c (output_addr_const): Accept and discard SUBREG.
1795 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
1796 mark them unknown instead.
1797 (simplify_subtraction): Handle RTX_UNKNOWN.
1798 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
1800 2002-02-08 David Edelsohn <edelsohn@gnu.org>
1802 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
1804 2002-02-08 Richard Henderson <rth@redhat.com>
1806 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
1808 2002-02-08 Andreas Jaeger <aj@suse.de>
1810 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
1811 * config/i386/t-linux64: New file.
1813 2002-02-08 Jakub Jelinek <jakub@redhat.com>
1815 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
1816 * c-parse.in (compstmt): Clear last_expr_type.
1818 2002-02-07 Richard Henderson <rth@redhat.com>
1820 * loop.c (strength_reduce): Sink final_value when not
1823 2002-02-07 David O'Brien <obrien@FreeBSD.org>
1825 * config/sparc/freebsd.h: Fix mismatched spec {.
1827 2002-02-07 Richard Henderson <rth@redhat.com>
1829 * cfgrtl.c: Include recog.h and insn-config.h.
1830 (keep_with_call_p): Fix general_operand invocation.
1831 * Makefile.in (cfgrtl.o): Update dependencies.
1833 2002-02-07 Kazu Hirata <kazu@hxi.com>
1835 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
1836 comment. Accept HImode only if TARGET_H8300.
1838 2002-02-07 Eric Christopher <echristo@redhat.com>
1840 * config/mips/crtn.asm: Cleanup #ifdefs.
1842 2002-02-07 Eric Christopher <echristo@redhat.com>
1844 * config/mips/crti.asm: Add changes for mips16. mips16 uses
1845 register 7 as RA instead of $31.
1846 * config/mips/crtn.asm: Ditto.
1847 * config/mips/mips.c (mips_move_2words): Add case for
1848 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
1849 (compute_frame_size): Fix typo.
1850 (save_restore_insns): Ditto. Make documentation about using
1851 register $7 as return register more precise.
1852 (mips_expand_epilogue): Fix comment. Add code to work around not
1853 being able to add to the stack pointer directly.
1854 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
1855 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
1858 2002-02-07 Tom Rix <trix@redhat.com>
1860 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
1861 immediates in ldu and stdu DS opcode field.
1862 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
1863 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
1864 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
1866 2002-02-07 Jeff Sturm <jsturm@one-point.com>
1868 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
1869 offset for stack bias.
1871 2002-02-07 H.J. Lu <hjl@gnu.org>
1873 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
1875 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
1877 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
1879 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
1881 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
1882 * i386.c (x86_order_regs_for_local_alloc): New global function.
1883 * i386.h (REG_ALLOC_ORDER): CLeanup.
1884 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
1886 2002-02-07 Richard Henderson <rth@redhat.com>
1888 PR optimization/2463
1889 * alias.c (find_base_value): Recall base values for fixed hard regs.
1890 * loop.c (loop_regs_update): Don't use single_set on non-insns.
1892 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
1894 * config/mips/mips.md (define_delay) [mips16]: Adjust required
1897 2002-02-06 Richard Henderson <rth@redhat.com>
1900 * stmt.c (resolve_operand_name_1): Take more care with mixed
1901 named and unnamed operands.
1903 2002-02-06 Janis Johnson <janis187@us.ibm.com>
1904 Jan Hubicka <jh@suse.cz>
1906 * loop.c (remove_constant_addition): Avoid clobbering a shared
1909 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
1911 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
1912 * config/s390/t-linux64: New file.
1913 * config/s390/libgcc-glibc.ver: New file.
1915 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
1917 * config/s390/linux64.h: Delete file.
1918 * config/s390/s390x.h: New file.
1919 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
1920 as target header file.
1921 * config/s390/linux.h (TARGET_VERSION): Define depending on
1922 DEFAULT_TARGET_64BIT.
1923 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
1924 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
1925 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
1926 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
1927 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
1928 (EXTRA_SPEC): New define.
1929 * config/s390/s390.h (TARGET_VERSION): Define depending on
1930 DEFAULT_TARGET_64BIT.
1931 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
1933 2002-02-06 Jason Merrill <jason@redhat.com>
1935 * c-decl.c (finish_function): Warn about a non-void function with
1936 no return statement and no abnormal exit.
1937 (current_function_returns_abnormally): New variable.
1938 (start_function): Clear it.
1939 (struct c_language_function): Add returns_abnormally.
1940 (push_c_function_context): Save it.
1941 (pop_c_function_context): Restore it.
1942 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
1943 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
1944 an explicit return type.
1945 * c-tree.h: Declare current_function_returns_abnormally.
1946 (C_FUNCTION_IMPLICIT_INT): New macro.
1947 * c-typeck.c (build_function_call): Set it.
1948 (c_expand_return): Set current_function_returns_value even if the
1951 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1954 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
1955 unsafe for reevaluation.
1957 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1960 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
1961 EXPR_STMT, but COMPOUND_STMT, recurse into it.
1963 2002-02-06 Richard Henderson <rth@redhat.com>
1965 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
1966 be a general_operand. Dest for function value must be a pseudo.
1968 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1970 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
1971 as SYMBOL_REFs from the constant pool.
1973 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1975 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
1976 passed by invisible reference.
1978 2002-02-05 Richard Henderson <rth@redhat.com>
1980 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
1982 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
1984 Implement using "base addresses" in insn operands as default.
1985 * config/mmix/mmix.c (mmix_conditional_register_usage): if
1986 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
1987 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
1988 used to read the rtx value.
1989 (mmix_target_asm_function_epilogue): Fix spacing.
1990 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
1991 (mmix_legitimate_address): Ditto.
1992 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
1993 should be loaded with a GETA insn. Don't allocate needless extra
1994 char for nul termination and fix misleading comment.
1995 (mmix_print_operand_address): Handle constants if
1996 TARGET_BASE_ADDRESSES.
1997 (mmix_output_register_setting): Use base addressing if
1998 TARGET_BASE_ADDRESSES and the number of insns is 3.
1999 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2000 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2001 to use R as constraint, add LDA to match s.
2002 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2003 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2004 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2005 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2006 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2007 order with other fixed registers.
2008 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2009 other parameter/call-clobbered registers.
2010 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2011 -mbase-addresses, -mno-base-addresses.
2012 (MMIX Options): Ditto.
2014 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2016 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2018 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2020 * config/rs6000/altivec.h: Change elem to _S_elem.
2022 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2024 * config/netbsd.h (WCHAR_TYPE): Define.
2025 (WCHAR_TYPE_SIZE): Ditto.
2027 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2028 (WCHAR_UNSIGNED): Ditto.
2029 (WCHAR_TYPE_SIZE): Ditto.
2031 * config/arm/netbsd.h: Likewise.
2032 * config/i386/netbsd-elf.h: Likewise.
2033 * config/i386/netbsd.h: Likewise.
2034 * config/m68k/netbsd-elf.h: Likewise.
2035 * config/m68k/netbsd.h: Likewise.
2036 * config/ns32k/netbsd.h: Likewise.
2037 * config/sparc/netbsd.h: Likewise.
2038 * config/vax/netbsd.: Likewise.
2040 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2042 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2043 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2044 (TARGET_INITIALIZER): this.
2045 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2046 (BITFIELD_NBYTES_LIMITED): Markup fix.
2047 * tree.h (default_ms_bitfield_layout_p): Declare.
2048 (record_layout_info): Added prev_field.
2049 * tree.c (default_ms_bitfield_layout_p): New fn.
2050 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2051 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2052 * stor-layout.c: Include target.h.
2053 (start_record_layout): Initialize prev_field.
2054 (place_field): Handle MS bit-field layout, and disregard
2055 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2056 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2057 * Makefile.in (stor-layout.o): Adjust dependencies.
2059 2002-02-05 Jason Merrill <jason@redhat.com>
2061 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2063 2002-02-05 Andreas Jaeger <aj@suse.de>
2065 * crtstuff.c: Fix comments.
2067 2002-02-05 Richard Henderson <rth@redhat.com>
2070 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2071 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2074 * config/mips/mips.c (function_arg): Handle TImode.
2075 (function_arg_advance): Likewise.
2077 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2079 * config/rs6000/altivec.h (vec_step_help): Rename to
2082 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2084 * config/rs6000/altivec.h: Fix typos.
2086 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2088 * config/arm/netbsd.h: Correct a comment.
2090 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2092 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2093 building void typed builtins.
2095 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2096 (vec_step): Implement for C++.
2098 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2100 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2102 2002-02-04 Richard Henderson <rth@redhat.com>
2104 * combine.c (nonzero_bits): Re-introduce special case for
2105 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2107 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2109 * doc/extend.texi: Warn about unsupported usage of altivec
2112 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2113 (altivec_predicate_*): New.
2115 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2116 Add C++ version of vec_*() functions.
2118 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2119 (bdesc_2arg): Remove altivec predicates.
2120 (altivec_expand_builtin): Handle predicates.
2121 (altivec_init_builtins): Handle predicates.
2122 (altivec_expand_predicate_builtin): New.
2124 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2126 * pa.c (DO_FRAME_NOTES): Move forward.
2127 (store_reg): Revise handling of frame notes.
2128 (load_reg): Likewise.
2129 (set_reg_plus_d): Likewise.
2130 (hppa_expand_prologue): Likewise.
2131 (hppa_expand_epilogue): Likewise.
2133 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2135 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2137 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2139 PR c/4475, c++/3780:
2140 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2141 * c-common.h (SWITCH_TYPE): Define.
2142 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2143 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2144 Rename spareness variable to sparseness.
2145 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2146 if non-NULL instead of TREE_TYPE (orig_index).
2147 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2148 (expand_end_case): Define using expand_end_case_type.
2149 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2150 to expand_end_case_type.
2151 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2153 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2155 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2156 (BIGGEST_ALIGNMENT): Change to 128.
2158 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2160 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2162 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2164 * pa.md (call_internal_reg_64bit): Remove unused variable.
2166 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2168 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2170 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2171 * config/arm/arm.c (current_function_anonymous_args): Delete,
2172 replace uses with cfun->machine->uses_anonymous_args.
2173 (arm_reorg): Do not reset uses_anonymous_args.
2175 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2176 any geenral register.
2178 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2180 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2183 2002-02-04 Richard Henderson <rth@redhat.com>
2185 * combine.c (force_to_mode): Remove STACK_BIAS code.
2186 (nonzero_bits): Likewise. Replace sp/fp special case with
2187 REGNO_POINTER_ALIGN.
2189 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2190 (HARD_FRAME_POINTER_REGNUM): New.
2191 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2192 (FIXED_REGS, CALL_USED_REGS): Update.
2193 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2194 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2195 (HARD_REGNO_NREGS): Update for SFP.
2196 (STACK_POINTER_OFFSET): Include bias here ...
2197 (FIRST_PARM_OFFSET): ... not here.
2198 (STACK_BIAS): Remove.
2199 (INIT_EXPANDERS): New.
2200 (STARTING_FRAME_OFFSET): Do not include bias.
2201 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2202 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2203 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2204 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2205 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2206 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2207 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2208 (MUST_SAVE_REGISTER): Likewise.
2209 (sparc_flat_function_prologue): Likewise.
2210 (sparc_flat_function_epilogue): Likewise.
2211 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2212 (sparc_init_modes): SFP is GENERAL_REGS.
2213 (sparc_builtin_saveregs): SFP does not have bias applied.
2215 2002-02-04 Richard Henderson <rth@redhat.com>
2217 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2218 current_function_is_thunk.
2219 (alpha_sa_mask): Distinguish between current_function_is_thunk
2220 called from ASM_OUTPUT_MI_THUNK and not.
2221 (alpha_does_function_need_gp): Thunks always need gp.
2222 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2223 (alpha_output_mi_thunk_osf): New.
2224 * config/alpha/alpha-protos.h: Update.
2225 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2227 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2229 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2230 function types, not when they're taken away.
2232 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2234 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2235 CODE_LABEL and jump table when replacing a table jump with a
2238 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2240 * config/s390/s390-protos.h (legitimize_la_operand,
2241 s390_secondary_input_reload_class, s390_plus_operand,
2242 s390_expand_plus_operand): Add prototypes.
2244 config/s390/s390.c (s390_secondary_input_reload_class,
2245 s390_plus_operand, s390_expand_plus_operand): New functions.
2247 (struct s390_address): New member 'pointer'.
2248 (s390_decompose_address): Compute it.
2249 (legitimate_la_operand_p): Use it.
2250 (legitimize_la_operand): New function.
2251 (movti, movdi, movdf splitters): Call it.
2253 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2254 (PREDICATE_CODES): Add s390_plus_operand.
2256 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2257 (la_ccclobber): Allow GENERAL_REGS as output operand.
2259 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2260 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2261 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2263 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2265 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2266 register names for regular asm () construct.
2268 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2270 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2273 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2275 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2278 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2280 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2281 constant pool to be identical by string address and index.
2283 2002-02-04 Anthony Green <green@redhat.com>
2285 * output.h (SECTION_OVERRIDE): Define.
2286 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2288 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2290 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2291 by existing arm*-*-netbsd* (a.out) target.
2292 (ns32k-*-netbsdelf*): Likewise.
2293 (sparc-*-netbsdelf*): Likewise.
2294 (vax-*-netbsdelf*): Likewise.
2296 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2298 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2299 headers and libobjc headers.
2301 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2303 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2304 (_mingw.h): Remove duplicate include.
2306 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2308 * config.gcc: Set cpu_type to m68k for 68010, as well.
2309 (m68010-*-netbsdelf*): New...
2310 (m68k*-*-netbsdelf*): ...targets.
2311 * config/m68k/netbsd-elf.h: New file.
2313 2002-02-02 Kazu Hirata <kazu@hxi.com>
2315 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2317 2002-02-02 Kazu Hirata <kazu@hxi.com>
2319 * config/h8300/h8300.c (h8_push_ops): Move inside
2321 (h8_pop_ops): Likewise.
2322 (h8_move_ops): Likewise.
2324 2002-02-02 Kazu Hirata <kazu@hxi.com>
2326 * config/h8300/h8300.c (os_task): Make it static.
2327 (monitor): Likewise.
2328 (pragma_saveall): Likewise.
2330 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2332 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2333 constant is a valid sign-extension for Pmode.
2335 2002-02-02 Kazu Hirata <kazu@hxi.com>
2337 * config/h8300/h8300.c: Fix formatting.
2339 2002-02-02 Kazu Hirata <kazu@hxi.com>
2341 * config/h8300/h8300.md: Fix formatting.
2343 2002-02-02 Kazu Hirata <kazu@hxi.com>
2345 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2346 predicates of operands[1]. Split the patterns for each
2349 2002-02-02 Kazu Hirata <kazu@hxi.com>
2351 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2352 of operands[1] to register_operand.
2354 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2356 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2357 * cpphash.c (_cpp_init_hashtable): Similarly.
2358 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2359 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2360 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2361 (cpp_handle_option): Handle the new options.
2362 * cpplex.c (cpp_interpret_charconst): Use new flag.
2363 * cpplib.h (struct cpp_options): New member signed_char.
2364 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2365 (cpp_options): Handle -fsigned-char and -funsigned-char.
2366 (static_specs): Remove signed_char_spec.
2367 (do_spec1): Don't handle %c.
2368 * system.h: Poison SIGNED_CHAR_SPEC.
2369 * tradcif.y (yylex): Use flag_signed_char.
2370 * tradcpp.h (flag_signed_char): New.
2371 * tradcpp.c (flag_signed_char): New.
2372 (main): Handle new command-line options.
2373 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2375 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2376 * avr/avr.h: Remove old comments.
2377 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2378 (CC1_SPEC): Pass -fsigned-char if -mic*.
2379 (SIGNED_CHAR_SPEC): Remove.
2381 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2383 2002-02-01 Eric Christopher <echristo@redhat.com>
2385 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2386 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2387 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2388 (ASM_OUTPUT_REG_POP): Ditto.
2390 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2392 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2395 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2397 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2399 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2402 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2405 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2407 * cfganal.c: Include tm_p.h.
2408 (keep_with_call_p): Fix the test that determines if a register holds
2409 the return value of a call.
2411 2002-02-01 DJ Delorie <dj@redhat.com>
2413 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2414 we are given conflicting registers, switch to the other one we
2415 had allocated for us.
2416 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2417 as TImode so we know when the "other" register is available.
2419 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2421 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2424 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2426 * cfganal.c (keep_with_call_p): New function.
2427 (flow_call_edges_add): Prevent splitting a block between a call and
2428 a single-set instruction that should be kept in the same block.
2430 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2432 * doc/install.texi (avr): Update outdated URL.
2434 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2436 * config/stormy16/stormy16.md (pushqi): New.
2440 (movhi): Remove stack operands.
2442 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2443 nonimmediate_nonstack_operand.
2444 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2446 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2449 2002-01-31 Jason Merrill <jason@redhat.com>
2451 * Makefile.in (c-parse.c): Handle .output file.
2452 * objc/Make-lang.in (objc-parse.c): Likewise.
2454 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2456 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2457 the -me[lb] option is given. Don't output the default flag
2460 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2462 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2463 the primary source file; this has not been done yet.
2464 * c-decl.c (c_expand_body): Reset input_filename from
2465 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2467 2002-01-31 Kazu Hirata <kazu@hxi.com>
2469 * rtlanal.c (subreg_regno_offset): Do not use
2470 SUBREG_REGNO_OFFSET.
2471 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2472 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2474 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2476 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2477 version rather than GNATS version in --version output.
2479 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2481 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2482 when copying back from a temporary.
2484 2002-01-30 Richard Henderson <rth@redhat.com>
2486 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2487 and new_dest are the same.
2489 2002-01-30 Richard Henderson <rth@redhat.com>
2492 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2493 * rtl.c (note_insn_name): Update.
2494 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2495 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2496 to perform loop rotation.
2497 (expand_exit_loop_top_cond): New.
2498 * tree.h (expand_exit_loop_top_cond): Declare it.
2499 * c-semantics.c (genrtl_while_stmt): Use it.
2500 (genrtl_for_stmt): Likewise.
2502 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2504 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2505 arguments to 64-bit boundaries on 64-bit ABIs.
2507 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2509 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2511 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2513 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2516 2002-01-30 David O'Brien <obrien@FreeBSD.org>
2518 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2519 * config/sparc/sparc_bi.h: Remove file.
2520 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2522 2002-01-30 Richard Henderson <rth@redhat.com>
2524 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2526 2002-01-30 Zack Weinberg <zack@codesourcery.com>
2528 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2530 2002-01-30 Jason Merrill <jason@redhat.com>
2532 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2533 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2534 (reg_save): Use DW_CFA_offset_extended_sf instead.
2536 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2538 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2540 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2543 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
2545 * rs6000.md ("*call_value_local32"): Remove constraints.
2546 ("*call_value_local64"): Same.
2547 ("*call_value_indirect_nonlocal_aix32"): Same.
2548 ("*call_value_nonlocal_aix32"): Same.
2549 ("*call_value_indirect_nonlocal_aix64"): Same.
2550 ("*call_value_nonlocal_aix64"): Same.
2551 ("*call_value_nonlocal_sysv"): Same.
2553 2002-01-29 Richard Henderson <rth@redhat.com>
2555 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2557 2002-01-29 Richard Henderson <rth@redhat.com>
2559 * expr.c (force_operand): Ignore flag_pic for detecting pic
2561 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2562 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2563 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2564 instead of open-coded loop.
2565 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
2566 be fixed when in use.
2568 2002-01-29 Richard Henderson <rth@redhat.com>
2570 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
2571 * sched-rgn.c (propagate_deps): Update them.
2572 * sched-deps.c (sched_analyze_insn): Update them. Flush the
2573 clobbers list when either gets too long.
2575 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2577 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
2578 and INDEX_REGS the same as GENERAL_REGS.
2579 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2581 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2583 * tree.c (build_nonstandard_integer_type): Correct prototype.
2585 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
2587 * config/s390/s390.md (movstrsico, movstrdix_64,
2588 movstrsix_31): Remove, replace by ...
2589 (movstrdi_short, movstrsi_short, movstrdi_long,
2590 movstrsi_long): ... these. New.
2591 (movstrdi, movstrsi): Adapt.
2593 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
2594 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
2595 Remove unnecessary CC clobber.
2596 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
2597 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
2599 (divmoddi4): Don't partially initialize TImode register.
2601 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
2603 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
2605 2002-01-29 Richard Henderson <rth@redhat.com>
2607 * flow.c (print_rtl_and_abort): Remove.
2608 (print_rtl_and_abort_fcn): Remove.
2609 (verify_local_live_at_start): Use dump_bb instead.
2610 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
2611 (verify_wide_reg_1): Return 2 on mode test failure.
2613 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2615 PR c/3325, c/3326, c/2511, c/3347
2616 * c-decl.c (enum_decl_context): Remove BITFIELD.
2617 (grokdeclarator): Take bitfield width as an input.
2618 Ensure bitfields are given the correct type. Perform
2619 bitfield width validation with build_bitfield_integer_type
2620 rather than waiting for finish_struct.
2621 (grok_typename, grok_typename_in_parm_context, start_decl,
2622 push_parmdecl, grokfield, start_function): Update calls to
2624 (build_bitfield_integer_type): New function.
2625 (finish_struct): Move bitfield validation to grokdeclarator
2626 and build_bitfield_integer_type.
2627 * tree.c (build_nonstandard_integer_type): New function.
2628 * tree.h (build_nonstandard_integer_type): New prototype.
2630 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
2632 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2635 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
2636 don't ignore unrecognized -W* options.
2637 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
2638 * cpplib.h (cpp_handle_option): Adjust prototype.
2639 * c-decl.c (c_decode_options): Pass 0 as last argument to
2643 * gcc.c (cpp_unique_options): Split from cpp_options.
2644 (cpp_options): Source cpp_unique_options.
2645 (default_compilers): Use cpp_unique_options instead of cpp_options
2646 when used together with cc1_options.
2647 (static_specs): Add cpp_unique_options.
2648 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
2649 when used together with cc1_options.
2651 2002-01-29 Kazu Hirata <kazu@hxi.com>
2653 * config/h8300/h8300-protos.h: Update the prototype of
2655 * config/h8300/h8300.c (output_a_shift): Remove an unused
2656 argument 'insn'. Remove redundant code.
2657 * config/h8300/h8300.md: Adust to the new prototype of
2660 2002-01-29 Kazu Hirata <kazu@hxi.com>
2662 * config/h8300/h8300-protos.h: Update the prototypes of
2663 emit_a_rotate and expand_a_rotate.
2664 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
2665 first argument to 'enum rtx_code'.
2666 (expand_a_rotate): Likewise.
2668 2002-01-28 Kazu Hirata <kazu@hxi.com>
2670 * config/h8300/h8300-protos.h: Update the prototype of
2672 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
2674 * config/h8300/h8300.md: Adjust to the new prototype.
2676 2002-01-28 Kazu Hirata <kazu@hxi.com>
2678 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
2681 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2683 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
2684 is a fixed register before returning pic_offset_table_rtx.
2685 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
2686 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
2688 2002-01-28 Jason Merrill <jason@redhat.com>
2690 * dwarf2.h: Sync with src version.
2692 2002-01-28 Paul Koning <pkoning@equallogic.com>
2694 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
2696 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
2697 * doc/extend.texi (__builtin_prefetch): Update documentation:
2698 first argument is now const void ptr.
2700 2002-01-28 Kazu Hirata <kazu@hxi.com>
2702 * config/h8300/h8300-protos.h: Remove an unused prototype.
2704 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
2706 * toplev.c (lang_independent_init): Round up identifier size.
2708 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
2710 * config.gcc: Revert previous change.
2712 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
2714 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
2716 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
2718 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
2719 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
2720 other non-elf netbsd config frags.
2721 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
2722 collect2 will does that.
2723 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
2724 shared-lib frobbing will work.
2726 2002-01-28 Kazu Hirata <kazu@hxi.com>
2728 * config/h8300/h8300.h: Fix formatting.
2729 * config/h8300/h8300.md: Likewise.
2731 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
2733 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
2734 the old, removed AAA_standards fix.
2735 * fixinc/fixincl.x: Rebuilt.
2737 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
2739 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
2740 atexit call in crtbegin, hooked in after call to frame_dummy;
2741 register EH before registering __fini__start.
2743 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
2745 * config/rs6000/altivec.h: Remove spurious semicolons.
2747 2002-01-27 Kazu Hirata <kazu@hxi.com>
2749 * config/h8300/h8300.md: Replace dead bit extraction patterns
2750 with ones that work.
2752 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2754 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
2755 if not STRICT_ALIGNMENT.
2756 * rtl.h (MEM_ALIGN): Likewise.
2758 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
2760 * doc/invoke.texi (-fdump-translation-unit): Revert this
2761 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
2763 2002-01-27 Kazu Hirata <kazu@hxi.com>
2765 * config/h8300/h8300.md (define_constants): New.
2766 (anonymous patterns) Use defined constants appropriately.
2768 2002-01-27 Kazu Hirata <kazu@hxi.com>
2770 * config/h8300/h8300.c (function_arg): Remove redundant code.
2772 2002-01-26 Richard Henderson <rth@redhat.com>
2774 * sched-deps.c (reg_pending_uses_head): New.
2775 (reg_pending_barrier): Rename from reg_pending_sets_all.
2776 (find_insn_list): Don't mark inline.
2777 (find_insn_mem_list): Remove.
2778 (add_dependence_list, add_dependence_list_and_free): New.
2779 (flush_pending_lists): Replace only_write param with separate
2780 for_read and for_write parameters. Update all callers. Use
2781 add_dependence_list_and_free.
2782 (sched_analyze_1): Do not add reg dependencies here; just set
2783 the pending bits. Use add_dependence_list.
2784 (sched_analyze_2): Likewise.
2785 (sched_analyze_insn): Replace schedule_barrier_found with
2786 reg_pending_barrier. Add all dependencies for pending reg
2787 uses, sets, and clobbers.
2788 (sched_analyze): Don't add reg dependencies for calls, just
2789 set pending bits. Use regs_invalidated_by_call. Treat
2790 sched_before_next_call as a normal list, not a fake insn.
2791 (init_deps): No funny init for sched_before_next_call.
2792 (free_deps): Free pending mems lists. Don't zero reg_last.
2793 (init_deps_global): Init reg_pending_uses.
2794 (finish_deps_global): Free it.
2795 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
2796 (find_insn_mem_list): Remove.
2797 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
2798 (propagate_deps): Use them. Zero temp mem lists.
2800 2002-01-26 Richard Henderson <rth@redhat.com>
2802 * Makefile.in (CRTSTUFF_CFLAGS): New.
2803 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
2804 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
2805 crtstuff.c instead of alpha assembly version.
2806 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
2807 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
2808 not FORCE_{INIT,FINI}_SECTION_ALIGN.
2809 (__do_global_dtors_aux): Mark used.
2810 (frame_dummy, __do_global_ctors_aux): Mark used.
2811 (fini_dummy, init_dummy): Remove.
2813 * config/alpha/crtbegin.asm: Remove file.
2814 * config/alpha/crtend.asm: Remove file.
2815 * config/alpha/t-crtbe: Remove file.
2816 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
2817 (LINK_EH_SPEC): New.
2819 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
2820 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
2821 calling constructors.
2822 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
2824 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
2825 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
2826 CRT_END_INIT_DUMMY hack.
2827 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
2828 FORCE_{INIT,FINI}_SECTION_ALIGN.
2830 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
2831 FORCE_{INIT,FINI}_SECTION_ALIGN.
2833 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
2834 invocation sequence.
2835 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
2837 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
2838 (FORCE_CODE_SECTION_ALIGN): New.
2840 2002-01-26 Richard Henderson <rth@redhat.com>
2842 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
2844 2002-01-26 Richard Henderson <rth@redhat.com>
2846 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
2847 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
2849 2002-01-26 Kazu Hirata <kazu@hxi.com>
2851 * config/h8300/h8300.md: Remove bit extraction patterns that
2852 cannot be triggered.
2853 Restrict each bit extraction pattern to a variant on which the
2856 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
2858 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
2860 2002-01-26 Kazu Hirata <kazu@hxi.com>
2862 * config/h8300/h8300.md: Remove bit test patterns that cannot
2864 Restrict each bit test pattern to a variant on which the
2867 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2869 * builtins.c (expand_builtin_strncat): Remove redundant check for
2872 2002-01-25 David O'Brien <obrien@FreeBSD.org>
2874 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
2876 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
2879 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
2881 * dbxout.c (dbxout_init): Use assemble_name rather than just
2882 stripping off the first character.
2883 (dbxout_source_file): Likewise.
2885 2002-01-25 DJ Delorie <dj@redhat.com>
2887 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
2888 using rtx_equal_p, not by comparing pointers.
2890 2002-01-25 Steve Ellcey <sje@cup.hp.com>
2892 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
2893 for PIC_OFFSET_TABLE_REGNUM.
2894 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
2896 2002-01-25 David O'Brien <obrien@FreeBSD.org>
2898 * config.gcc (x86_64-*-freebsd*): New target.
2899 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
2901 (i[34567]86-*-freebsd*): Don't include svr4.h.
2902 * config/i386/freebsd64.h: New file.
2904 2002-01-25 Douglas B Rupp <rupp@gnat.com>
2906 * config/alpha/x-vms (version): Make static.
2908 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
2909 in previous checkin.
2911 * Makefile.in (install-headers-cp): New target.
2912 * config.gcc (alpha-dec-*vms*): Install headers with
2915 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
2917 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
2920 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2922 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
2923 of compare_tree_int.
2924 (expand_builtin_strncat): Likewise.
2925 * c-decl.c (finish_struct): Use tree_low_cst.
2926 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
2927 * tree.c (compare_tree_int): Likewise.
2929 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
2931 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
2932 adjustments even if they are implemented by more than two insns.
2934 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
2936 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
2937 * df.h (struct ref): Kill B.
2938 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
2940 * basic-block.h (PROP_EQUAL_NOTES): New flag.
2941 * flow.c (propagate_one_insn): Use it.
2942 (mark_used_regs): Handle NIL.
2944 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
2946 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
2949 2002-01-25 David Edelsohn <edelsohn@gnu.org>
2951 * rs6000.md (prefetch): Make address V4SI mode so that the address
2952 is restricted to legitimate form for instruction.
2954 2002-01-25 Bob Wilson <bob.wilson@acm.org>
2956 * doc/install.texi (xtensa-*-elf): New target.
2957 (xtensa-*-linux*): New target.
2958 * doc/contrib.texi: Add myself.
2960 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2962 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
2963 purpose register to hold an SImode (or smaller) value.
2965 2002-01-25 Jakub Jelinek <jakub@redhat.com>
2967 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
2969 * crtstuff.c: Likewise.
2971 2002-01-25 Kazu Hirata <kazu@hxi.com>
2973 * config/h8300/h8300.md (negation patterns): Tighten
2974 predicates to register_operand.
2976 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
2978 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
2981 * builtins.c (expand_builtin_prefetch): Same.
2983 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2985 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
2988 2002-01-24 Kazu Hirata <kazu@hxi.com>
2990 * config/h8300/h8300.c (print_operand): Remove support for
2991 operand character 'A'.
2992 * config/h8300/h8300.md (three anonymous patterns): Replace
2993 operand character 'A' with either 'T' or 'S'.
2995 2002-01-24 Kazu Hirata <kazu@hxi.com>
2997 * config/h8300/h8300.c (print_operand): Remove support for
2998 operand character 'U'.
3000 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3002 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3004 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3006 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3007 values to be assigned to the stack pointer.
3009 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3011 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3012 to const_double needs to be done right for big-endian systems.
3014 2002-01-24 Jason Merrill <jason@redhat.com>
3017 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3018 to can_throw_internal.
3020 2002-01-23 Richard Henderson <rth@redhat.com>
3022 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3023 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3025 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3027 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3028 (symGOT2reg): Use them, then set as GOT value as unchanging.
3029 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3030 as a temporary, if possible.
3031 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3032 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3034 2002-01-23 Kazu Hirata <kazu@hxi.com>
3036 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3037 accept to accept 0x80 as operands[2].
3039 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3041 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3043 2002-01-23 Richard Henderson <rth@redhat.com>
3045 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3047 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3049 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3050 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3053 2002-01-23 Richard Henderson <rth@redhat.com>
3055 * expr.c (move_by_pieces_1): Extend size before negation.
3057 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3058 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3059 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3060 * config/m68k/t-m68kelf: Likewise.
3062 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3064 * config/xtensa/elf.h: New file.
3065 * config/xtensa/lib1funcs.asm: New file.
3066 * config/xtensa/lib2funcs.S: New file.
3067 * config/xtensa/linux.h: New file.
3068 * config/xtensa/t-xtensa: New file.
3069 * config/xtensa/xtensa-config.h: New file.
3070 * config/xtensa/xtensa-protos.h: New file.
3071 * config/xtensa/xtensa.c: New file.
3072 * config/xtensa/xtensa.h: New file.
3073 * config/xtensa/xtensa.md: New file.
3074 * config.gcc (xtensa-*-elf*): New target.
3075 (xtensa-*-linux*): New target.
3076 * cse.c (canon_hash): Compare rtx pointers instead of register
3077 numbers. This is required for the Xtensa port.
3078 * integrate.c (copy_insn_list): Handle case where the static
3079 chain is in memory and the memory address has to be copied to
3081 * doc/invoke.texi (Option Summary): Add Xtensa options.
3082 (Xtensa Options): New node.
3083 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3085 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3087 * diagnostic.c (internal_error): Do ICE suppression only
3088 when ENABLE_CHECKING is not defined.
3090 * c-typeck.c (require_complete_type): Return error_mark_node
3091 if type is error_mark_node.
3093 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3095 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3096 -Os and issue a warning.
3098 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3100 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3101 current (lack of) need for host configuration by hand.
3103 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3104 references. Documentation of some target macros moved from
3105 hostconfig.texi to tm.texi.
3107 2002-01-23 Will Cohen <wcohen@redhat.com>
3109 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3112 2002-01-23 Kazu Hirata <kazu@hxi.com>
3114 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3117 2002-01-23 Jason Merrill <jason@redhat.com>
3119 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3121 * function.c (assign_parms): Don't put args of inline functions
3122 into registers when not optimizing.
3124 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3126 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3127 (prologue_use): New pattern.
3128 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3129 preference to gen_rtx_USE.
3130 (thumb_expand_prologue): Use gen_prologue_use in preference to
3132 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3135 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3137 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3139 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3142 * doc/extend.texi: Correct documentation of __alignof__.
3144 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3146 * params.h: Rename arguments of DEFPARAM so that it will be
3147 recognized as a translation keyword.
3149 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3151 * extend.texi: Document altivec functions.
3152 Fix N-bit adjectives in X86 builtin documentation.
3154 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3156 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3157 auto_inc_dec values.
3159 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3161 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3163 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3165 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3167 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3169 2002-01-22 Richard Henderson <rth@redhat.com>
3171 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3172 copy_insn not copy_rtx.
3174 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3176 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3177 "nonzero" as that might add "1" bits. Ensure "constop" is
3178 properly sign extened.
3179 (force_to_mode): Tweak for sign extended constop.
3181 2002-01-22 Richard Henderson <rth@redhat.com>
3183 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3184 for_each_rtx instead of assuming we're already looking at the MEM.
3185 (split_small_symbolic_mem_operand): Likewise.
3186 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3187 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3189 2002-01-22 Richard Henderson <rth@redhat.com>
3191 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3192 sequence number for the literal.
3193 (divmoddi_internal_er): Likewise.
3195 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3198 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3199 in LIBICONV variable.
3200 * configure: Regenerated.
3202 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3204 * dependence.c (build_def_use): Remove array_idx.
3206 * dwarfout.c (last_filename): Remove.
3207 (output_compile_unit_die): Remove last_filename.
3209 2002-01-22 Roger Sayle <roger@eyesopen.com>
3210 Richard Henderson <rth@redhat.com>
3213 * fold-const.c (fold): Optimize unsigned comparisons against
3214 UINT_MAX (and similar unsigned constants).
3216 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3218 * Makefile.in (loop.o): Depend on OPTABS_H.
3219 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3220 against the predicate.
3223 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3224 for the address operand.
3226 2002-01-22 Richard Henderson <rth@redhat.com>
3228 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3230 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3233 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3236 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3238 * config.gcc (x86_64-*-netbsd*): New target.
3239 * config/i386/netbsd64.h: New file.
3241 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3243 * regrename.c (kill_value): Fix typo.
3245 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3247 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3249 * config/rs6000/rs6000.h: Same.
3251 * function.c (instantiate_virtual_regs): Remove
3252 STARTING_FRAME_PHASE.
3253 (assign_stack_local_1): Same.
3254 Calculate frame phase.
3256 2002-01-22 Nick Clifton <nickc@redhat.com>
3258 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3259 variable declaration to outer scope in order to simplify
3261 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3262 arm_hard_regno_mode_ok.
3263 * config/arm/arm-protos.h: Add a prototype for
3264 arm_hard_regno_mode_ok.
3265 * config/arm/arm.c (soft_df_operand): Remove now redundant
3266 check for DImode values using IP_REGNUM.
3267 (nonimmediate_soft_df_operand): Remove now redundant check for
3268 DImode values using IP_REGNUM.
3269 (arm_hard_regno_mode_ok): New function. New check: make sure
3270 that DImode values are not stored in IP_REGNUM.
3272 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3274 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3276 2002-01-22 Jason Merrill <jason@redhat.com>
3278 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3279 consistency if this COMPOUND_STMT is scoped.
3281 2002-01-22 Kazu Hirata <kazu@hxi.com>
3283 * predict.c: Fix formatting.
3284 * print-tree.c: Likewise.
3285 * protoize.c: Likewise.
3288 * sbitmap.h: Likewise.
3290 * sched-deps.c: Likewise.
3291 * sched-vis.c: Likewise.
3292 * sdbout.c: Likewise.
3293 * sibcall.c: Likewise.
3295 * ssa-ccp.c: Likewise.
3296 * ssa-dce.c: Likewise.
3298 * stor-layout.c: Likewise.
3299 * system.h: Likewise.
3301 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3303 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3304 if fits in bounds of base type.
3306 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3307 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3308 (add_bound_info, default): If can't find a context, make a
3310 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3312 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3314 * c-typeck.c (parser_build_binary_op): If result from
3315 build_binary_op is ERROR_MARK just return error_mark_node without
3318 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3320 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3321 Split a.out-specific bits into...
3322 * config/netbsd-aout.h: ...this.
3323 * config/netbsd-elf.h: New file.
3324 * config/alpha/netbsd-elf.h: Remove.
3325 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3326 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3327 (STARTFILE_SPEC): Remove redundant definition.
3328 (ENDFILE_SPEC): Likewise.
3329 (LINK_SPEC): Likewise.
3330 (CPP_SPEC): Likewise.
3331 (ASM_SPEC): Likewise.
3332 (LIB_SPEC): Likewise.
3333 (SWITCH_TAKES_ARG): Likewise.
3334 (TARGET_MEM_FUNCTIONS): Likewise.
3335 (CPP_PREDEFINES): Redefine.
3336 (ASM_FINAL_SPEC): Remove redefinition.
3337 (ASM_COMMENT_START): Redefine.
3338 (FUNCTION_PROFILER): Define.
3339 (TARGET_VERSION): Redefine.
3340 Comment and formatting cleanup.
3341 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3342 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3343 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3344 big- or little-endian.
3345 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3346 * config.gcc (*-*-netbsd*): Add definitions common to all
3348 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3349 gnu_ld definitions. Add netbsd-elf.h to and remove
3350 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3351 tmake_file, and don't lose previous tmake_file contents.
3352 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3353 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3354 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3355 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3356 (mipsel-*-netbsd*): Rename this to...
3357 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3358 mips/little.h to tm_file for mips*el-*.
3359 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3360 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3361 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3363 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3365 * pa-protos.h (reg_before_reload_operand): New function prototype.
3366 * pa.c (reg_before_reload_operand): New function implementation.
3367 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3370 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3372 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3374 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3376 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3377 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3378 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3379 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3380 (ENDFILE_SPEC): Undefine.
3381 (STARTFILE_SPEC): Redefine for PA.
3383 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3385 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3387 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3389 * config.gcc: Add entries to supported PowerPC --with-cpu
3392 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3394 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3395 true for 64-bit mode only SSE registers in 32-bit mode.
3397 2002-01-21 Kazu Hirata <kazu@hxi.com>
3399 * unwind-dw2.c: Fix formatting.
3400 * unwind-dw2-fde.c: Likewise.
3401 * unwind-dw2-fde.h: Likewise.
3402 * unwind-pe.h: Likewise.
3403 * varasm.c: Likewise.
3404 * varray.h: Likewise.
3406 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3408 Remove workaround for register stack overwrite bug in mmix.
3409 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3410 support for TARGET_REG_STACK_FILL_BUG.
3411 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3412 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3414 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3415 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3416 -mno-reg-stack-fill-bug-workaround.
3417 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3418 machine member has_call_without_parameters.
3419 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3420 -mreg-stack-fill-bug-workaround and
3421 -mno-reg-stack-fill-bug-workaround.
3422 (MMIX Options): Ditto.
3424 2002-01-21 Kazu Hirata <kazu@hxi.com>
3426 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3428 Remove redundant code.
3430 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3432 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3433 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3434 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3435 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3436 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3437 out target macro definitions and non-target-specific comments
3438 mostly taken from old versions of the manual.
3440 2002-01-20 Kazu Hirata <kazu@hxi.com>
3442 * config/h8300/h8300.h: Fix comment formatting.
3443 * config/ia64/aix.h: Likewise.
3444 * config/ia64/ia64-protos.h: Likewise.
3445 * config/ia64/ia64.c: Likewise.
3446 * config/ia64/ia64.h: Likewise.
3447 * config/ia64/ia64intrin.h: Likewise.
3448 * config/ia64/linux.h: Likewise.
3449 * config/ia64/unwind-aix.c: Likewise.
3450 * config/ia64/unwind-ia64.c: Likewise.
3452 2002-01-20 Kazu Hirata <kazu@hxi.com>
3454 * config/h8300/h8300.c: Revise comments about shift code.
3456 2002-01-20 Kazu Hirata <kazu@hxi.com>
3458 * config/h8300/h8300.c (function_arg): Update a comment.
3460 2002-01-20 Kazu Hirata <kazu@hxi.com>
3462 * config/h8300/h8300.md: Update the comments at the beginning
3465 2002-01-20 Kazu Hirata <kazu@hxi.com>
3467 * config/i370/i370.c: Fix comment formatting.
3468 * config/i370/i370.h: Likewise.
3469 * config/i370/i370.md: Likewise.
3470 * config/i370/linux.h: Likewise.
3472 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3474 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3476 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3477 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3480 2002-01-20 Graham Stott <grahams@redhat.com>
3482 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3484 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3486 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3488 2002-01-19 Tom Rix <trix@redhat.com>
3490 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3492 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3494 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3496 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3497 STARTING_FRAME_PHASE.
3498 (STARTING_FRAME_PHASE): New.
3499 (instantiate_virtual_regs): Check saneness of
3500 STARTING_FRAME_PHASE.
3502 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3504 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3506 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3508 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3510 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3511 be used for bootstrapping GCC 3.0.
3513 2002-01-18 Kazu Hirata <kazu@hxi.com>
3515 * config/h8300/h8300.md: Fix an insn length.
3517 2002-01-18 Kazu Hirata <kazu@hxi.com>
3519 * bitmap.h: Fix comment formatting.
3520 * combine.c: Likewise.
3521 * cppfiles.c: Likewise.
3522 * c-pragma.h: Likewise.
3523 * c-typeck.c: Likewise.
3525 * dwarf2out.c: Likewise.
3526 * function.c: Likewise.
3528 * genattrtab.c: Likewise.
3529 * gthr-win32.h: Likewise.
3530 * haifa-sched.c: Likewise.
3531 * predict.c: Likewise.
3532 * rtlanal.c: Likewise.
3534 * unwind-dw2-fde.h: Likewise.
3535 * unwind-pe.h: Likewise.
3536 * vmsdbgout.c: Likewise.
3538 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3540 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3541 if type_required and passed decl.
3543 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
3545 * config.gcc (cpu_type): Include altivec.h in powerpc
3549 * config/rs6000/altivec.h: New.
3551 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3553 * doc/install.texi (*-ibm-aix*): Update assembler and exception
3554 handling information.
3555 * doc/trouble.texi (Interoperation): Add libstdc++ information
3557 (Misunderstandings): Add template instantiation and static template
3558 member information for AIX.
3560 2002-01-17 Jason Merrill <jason@redhat.com>
3562 * dbxout.c (dbxout_type): Support const and volatile.
3564 * except.c (add_partial_entry): Remove backwards compatibility code.
3565 (end_protect_partials): Likewise.
3567 2002-01-17 Jakub Jelinek <jakub@redhat.com>
3569 * config/ia64/ia64.md (prologue_use): New.
3570 * config/ia64/ia64.c (ia64_expand_prologue): Use
3571 gen_prologue_use instead of gen_rtx_USE.
3572 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
3573 as CODE_FOR_pred_rel_mutex.
3574 (ia64_sched_reorder2): Likewise.
3576 2002-01-16 Eric Christopher <echristo@redhat.com>
3578 * config/mips/r3900.h: Reformat.
3579 (SUBTARGET_CPP_SIZE_SPEC): Remove.
3580 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3581 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
3582 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
3583 * config/mips/t-elf: Remove mips3 multilib.
3585 2002-01-16 H.J. Lu <hjl@gnu.org>
3587 * config/mips/linux.h: Include "mips/abi64.h".
3589 2002-01-16 H.J. Lu <hjl@gnu.org>
3591 * config/mips/t-linux: New.
3593 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
3595 * config/mips/linux.h: Don't include "gofast.h".
3596 (INIT_SUBTARGET_OPTABS): Removed.
3598 2002-01-16 Kazu Hirata <kazu@hxi.com>
3600 * config/h8300/h8300-protos.h: Replace emit_a_shift with
3602 * config/h8300/h8300.c: Likewise.
3603 * config/h8300/h8300.md: Likewise.
3605 2002-01-16 Kazu Hirata <kazu@hxi.com>
3607 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
3608 spaces after an opcode name.
3609 (pushqi1_h8300hs): Likewise.
3610 (pushhi1_h8300hs): Likewise.
3612 2002-01-16 Kazu Hirata <kazu@hxi.com>
3614 * doc/extend.texi: Replace "option" with "attribute"
3617 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3619 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
3620 (and:DI () (const_int -8)).
3621 (split_small_symbolic_mem_operand): Split
3622 (mem (and:DI () (const_int -8)).
3624 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3627 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
3628 same way as TYPE_IMUL.
3629 (ultrasparc_sched_reorder): Likewise.
3630 * config/sparc/sparc.md (type): Add comment to update
3631 ultrasparc_sched_reorder when making changes.
3633 2002-01-16 Kazu Hirata <kazu@hxi.com>
3635 * doc/invoke.texi: Change the dump file name of block
3636 reordering pass from 28.bbro to 29.bbro.
3639 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
3641 * i386.md (minsf splitter): Fix pasto.
3643 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3645 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
3646 to frame pointer initialisation instruction.
3647 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
3648 initialisation instruction.
3649 (soft_df_operand): Do not accept the IP register.
3650 (nonimmediate_soft_df_operand): Do not accept the IP register.
3652 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3655 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
3656 MASK_V8 being both set.
3658 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
3660 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
3661 insn for GOT register; add REG_MAYBE_DEAD notes instead.
3662 config/s390/s390.md (call, call_value): Add GOT register to
3663 CALL_INSN_FUNCTION_USAGE where needed.
3664 (call_exp, call_value_exp): New.
3666 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3668 * config/arm/arm.c: General formatting tidy up.
3670 2002-01-16 Graham Stott <grahams@redhat.com>
3672 * calls.c (try_to_integrate): Use "(size_t)" intermediate
3673 cast and when casting an integer literal to "rtx" pointer.
3674 (expand_call): Likewise.
3675 * flow.c (try_pre_increment): Likewise.
3676 (find_use_as_address): Likewise.
3677 * integrate.c (expand_iline_function): Likewise.
3678 * regmove.c (try_auto_increment): Likewise.
3680 2002-01-16 Graham Stott <grahams@redhat.com>
3682 * sched-rgn.c (passed): Use sbitmap_free.
3685 (in_queue): Likewise.
3686 (in_stack): Likewise.
3688 2002-01-15 Eric Christopher <echristo@redhat.com>
3690 * flow.c (propagate_one_insn): Change to use fatal_insn.
3692 2002-01-15 Kazu Hirata <kazu@hxi.com>
3694 * expmed.c (extract_fixed_bit_field): Remove unused code.
3695 * system.h: Poison SLOW_ZERO_EXTEND.
3696 * doc/tm.texi: Remove.
3697 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
3698 * config/arm/arm.h: Likewise.
3699 * config/avr/avr.h: Likewise.
3700 * config/clipper/clipper.h: Likewise.
3701 * config/convex/convex.h: Likewise.
3702 * config/d30v/d30v.h: Likewise.
3703 * config/dsp16xx/dsp16xx.h: Likewise.
3704 * config/elxsi/elxsi.h: Likewise.
3705 * config/fr30/fr30.h: Likewise.
3706 * config/h8300/h8300.h: Likewise.
3707 * config/i370/i370.h: Likewise.
3708 * config/i386/i386.h: Likewise.
3709 * config/m68k/m68k.h: Likewise.
3710 * config/mips/mips.h: Likewise.
3711 * config/ns32k/ns32k.h: Likewise.
3712 * config/pdp11/pdp11.h: Likewise.
3713 * config/pj/pj.h: Likewise.
3714 * config/s390/s390.h: Likewise.
3715 * config/sh/sh.h: Likewise.
3716 * config/stormy16/stormy16.h: Likewise.
3717 * config/v850/v850.h: Likewise.
3718 * config/vax/vax.h: Likewise.
3719 * config/we32k/we32k.h: Likewise.
3721 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
3723 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
3724 (altivec_lvsl): Change constraint to b.
3725 (altivec_lvsr): Same.
3726 (altivec_lvebx): Same.
3727 (altivec_lvehx): Same.
3728 (altivec_lvewx): Same.
3729 (altivec_lvxl): Same.
3730 (altivec_lvx): Same.
3731 (altivec_stvx): Add parallel.
3732 (altivec_stvxl): Same.
3733 (altivec_stvehx): Same.
3734 (altivec_stvebx): Same.
3735 (altivec_stvebx): Same.
3737 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
3739 * config.gcc: Change altivec.h to altivec-defs.h.
3741 * config/rs6000/altivec.h: Delete.
3743 * config/rs6000/altivec-defs.h: Add.
3745 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3747 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
3750 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
3751 less than or equal to eight bytes.
3753 * vax.md (andsi3): Remove constraints and change SET destination
3754 operand type to nonimmediate_operand.
3755 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
3756 when it is a CONST_INT.
3758 2002-01-15 Jason Merrill <jason@redhat.com>
3760 * c-common.def (FILE_STMT): New code.
3761 * c-common.c (statement_code_p): It's a statement.
3762 * c-common.h (stmt_tree_s): Add x_last_filename.
3763 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
3764 (last_expr_filename): New macro.
3765 * c-semantics.c (begin_stmt_tree): Initialize it.
3766 (add_stmt): If the filename changed, also insert a
3768 (expand_stmt): Handle seeing one.
3770 2002-01-15 Eric Christopher <echristo@redhat.com>
3772 * flow.c (propagate_one_insn): Add error message and print out
3775 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
3777 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
3778 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
3779 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
3780 TRAMPOLINE_ALIGNMENT.
3781 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
3783 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
3784 PCC_BITFIELD_TYPE_MATTERS.
3785 * config/interix.h (STDC_VALUE): Remove. Use
3786 STDC_0_IN_SYSTEM_HEADERS.
3787 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
3788 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
3789 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
3791 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
3793 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
3794 not work on this platform currently.
3796 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
3798 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
3799 readonly_warning in _().
3801 2002-01-15 Douglas B Rupp <rupp@gnat.com>
3803 * gcc.c (delete_if_ordinary): Backout previous change.
3805 2002-01-15 Kazu Hirata <kazu@hxi.com>
3807 * config/h8300/h8300.c (print_operand): Remove support for
3808 unused operand characters.
3810 * read-rtl.c: Fix formatting.
3812 * recog.c: Likewise.
3813 * regclass.c: Likewise.
3814 * regmove.c: Likewise.
3815 * reg-stack.c: Likewise.
3816 * reload1.c: Likewise.
3817 * rtlanal.c: Likewise.
3819 2002-01-15 Kazu Hirata <kazu@hxi.com>
3821 * config/i386/i386.c: Fix formatting.
3823 2002-01-15 Jakub Jelinek <jakub@redhat.com>
3825 * c-typeck.c (process_init_element): Don't save_expr
3826 COMPOUND_LITERAL_EXPR if just its initializer will be used.
3828 2002-01-15 David Edelsohn <edelsohn@gnu.org>
3830 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
3831 emit optional traceback table if optimize_size or TARGET_ELF.
3832 * config/rs6000/rs6000.md (prefetch): New.
3834 2002-01-15 Andreas Jaeger <aj@suse.de>
3836 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
3838 2002-01-15 Kazu Hirata <kazu@hxi.com>
3840 * mips-tfile.c: Fix formatting.
3842 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
3844 * unroll.c (final_reg_note_copy): Fix previous commit.
3846 2002-01-14 Kazu Hirata <kazu@hxi.com>
3848 * config/h8300/h8300-protos.h: Remove the prototype for
3850 * config/h8300/h8300.c (eq_operator): Remove.
3852 2002-01-14 Richard Henderson <rth@redhat.com>
3854 * config/i386/i386.md (prefetch): Tidy.
3855 (prefetch_3dnow): Fix locality operand.
3857 2002-01-14 Richard Henderson <rth@redhat.com>
3859 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
3860 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
3862 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
3864 * reload1.c (reload_combine): Pass reg_sum replacement through
3865 copy_rtx in loop performing multiple changes.
3867 2002-01-14 Jakub Jelinek <jakub@redhat.com>
3869 * except.c (remove_unreachable_regions): New.
3870 (free_eh_status): Clear exception_handler_labels.
3871 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
3872 (find_exception_handler_labels): Don't add the same label more than
3874 (remove_exception_handler_label): Don't die if
3875 find_exception_handler_labels hasn't been called for the current
3878 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
3880 * toplev.c (rest_of_compilation): Rebuild jump labels after
3883 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
3885 * doc/extend.texi: Move documentation of X86 built-in functions
3887 * doc/invoke.texi: From here.
3888 * doc/sourcebuild.texi: Document location of documentation for
3889 machine built-in functions.
3891 2002-01-13 Christopher Faylor <cgf@redhat.com>
3893 * cppfiles.c (TEST_THRESHOLD): New macro.
3894 (SHOULD_MMAP): Ditto.
3895 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
3898 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
3900 * unroll.c (final_reg_note_copy): Properly handle
3902 (unroll_loops): Fix LOOP_CONDITION heuristics.
3904 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
3906 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
3907 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
3909 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
3911 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
3914 2002-01-14 Tom Rix <trix@redhat.com>
3916 * config/rs6000/rs6000.md: Fix typo with sradi.
3918 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
3920 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
3921 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
3922 (clrstrdi, clrstrsi): Adapt callers.
3924 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
3926 (movti splitter): Never use register 0 as base register.
3928 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3930 * combine.c (simplify_shift_const): Always generate new rtx
3931 for shift expression instead of reusing given expression.
3933 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3935 * config/alpha/alpha.c (alpha_expand_mov): Don't call
3936 alpha_legitimize_address unless mode is Pmode.
3938 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
3940 * doc/md.texi (Modifiers): Document the '*' constraint for the
3943 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
3944 * doc/extend.texi (Function Attributes): 'interrupt' is valid
3947 2002-01-13 Richard Henderson <rth@redhat.com>
3949 * reload.c (find_reloads): Use a hard reg destination as reload reg
3950 for an input reload of the source.
3952 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3954 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
3957 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
3959 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3960 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
3962 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
3964 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3966 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
3968 2002-01-12 Tom Rix <trix@redhat.com>
3970 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
3973 2002-01-12 Richard Henderson <rth@redhat.com>
3975 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
3977 * doc/invoke.texi: Update Alpha options.
3979 * doc/invoke.texi: Update i386 built-in function lists.
3981 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
3983 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
3984 referencing outside.
3986 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3988 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
3989 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
3990 offsets, and change line folding.
3991 * optabs.c (expand_binop): Remove warnings.
3992 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
3994 2002-01-12 Graham Stott <grahams@redhat.com>
3996 * attribs.c (handle_deprecated_attribute): constify WHAT.
3997 * diagnostic.c (warn_deprecated_use): Add braces, fixes
3998 dangling else warning and constify WHAT.
3999 * except.h (struct function, struct inline_remap): Move
4000 struct tag forward defs before all prototypes.
4001 (duplicate_eh_regions): Whitespace.
4003 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4005 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4006 MODE_BASE_REG_CLASS.
4007 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4009 2002-01-12 Richard Henderson <rth@redhat.com>
4011 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4012 (ix86_expand_vector_move): New.
4013 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4014 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4015 Remove old prefetch builtins. Special case the logicals removed above.
4016 (ix86_expand_builtin): Likewise.
4017 (safe_vector_operand): Use V4SFmode, not TImode.
4018 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4019 (ix86_expand_timode_binop_builtin): New.
4020 * config/i386/i386-protos.h: Update.
4021 * config/i386/i386.h (enum ix86_builtins): Update.
4022 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4023 Use ix86_expand_vector_move in vector move expanders.
4024 (movti_internal, movti_rex64): Add xorps alternative.
4025 (sse_clrv4sf): Rename and adjust from sse_clrti.
4026 (prefetch): Don't work so hard.
4027 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4028 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4029 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4031 2002-01-11 Richard Henderson <rth@redhat.com>
4033 * config/i386/mmintrin.h: New file.
4034 * config/i386/xmmintrin.h: New file.
4035 * config.gcc (i?86-*-*): Add extra_headers.
4036 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4038 (simplify_binary_operation): Handle saturating arithmetic codes.
4039 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4040 not the lowpart subreg.
4041 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4043 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4045 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4047 * conflict.c (conflict_graph_compute): Free regsets when finished.
4048 * ssa.c (compute_coalesced_reg_partition): Likewise.
4050 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4052 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4053 every where we allocate a register.
4055 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4057 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4058 * lcm.c (compute_earliest, compute_farthest): Likewise.
4060 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4062 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4064 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4066 * doc/rtl.texi (Insns): Fix 2 typos.
4068 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4070 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4071 options. Use @table @gcctabopt for MMIX options. Add index
4072 entries for MMIX options. Start new paragraph with first
4073 heading of the machine-dependent options.
4075 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4078 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4079 * combine.c (force_to_mode): Same.
4080 * reload1.c (clear_reload_reg_in_use): Same.
4082 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4084 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4087 2002-01-11 Andreas Jaeger <aj@suse.de>,
4088 Brad Lucier <lucier@math.purdue.edu>
4090 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4093 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4095 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4096 Protect with IN_LIBGCC.
4097 (LINK_EH_SPEC): Add required trailing space.
4099 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4101 * c-tree.h: Move function declarations so that they are listed
4102 under the filename which contains them.
4103 (check_identifier, finish_decl_top_level,
4104 lookup_name_current_level_global, shadow_record_fields): Remove.
4106 2002-01-11 Andreas Jaeger <aj@suse.de>
4108 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4111 2002-01-10 Richard Henderson <rth@redhat.com>
4113 * config/alpha/alpha.c (print_operand): Add 'J'.
4114 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4115 new operand with the sequence number for the lituse. When splitting
4116 the insns, use gen_movdi_er_high_g and generate a sequence number.
4117 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4119 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4121 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4122 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4124 (altivec_expand_builtin): Same.
4125 (altivec_expand_stv_builtin): New.
4127 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4129 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4130 ("altivec_lvehx"): New.
4131 ("altivec_lvewx"): New.
4132 ("altivec_lvxl"): New.
4133 ("altivec_lvx"): New.
4134 ("altivec_stvx"): New.
4135 ("altivec_stvebx"): New.
4136 ("altivec_stvehx"): New.
4137 ("altivec_stvewx"): New.
4138 ("altivec_stvxl"): New.
4140 2002-01-10 Richard Henderson <rth@redhat.com>
4142 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4143 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4144 care not to delete instructions twice.
4146 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4148 * toplev.c: Don't declare environ (it's not used anywhere).
4149 * configure.in: Don't check for declaration of environ.
4150 * config/i386/xm-mingw32.h: Don't #define environ.
4151 * config.in, configure: Regenerate.
4153 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4155 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4156 * configure: Regenerate.
4158 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4159 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4160 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4162 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4163 LIMITS_H_TEST here, not in m68k/x-next.
4164 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4165 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4167 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4168 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4169 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4171 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4172 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4173 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4174 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4175 replacement of quadlib.asm with quadlib.c.
4177 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4178 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4179 config/rs6000/xm-beos.h: Delete file.
4181 * config.gcc: Update to match above changes.
4183 2002-01-10 Kazu Hirata <kazu@hxi.com>
4185 * config/h8300/h8300.h: Fix comment typos.
4186 * config/h8300/h8300.md: Likewise.
4187 * config/h8300/lib1funcs.asm: Likewise.
4189 2002-01-10 Dale Johannesen <dalej@apple.com>
4191 PR optimization/5269
4192 * unroll.c (precondition_loop_p): Make *increment be the correct
4193 sign when n_iterations known, to avoid confusing caller.
4195 2002-01-10 Kazu Hirata <kazu@hxi.com>
4197 * doc/extend.texi (deprecated): Fix a typo.
4199 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4201 * basic-block.h (update_br_prob_note): Declare.
4202 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4203 (try_forward_edges): Care negative frequencies and update note.
4204 (outgoing_edges_match): Tweek conditional merging heuristics.
4205 (try_crossjump_to_edge): use update_br_prob_note.
4206 * cfglayout.c (fixup_reorder_chain): Likewise.
4207 * cfrtl.c (update_br_prob_note): New.
4208 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4210 * i386.c (ix86_decompose_address): Return -1 if address contains
4212 (legitimate_address_p): Require ix86_decompose_address to return 1.
4214 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4215 (cprop_insn): Likewise.
4217 2002-01-10 Kazu Hirata <kazu@hxi.com>
4219 * toplev.c: Fix formatting.
4221 * tree-dump.c: Likewise.
4222 * unroll.c: Likewise.
4223 * unwind-dw2.c: Likewise.
4224 * unwind-dw2-fde.c: Likewise.
4225 * unwind-dw2-fde-glibc.c: Likewise.
4226 * unwind-sjlj.c: Likewise.
4228 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4230 * doc/invoke.texi: Document PDP-11 options.
4232 2002-01-10 Kazu Hirata <kazu@hxi.com>
4234 * config/h8300/h8300.h: Fix formatting.
4236 2002-01-10 Ira Ruben <ira@apple.com>
4238 Add __attribute__ ((deprecated)).
4239 * extend.texi: Document __attribute__ ((deprecated)).
4240 * invoke.texi: Document -Wno-deprecated-declarations.
4241 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4242 * testsuite/gcc.dg/deprecated.c: New C test.
4243 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4244 (c_common_attribute_table): Add "deprecated" entry.
4245 (handle_deprecated_attribute): New function.
4246 * c-decl.c (deprecated_states): New enum.
4247 deprecated_state: State of "deprecated" handling.
4248 (start_decl): Set deprecated_state based on attributes.
4249 (grokdeclarator): Test for deprecated uses, propagate attribute.
4250 * c-typeck.c (build_component_ref): Test for deprecated fields.
4251 (build_external_ref): Test for deprecated primaries.
4252 * diagnostic.c (warn_deprecated_use) New function to issue
4253 warnings about __attribute__ ((depricated)) references.
4254 * flags.h (warn_deprecated_decl): Extern declared for
4255 -W[no-]deprecated-declarations option.
4256 * print-tree.c (print_node): Show deprecated flag status.
4257 * toplev.c (warn_deprecated_decl): Defined.
4258 (W_options): Added "deprecated-declaration".
4259 * toplev.h (warn_deprecated_use): Extern declared.
4260 * tree.h (struct tree_common): Define deprecated_flag.
4261 (TREE_DEPRECATED): New macro to access flag.
4262 * cp/call.c (build_call): Test for deprecated calls.
4263 * cp/class.c (add_implicitly_declared_members): Set global
4264 flag to tell grokdeclarator to not issue deprecated warnings.
4265 * cp/cp-tree.h: Add extern for adding_implicit_members.
4266 * cp/decl.c (deprecated_states): New enum.
4267 (start_decl): Set deprecated_state based on attributes.
4268 (grokdeclarator): Test for deprecated uses, propagate attribute.
4269 * cp/lex.c (do_identifier): Test for deprecated primaries.
4270 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4272 2002-01-10 Ira Ruben <ira@apple.com>
4274 Fix to assign attributes to inline member functions.
4275 * cp/decl.c (start_method): Handle attrlist.
4277 2002-01-10 Kazu Hirata <kazu@hxi.com>
4279 * combine.c (expand_field_assignment): Use subreg_lsb().
4281 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4283 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4284 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4285 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4286 Recurse for any operand of AND as long as constant is non-zero.
4288 2002-01-10 Kazu Hirata <kazu@hxi.com>
4290 * config/h8300/h8300.md: Remove constraints from expanders.
4292 2002-01-10 Kazu Hirata <kazu@hxi.com>
4294 * varasm.c: Fix formatting.
4295 * varray.c: Likewise.
4296 * vmsdbgout.c: Likewise.
4297 * xcoffout.c: Likewise.
4299 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4301 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4302 update edge probabilities to match.
4304 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4306 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4308 * doc/languages.texi, doc/sourcebuild.texi: New files.
4309 * doc/configfiles.texi: Make a subsubsection. Update.
4310 * doc/configterms.texi: Add @node. Remove warning that this isn't
4311 instructions for building GCC.
4312 * doc/makefile.texi: Make a subsection.
4313 * doc/gccint.texi: Update.
4315 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4317 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4319 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4321 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4323 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4325 * optabs.c (expand_fix): Look for wider integer modes first.
4327 * i386.md (mov?f): Avoid the fake const double trick for medium
4329 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4330 (fop_df_4): Disable for SSE compilation.
4332 2002-01-10 Graham Stott <grahams@redhat.com>
4334 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4335 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4337 2002-01-10 Richard Henderson <rth@redhat.com>
4339 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4341 2002-01-10 Richard Henderson <rth@redhat.com>
4343 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4344 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4346 2002-01-10 Kazu Hirata <kazu@hxi.com>
4348 * combine.c (can_combine_p): Fix a comment typo.
4350 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4352 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4353 empty list correctly. Change loop index $t to $f for
4354 consistency with rest of Makefile.
4356 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4358 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4359 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4361 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4362 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4363 (altivec_init_builtins): Same.
4364 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4365 (altivec_expand_binop_builtin): Same.
4366 (altivec_expand_ternop_builtin): Same.
4369 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4370 ("altivec_vctuxs"): Fix typo.
4371 ("altivec_vnmsubfp"): Same.
4372 ("altivec_dssall"): New.
4373 ("altivec_mfvscr"): New.
4374 ("altivec_dss"): New.
4375 ("altivec_lvsl"): New.
4376 ("altivec_lvsr"): New.
4377 ("altivec_dstt"): New.
4378 ("altivec_dstst"): New.
4379 ("altivec_dststt"): New.
4380 ("altivec_dst"): New.
4382 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4383 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4385 2002-01-09 Richard Henderson <rth@redhat.com>
4387 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4389 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4391 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4393 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4395 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4397 2002-01-09 Kazu Hirata <kazu@hxi.com>
4399 * read-rtl.c: Fix formatting.
4401 * regclass.c: Likewise.
4402 * regrename.c: Likewise.
4403 * reg-stack.c: Likewise.
4404 * reload1.c: Likewise.
4405 * reload.c: Likewise.
4408 2002-01-09 Kazu Hirata <kazu@hxi.com>
4410 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4411 to extract items in the expr_list chain.
4413 2002-01-09 Richard Henderson <rth@redhat.com>
4415 * config/vax/vax.c (vax_rtx_cost): Never abort.
4417 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4419 2002-01-09 Jan Hubicka <jh@suse.cz>
4421 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4423 2002-01-09 Richard Henderson <rth@redhat.com>
4425 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4426 Unify code from various alternatives.
4428 2002-01-09 Richard Henderson <rth@redhat.com>
4430 * regrename.c (copy_value): Ignore the copy if the source register
4431 is present in the value chain with a narrower mode.
4433 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4435 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4436 for the c4x target. Also improve layout.
4438 2002-01-09 Richard Henderson <rth@redhat.com>
4440 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4441 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4442 to match insn patterns.
4444 2002-01-09 Richard Henderson <rth@redhat.com>
4446 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4447 (copyprop_hardreg_forward_1): Likewise.
4449 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4451 * pa.md (decrement_and_branch_until_zero): Change predicate for
4452 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4454 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4456 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4457 gets undefined. For Darwin.
4459 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4461 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4463 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4465 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4467 2002-01-08 Richard Henderson <rth@redhat.com>
4469 * regrename.c (copy_value): Ignore overlapping copies.
4471 2002-01-08 Richard Henderson <rth@redhat.com>
4473 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4474 as needed to avoid shared structure.
4476 2002-01-08 Kazu Hirata <kazu@hxi.com>
4478 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4481 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4483 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4484 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4485 documentation of obsolete macros.
4486 * system.h: Poison these macros.
4487 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4488 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4489 config/c4x/c4x.h, config/clipper/clipper.h,
4490 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4491 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4492 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4493 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4494 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4495 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4496 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4497 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4498 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4499 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4500 config/sparc/sparc.h, config/stormy16/stormy16.h,
4501 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4502 definitions and commented out definitions of obsolete macros.
4503 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4504 of MAX_INT_TYPE_SIZE.
4506 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4508 * config/s390/s390.c (s390_preferred_reload_class): Never
4509 return ADDR_REGS if it isn't a subset of the given class.
4510 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4511 FP_REGS, but all superclasses as well.
4513 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4515 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4516 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4517 must not be a const_int.
4519 2002-01-08 Richard Henderson <rth@redhat.com>
4521 * Makefile.in (toplev.o): Depend on options.h.
4522 (gcc.o): Depend on specs.h.
4524 2002-01-08 Jakub Jelinek <jakub@redhat.com>
4526 * expr.c (store_expr): Convert VOIDmode constants back to target's
4529 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4531 * doc/invoke.texi: Markup gcc as @command. Refer to
4532 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4533 of http://gcc.gnu.org/thanks.html.
4535 2002-01-08 Dale Johannesen <dalej@apple.com>
4537 * config/rs6000/rs6000.md: Add missing int register
4538 target case to movdf_low.
4540 2002-01-08 Zack Weinberg <zack@codesourcery.com>
4542 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4543 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
4544 (cppinit.o): Depend on except.h.
4545 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4546 s-specs): New rules.
4548 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4549 Don't create specs.h/options.h/gencheck.h here. Remove
4550 unnecessary variable settings from last argument of AC_OUTPUT.
4551 * config.in, configure: Regenerate.
4552 * intl.c: Hardcode package name as "gcc".
4554 * cppinit.c: Include except.h.
4555 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4557 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4558 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4559 (!)USING_SJLJ_EXCEPTIONS.
4560 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4562 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4564 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
4565 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
4566 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
4567 documentation of obsolete macros.
4568 * system.h: Poison these macros.
4569 * config/d30v/d30v.h, config/ns32k/encore.h,
4570 config/stormy16/stormy16.h: Remove definitions and commented out
4571 definitions of obsolete macros.
4573 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
4575 * objc/objc-act.c (handle_class_ref): Mark the declaration of
4576 %sobjc_class_ref_%s as used - to prevent unwanted compiler
4579 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4581 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
4582 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
4583 to insn adjusting stack/frame pointer.
4584 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
4585 accept operands that cause the insn to be non-splittable.
4587 2002-01-08 Graham Stott <grahams@redhat.com>
4589 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
4590 (C_TYPE_FIELDS_VOLATILE): Likewise.
4591 (C_TYPE_BEING_DEFINED): Likewise.
4592 (C_IS_RESERVED_WORD): Likewise.
4593 (C_TYPE_VARIABLE_SIZE): Likewise.
4594 (C_DECL_VARIABLE_SIZE): Likewise.
4595 (C_MISSING_PROTOTYPE_WARNED): Likewise.
4596 (C_SET_EXP_ORIGINAL_CODE): Likewise.
4597 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
4599 (C_DECL_ANTICIPATED): Likewise.
4600 (c_build_type_variant): Add parenthesis.
4602 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4604 * gcc.c (option_map): Remove --version.
4605 (process_command): Handle -fversion following the GNU Coding
4606 Standards. Partially addresses PR other/704.
4608 2002-01-08 Graham Stott <grahams@redhat.com>
4610 * combine.c (combine_instructions): Fix typo.
4612 2002-01-08 Graham Stott <grahams@redhat.com>
4614 * debug.h: Use "tree" and "rtx" throughout.
4616 * debug.c: Likewise.
4618 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
4620 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
4621 constant pool, use the pool's version of the symbol instead.
4623 2002-01-07 Richard Henderson <rth@redhat.com>
4625 * regrename.c (find_oldest_value_reg): Ignore the value chain if
4626 the original register was copied in a mode with a fewer number of
4627 hard registers than the desired mode.
4628 (copyprop_hardreg_forward_1): Likewise.
4629 (debug_value_data): Fix loop test.
4630 * toplev.c (parse_options_and_default_flags): Reenable
4631 -fcprop-registers at -O1.
4633 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4635 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
4636 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
4638 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
4641 * config/rs6000/rs6000.md: Add altivec predicate patterns.
4643 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4645 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
4646 (pa_output_function_prologue): Output local label at the beginning of
4647 the prologue when profiling.
4648 (hppa_profile_hook): Use the local label rather than the function label.
4649 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
4651 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4653 * config/rs6000/rs6000.c (print_operand): Remove extra space.
4654 (altivec_expand_unop_builtin): Fix thinko.
4655 (altivec_expand_binop_builtin): Same.
4656 (altivec_expand_ternop_builtin): Same.
4657 (altivec_expand_builtin): Same.
4659 2002-01-07 Richard Henderson <rth@redhat.com>
4661 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
4663 2002-01-07 Jason Merrill <jason@redhat.com>
4665 * unwind-dw2.c (execute_cfa_program): Use < again.
4667 2002-01-07 Jakub Jelinek <jakub@redhat.com>
4669 * predict.c (combine_predictions_for_insn): Avoid division by zero.
4671 2002-01-07 Jakub Jelinek <jakub@redhat.com>
4673 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
4674 Don't allow -1 - x -> ~x simplifications in the first pass.
4676 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4678 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
4680 (altivec_expand_binop_builtin): Same.
4681 (altivec_expand_unop_builtin): Same.
4682 (print_operand): Fix typo.
4683 (bdesc_1arg): Add vupk* variants.
4685 * rs6000.h (rs6000_builtins): Add vupk* enums.
4687 * rs6000.md: Add altivec_vupk* variants.
4689 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
4691 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
4692 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
4693 and last update dates.
4695 2002-01-07 Janis Johnson <janis187@us.ibm.com>
4697 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
4699 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
4701 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
4702 * config/avr/avr.h (CPP_SPEC): Likewise.
4703 (LINK_SPEC): Likewise.
4704 (CRT_BINUTILS_SPECS): Likewise.
4705 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4706 * doc/invoke.texi (AVR Options): Document them.
4708 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
4710 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
4713 2002-01-07 Graham Stott <grahams@redhat.com>
4715 * config/i386/i386.h: Update copyright date.
4716 (HALF_PIC_PTR): Add parenthesis.
4717 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
4718 (CONSTANT_ALIGNMENT): Add parenthesis.
4719 (DATA_ALIGNMENT): Likewise.
4720 (LOCAL_ALIGNMENT): Likewise.
4721 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
4722 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
4723 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
4724 (HARD_REGNO_NREGS): Add paranethesis.
4725 (VALID_SSE_REG_MODE): Whitespace.
4726 (VALID_MMX_REG_MODE): Whitespace.
4727 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
4728 (ix86_hard_regno_mode_ok): Add parenthesis.
4729 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
4730 (RETURN_IN_MEMORY): Whitespace.
4731 (N_REG_CLASSES): Add parenthesis.
4732 (INTEGER_CLASS_P): Add parenthesis and wrap.
4733 (FLOAT_CLASS_P): Likewise.
4734 (SSE_CLASS_P): Likewise.
4735 (MMX_CLASS_P): Likewise.
4736 (MAYBE_INTEGER_CLASS_P): Likewise.
4737 (MAYBE_FLOAT_CLASS_P): Likewise.
4738 (MAYBE_SSE_CLASS_P): Likewise.
4739 (MAYBE_MMX_CLASS_P): Likewise.
4740 (Q_CLASS_P): Likewise.
4741 (GENERAL_REGNO_P): Uppercase macro parameter.
4742 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
4743 (FP_REGNO_P): Likewise.
4744 (ANY_FP_REGNO_P): Uppercase macro parameter.
4745 (SSE_REGNO_P): Likewise.
4746 (SSE_REGNO): Likewise.
4747 (SSE_REG_P): Likewise.
4748 (SSE_FLOAT_MODE_P): Likewise.
4749 (MMX_REGNO_P): Likewise.
4750 (MMX_REG_P):Likewise.
4751 (STACK_REG_P): Likewise.
4752 (NON_STACK_REG_P): Likewise.
4753 (STACK_TOP_P): Likewise.
4754 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
4755 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
4756 (SECONDARY_MEMORY_NEEDED): Likewise.
4757 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
4758 (MD_ASM_CLOBBERS): Whitespace and wrap.
4759 (MUST_PASS_IN_STACK): Whitespace and wrap.
4760 (RETURN_POPS_ARGS): Add parenthesis.
4761 (INIT_CUMULATIVE_ARGS): Likewise.
4762 (FUNCTION_ARG): Likewise.
4763 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
4764 (SETUP_INCOMING_VARARGS): Likewise.
4765 (BUILD_VA_LIST_TYPE): Add parenthesis.
4766 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
4768 (EXPAND_BUILTIN_VA_ARG): Likewise.
4769 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
4770 (INITIALIZE_TRAMPOLINE): Add parenthesis.
4771 (INITIAL_ELIMINATION_OFFSET): Likewise.
4772 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
4773 (REGNO_OK_FOR_BASE_P): Likewise.
4774 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
4775 (REGNO_OK_FOR_DIREG_P): Likewise.
4776 (REG_OK_FOR_INDEX_P): Whitespace.
4777 (REG_OK_FOR_BASE_P): Whitespace.
4778 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
4780 (FIND_BASE_TERM): Fix typo.
4781 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
4782 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
4783 (SYMBOLIC_CONST; Whitespace.
4784 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
4785 (ENCODE_SECTION_INFO): Whitespace.
4786 (FINALIZE_PIC): Remove do { ... } while (0).
4787 (PROMOTE_MODE): Wrap in do { ... } while (0).
4788 (CONST_COSTS): Whitespace.
4789 (RTX_COSTS): Add paramethesis, whitespace and wrap.
4790 (REGISTER_MOVE_COST): Add parenthesis.
4791 (MEMORY_MOVE_COST): Likewise.
4792 (EXTRA_CC_MODES): Whitespace.
4793 (SELECT_CC_MODE): Add parenthesis and whitespace.
4794 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
4795 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
4796 (ASM_OUTPUT_LABEL): Add paramethesis.
4797 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
4798 (ASM_OUTPUT_REG_POP): Likewise.
4799 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
4800 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4802 * config/i386/i386.c: Update copyright.
4803 (CHECK_STACK_LIMIT): Add parenthesis.
4804 (AT_BP): Uppercase macro parameter.
4805 (x86_64_int_parameter_registers): Constify.
4806 (x86_64_int_return_registers): Likewise.
4807 (ix86_compare_op0): Use rtx.
4808 (construct_container): Constify INTREG parameter.
4809 (function_arg): Use rtx.
4811 * diagnostic.h: Update copyright date.
4812 (output_buffer_state): Add parenthesis.
4813 (output_buffer_format_args): Likewise.
4815 * combine.c (combine_instructions): Replace XEXP (links, 0)
4818 2002-01-06 H.J. Lu <hjl@gnu.org>
4820 * cfgcleanup.c (thread_jump): Fix 2 typos.
4822 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
4824 * config.gcc: Add support for --enable-altivec.
4826 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
4828 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
4830 2002-01-06 Jakub Jelinek <jakub@redhat.com>
4832 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
4833 __objc_class_name_*.
4835 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
4837 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
4839 2002-01-06 Richard Henderson <rth@redhat.com>
4841 * reorg.c (emit_delay_sequence): Remove death notes, not merely
4842 nop them out. Increment label reference count for REG_LABEL.
4843 (fill_slots_from_thread): Frob label reference count around
4844 delete_related_insns.
4846 2002-01-05 Richard Henderson <rth@redhat.com>
4848 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
4851 2002-01-05 Richard Henderson <rth@redhat.com>
4853 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
4854 * integrate.c (output_inline_function): Likewise.
4855 * toplev.c (rest_of_compilation): Do it here instead. Move call
4856 to remove_unnecessary_notes after emitting abstract instance.
4857 Force an emitted nested function to have its parent emited as well.
4858 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
4860 (rtl_for_decl_location): Do not look at reload data structures
4861 before reload has run.
4863 2002-01-05 Kazu Hirata <kazu@hxi.com>
4865 * cse.c: Fix formatting.
4866 * dwarf2asm.c: Likewise.
4867 * dwarf2out.c: Likewise.
4868 * explow.c: Likewise.
4869 * expmed.c: Likewise.
4870 * function.c: Likewise.
4872 * gencheck.c: Likewise.
4873 * genrecog.c: Likewise.
4874 * ggc-common.c: Likewise.
4875 * ggc-page.c: Likewise.
4876 * global.c: Likewise.
4878 2002-01-05 Kazu Hirata <kazu@hxi.com>
4880 * combine.c: Fix formatting.
4882 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
4885 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
4887 2002-01-05 David Edelsohn <edelsohn@gnu.org>
4889 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
4890 as 1 for __powerpc64__ as well.
4892 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
4894 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
4897 2002-01-05 Daniel Berlin <dan@dberlin.org>
4899 * lcm.c: Revert change, due to performance regression it causes on
4900 SPEC because it's slightly more conservative (sigh, I hate
4903 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
4905 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
4907 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
4909 * doc/cppinternals.texi: Update.
4911 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
4913 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
4914 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
4916 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
4917 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
4918 kludge for pre-october-14th mmix versions to handle new-found bug
4919 with PUSHJ/PUSHGO and the register stack.
4920 * config/mmix/mmix.h (struct machine_function): Rename member
4921 has_call_value_without_parameters to has_call_without_parameters.
4922 All referers changed.
4923 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
4924 TARGET_MASK_BRANCH_PREDICT): New macros.
4925 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
4926 -mno-reg-stack-fill-bug-workaround.
4927 * config/mmix/mmix.md ("call"): Set struct machine member
4928 has_call_without_parameters.
4930 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
4932 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
4934 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
4936 * cfgcleanup.c: Include tm_p.h
4937 (mark_effect): Fix handling of hard register; fix handling of SET
4939 2002-01-04 Kazu Hirata <kazu@hxi.com>
4941 * config/h8300/h8300.md (anonymous patterns): Check that
4942 operands are registers before using REGNO on them.
4944 2002-01-03 Roland McGrath <roland@frob.com>
4946 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
4948 2002-01-04 Jakub Jelinek <jakub@redhat.com>
4950 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
4951 * c-common.h (genrtl_expr_stmt_value): Likewise.
4952 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
4953 (expand_expr_stmt_value): Add maybe_last argument.
4954 Don't warn about statement with no effect if it is the last statement
4955 in expression statement.
4956 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
4957 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
4958 expand_expr_stmt_value.
4959 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
4960 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
4961 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
4962 as maybe_last to expand_expr_stmt_value.
4964 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
4966 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
4967 be passed in, do not build it.
4968 (c_begin_if_stmt): New function.
4969 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4970 * c-common.h (c_expand_start_cond): Update prototype.
4971 (c_begin_if_stmt): Prototype new function.
4972 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
4973 * c-parse.in (if_prefix): Use c_begin_if_stmt,
4974 c_begin_while_stmt and c_finish_while_stmt_cond.
4976 2002-01-04 William Cohen <wcohen@redhat.com>
4978 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
4979 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
4980 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
4981 * config/pa/som.h (ASM_FILE_START): Likewise.
4983 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
4985 * lcm.c: Include df.h.
4986 Add available_transfer_function prototype.
4987 (compute_available): Rework to use iterative dataflow framework.
4988 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
4989 with bb_info in df.h
4990 (available_transfer_function): New function.
4992 * Makefile.in (lcm.o): add df.h to dependencies.
4994 2002-01-04 Richard Henderson <rth@redhat.com>
4996 * config/alpha/alpha.c (some_operand): Accept HIGH.
4997 (input_operand): Likewise; accept simple references to globals.
4998 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
4999 (alpha_const_double_ok_for_letter_p): Likewise.
5000 (alpha_extra_constraint): Likewise.
5001 (alpha_preferred_reload_class): Likewise. Do not force
5002 symbolic constants to memory.
5003 (alpha_legitimate_address_p): Accept simple references
5004 to small_symbolic_operand.
5005 (alpha_legitimize_address): New arg scratch. Be prepared to be
5006 called when no_new_pseudos. Emit simple symbolic references.
5007 Split integers into low, high, and rest.
5008 (alpha_expand_mov): Use alpha_legitimize_address.
5009 (some_small_symbolic_mem_operand): New.
5010 (split_small_symbolic_mem_operand): New.
5011 * config/alpha/alpha-protos.h: Update.
5012 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5013 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5014 (EXTRA_CONSTRAINT): Likewise.
5015 (PREFERRED_RELOAD_CLASS): Likewise.
5016 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5017 (PREDICATE_CODES): Update.
5018 * config/alpha/alpha.md: New post-reload splitters to convert
5019 simplfied symbolic operands to the form that references $29.
5020 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5021 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5023 2002-01-03 Richard Henderson <rth@redhat.com>
5025 * local-alloc.c (function_invariant_p): Update commentary.
5027 2002-01-04 H.J. Lu <hjl@gnu.org>
5029 * toplev.c (rest_of_compilation): Fix a typo when calling
5032 2002-01-03 Kazu Hirata <kazu@hxi.com>
5034 * c-common.c: Fix formatting.
5035 * diagnostic.c: Likewise.
5036 * doloop.c: Likewise.
5037 * dwarf2out.c: Likewise.
5039 2002-01-03 Kazu Hirata <kazu@hxi.com>
5041 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5042 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5044 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5046 * cpperror.c: Update comments and copyright.
5047 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5048 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5050 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5052 * collect2.c (main): Use strcmp when testing for "-shared".
5054 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5056 * cppmacro.c: Don't include intl.h. Update comments.
5057 (new_number_token): Allocate enough buffer for 64-bit unsigned
5058 integers; update prototype.
5059 * cppmain.c: Update comments.
5061 2002-01-03 William Cohen <wcohen@redhat.com>
5063 * function.h (struct function): Add profile.
5064 (current_function_profile): New.
5065 doc/extend.texi: Update documentation.
5066 * final.c (final_start_function): Use current_function_profile
5067 instead of profile_flag.
5068 (profile_after_prologue): Likewise.
5069 * function.c (expand_function_start): Likewise.
5070 (expand_function_start): Likewise.
5071 * config/alpha/alpha.c (direct_call_operand):
5072 (alpha_does_function_need_gp): Likewise.
5073 (alpha_expand_prologue): Likewise.
5074 * config/arm/arm.c (arm_expand_prologue): Likewise.
5075 thumb_expand_prologue: Likewise.
5076 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5077 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5078 (fr30_expand_prologue): Likewise.
5079 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5080 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5081 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5082 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5083 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5084 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5085 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5086 (m32r_expand_prologue): Likewise.
5087 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5088 (m88k_expand_prologue): Likewise.
5089 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5090 * config/mips/mips.c (compute_frame_size): Likewise.
5091 (mips_expand_prologue): Likewise.
5092 (mips_can_use_return_insn): Likewise.
5093 * config/pa/elf.h (ASM_FILE_START): Likewise.
5094 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5095 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5096 * config/pa/som.h (ASM_FILE_START): Likewise.
5097 * config/romp/romp.c (romp_using_r14): Likewise.
5098 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5099 (rs6000_stack_info): Likewise.
5100 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5101 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5102 * config/v850/v850.c (compute_register_save_size): Likewise.
5104 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5106 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5107 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5109 2002-01-03 Turly O'Connor <turly@apple.com>
5111 * darwin.c (machopic_output_possible_stub_label): Don't generate
5112 stub routines for pseudo-stubs which we've just defined.
5114 2002-01-03 Kazu Hirata <kazu@hxi.com>
5116 * builtins.c: Fix formatting.
5117 * c-typeck.c: Likewise.
5118 * combine.c: Likewise.
5122 2002-01-03 Andreas Schwab <schwab@suse.de>
5124 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5125 and return true if _cpp_push_next_buffer pushed a new include
5127 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5128 _cpp_pop_file_buffer did not push a new file.
5129 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5131 2002-01-02 Eric Christopher <echristo@redhat.com>
5133 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5134 FIND_REG_INC_NOTE call. Update copyright.
5135 * loop.c (canonicalize_condition): Ditto.
5136 * reorg.c (delete_scheduled_jump): Ditto.
5138 2002-01-03 Kazu Hirata <kazu@hxi.com>
5140 * gcse.c: Fix formatting.
5142 2002-01-03 Graham Stott <grahams@redhat.com>
5144 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5145 forward defs for struct tags rtx_def, union_tree, rtvec_def
5146 also output corresponding typedefs for rtx, tree, and rtvec.
5148 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5149 rtvec_def along with corresponding typedefs for rtx, tree, and
5150 rtvec to config.h, hconfig.h, tconfig.h.
5152 2002-01-03 Graham Stott <grahams@redhat.com>
5154 * tree.h: Update copyright date.
5155 (IS_EXPR_CODE_CLASS): Add parenthesis.
5156 (TREE_SET_CODE): Add whitespace.
5157 (TREE_CHECK): Add parenthesis.
5158 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5159 (CST_OR_CONSTRUCTOR_CHECK):
5160 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5161 (TREE_SYMBOL_REFERENCED): Whitespace.
5162 (INT_CST_LT): Likewise.
5163 (INT_CST_LT_UNSIGNED): Likewise.
5164 (tree_real_cst): Unwrap comment.
5165 (tree_string): Likewise.
5166 (tree_complex): Likewise.
5167 (IDENTIFIER_POINTER): correct cast.
5168 (SAVE_EXPR_CONTEXT): Whitespace.
5169 (EXPR_WFL_FILENAME_NODE): Likewise.
5170 (EXPR_WFL_FILENAME): Remove parenthesis.
5171 (DECL_ORIGIN): Add parenthesis.
5172 (DECL_FROM_INLINE): Use NULL_TREE.
5173 (build_int_2): Whitespace.
5174 (build_type_variant): Add parenthesis.
5176 * gcc/jcf-parse.c: Update copyright date.
5177 (yyparse): Constify resource_filename.
5179 2002-01-03 Graham Stott <grahams@redhat.com>
5181 * rtl.h: Update copyright date.
5182 (RTL_CHECK1): Wrap long line.
5183 (RTL_CHECK2): Likewise.
5184 (RTL_CHECKC1): Wrap long line and whitespace.
5185 (RTL_CHECKC2): Likewise.
5186 (XWINT): Whitespace.
5192 (XBITMAP): Likewise.
5203 (X0BITMAP): Likewise.
5205 (X0BBDEF): Likewise.
5206 (X0ADVFLAGS): Likewise.
5207 (X0CSELIB): Likewise.
5208 (X0MEMATTR): Likewise.
5216 (XCBITMAP): Likewise.
5218 (XCBBDEF): Likewise.
5219 (XCADVFLAGS): Likewise.
5220 (XCCSELIB): Likewise.
5222 (INSN_UID): Likewise.
5223 (PREV_INSN): Likewise.
5224 (PATTERN): Likewise.
5225 (INSN_CODE): Likewise.
5226 (PUT_REG_NOTE_KIND): Likewise.
5227 (CODE_LABEL_NUMBER): Likewise.
5228 (NOTE_SOURCE_FILE): Likewise.
5229 (NOTE_BLOCK): Likewise.
5230 (NOTE_EH_HANDLER): Likewise.
5231 (NOTE_RANGE_INFO): Likewise.
5232 (NOTE_LIVE_INFO): Likewise.
5233 (NOTE_BASIC_BLOCK): Likewise.
5234 (NOTE_EXPECTED_VALUE): Likewise.
5235 (NOTE_LINE_NUMBER): Likewise.
5236 (LABEL_NAME): Likewise.
5237 (LABEL_NUSES): Likewise.
5238 (LABEL_ALTERNATE_NAME): Likewise.
5239 (ADDRESSOF_DECL): Likewise.
5240 (JUMP_LABEL): Likewise.
5241 (LABEL_NEXTREF): Likewise.
5243 (ORIGINAL_REGNO: Likewise.
5244 (HARD_REGISTER_NUM_P): Add parenthesis.
5245 (SUBREG_REG): Whitespace.
5246 (SUBREG_BYTE): Likewise.
5247 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5248 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5249 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5250 (ASM_OPERANDS_INPUT_VEC): Likewise.
5251 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5252 (ASM_OPERANDS_INPUT): Likewise.
5253 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5254 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5255 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5256 (ASM_OPERANDS_INPUT_MODE): Likewise.
5257 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5258 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5259 (MEM_SET_IN_STRUCT_P): Minor reformat.
5260 (TRAP_CONDITION): Whitespace.
5261 (TRAP_CODE): Likewise.
5262 (COND_EXEC_TEST): Likewise.
5263 (COND_EXEC_CODE): Likewise.
5264 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5265 (PHI_NODE_P): Add parenthesis.
5266 (plus_constant): Whitespace and add parenthesis.
5268 2002-01-03 Kazu Hirata <kazu@hxi.com>
5270 * config/avr/avr.c: Fix comment typos.
5271 * config/c4x/c4x.md: Likewise.
5272 * config/dsp16xx/dsp16xx.h: Likewise.
5273 * config/dsp16xx/dsp16xx.md: Likewise.
5274 * config/i386/i386.md: Likewise.
5275 * config/ia64/ia64.c: Likewise.
5276 * config/m32r/m32r.h: Likewise.
5277 * config/m68hc11/m68hc11.md: Likewise.
5278 * config/mmix/mmix.c: Likewise.
5279 * config/mn10200/mn10200.c: Likewise.
5280 * config/romp/romp.c: Likewise.
5281 * config/sh/sh.c: Likewise.
5282 * config/stormy16/stormy16.c: Likewise.
5283 * config/stormy16/stormy16.h: Likewise.
5284 * config/stormy16/stormy16.md: Likewise.
5286 2002-01-03 Graham Stott <grahams@redhat.com>
5288 * loop.h: Update copyright date.
5289 (LOOP_MOVABLES): Fix typo.
5290 (LOOP_REGS): Likewise.
5291 (LOOP_IVS): Likewise.
5293 2002-01-03 Graham Stott <grahams@redhat.com>
5295 * cppinit.c: Update copyright date.
5296 Don't include output.h
5297 * Makefile.in: Update copyright date.
5300 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5303 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5304 (-pthread) Add to RS/6000 options.
5306 2002-01-02 Kazu Hirata <kazu@hxi.com>
5308 * except.c: Fix comment typos.
5310 * varasm.c: Likewise.
5311 * doc/tm.texi: Fix a typo.
5313 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5315 * c-typeck.c (output_init_element): Allow initializing static storage
5316 duration objects with compound literals.
5318 2002-01-02 Richard Henderson <rth@redhat.com>
5320 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5323 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5325 * gcc.c (default_compilers): Const-ify.
5326 * mips-tdump.c (stab_names): Likewise.
5327 * mips-tfile.c (map_coff_types, map_coff_storage,
5328 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5329 pseudo_ops_t, pseudo_ops): Likewise.
5330 * protoize.c (default_include): Likewise
5332 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5333 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5334 Add array size in declaration.
5335 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5336 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5337 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5338 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5339 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5340 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5341 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5342 emtens, make_nan): Const-ify.
5343 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5344 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5346 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5348 * config.gcc (ia64-*-*): Set extra_headers.
5349 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5350 * config/alpha/t-osf: Remove.
5351 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5353 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5355 * config/rs6000/t-aix43: Revert previous change.
5357 2002-01-02 Jason Merrill <jason@redhat.com>
5359 * c-decl.c (c_expand_body): Call outlining_inline_function when
5360 emitting an inline function out of line.
5362 2002-01-02 Richard Henderson <rth@redhat.com>
5364 * dwarf2out.c (limbo_die_node): Add created_for member.
5365 (new_die): New argument created_for. Update all callers.
5366 (mark_limbo_die_list): New.
5367 (dwarf2out_init): Register limbo_die_list as a root.
5368 (dwarf2out_finish): Force insert limbo dies into their function
5371 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5374 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5376 2002-01-02 Kazu Hirata <kazu@hxi.com>
5378 * config/h8300/fixunssfsi.c: Update copyright.
5381 * config/h8300/h8300.c: Update copyright.
5384 2002-01-02 Kazu Hirata <kazu@hxi.com>
5386 * config/romp/romp.c: Fix comment formatting.
5387 * config/romp/romp.h: Likewise.
5388 * config/romp/romp.md: Likewise.
5389 * config/s390/s390.c: Likewise.
5390 * config/stormy16/stormy16.c: Likewise.
5391 * config/stormy16/stormy16.h: Likewise.
5393 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5395 * c-common.h (genrtl_expr_stmt_value): Declare.
5396 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5397 (genrtl_goto_stmt_value): ... this new function. Pass new
5398 argument down to expand_expr_stmt_value, taking
5399 TREE_ADDRESSABLE into account.
5400 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5401 STMT_EXPR as addressable, i.e., one whose result we want.
5402 * expr.c (expand_expr): Don't save expression statement value
5403 of labeled_blocks or loop_exprs.
5404 * stmt.c (expand_expr_stmt): Redirect to...
5405 (expand_expr_stmt_value): ... this new function. Use new
5406 argument to tell whether to save expression value.
5407 (expand_end_stmt_expr): Reset last_expr_type and
5408 last_expr_value if we don't have either.
5409 * tree-inline.c (declare_return_variable): Mark its use
5410 statement as addressable.
5411 * tree.h: Document new use of TREE_ADDRESSABLE.
5412 (expand_expr_stmt_value): Declare.
5414 2002-01-01 Tom Rix <trix@redhat.com>
5416 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5417 rs6000_emit_allocate_stack.
5419 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5421 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5422 ${srcdir}/ginclude/ to every entry in extra_headers.
5423 * configure: Regenerate.
5424 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5425 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5426 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5427 * ginclude/proto.h: Rename to config/convex/proto.h.
5429 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5431 * attribs.c (handle_vector_size_attribute): Use host_integerp
5432 and tree_int_cst; remove warnings.
5433 * caller-save.c (insert_restore): Add cast to get rid of warning.
5434 (insert_save): Likewise.
5435 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5436 * regmove.c (find_matches): Add temporary var to kill a warning.
5438 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5440 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5441 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5442 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5443 (vms-dwarf2eh.o): Add Makefile rule.
5444 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5445 * config/alpha/vms-dwarf2eh.asm: New file.
5447 * gcc.c (delete_if_ordinary): Delete all versions.
5449 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5451 * config/mmix/mmix.md: Update FIXME to not mention
5453 (MMIX_rJ_REGNUM): New define_constants constant.
5454 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5455 "*movdicc_real"): Adjust contraints formatting.
5456 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5457 for branch prediction.
5458 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5460 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5461 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5462 number. Delete related FIXMEs.
5463 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5464 from number to MMIX_rJ_REGNUM.
5465 (TARGET_MASK_BRANCH_PREDICT): New.
5466 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5467 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5468 value. Add -mbranch-predict and -mno-branch-predict.
5469 (TARGET_VERSION): Drop date.
5470 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5471 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5472 for finding out global symbols.
5473 (mmix_asm_output_labelref): Revert condition for global symbol.
5474 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5475 (mmix_print_operand_punct_valid_p): A '+' is valid.
5477 See ChangeLog.6 for earlier changes.