1 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
3 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
4 (func_table): Change type from char ** to vms_func_ref.
5 (write_rtnbeg): Update to reflect func_table change. Use
6 fde->funcdef_number instead of rtnnum in output.
7 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
9 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
10 Richard Henderson <rth@redhat.com>
14 * c-common.c (vector_types_convertible_p): New function.
15 * c-typeck.c (comptypes): Recurse on vector types.
16 (convert_for_assignment): Use vector_types_convertible_p.
17 (digest_init): Use vector_types_convertible_p to check
18 validness of constant vector initializers; otherwise treat
20 * tree.c (make_or_reuse_type): New.
21 (build_common_tree_nodes): Use it.
22 * cp/call.c (standard_conversion): Likewise.
23 * cp/typeck.c (comptypes): Recurse on vector types.
24 (convert_for_assignment): Use vector_types_convertible_p.
25 * config/rs6000/rs6000.c (build_opaque_vector_type):
27 (rs6000_init_builtins): Use it.
29 2004-05-04 Chris Demetriou <cgd@broadcom.com>
31 * config/mips/mips.c (override_options): Default to no
32 generation of branch-likely operations when tuning for
33 CPUs where they tend to have a negative performance impact
36 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38 * expr.c (store_constructor_field): Don't call store_constructor
39 if bitsize is not a multiple of a byte.
41 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
43 * reload1.c (inherit_piecemeal_p): New function.
44 (emit_reload_insns): When reloading a group of hard registers, use
45 inherit_piecemeal_p to decide whether the values of individual hard
46 registers can be inherited.
48 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
50 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
51 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
52 * config/t-linux (LIB2ADDEHDEP): Likewise.
54 2004-05-04 Paul Brook <paul@codesourcery.com>
56 * config/arm/crti.asm: Push an even number of registers.
57 * config/arm/crtn.asm: And restore them. Load via sp.
59 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
61 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
62 Collect overhead information.
63 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
64 parameter and pass it through.
65 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
66 MEM_STAT_DECL parameter and pass it through.
67 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
68 MEM_STAT_DECL parameter and pass it through.
70 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
72 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
74 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
76 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
77 rs6000_hard_regno_nregs.
79 2004-05-03 Eric Christopher <echristo@redhat.com>
81 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
82 prologue insn instead of setting up call.
83 (s390_emit_epilogue): Ditto.
84 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
85 (define_constants): Add numbers for above patterns.
87 2004-05-03 Eric Christopher <echristo@redhat.com>
89 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
90 * config/s390/s390.c (s390_conditional_register_usage): ...here.
91 * config/s390/s390-protos.h: Prototype.
93 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
95 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
98 2004-05-03 Eric Christopher <echristo@redhat.com>
100 * config/mips/mips.md: Fix branch length attribute definition.
102 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
104 * config.gcc: Remove --enable-altivec support.
106 * config/rs6000/altivec-defs.h: Remove.
108 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
110 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
111 * fixinc/fixincl.x: Regenerate.
113 2004-05-03 Uros Bizjak <uros@kss-loka.si>
115 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
117 (log?f2, log10?f2, log2?f2): Reimplement expanders with
119 (*fxtractsf3, *fxtractdf3): Remove insn definition.
120 (logb?f2): Reimplement expanders with float_truncate insn.
122 2004-05-03 Graham Stott <graham.stott@btinternet.com>
125 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
126 force_type_die for CONST_DECL.
128 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
129 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
131 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
132 tm-dwarf2.h to tm_file.
133 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
134 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
135 (ASM_DEBUG_SPEC): Delete.
137 2004-05-03 Uros Bizjak <uros@kss-loka.si>
139 * optabs.h (enum optab_index): Add new OTI_expm1.
140 (expm1_optab): Define corresponding macro.
141 * optabs.c (init_optabs): Initialize expm1_optab.
142 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
144 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
146 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
147 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
149 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
150 to implement expm1, expm1f and expm1l built-ins as inline x87
153 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
155 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
156 * config/frv/frv.md (*return_true, *return_false): New patterns.
158 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
160 * rtl.h (PHI_NODE_P): Remove.
162 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
165 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
166 when passed -2 as 'align'.
167 (put_var_into_stack): Use 'bool' as the type for the three local
168 predicates. Adjust calls to put_reg_into_stack.
169 When passed a CONCAT, instruct put_reg_into_stack to use
170 a consecutive stack slot for the second part.
171 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
172 'consecutive_p' parameter. Turn the three predicates into 'bool'
173 parameters. Retrieve the register mode from 'reg'.
174 When consecutive_p is true, instruct assign_stack_local_1 to use
175 BITS_PER_UNIT alignment.
176 (put_addressof_into_stack): Use 'bool' as the type for the two
177 local predicates. Adjust call to put_reg_into_stack.
179 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
181 * fold-const.c (fold_convert_const, fold): Add missing
184 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
186 * configure.ac (FLEX, BISON): Only use tools from the build tree
187 if build equals host.
188 * configure: Rebuilt.
190 * config/frv/frv-protos.h (frv_expand_epilogue,
191 frv_expand_fdpic_call): Add bool argument.
192 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
193 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
194 (frv_expand_epilogue): Use new argument to decide whether to emit
195 return instruction or copy the return address to LR.
196 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
198 (sibcall_operand): New.
199 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
200 PLUS nor LABEL_REF. Add sibcall_operand.
201 * config/frv/frv.md (call, call_value): Pass false to
202 frv_expand_fdpic_call.
203 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
204 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
205 sibcall_value_internal, sibcall_value_fdpicdi): New.
206 (return_unsigned_true, return_unsigned_false): New.
207 (epilogue): Adjust call to frv_expand_epilogue.
208 (sibcall_epilogue): New.
210 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
211 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
212 before redefining them.
214 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
216 * builtins.c (fold_fixed_mathfn): New function.
217 (fold_builtin_lround, fold_builtin): Use it.
219 2004-05-01 Jakub Jelinek <jakub@redhat.com>
221 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
222 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
224 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
226 * config/cris/cris.h: Revert my "fix comment typos" patch.
228 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
230 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
232 2004-05-01 Falk Hueffner <falk@debian.org>
234 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
235 builtin_insll): Disallow 0 as first input operand.
237 2004-05-01 Falk Hueffner <falk@debian.org>
239 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
241 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
244 * expr.c (expand_expr_real): Do not call preserve_temp_slots
245 on a TARGET_EXPR temp.
246 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
247 TARGET_EXPR temp slots.
249 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
251 * simplify-rtx.c (simplify_ternary_operation): When
252 converting an IF_THEN_ELSE to a relational op, return
255 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
257 * builtins.c (fold_builtin_round): Fix comment typo.
258 (fold_builtin_lround): New function.
259 (fold_builtin): Use it.
261 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
264 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
265 more like the one in config/dbxelf.h.
267 2004-04-30 Zack Weinberg <zack@codesourcery.com>
269 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
270 and adjust definition accordingly.
271 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
272 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
273 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
276 2004-04-30 Jason Merrill <jason@redhat.com>
279 * config/i386/winnt.c (associated_type): Look for attributes on
280 the TYPE_MAIN_VARIANT of *this.
281 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
282 apply the attributes to the variants.
284 2004-04-30 Paul Brook <paul@codesourcery.com>
286 * config.gcc: Simplify arm --with-{cpu,tune} test.
287 * config/arm/arm-cores.def: Document whitespace restrictions.
289 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
292 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
294 2004-04-30 Brian Ford <ford@vss.fsi.com>
295 DJ Delorie <dj@redhat.com>
297 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
298 (DWARF2_DEBUGGING_INFO): Define to enable.
299 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
301 * configure.ac (Target-specific assembler checks)
302 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
304 * configure: Regenerate.
305 * config.in: Likewise.
307 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
308 (ASM_OUPUT_DWARF_OFFSET): Define.
310 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
312 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
313 (s390_emit_call): New function prototype added.
314 (s390_tls_get_offset): Function removed.
315 * config/s390/s390.c (s390_function_ok_for_sibcall,
316 s390_call_saved_register_used_p): New functions.
317 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
318 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
319 (s390_emit_tls_call_insn): New function.
320 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
322 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
323 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
325 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
326 register number used to hold the target address for sibcalls.
327 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
329 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
330 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
331 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
333 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
334 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
335 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
336 ("epilogue"): Changed the call to s390_emit_epilogue to use the
339 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
341 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
342 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
343 reg-stack.c, varasm.c, config/alpha/ev4.md,
344 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
345 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
346 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
347 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
348 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
349 config/ia64/itanium2.md, config/ip2k/ip2k.c,
350 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
351 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
354 2004-04-30 Paul Brook <paul@codesourcery.com>
356 * config.gcc: Default ep9312 to hard-float.
357 * config/arm/arm-cores.def: Add ARCH field.
358 * config/arm/arm.c (FL_FOR_ARCH*): Define.
359 (arm_arch_cirrus): New variable.
360 (all_cores): Set and use arch.
361 (all_architectures): Ditto.
362 (arm_arch_name): New variable.
363 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
364 Set and use arm_arch_cirrus.
365 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
366 (enum processor_type): Update ARM_CORE define.
367 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
368 (CPP_SPEC): Remove %(cpp_cpu_arch).
369 (CPP_ARCH_DEFAULT_SPEC): Remove.
370 (CPP_CPU_ARCH_SPEC): Remove.
371 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
372 (FPUTYPE_DEFAULT): Don't define here.
374 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
376 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
379 2004-04-30 Paul Brook <paul@codesourcery.com>
381 * arm.c (arm_needs_doubleword_align): Use mode alignment.
383 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
385 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
387 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
390 2004-04-30 Uros Bizjak <uros@kss-loka.si>
392 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
395 2004-04-29 Nick Clifton <nickc@redhat.com>
398 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
399 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
400 Delete static from definition.
401 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
403 2004-04-30 Uros Bizjak <uros@kss-loka.si>
405 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
406 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
407 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
408 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
410 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
412 * commom.opt (Wfatal-errors): Add it.
413 * diagnostic.c (flag_fatal_errors): Define it.
414 (diagnostic_action_after_output): Check for flag_fatal_errors.
415 * flags.h (flag_fatal_errors): Declare it.
416 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
417 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
419 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
421 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
422 blocks which have kill flag set.
424 2004-04-29 Ben Elliston <bje@au.ibm.com>
426 * configure.ac (--with-as): Abort if user-supplied assembler
428 (--with-ld): Likewise for the linker.
429 * configure: Regenerate.
431 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
433 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
434 isn't NULL before using it.
436 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
439 * config/mips/mips.md (load_df_low): Use default length.
440 (load_df_high, store_df_high): Likewise.
442 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
444 * config/mips/mips.md, config/mips/sb1.md,
445 config/rs6000/rs6000.c: Fix comment typos.
447 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
449 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
452 2004-04-29 Douglas B Rupp <rupp@gnat.com>
454 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
455 (delete_if_ordinary): Use above macro.
456 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
458 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
460 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
462 * c-decl.c (get_parm_info): Use the correct tag keywords when
463 warning about type declarations in prototypes.
465 2004-04-29 Paul Brook <paul@codesourcery.com>
467 * config.gcc: Pull list of cores from arm-cores.def.
469 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
471 * combine.c (combine_simplify_rtx): Adjust call to use
472 simplify_relational_operation. Do not use SELECT_CC_MODE
473 when a comparison already has a MODE_CC mode.
475 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
477 (simplify_set): simplify_relational_operation may now
478 return another relational expression.
479 * cse.c (fold_rtx): simplify_relational_operation now
480 takes of computing the comparison mode.
481 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
483 (do_compare_rtx_and_jump): Likewise.
484 * integrate.c (subst_constants): simplify_relational_operation
485 may now return another relational expression.
486 * simplify-rtx.c (simplify_gen_relational): Move most code to
487 the new simplify_relational_operation and
488 simplify_relational_operation_1 functions.
489 (simplify_relational_operation): Rewritten.
490 (simplify_relational_operation_1): New function.
491 (simplify_ternary_operation): simplify_relational_operation
492 may now return another relational expression.
493 (simplify_rtx): Remove unnecessary temp variable.
495 2004-04-29 Uros Bizjak <uros@kss-loka.si>
497 * reg-stack.c (swap_to_top): New function.
498 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
500 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
501 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
504 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
505 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
506 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
508 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
509 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
512 2004-04-28 Serge Belyshev <1319@bot.ru>
515 * coverage.c (read_counts_file): Fix usage of warning () call.
516 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
518 2004-04-28 Ben Elliston <bje@au.ibm.com>
520 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
521 options with "-" in the option index.
522 (SPARC Options): Likewise.
523 (M32R/D Options): Likewise.
525 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
527 * convert.c (convert_to_integer): Convert (long)round -> lround,
530 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
532 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
533 Return false if we do not have fp register.
534 (addrs_ok_for_quad_peep): Rename to ...
535 (mems_ok_for_quad_peep): this.
536 Add check for volatile memory.
537 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
539 (mems_ok_for_quad_peep): this.
540 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
542 (lfq_power2): New instruction.
543 (stfq_power2): Likewise.
545 2004-04-28 Jan Hubicka <jh@suse.cz>
548 * function.c (do_warn_unused_parameter): Break out form ...
549 (expand_function_end): ... here; warn only when not using cgraphunit.
550 * function.h (do_warn_unused_parameter): Declare.
551 * cgraphunit.c: Include function.h.
552 (cgraph_finalize_function): Do unused parameter warning.
553 * Makefile.in (cgraphunit.o): Depend on function.h
555 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
557 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
558 calling install-info on $(DESTDIR)$(infodir)/dir already being
561 2004-04-28 Paul Brook <paul@codesourcery.com>
563 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
565 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
567 * gcse.c (find_moveable_store): Do not accept store insns with
570 2004-04-28 Paul Brook <paul@codesourcery.com>
572 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
573 * function.c (assign_temp): Ditto.
574 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
576 2004-04-28 Paul Brook <paul@codesourcery.com>
578 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
580 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
582 * var-tracking.c (variable_different_p): Add a parameter
583 compare_current_location, compare current location of variable parts
585 (dataflow_set_different_1): Pass compare_current_location == false.
586 (dataflow_set_different_2): Pass compare_current_location == false.
587 (emit_notes_for_differences_1): Pass compare_current_location == true.
589 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
591 * config/s390/s390.md ("casesi"): Mark jump table access as
592 non-trapping and unchanging.
594 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
597 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
599 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
600 number for indexing hard_regno_nregs array.
602 2004-04-27 Geoffrey Keating <geoffk@apple.com>
604 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
605 * config/darwin-crt2.c: Only have contents on __ppc__.
607 2004-04-27 Bob Wilson <bob.wilson@acm.org>
609 * config/xtensa/xtensa.c (call_insn_operand): Check
610 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
611 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
612 * config/xtensa/xtensa.md (call, call_value): Likewise.
614 2004-04-27 Wu Yongwei <adah@sh163.net>
616 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
617 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
618 (__gthread_mutex_init_function): Replace CreateMutex with
619 initialization of custom mutex using CreateSemaphore.
620 (__gthread_mutex_lock): Use InterlockedIncrement.
621 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
622 (__gthread_mutex_unlock): Use InterlockedDecrement and
623 ReleaseSemaphore to unlock
624 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
625 __gthread_mutex_lock, __gthread_mutex_trylock,
626 __gthread_mutex_unlock): Adjust to match inline versions in
629 2004-04-27 Paul Brook <paul@codesourcery.com>
631 * config/arm/arm.c (arm_promote_prototypes): New function.
632 (TARGET_PROMOTE_PROTOTYPES): Use it.
634 2004-04-27 Paul Brook <paul@codesourcery.com>
636 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
638 2004-04-26 Bernard Giroud <bgiroud@free.fr>
640 * config/alpha.c (alpha_end_function): For OpenVMS gas,
641 correctly output .pdesc directive before .end.
643 2004-04-26 James E Wilson <wilson@specifixinc.com>
646 * config/ia64/ia64.md (movxf): New local op0. Handle case where
647 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
649 2004-04-26 Zack Weinberg <zack@codesourcery.com>
651 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
652 * config/pa/pa-hpux10.h: Likewise.
653 * config/pa/pa-hpux11.h: Likewise.
655 2004-04-26 Geoffrey Keating <geoffk@apple.com>
657 * doc/invoke.texi (Overall Options): Document default for -o
660 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
662 * builtins.c (expand_builtin_update_setjmp_buf): New function.
663 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
664 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
666 2004-04-26 Paul Brook <paul@codesourcery.com>
668 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
670 2004-04-26 Paul Brook <paul@codesourcery.com>
672 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
674 2004-04-25 Roger Sayle <roger@eyesopen.com>
676 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
677 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
680 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
683 * except.c (connect_post_landing_pads): Delete insns after the
684 barrier when generating a unwind_resume_libfunc call.
686 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
689 * tree.c (substitute_placeholder_in_expr, case 4): New case,
692 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
694 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
695 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
696 inhibit_libc is defined.
698 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
700 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
701 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
702 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
703 (TARGET_SCHED_VARIABLE_ISSUE): Define.
704 (mips_adjust_cost): Move later in file, next to other sched hooks.
705 (mips_macc_chains_last_hilo): New variable.
706 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
707 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
708 * config/mips/mips.md (may_clobber_hilo): New attribute.
710 2004-04-24 Roger Sayle <roger@eyesopen.com>
711 Bruce Korb <bkorb@gnu.org>
713 * fixinc/inclhack.def (aix_syswait_2): New fix.
714 * fixinc/fixincl.x: Regenerate.
715 * fixinc/tests/base/sys/wait.h: Update for new test.
717 2004-04-24 Alan Modra <amodra@bigpond.net.au>
720 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
721 to non_fixed_size, and leave out fixed_size from the sum.
722 (generate_set_vrsave): Correct clobbers.
723 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
724 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
725 (rs6000_libcall_value): Likewise.
726 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
727 (FUNCTION_ARG_REGNO_P): Likewise.
729 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
731 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
733 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
734 with NARROW_OP1 instead of OP1.
736 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
738 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
741 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
743 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
744 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
745 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
746 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
747 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
748 * builtins.c (expand_builtin_fork_or_exec): New.
749 (expand_builtin): Call it.
750 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
751 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
752 * c-common.c (PID_TYPE): New macro.
753 (c_common_nodes_and_builtins): Initialize pid_type_node.
754 * calls.c (special_function_p): Do not handle fork and exec.
755 (expand_call): Do not handle ECF_FORK_OR_EXEC.
756 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
757 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
758 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
759 __gcov_execv, __gcov_execvp, __gcov_execve): New.
760 * tree.h (enum tree_index): Add TI_PID_TYPE.
761 (pid_type_node): New macro.
762 (ECF_FORK_OR_EXEC): Removed.
764 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
766 PR optimization/13985
767 * cfgloopmanip.c (fix_loop_placements): New prototype.
768 Call fix_bb_placements on the preheader of loops that have
770 (remove_path): Adjust call to fix_loop_placements.
772 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
774 * config/darwin7.h: New file.
775 * config.gcc (*-*-darwin*): Add darwin7.h if the
776 version is greater than 6.
777 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
778 (MATH_LIBRARY): Wrap in ifdefs.
780 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
782 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
783 loading iWMMXt registers with a frame pointer. Use post-increment
784 without a frame pointer.
785 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
787 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
789 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
790 mode" rather than "-funit-at-a-time" since -O2 enables it
791 without requiring -f* options. Refer to -fprofile-generate and
792 -fprofile-use correctly. Move -funit-at-a-time among options
793 enabled by -O. Add information about unit-at-a-time caveats.
795 2004-04-22 Per Bothner <per@bothner.com>
797 * line-map.h (struct line_maps): New field highest_line.
798 (linemap_position_for_column): Make non-inline function.
799 (LINEMAP_POSITION_FOR_COLUMN): New macro.
800 * line-map.c (linemap_init): Clear highest_line field.
801 (linemap_add): Set highest_line field.
802 (linemap_line_start): Minor optimization - use highest_line field.
803 Reduce maximum column hint to 10000. Update highest_line field.
804 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
805 * cpphash.h (struct cpp_reader): Remove line field - instead use
806 line_table->highest_line.
807 (saved_line): Remove unused field.
808 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
809 Use line_table's highest_line field instead of cpp_reader's line.
810 * cpplib.c (start_directive): Likewise use highest_line field.
811 (do_line, do_linemarker): Likewise just use newest map.
812 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
813 * cpperror.c (cpp_error): Likewise use highest_line field.
814 * cppfiles.c (open_file_failed: Likewise.
815 (cpp_make_system_header): Likewise use newest map and highest_line.
816 * cppinit.c (cpp_create_reader): Don't initialize removed field.
817 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
818 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
819 _cpp_lex_direct): Likewise use highest_line.
820 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
821 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
823 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
824 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
825 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
827 2004-04-23 Alan Modra <amodra@bigpond.net.au>
830 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
831 * config/linux.h (USE_LD_AS_NEEDED): Define.
832 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
833 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
834 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
835 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
836 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
837 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
838 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
840 2004-04-22 Per Bothner <per@bothner.com>
842 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
843 Fixes PR preprocessor/15067.
845 2004-04-23 Andreas Schwab <schwab@suse.de>
847 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
848 avoid aliasing warning.
850 2004-04-22 Jan Hubicka <jh@suse.cz>
851 Mostafa Hagog <mustafa@il.ibm.com>
853 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
854 * cfgloopanal.c (expected_loop_iterations): Change the return value
856 2004-04-22 Jakub Jelinek <jakub@redhat.com>
858 * cselib.h (struct elt_loc_list): Remove canon_loc field.
859 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
860 (cselib_invalidate_mem): Remove all canon_loc and canon_x
863 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
866 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
868 * var-tracking.c (variable_part_different_p): Variable parts
869 differ when the most recent locations differ.
871 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
873 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
874 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
875 (embedded_pic_offset): Delete.
876 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
878 (TARGET_EMBEDDED_PIC): Delete.
879 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
880 (ASM_SPEC): Remove -membedded-pic.
881 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
882 (ASM_OUTPUT_CASE_LABEL): Likewise.
883 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
884 * config/mips/windiss.h (ASM_SPEC): Likewise.
885 * config/mips/mips.c (struct machine_function): Remove
886 embedded_pic_fnaddr_rtx.
887 (TARGET_ENCODE_SECTION_INFO): Remove override.
888 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
889 (override_options): Remove -membedded-pic handling.
890 (print_operand): Remove handling of '%S'.
891 (mips_select_section: Remove -membedded-pic handling.
892 (mips_encode_section_info): Delete.
893 (mips_output_conditional_branch): Remove mention of -membedded-pic.
894 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
895 -membedded-pic handling.
896 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
898 2004-04-22 Alan Modra <amodra@bigpond.net.au>
900 * var-tracking.c (frame_base_decl): Remove useless GTY.
902 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
904 * config/rs6000/rs6000.c (rs6000_override_options): Error when
905 user wants altivec and e500 instructions.
907 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
910 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
911 in .init_array section to ...
912 * config/ia64/crtbegin.asm: Here.
914 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
915 and hidden if HAVE_INITFINI_ARRAY is defined.
917 2004-04-21 James E Wilson <wilson@specifixinc.com>
919 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
920 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
921 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
922 (fp_register_operand, lo_operand): New.
923 (mips_rtx_costs): Add TUNE_SB1 support.
924 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
925 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
926 (mips_multipass_dfa_lookahead): New.
927 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
929 (TARGET_SWITCHES): Add -mfp-exceptions support.
930 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
931 (BRANCH_COST): Fix whitespace.
932 * config/mips/mips.md: Include sb1.md.
933 * config/mips/sb1.md: New file.
934 * doc/invoke.texi: Document -mfp-exceptions.
936 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
938 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
939 (fixincl.o-warn): Delete.
941 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
943 * config/rs6000/rs6000 (print_operand) ['z']:
944 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
946 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
948 * config.gcc: Support --with-arch=iwmmxt for ARM.
950 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
952 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
953 in two more places; remove unneeded force_reg
955 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
957 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
959 (print_operand): For TARGET_MACHO check to see if we need a stub
960 and output one if we need it.
963 * dwarf2out.c (rtl_for_decl_location): Check for NULL
966 2004-04-20 James E Wilson <wilson@specifixinc.com>
968 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
969 (vall_value_gp): Likewise.
971 2004-04-20 DJ Delorie <dj@redhat.com>
973 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
974 variables stored in word registers, then in memory.
976 2004-04-20 Eric Christopher <echristo@redhat.com>
978 * cp/parser.c (cp_parser_declaration): Move translate
979 up before tokens are lexed.
981 2004-04-20 Uros Bizjak <uros@kss-loka.si>
983 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
984 (asin_optab, acos_optab): Define corresponding macros.
985 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
986 * genopinit.c (optabs): Implement asin_optab and acos_optab
987 using asin?f2 and acos?f2 patterns.
988 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
989 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
990 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
991 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
993 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
994 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
995 acos, acosf and acosl built-ins as inline x87 intrinsics.
997 2004-04-20 Paul Brook <paul@codesourcery.com>
999 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
1001 2004-04-20 Paul Brook <paul@codesourcery.com>
1003 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
1005 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
1007 Revert part of 2004-04-17 change that moved -frename-registers
1008 to -O1. -frename-registers is buggy.
1010 * toplev.c (flag_rename_registers): Initialize to 0.
1011 * doc/invoke.texi (Optimize options): Move -frename-registers
1012 to "Not triggered by any -O level" section. Adjust commentary
1015 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
1017 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
1019 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
1021 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
1022 for mflo and mfhi instructions.
1023 (mips_output_move): Remove mflo and mfhi handling.
1024 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
1025 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
1026 Likewise various define_peephole2s.
1027 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
1029 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
1030 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
1031 (mfhilo_di, mfhilo_si): New patterns.
1033 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
1035 * function.c (assign_parms): Force
1036 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
1038 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
1040 * var-tracking.c (variable_part_different_p): Variable parts differ
1041 when the most recent locations differ.
1043 2004-04-19 James E Wilson <wilson@specifixinc.com>
1045 * rtl.h (reg_set_last): Delete declaration.
1046 * rtlanal.c (reg_set_last): Delete.
1048 2004-04-19 Roger Sayle <roger@eyesopen.com>
1050 * fold-const.c (fold_convert): Make function extern/public.
1051 * tree.h (fold_convert): Prototype here.
1052 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
1053 expand_builtin_strrchr, expand_builtin_strpbrk,
1054 expand_builtin_mempcpy, expand_builtin_bcopy,
1055 expand_builtin_bzero, expand_builtin_memcmp,
1056 expand_builtin_strcmp, expand_builtin_strncmp,
1057 stabilize_va_list, expand_builtin_sprintf,
1058 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
1059 fold_builtin_exponent, fold_builtin_mempcpy,
1060 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
1061 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
1062 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
1064 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
1066 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
1067 (move_from_CR_gt_bit): New.
1068 (cceq_ior_compare): Name previously unnamed pattern. Disable for
1070 (cceq_rev_compare): Name previously unnamed pattern. Allow for
1073 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
1074 (tstsfeq_gpr): Same.
1075 (cmpsfgt_gpr): Same.
1076 (tstsfgt_gpr): Same.
1077 (cmpsflt_gpr): Same.
1078 (tstsflt_gpr): Same.
1079 (e500_cceq_ior_compare): New.
1080 (e500_flip_gt_bit): New.
1082 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
1083 (print_operand): Add 'c' and 'D'.
1084 (rs6000_generate_compare): Rewrite to generate correct rtl.
1085 (rs6000_emit_sCOND): Handle E500.
1086 (output_cbranch): Adjust for changes in rs6000_generate_compare.
1087 (output_e500_flip_gt_bit): New.
1089 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
1092 2004-04-19 Eric Christopher <echristo@redhat.com>
1094 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
1096 2004-04-19 David Edelsohn <edelsohn@gnu.org>
1098 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
1101 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1103 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
1106 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
1108 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
1109 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
1111 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
1113 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
1114 (fold_builtin): Update caller to match.
1117 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
1120 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
1122 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1124 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
1126 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
1127 (expand_mult_highpart_optab): Likewise.
1128 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
1130 2004-04-19 Paul Brook <paul@codesourcery.com>
1132 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
1133 floatunssisf2, floatunssidf2): New patterns.
1135 2004-04-18 Mark Mitchell <mark@codesourcery.com>
1138 * doc/invoke.texi (-fprofile-generate): Document requirement to
1139 use -fprofile-generate when linking.
1141 * doc/extend.texi (Strong Using): Warn users against using this
1144 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
1146 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
1147 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
1148 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
1149 * config/mips/mips.c (struct mips16_constant): Renamed from struct
1150 constant. Propogate change throughout file.
1151 (struct machine_function): Remove insns_len.
1152 (mips_string_length, mips16_strings, string_constants): Delete.
1153 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
1154 when generating mips16 code. Remove special mips16 treatment of
1156 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
1157 to have the form LABEL+CONSTANT.
1158 (mips_symbolic_address_p): Fix comment.
1159 (m16_usym8_4, m16_usym5_4): Delete.
1160 (mips_output_function_epilogue): Remove mips16 string handling.
1161 (mips_output_mi_thunk): Call mips16_lay_out_constants.
1162 (mips_select_section, mips_encode_section_info): Remove mips16
1164 (struct mips16_constant_pool): New.
1165 (add_constant): Take a mips16_constant_pool structure. Keep pool
1166 sorted into order of ascending mode size. Keep track of the highest
1167 possible start address, taking padding and the masking of the base PC
1169 (dump_constants_1): New function, split out from dump_constants.
1170 Handle vector constants. Use gen_consttable_{int,float} rather than
1171 separate functions for each mode.
1172 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
1173 rather than separate functions for each alignment.
1174 (mips_find_symbol): Delete.
1175 (mips16_insn_length): New function, split out from
1176 mips16_lay_out_constants.
1177 (mips16_rewrite_pool_refs): New function.
1178 (mips16_lay_out_constants): Rework. Remove string handling.
1179 Always create an inline constant pool.
1180 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
1181 (UNSPEC_ALIGN): New constants.
1182 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
1183 (UNSPEC_ALIGN_[248]): Delete.
1184 (consttable_int, consttable_float, align): New patterns.
1185 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
1187 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
1189 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
1192 2004-04-17 Alan Modra <amodra@bigpond.net.au>
1195 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
1196 with STARTING_FRAME_OFFSET.
1198 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
1200 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
1201 * config/mips/mips.c (macc_msac_operand): New function.
1202 * config/mips/mips.md (*msac): Move after *macc.
1203 (*msac2): New. Generalize macc-related peepholes so that they apply
1206 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
1208 * opts.c (decode_options): Do not enable flag_rename_registers
1209 and flag_web at -O3.
1210 * toplev.c (flag_rename_registers): Initialize
1211 flag_rename_registers and flag_web to
1212 AUTODETECT_FLAG_VAR_TRACKING.
1213 (default_debug_hooks): New global.
1214 (process_options): Initialize default_debug_hooks. Warn if
1215 -fvar-tracking specified but not supported by the current
1216 debug format. Do not run var tracking at -O0 or if not
1217 supported by the current debug format, even if
1218 -fvar-tracking was given. If -fno-rename-registers
1219 is not specified, always run register renaming if var
1220 tracking is supported by the default debugging information
1221 format for the target, and we are at -O1 or higher; similarly
1222 for -fweb, but only at -O2 or higher.
1223 * doc/invoke.texi (Optimize Options): Document this.
1225 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
1227 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
1228 * configure: Regenerate.
1230 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
1232 * gcc.c (used_arg): Check whether an option has been removed.
1234 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1236 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
1237 debugging on Solaris 7 and up.
1239 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1241 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
1243 Remove -save-temps workaround, handled automatically.
1244 Require GNU binutils 2.15 for debugging.
1245 Remove SGI make warnings since GNU make is now required.
1246 (Specific, mips-sgi-irix6): Some markup fixes.
1247 Describe MIPSpro C problems and workarounds.
1248 Mention working O32 ABI support.
1249 Recommend GNU as 2.15 for O32 with debugging.
1250 Remove description of fixed structure pass/return bug.
1252 2004-04-16 DJ Delorie <dj@redhat.com>
1254 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
1256 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
1258 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1260 * pa.md: Remove unnecessary declarations for asm_out_file.
1262 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
1263 SAR register. Fix comment.
1264 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
1267 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
1269 2004-04-16 Nick Clifton <nickc@redhat.com>
1271 * config/arm/arm.c (arm_override_options): Revert previous patch.
1272 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
1275 2004-04-16 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
1277 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
1279 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
1280 TARGET_DEFAULT): Changed. Ditto.
1281 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
1282 TARGET_ENDIAN_DEFAULT): Added. Ditto.
1283 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
1284 (TARGET_ENDIAN_DEFAULT): Added.
1286 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1288 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
1289 ATTR_CONST_NOTHROW_LIST.
1291 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1294 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
1297 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
1299 * ra-debug.c (ra_print_rtx): Add break's to case legs.
1301 2004-04-14 James E Wilson <wilson@specifixinc.com>
1303 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
1305 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1307 * libada-mk.in: New file.
1308 * configure.ac: Create libada-mk from libada-mk.in.
1309 * configure: Regenerate.
1311 2004-04-14 Uros Bizjak <uros@kss-loka.si>
1313 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
1314 (logb_optab, ilogb_optab): Define corresponding macros.
1315 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
1316 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
1317 using logb?f2 and ilogb?i2 patterns.
1318 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
1319 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
1320 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
1321 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1323 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
1324 and UNSPEC_XTRACT_EXP.
1326 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
1327 patterns to implement fxtract x87 instruction.
1328 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
1329 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
1331 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
1334 2004-04-14 Eric Christopher <echristo@redhat.com>
1336 * config/mips/t-elf: Enable multilibs by default.
1338 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
1340 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
1341 previous fix to check HAVE_return at runtime too.
1343 2004-04-14 Nick Clifton <nickc@redhat.com>
1345 * config/arm/arm.c (arm_override_options): If the user has not
1346 specified an ABI, then default to AAPCS for the iWMMXt processor.
1347 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
1348 * config/arm/t-xscale-coff: Likewise.
1350 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1352 * builtins.c (fold_builtin_isdigit): New.
1353 (fold_builtin): Handle BUILT_IN_ISDIGIT.
1354 * defaults.h: Add TARGET_DIGIT0 and sort.
1355 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
1357 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1359 * builtins.c (fold_builtin_cabs, fold_builtin): Use
1360 `mathfn_built_in' to determine the new builtin.
1361 * fold-const.c (fold): Likewise.
1363 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
1365 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
1366 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
1367 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
1368 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
1369 (ASM_SPEC): Update accordingly.
1370 * config/mips/mips.c: Update after above renaming.
1371 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
1372 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
1374 2004-04-13 James E Wilson <wilson@specifixinc.com>
1376 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
1377 increment errorcount and return false instead of true.
1379 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
1381 * optabs.c (expand_twoval_unop): Reorder function arguments.
1382 * builtins.c (expand_builtin_mathfn_3): Update calls to
1385 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
1386 and UNSPEC_TAN_TAN. Add missing comment.
1388 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
1389 patterns to implement fptan x87 instruction.
1390 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
1391 and tanl built-ins as inline x87 intrinsics. Define corresponding
1392 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
1393 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
1396 2004-03-13 Richard Henderson <rth@redhat.com>
1398 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
1401 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
1402 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
1403 * doc/invoke.texi: Update to match.
1405 * varasm.c (unlikely_text_section): Use assemble_align instead of
1406 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
1407 correct alignment argument.
1409 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
1411 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
1412 after setting reg_last_reload_reg for optional output reloads.
1414 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
1416 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
1417 Definition of these two macros are corrected by adding
1418 matchine right paren.
1420 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
1422 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
1424 2004-04-12 Roger Sayle <roger@eyesopen.com>
1426 * config/i386/i386.c (output_387_reg_move): New function.
1427 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
1428 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
1429 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
1430 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
1431 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
1433 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1435 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
1437 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
1438 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
1439 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
1440 Use skip_simple_arithmetic to find SAVE_EXPR.
1441 (force_type_save_exprs, force_type_save_exprs_1): New functions.
1442 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
1443 Properly chain multiple pointers.
1444 (copy_tree_r): Copy a TYPE_DECL.
1445 * tree.c (variably_modified_type_p): Add some missing tests and
1446 make some other minor changes.
1447 * tree.h (force_type_save_exprs): New declaration.
1449 2004-04-12 Roger Sayle <roger@eyesopen.com>
1451 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
1452 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
1453 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
1454 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
1455 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
1456 x%-1 into 0 (or x&0 if x has side-effects).
1458 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
1460 * config/rs6000/rs6000.md: Document why a pattern is not
1463 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
1464 of floats on the E500.
1465 (branch_positive_comparison_operator): Do not allow NE even on the
1468 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
1470 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
1471 in_text_unlikely_section to in_unlikely_text_section.
1473 2004-04-11 Roger Sayle <roger@eyesopen.com>
1475 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
1476 calling convention to allow a NULL_TREE to be returned. Factor
1477 sanity checks from callers, return NULL_TREE when appropriate.
1478 (fold): Handle COMPOUND_EXPR operands of binary expressions
1479 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
1480 whether a op (b,c) can be rewritten as (b, a op c). Simplify
1481 calls to fold_binary_op_with_conditional_arg.
1483 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1485 * config/mips/iris5.h (current_section_flags): Add
1486 in_unlikely_executed_text and default case.
1488 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
1490 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
1491 failure on solaris. Place ifdef HAVE_return around gen_ret call.
1492 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
1493 HAVE_return and place it around the place where it is needed.
1495 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
1497 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
1498 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
1499 and NORMAL_TEXT_SECTION_NAME.
1500 (unlikely_text_section): Check targetm.have_named_sections
1501 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
1502 instead of SECTION_FORMAT_STRING.
1503 * config/mips/iris5.h (current_section_name): Add
1504 in_unlikely_executed_text case and move the abort into the switch.
1505 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
1506 (NORMAL_TEXT_SECTION_NAME): Remove.
1507 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1508 (SECTION_FORMAT_STRING): Remove.
1509 * defaults.h (SECTION_FORMAT_STRING): Remove.
1510 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
1511 (SECTION_FORMAT_STRING): Remove.
1513 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
1515 * c-typeck.c (common_type): Prefer long long to long when same
1518 2004-04-09 Zack Weinberg <zack@codesourcery.com>
1521 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
1523 * config/ia64/ia64.c (ia64_hpux_file_end): Check
1524 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
1526 2004-04-09 Roger Sayle <roger@eyesopen.com>
1528 * simplify-rtx.c (mode_signbit_p): New function to check whether
1529 an RTX is an immediate constant that represents the most significant
1530 bit of a given machine mode.
1531 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
1533 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
1534 when C2 is the sign bit.
1535 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
1536 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
1539 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1541 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
1544 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
1546 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
1547 of TREE_READONLY for types.
1549 2004-04-09 Caroline Tice <ctice@apple.com>
1551 * basic-block.h (struct edge_def): Add new field, crossing_edge.
1552 (struct basic_block_def): Add new field, partition.
1553 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
1555 (partition_hot_cold_basic_blocks): Add extern function
1557 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
1559 (N_ROUNDS): Increase the maximum number of rounds by 1.
1560 (branch_threshold): Add array value for new round.
1561 (exec_threshold): Add array value for new round.
1562 (push_to_next_round_p): New function.
1563 (add_unlikely_executed_notes): New function.
1564 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
1565 (mark_bb_for_unlikely_executed_section): New function.
1566 (add_labels_and_missing_jumps): New function.
1567 (add_reg_crossing_jump_notes): New function.
1568 (fix_up_fall_thru_edges): New function.
1569 (find_jump_block): New function.
1570 (fix_crossing_conditional_branches): New function.
1571 (fix_crossing_unconditional_branches): New function.
1572 (fix_edges_for_rarely_executed_code): New function.
1573 (partition_hot_cold_basic_blocks): New function.
1574 (find_traces): Add an extra round for partitioning hot/cold
1576 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
1577 and only cold blocks, into the last (extra) round of collecting traces.
1578 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
1579 over crossing edges.
1580 (bb_to_key): Add code to correctly identify cold blocks when
1582 (connect_traces): Modify to connect all the non-cold traces first, then
1583 go back and connect up all the cold traces.
1584 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
1585 * cfg.c (entry_exit_blocks): Add initialization for partition field in
1586 entry and exit blocks.
1587 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
1588 if we are doing hot/cold partitioning.
1589 * cfgcleanup.c (cfglayout.h): Add new include statement.
1590 (try_simplify_condjump): Modify to not attempt on blocks with jumps
1591 that cross section boundaries.
1592 (try_forward_edges): Likewise.
1593 (merge_blocks_move_predecessor_nojumps): Likewise.
1594 (merge_blocks_move_successor_nojumps): Likewise.
1595 (merge_blocks_move): Likewise.
1596 (try_crossjump_to_edge): Modify to not attempt after we have done
1597 the block partitioning.
1598 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
1599 cross section boundaries.
1600 (try_optimize_cfg): Likewise.
1601 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
1602 jumps that cross section boundaries.
1603 * cfglayout.c (flags.h): Add new include statement.
1604 (update_unlikely_executed_notes): New function.
1605 (fixup_reorder_chain): Add code so when a new jumping basic block is
1606 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
1607 updated appropriately.
1608 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
1609 introduced by this optimization.
1610 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
1611 extern function declaration.
1612 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
1613 list of notes that can be deleted.
1614 (create_basic_block_structure): Add initialization for partition field.
1615 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
1617 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
1618 cross section boundaries.
1619 (commit_one_edge_insertion): Add code so newly created basic block
1620 ends up in correct (hot or cold) section. Modify to disallow
1621 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1622 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
1623 crosses section boundaries.
1624 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
1625 cross section boundaries.
1626 (force_nonfallthru_and_redirect): Modify to make sure new basic block
1627 ends up in correct section, with correct notes attached.
1628 * common.opt (freorder-blocks-and-partition): Add new flag for this
1630 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
1631 the end of functions are written into the correct (hot or cold)
1633 (dbx_source_file): Add code so writing debug file information
1634 doesn't incorrectly change sections.
1635 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
1636 in partitioning hot/cold basic blocks into separate sections.
1637 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
1638 section partitioning.
1639 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
1640 conditional branches can span all of memory.
1641 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
1642 unconditional branches can span all of memory.
1643 * final.c (scan_ahead_for_unlikely_executed_note): New function.
1644 (final_scan_insn): Add code to check for NOTE instruction indicating
1645 whether basic block belongs in hot or cold section, and to make sure
1646 the current basic block is being written to the appropriate section.
1647 Also added code to ensure that jump table basic blocks end up in the
1649 * flags.h (flag_reorder_blocks_and_partition): New flag.
1650 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
1651 one of the branches has a jump that crosses between sections.
1652 (find_if_case_2): Likewise.
1653 (ifcvt): Modify to not attempt to mark loop exit edges after
1654 hot/cold partitioning has occurred.
1655 * opts.c (decode_options): Code to handle new flag,
1656 flag_reorder_blocks_and_partition; also to turn it off if
1657 flag_exceptions is on.
1658 (common_handle_option): Code to handle new flag,
1659 flag_reorder_blocks_and_partition.
1660 * output.h (unlikely_text_section): New extern function declaration.
1661 (in_unlikely_text_section): New extern function declaration.
1662 * passes.c (rest_of_handle_stack_regs): Add
1663 flag_reorder_blocks_and_partition as an 'or' condition for calling
1664 reorder_basic_blocks.
1665 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
1666 as an 'or' condition for calling reorder_basic_blocks.
1667 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
1668 * print-rtl.c (print_rtx): Add code for handling new note,
1669 NOTE_INSN_UNLIKELY_EXECUTED_CODE
1670 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
1671 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
1672 cross between section boundaries.
1673 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
1674 indicating the basic block containing it belongs in the cold section.
1675 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
1676 between hot and cold sections.
1677 * toplev.c (flag_reorder_blocks_and_partition): Add code to
1678 initialize this flag, and to tie it to the command-line option
1679 freorder-blocks-and-partition.
1680 * varasm.c (cfglayout.h): Add new include statement.
1681 (unlikely_section_label_printed): New global variable, used for
1682 determining when to output section name labels for cold sections.
1683 (in_section): Add in_unlikely_executed_text to enum data structure.
1684 (text_section): Modify code to use SECTION_FORMAT_STRING and
1685 NORMAL_TEXT_SECTION_NAME macros.
1686 (unlikely_text_section): New function.
1687 (in_unlikely_text_section): New function.
1688 (function_section): Add code to make sure beginning of function is
1689 written into correct section (hot or cold).
1690 (assemble_start_function): Add code to make sure stuff is written to
1691 the correct section.
1692 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
1693 to an if statement that was checking 'in_text_section'.
1694 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
1695 condition to an if statement that was checking 'in_text_section'.
1696 (default_section_type_flags_1): Add check: if in cold section
1697 flags = SECTION_CODE.
1698 * config/darwin.c (darwin_asm_named_section): Modify to use
1699 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
1700 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
1701 specifically for the i386.
1702 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
1703 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
1704 text string to something more informative.
1705 (NORMAL_TEXT_SECTION_NAME): Add new definition.
1706 (SECTION_FORMAT_STRING): Add new definition.
1707 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
1708 '!in_unlikely_text_section' as an 'and' condition to an if statement
1709 that was already checking '!in_text_section'.
1710 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
1711 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
1712 sure these are properly defined for linux on ppc.
1713 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
1715 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
1717 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
1718 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
1721 2004-04-08 Roger Sayle <roger@eyesopen.com>
1723 * function.c (gen_mem_addressof): When changing the RTX from a REG
1724 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
1726 2004-04-08 Roger Sayle <roger@eyesopen.com>
1729 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
1730 truncxfdf2_noop): Provide dummy "fmov" implementations.
1732 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
1734 * gcc.c (default_compilers): Add missing initializers.
1736 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1737 Return 1 if file was successfully mapped.
1739 2004-04-08 Geoffrey Keating <geoffk@apple.com>
1744 * doc/invoke.texi (Precompiled Headers): Suggest -o
1745 to put an output file in a particular place. Be more detailed
1746 about which options affect PCH validity and which options
1748 * c-pch.c (pch_matching): New.
1750 (struct c_pch_validity): New field 'match'.
1751 (pch_init): Handle pch_matching.
1752 (c_common_valid_pch): Check pch_matching.
1754 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
1756 2004-04-08 Mark Mitchell <mark@codesourcery.com>
1758 * doc/invoke.texi (Precompiled Headers): Warn about known
1761 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
1764 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
1765 to 1 if ASM_OUTPUT_DEF is defined.
1766 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
1767 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
1768 Set to non-zero iff not a one_only decl.
1770 2004-04-08 Paul Brook <paul@codesourcery.com>
1772 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
1774 2004-04-08 Paul Brook <paul@codesourcery.com>
1776 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
1777 PROMOTE_FOR_CALL_ONLY.
1778 * config/arm/arm-protos.h (arm_function_value): Declare.
1779 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1780 (TARGET_PROMOTE_PROTOTYPES): Return false.
1781 (arm_function_value): New function.
1782 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
1783 (FUNCTION_VALUE): Call arm_function_value.
1784 * config/cris/cris.h (PROMOTE_MODE): Rename ...
1785 (PROMOTE_FUNCTION_MODE): ... to this.
1786 (PROMOTE_FOR_CALL_ONLY): Remove.
1787 * config/mmix/mmix.h: Likewise.
1788 * config/s390/s390.h: Likewise.
1789 * config/sparc/sparc.h: Likewise.
1790 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
1791 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
1792 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
1793 (PROMOTE_FOR_CALL_ONLY): Remove.
1795 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1798 * ada/5rosinte.adb: Remove fake mprotect() body.
1799 * ada/5rosinte.ads: Add SA_SIGINFO.
1800 * ada/5rtpopsp.adb: Rewrite to use new interface.
1801 * ada/init.c: Reorder so the simple single OS conditional __rtems__
1802 is tested before more complex ones which mix UNIX and embedded
1803 systems in the conditional.
1805 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1808 * ada/osint.adb (Find_Program_Name): Rework to properly handle
1809 filenames which end in .exe or have versioning suffixes like VMS.
1811 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
1814 * config/darwin.c (darwin_encode_section_info): When the decl has
1815 a DECL_INITIAL, it is only defined also when it is not a common.
1817 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1819 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
1820 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
1822 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
1824 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
1825 global register variables.
1827 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
1829 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
1830 rpc_xdr_lvalue_cast_b): New fixes.
1831 * fixinc/fixincl.x: Regenerate.
1832 * fixinc/tests/base/rpc/xdr.h: Add new tests.
1834 2004-04-07 David Edelsohn <edelsohn@gnu.org>
1836 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
1837 to power4 and power5 entries.
1839 2004-04-06 Geoffrey Keating <geoffk@apple.com>
1841 * c-common.h (pending_lang_change): Mark for PCH.
1843 2004-04-07 Caroline Tice <ctice@apple.com>
1845 * gcc.c (main): Move 'break' in main loops (on an error)
1846 to wait until error processing has occurred.
1848 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
1850 * config.gcc: Stop changing enable_threads midstream.
1851 Replace uses of enable_threads_flag with enable_threads.
1852 * configure.ac: Replace uses of enable_threads_flag with
1853 enable_threads. Improve autoconf quotation in one place.
1854 * configure: Regenerate.
1856 2004-04-06 Uros Bizjak <uros@kss-loka.si>
1858 * builtins.c: Implement support for sincos function.
1859 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
1861 (expand_builtin_mathfn_3): New function.
1862 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
1863 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
1864 flag_unsafe_math_optimization is set.
1866 * optabs.h (enum optab_index): Add new OTI_sincos.
1867 (sincos_optab): Define corresponding macro.
1869 * optabs.c (init_optabs): Initialize sincos_optab.
1870 (expand_twoval_unop): New function.
1872 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
1875 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
1876 and UNSPEC_SINCOS_SIN.
1878 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
1879 sincosxf3): New patterns to implement sincos, sincosf and sincosl
1880 built-ins as inline x87 intrinsics. Define splits for
1881 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
1882 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
1884 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
1885 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
1887 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
1890 2004-04-06 Devang Patel <dpatel@apple.com>
1893 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
1895 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1897 * doc/install.texi: Update HP-UX 11 installation procedure.
1899 2004-04-06 Paul Brook <paul@codesourcery.com>
1901 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
1903 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
1905 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
1906 when the TLS address is generated by a function call.
1907 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
1908 (tls_local_dynamic): Likewise.
1910 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
1912 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
1915 2004-04-05 Caroline Tice <ctice@apple.com>
1917 * gcc.c (combine_flag): New global variable, for new driver option.
1918 (struct compiler): Add two new fields, to be used when
1919 combining multiple input files in a single pass (IMA).
1920 (default_compilers): Add values for the new fields to all
1921 compiler entries. Modify the "@c" compiler entry for doing IMA
1922 properly with "-save-temps" and the "combine" flag.
1923 (option_map): Add new driver option, "--combine", to tell driver
1924 to pass multiple input files to compiler at one time.
1925 (have_o_argbuf_index): New global variable.
1926 (store_arg): Modify to assign value to have_o_argbuf_index.
1927 (struct infile): Add three new fields, to help with IMA.
1928 (display_help): Add help for new "combine" option.
1929 (process_command): Remove local variable have_o; add code to check
1930 for new "combine" option; remove assignment to combine_inputs.
1931 (do_spec_1): Modify to deal with IMA better.
1932 (main): Make variable 'lang_n_infiles' local to entire function
1933 rather than to a single block. Use flag combine_flag to
1934 determine whether to do IMA or not; Modify loop initializing
1935 infiles to deal properly with linker files.
1936 Add code for doing preprocessing in presence of
1937 IMA with "-save-temps" flag. Modify "main" loop to handle
1938 multiple input files, in multiple languages, with or without
1939 preprocessing, gracefully.
1940 * toplev.c (set_src_pwd): Modify to not complain if attempting to
1941 re-set it to same directory it's previously been set to (avoid
1942 irritating, meaningless warning messages when doing IMA with
1944 * doc/invoke.texi: Add "-combine" to list of Overall Options;
1945 remove documentation about IMA that is no longer accurate; Add
1946 documentation explaining what "-combine" does.
1947 * ada/lang-specs.h: Add initialization values for new fields in
1949 * cp/lang-specs.h: Likewise.
1950 * f/lang-specs.h: Likewise.
1951 * java/lang-specs.h: Likewise.
1952 * objc/lang-specs.h: Likewise.
1953 * treelang/lang-specs.h: Likewise.
1955 2004-04-05 David Edelsohn
1957 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
1960 2004-04-05 Jakub Jelinek <jakub@redhat.com>
1961 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1963 PR optimization/13424 (hppa), bootstrap/14462, c/14828
1964 * pa.md: Use replace_equiv_address to retain the attributes of the
1965 memory operands used in the split and peephole2 patterns for optimizing
1966 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
1968 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1970 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
1971 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1972 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
1973 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
1975 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
1977 * print-tree.c (print_node): Properly handle side-effects, readonly,
1979 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
1980 and TREE_CONSTANT if not a type.
1981 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
1982 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
1983 (NON_TYPE_CHECK): New macro.
1984 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
1986 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1988 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
1989 to DWARF2_DEBUG unconditionally.
1990 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
1992 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
1993 Nathanael Nerode <neroden@gcc.gnu.org>
1996 * config.host: Set the shell variable host_can_use_collect2.
1997 Set it to yes by default, and to no for alpha*-dec-*vms*,
1998 i[34567]86-*-mingw32*, and powerpc-*-beos*.
1999 * configure.ac: Set and substitute the shell variable collect2.
2000 Give an error if use_collect2 is yes and host_can_use_collect2 is
2002 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
2003 uses. Initialize to @collect2@.
2004 (STAGESTUFF): Remove $(USE_COLLECT2).
2005 * config/alpha/x-vms (USE_COLLECT2): Don't set.
2006 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
2007 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
2008 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
2009 * configure: Regenerate.
2011 2004-04-04 Roger Sayle <roger@eyesopen.com>
2013 * simplify-rtx.c (simplify_binary_operation): Constant fold
2014 DIV, MOD, UDIV and UMOD using div_and_round_double.
2016 2004-04-04 Mark Mitchell <mark@codesourcery.com>
2019 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
2022 2004-04-04 Mark Mitchell <mark@codesourcery.com>
2024 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
2027 2004-04-04 Roger Sayle <roger@eyesopen.com>
2029 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
2030 updating the REG_EQUAL note on an insn's libcall_insn.
2032 2004-04-04 Roger Sayle <roger@eyesopen.com>
2034 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
2036 2004-04-03 Roger Sayle <roger@eyesopen.com>
2038 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
2039 with reorder_operands_p.
2041 2004-04-03 Jan Hubicka <jh@suse.cz>
2043 * md.texi (vec_set, vec_extract, vec_init): Document.
2045 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
2047 * opts.c (decode_options): Do function inlining with very small
2048 max-inline-insns-* parameters when optimizing for size.
2050 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
2052 * config/i386/i386.h (TARGET_NOCONA): New macro.
2053 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
2054 (processor_type): Add PROCESSOR_NOCONA.
2056 * config/i386/i386.md (cpu): Add nocona to the attribute values.
2058 * config/i386/i386.c (nocona_cost): New variable.
2059 (m_NOCONA): New macro.
2060 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
2061 x86_branch_hints, x86_use_sahf, x86_single_stringop,
2062 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
2063 x86_integer_DFmode_moves, x86_partial_reg_dependency,
2064 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
2065 x86_decompose_lea, x86_arch_always_fancy_math_387,
2066 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
2067 x86_ext_80387_constants, x86_four_jump_limit):
2068 (override_options): Add nocona_cost to processor_target_table.
2069 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
2070 (incdec_operand): Prevent inc/dec generation for Nocona too.
2071 (ix86_issue_rate): Add PROCESSOR_NOCONA.
2073 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
2075 * rtlanal.c (find_reg_note): Manually
2078 2004-04-01 Mark Mitchell <mark@codesourcery.com>
2080 * genemit.c (gen_split): Change prototype of generated code.
2081 * genrecog.c (write_action): Adjust prototype for and calls to
2083 * gensupport.c (struct queue_elem): Add split field.
2084 (queue_pattern): Return a value. Clear the split field.
2085 (process_rtx): Maintain an association between an insn and the
2086 split generated from it for a define_insn_and_split.
2087 (process_one_cond_exec): Generate a new split for a
2088 define_insn_and_split.
2089 * config/arm/arm-protos.h (arm_split_constant): Add insn
2091 (emit_constant_insn): New function.
2092 (arm_gen_constant): Use it.
2093 * config/arm/arm.md: Adjust calls to arm_split_constant.
2095 2004-04-02 Jan Hubicka <jh@suse.cz>
2097 * cgraph.c: Add overall comment.
2098 (cgraph_inline_hash): New global variable.
2099 (cgraph_create_node): Break out from ...
2100 (cgraph_node): ... here.
2101 (cgraph_edge): New function.
2102 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
2103 (cgraph_remove_edge): Accept edge, intead of source and destination.
2104 (cgraph_redirect_edge_callee): New.
2105 (cgraph_remove_node): Update all new datastructures.
2106 (cgraph_record_call, cgraph_remove_call): Kill.
2107 (dump_cgraph_node): Break out from ... ; dump new datastructures.
2108 (dump_cgraph): ... here.
2109 (cgraph_function_possibly_inlined_p): Use new hashtable.
2110 (cgraph_clone_edge, cgraph_clone_node): New.
2111 * cgraph.h: Include hashtab.h
2112 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
2113 fields, add inlined_to pointer.
2114 (cgraph_node): Add pointer to next_clone.
2115 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
2116 (cgraph_remove_call, cgraph_record_call): Kill.
2117 (cgraph_inline_hash): Declare.
2118 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
2119 cgraph_redirect_edge_callee): Declare.
2120 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
2121 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
2122 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
2123 * cgraphunit.c: Add overall comment.
2124 (cgraph_optimize_function): Kill.
2125 (cgraph_assemble_pending_functions): Do not assemble inline clones.
2126 (cgraph_finalize_function): Update call of cgraph_remove_node
2127 (record_call_1): Record call sites.
2128 (cgraph_create_edges): Accept node instead of decl argument.
2129 (error_found): New static variable.
2130 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
2131 (cgraph_analyze_function): Update for new datastructures.
2132 (cgraph_finalize_compilation_unit): Plug memory leak.
2133 (cgraph_optimize_function): Kill.
2134 (cgraph_expand_function): Do not use cgraph_optimize_function.
2135 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
2136 cgraph_inlined_callees): Kill.
2137 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
2139 (estimate_growth): Simplify.
2140 (cgraph_clone_inlined_nodes): New function.
2141 (cgraph_mark_inline_edge): Re-implement.
2142 (cgraph_mark_inline): Likewise.
2143 (cgraph_check_inline_limits): Simplify.
2144 (cgraph_recursive_inlining_p): New.
2145 (update_callee_keys): Break out from ...
2146 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
2147 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
2149 (cgraph_expand_all_functions): Remove inline clones from the ordered
2151 (cgraph_preserve_function_body_p): New predicate.
2152 (cgraph_optimize): Verify cgraph.
2153 * function.h (struct function): Add fields saved_tree/saved_args.
2154 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
2155 * toplev.c (rest_of_compilation): Do not free cfun.
2156 * tree-inline.c: Include function.h
2157 (struct inline_data): Add saving_p field; replace decl/current_decl by
2159 (insert_decl_map): New function.
2160 (copy_body_r): Handle saving; update cgraph datastructure.
2161 (copy_body): Handle recursive inlining.
2162 (initialize_inlined_parameters): Likewise.
2163 (expand_call_inline): Propagate node attributes; update cgraph.
2164 (optimize_inline_calls): Verify that datastructure still match.
2165 (save_body): New function.
2166 * tree-inline.h (save_body): New.
2167 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
2168 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
2169 * langhooks.c (lang_hooks): Add update_decl_after_saving.
2171 2004-04-01 Serge Belyshev <1319@bot.ru>
2174 * config/i386/i386.md: fix source operand constraints in
2175 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
2177 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2179 * fold-const.c (folda): Preserve types of comparisons.
2181 2004-04-01 Richard Henderson <rth@redhat.com>
2183 * toplev.c (backend_init): Move init_optimization_passes call ...
2184 (lang_dependent_init): ... here.
2186 2004-04-01 Alan Modra <amodra@bigpond.net.au>
2187 Jakub Jelinek <jakub@redhat.com>
2189 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
2190 -lgcc --as-needed -lgcc_s --no-as-needed by default.
2191 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
2192 * configure: Rebuilt.
2193 * config.in: Rebuilt.
2194 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
2195 (stage2-start, stage3-start, stage4-start): Likewise.
2196 (stageprofile-start, stagefeedback-start): Likewise.
2198 2004-04-01 Jakub Jelinek <jakub@redhat.com>
2200 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
2201 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
2202 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
2203 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
2204 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
2205 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
2206 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
2207 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
2208 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
2209 * config/sparc/t-linux: Removed.
2211 2004-04-01 Jakub Jelinek <jakub@redhat.com>
2214 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
2215 "bitfld++ == const" to "++bitfld == const + incr" transformations.
2217 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2219 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
2220 * stor-layout.c (layout_decl): Likewise.
2221 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
2222 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
2223 * print-tree.c (print_node): Handle various used of unsigned_flag.
2224 * tree.def (BIT_FIELD_REF): Update comment.
2225 * tree.h (TREE_UNSIGNED): Deleted.
2226 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
2228 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2230 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
2231 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
2232 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
2233 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
2234 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
2235 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
2236 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
2237 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
2238 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
2239 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
2240 REAL_TYPE, not INTEGER_TYPE.
2241 (layout_type, case VECTOR_TYPE): Simplify code.
2242 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
2243 * tree.h: Update comments.
2244 (STRIP_NOPS): Use TYPE_UNSIGNED.
2245 (TYPE_UNSIGNED): New macro.
2246 (TYPE_TRAP_SIGNED): Remove now redundant check.
2247 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
2249 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2251 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
2253 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
2255 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
2256 Add darwin-fpsave.asm, darwin-vecsave.asm,
2257 and darwin-world.asm.
2258 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
2259 as the asm files contain altivec instructions.
2260 * config/rs6000/darwin-fpsave.asm: New file.
2261 * config/rs6000/darwin-vecsave.asm: New file.
2262 * config/rs6000/darwin-world.asm: New file.
2264 2004-03-31 Zack Weinberg <zack@codesourcery.com>
2266 * gengtype-yacc.y (option, stringseq): Add missing
2267 terminating semicolon.
2269 2004-03-30 David Edelsohn <edelsohn@gnu.org>
2271 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
2272 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
2273 tls_dtprel_ha_32, tls_dtprel_ha_64,
2274 tls_dtprel_lo_32, tls_dtprel_lo_64,
2275 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
2276 tls_tprel_ha_32, tls_tprel_ha_64,
2277 tls_tprel_lo_32, tls_tprel_lo_64,
2278 tls_got_tprel_32, tls_got_tprel_64,
2279 tls_tls_32, tls_tls_64): Replace register_operand with
2282 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
2284 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
2285 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
2286 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
2287 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
2288 *ctrdi_internal6): Replace register_operand with
2289 nonimmediate_operand.
2291 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
2293 * fold-const.c (fold): Reassociate multiply expression
2294 with an adjacent non-multiply expression to use
2295 architecture's multiply-add instruction.
2297 2004-03-30 Zack Weinberg <zack@codesourcery.com>
2299 * gengtype.c (create_option): New function.
2300 * gengtype.h: Prototype it.
2301 * gengtype-yacc.y (stringseq): New rule.
2302 (option): Use create_option. Add new bare ID production. Use
2303 stringseq, not STRING directly.
2305 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
2306 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
2307 * varray.h, config/alpha/alpha.c:
2308 Use new shorter form of GTY markers.
2310 * doc/gty.texi: Rewrite.
2312 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
2314 * config/darwin.c (machopic_function_base_name):
2315 Remove current_name and getting the name of the
2318 2004-03-30 Nick Clifton <nickc@redhat.com>
2320 * config/arm/arm.md (thumb_jump): Reduce the backward branch
2321 range, and increase the forward branch range, to allow for
2322 the fact that the PC will be off by 4.
2324 2004-03-30 Alan Modra <amodra@bigpond.net.au>
2326 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
2328 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
2330 * config/rs6000/rs6000.c (output_vec_const_move):
2331 Find all cases of EASY_VECTOR_15_ADD_SELF.
2332 (easy_vector_constant_add_self): Accept
2333 all vector constant loadable by vsplt* and vadd*.
2334 (easy_vector_same): Use easy_vector_splat_const.
2335 (easy_vector_const): Use easy_vector_splat_const.
2336 (easy_vector_splat_const): New function.
2337 (gen_easy_vector_constant_add_self): New function.
2339 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
2342 * config/rs6000/altivec.md (movv4si splitter): Change to
2343 emit move insn with halfed vector constant.
2344 (*movv8hi splitter): Likewise.
2345 (*movv16qi splitter): Likewise.
2347 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
2350 * config/rs6000/rs6000.c (rs6000_legitimate_address):
2351 Allow any offset to argument pointer in no-strict case.
2353 2004-03-30 Jan Hubicka <jh@suse.cz>
2355 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
2356 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
2357 dump file in non-unit-at-a-time mode.
2359 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
2361 * config/cris/cris.h: Correct #ifdef to test for
2362 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
2363 HAVE_AS_MUL_BUG_ABORT_OPTION.
2365 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2367 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
2368 the address inside the old RTL.
2370 2004-03-28 Zack Weinberg <zack@codesourcery.com>
2372 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
2373 (struct c_binding, struct c_scope): Add chain_next
2374 attributes to GTY markers.
2375 (struct lang_identifier, struct lang_tree_node): Define
2377 * c-tree.h: ... not here. No longer need to declare struct
2378 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
2379 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
2380 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
2383 * c-decl.c (get_parm_info): If error_mark_node is encountered
2384 in the bindings chain, unbind and discard it; don't abort.
2386 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
2387 Dorit Naishlos <dorit@il.ibm.com>
2389 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
2390 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
2392 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
2394 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
2396 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
2397 (m68hc11_attribute_table): New attribute "page0" to mark a global
2398 variable as being allocated from within page0 section.
2399 (m68hc11_encode_label): New function.
2400 (m68hc11_strip_name_encoding): New function.
2401 (m68hc11_page0_symbol_p): New function.
2402 (m68hc11_indirect_p): Accept global variables marked in page0.
2403 (m68hc11_encode_section_info): Lookup "page0" attribute.
2405 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
2406 represents access to page0 variables.
2408 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
2409 ("*logicalsi3_silshl16_zext"): Likewise.
2410 ("*ashldi3_const32"): Likewise.
2411 (peephole2 ashift): Likewise.
2413 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
2415 * c-tree.h (C_DECL_REGISTER): New.
2416 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
2417 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
2418 (build_array_ref, c_mark_addressable): Set and use it.
2419 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
2420 Allow structures with volatile fields to be declared register.
2421 Don't check TREE_ADDRESSABLE before warning about taking address
2423 * c-decl.c (finish_decl): Don't allow structures with volatile
2424 fields to be placed in named register.
2425 * doc/trouble.texi: Remove reference to structures with volatile
2426 fields in registers.
2428 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2430 * function.c (thread_prologue_and_epilogue): Move
2431 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
2432 before the epilogue.
2434 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2436 * expr.c (store_constructor): Use gen_int_mode to correctly
2437 sign-extend CONST_INT value.
2439 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2441 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
2442 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
2443 * doc/extend.texi: Likewise.
2445 2004-03-26 Diego Novillo <dnovillo@redhat.com>
2447 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
2448 with TYPE_ORIG_SIZE_TYPE.
2450 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
2453 * c-typeck.c (build_binary_op): Do not allow comparisons of
2456 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
2458 * config.gcc: Remove sparc-tti-*.
2459 * config/sparc/pbd.h: Delete.
2461 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
2462 * config/sparc/aout.h: Likewise.
2464 * config/sparc/sparc.h: Remove if 0'd code.
2465 * config/sparc/sparc.md (call): Remove if 0'd code.
2466 (call_value): Likewise.
2467 (nonlocal_goto): Likewise.
2468 (unimp_insn): Delete.
2470 2004-03-25 Roger Sayle <roger@eyesopen.com>
2472 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
2473 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
2475 2004-03-25 Richard Henderson <rth@redhat.com>
2478 * c-typeck.c (pop_init_level): Emit pending init elements earlier
2481 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2483 * builtins.c (fold_builtin): Fix error in last change.
2485 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
2487 * config/mips/mips.h: Formatting fix.
2489 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2491 * builtins.def: Add ctype builtins.
2492 * doc/extend.texi: Likewise.
2494 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2496 * builtins.c (fold_builtin): Add new builtin optimizations for
2498 * fold-const.c (fold): Likewise.
2500 2004-03-25 David Edelsohn <edelsohn@gnu.org>
2502 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
2503 (rs6000_sched_groups): New variable.
2504 (processor_target_table): Add power5.
2505 (rs6000_override_options): Set rs6000_sched_insert_nops,
2506 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
2507 from rs6000_sched_groups.
2508 (output_cbranch): Use rs6000_always_hint.
2509 (rs6000_variable_issue): Use rs6000_sched_groups.
2510 (rs6000_adjust_cost): Add CPU_POWER5.
2511 (is_microcoded_insn): Use rs6000_sched_groups.
2512 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
2513 Return 2 for POWER5 cracked instructions.
2514 (is_cracked_insn): Use rs6000_sched_groups.
2515 (is_branch_slot_insn): Use rs6000_sched_groups.
2516 (rs6000_issue_rate): Add CPU_POWER5.
2517 (rs6000_sched_finish): Use rs6000_sched_groups.
2518 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
2519 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
2520 (DEFAULT_SCHED_COSTLY_DEP): Delete.
2521 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
2522 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
2523 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
2524 * config/rs6000/power5.md: New file.
2525 * doc/invoke.texi: Add power5 option.
2527 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
2529 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
2530 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
2531 * doc/invoke.texi: Fix a typo.
2533 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
2535 PR optimization/9707.
2536 * stmt.c (emit_case_nodes): Emit equality comparisons instead
2537 of recursing if both children are single-valued cases with no
2540 2004-03-25 Paul Brook <paul@codesourcery.com>
2542 * config/arm/arm.c (vfp_print_multi): Remove.
2543 (arm_output_fldmx): New function.
2544 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
2545 (arm_expand_prologue): Update to match.
2546 (arm_get_vfp_saved_size): New Function.
2547 (arm_get_frame_offsets): Use it.
2548 (arm_output_epilogue): Use new functions.
2550 2004-03-24 Richard Henderson <rth@redhat.com>
2552 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
2553 (reg_known_value, reg_known_value_size): Likewise; make static.
2554 (reg_known_equiv_p): Make static.
2555 (clear_reg_alias_info): Update for new indexing.
2556 (get_reg_known_value, set_reg_known_value): New.
2557 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
2558 (canon_rtx): Use them.
2559 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
2560 Don't play queer offsetting games with reg_known_value and
2562 (end_alias_analysis): Free reg_known_value with gc.
2563 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
2564 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
2565 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
2568 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
2570 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
2571 config/i386/mmintrin.h: Update copyright.
2573 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2575 * configure.ac: Add --enable-werror-always (for top level bootstrap
2577 * configure: Regenerate.
2579 2004-03-24 Ziemowit Laski <zlaski@apple.com>
2581 * objc/objc-act.c (objc_comptypes): Treat comparisons
2582 between 'Class' and '<class> *' as explicitly invalid.
2584 2004-03-24 David Edelsohn <edelsohn@gnu.org>
2586 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
2587 (-fprofile-values): Add enabled with profile-{generate,use}.
2589 (-ftracer): Add enabled with profile-use.
2590 (-funit-at-a-time): Add enabled at -O2,-O3.
2591 (-funroll-loops): Add enabled with profile-use.
2592 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
2593 (max-gcse-passes): Mention default.
2594 (max-cse-path-length): Mention default.
2596 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2598 * Makefile.in (STRICT2_WARN): Reorder.
2599 * configure.ac: Check for -Wold-style-definition, and use it
2600 in strict1_warn if it's available.
2601 * configure: Regnerate.
2603 2004-03-24 Paul Brook <paul@nowt.org>
2605 * config.gcc <arm>: Add --with-abi=
2606 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
2607 thumb_far_jump_used): Remove prototypes.
2608 (arm_needs_doubleword_align): Add prototype.
2609 (thumb_compute_initial_elimination_offset): Ditto.
2610 * config/arm/arm.c (arm_get_frame_offsets): New function.
2611 (use_return_insn, output_return_instruction, arm_output_epilogue,
2612 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
2613 arm_expand_prologue, thumb_expand_epilogue): Use it.
2614 (arm_abi, target_abi_name, all_arm_abis): New variables.
2615 (arm_override_options): Set them. Set structure padding for AAPCS.
2616 (arm_return_in_memory): Update ABI check.
2617 (arm_init_cumulative_args): Initialize can_split.
2618 (arm_needs_doubleword_align): New function.
2619 (arm_function_arg): Don't split args after pushing to stack. Handle
2620 doubleword/even reg alignment.
2621 (arm_va_arg): Handle all doubleword aligned args.
2622 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
2624 (arm_compute_save_reg0_reg12_mask): Fix comment.
2625 (thumb_get_frame_size, thumb_get_frame_size): Remove.
2626 (thumb_jump_far_used_p): Remove superfluous argument. Return save
2627 value for alignment.
2628 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
2630 (thumb_compute_initial_elimination_offset): New function.
2631 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
2632 unneccessary rounding.
2633 * config/arm/arm.h (target_abi_name): Declare.
2634 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
2635 arm_abi_type, ARM_DEFAULT_ABI): Define.
2636 (ARM_FLAG_ATPCS): Remove.
2637 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
2638 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
2639 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
2640 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
2641 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
2642 Contitionalize on ABI, not CPU.
2643 (struct arm_stack_offsets): Define.
2644 (struct machine_function): Add stack_offsets. Remove frame_size.
2645 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
2647 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
2648 doubleword alignment.
2649 (THUMB_INITIAL_ELIMINATION_OFFSET,
2650 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
2651 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
2652 * config/arm/arm.md (align_8): Enable for all targets.
2653 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
2654 (ARM_DEFAULT_ABI): Define.
2655 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
2656 -mstructure-size-boundary.
2658 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2660 * configure.ac: Check for -Wno-variadic-macros; don't use
2661 -pedantic (in stage 1 or a simple 'make all') unless it's available,
2662 and if it's available, use it. Also, clean up check for
2664 * configure: Regenerate.
2666 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2668 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
2669 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
2670 (MULTILIB_DEFAULTS): Use it.
2671 (MIPS_CPU_STRING_DEFAULT): Remove.
2672 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
2673 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
2674 EABI64 -mlong32 the default ABI. Enforce the default architecture.
2675 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
2676 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
2677 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
2678 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
2681 2004-03-24 DJ Delorie <dj@redhat.com>
2682 Richard Sandiford <rsandifo@redhat.com>
2684 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
2685 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
2686 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
2687 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
2688 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
2689 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
2690 if TARGET_FIX_VR4122.
2691 * config/mips/mips.md (define_attr length): Account for nops inserted
2692 after macc and dmult when using -mfix-vr4122-bugs.
2693 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
2694 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
2695 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
2696 * config/mips/vr4122-div.S: New file.
2697 * doc/invoke.texi: Document -mfix-vr4122-bugs.
2699 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2701 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
2702 (TARGET_MIPS4130): New macro.
2703 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
2704 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
2705 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
2706 with PROCESSOR_R4130.
2707 * config/mips/mips.md (define_attr cpu): Add r4130.
2708 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
2710 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2711 Richard Sandiford <rsandifo@redhat.com>
2713 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
2715 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
2717 PR preprocessor/14438
2718 * cpplib.c (do_pragma): Remove line_change call after pragma
2721 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
2723 * doc/extend.texi (ARM Built-in Functions): Replace with correct
2726 2004-03-23 Roger Sayle <roger@eyesopen.com>
2728 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
2729 if flag_unsafe_math_optimizations.
2730 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
2731 and TARGET_80387 expand using truncdfsf2_noop pattern.
2732 (truncxfsf2): Likewise using truncxfsf2_noop.
2733 (truncxfdf2): Likewise using truncxfdf2_noop.
2734 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
2736 2004-03-23 Ziemowit Laski <zlaski@apple.com>
2738 * hooks.c (hook_constcharptr_tree_null): New hook.
2739 * hooks.h (hook_constcharptr_tree_null): New prototype.
2740 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
2741 * target.h (mangle_fundamental_type): New target hook.
2742 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
2743 target hook at rs6000_mangle_fundamental_type.
2744 (rs6000_mangle_fundamental_type): New function.
2745 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
2747 2004-03-23 Zack Weinberg <zack@codesourcery.com>
2749 PR 12267, 12391, 12560, 13129, 14114, 14133
2750 * c-tree.h: Forward declare struct c_binding. Declare
2751 c_override_bindings_to_false. Update prototypes.
2752 (struct lang_identifier): Update comments. Change fields to be
2754 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
2755 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
2756 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
2757 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
2758 * c-common.h: Update prototypes.
2759 * c-decl.c (struct c_scope): Update commentary. Remove names,
2760 names_last, parms, parms_last, tags, and shadowed fields. Add
2761 bindings and depth fields.
2762 (scope_freelist): Move to more appropriate location.
2763 (c_print_identifier): Update for changes to struct lang_identifier.
2764 (objc_mark_locals_volatile): Update for new bindings structures.
2765 (global_bindings_p): Honor c_override_global_bindings_to_false.
2766 (pushlevel): Rename to push_scope; take no arguments; use the
2767 scope_freelist; initialize scope->depth and check for overflow.
2768 (poplevel): Rename to pop_scope; totally rewritten for new bindings
2770 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
2771 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
2772 Improve some commentary. Adjust handling of forward parm decls.
2773 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
2774 Preserve C_DECL_IN_EXTERNAL_SCOPE.
2775 (warn_if_shadowing): Correct indentation. Improve diagnostics.
2776 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
2777 decls. Rewrite for new bindings structures. Improve commentary.
2778 Eliminate the copy_node call.
2779 (implicit_decl_warning): Use the "diag" idiom (as seen in
2780 locate_old_decl) to reduce code duplication; call locate_old_decl
2781 if appropriate. Relocate to remove need for forward declaration.
2782 (implicitly_declare): Adjust for new bindings structures. Kludge
2783 around Objective-C not-really-builtin functions.
2784 (undeclared_variable): Improve diagnostics. If current_function_decl
2785 is nonnull but current_function_scope is null, use current_scope.
2787 (lookup_tag): Adjust for new bindings structures. Kludge around
2788 Objective-C's tag declarations that wind up in the external scope.
2789 (lookup_name): Adjust for new bindings structures. Kludge around
2790 c-common.c's pseudo-typedefs that wind up in the external scope.
2791 (lookup_name_current_level): Rename lookup_name_in_scope; take a
2792 second argument indicating the scope to examine; rewrite for
2793 new bindings structures.
2794 (c_init_decl_processing): Adjust for renamed functions. Do not
2795 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
2796 First scope pushed is the external scope, not the global scope.
2797 (builtin_function): Use bind, not pushdecl. Adjust other bits
2798 for new data structures. Keep track of builtins that should be
2799 made visible automatically.
2800 (start_decl): Adjust diagnostics. Remove unnecessary call to
2802 (grokparms): Return 0 if arg_types is error_mark_node.
2803 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
2804 reversed sense. Rewrite for new bindings structures. Do not
2805 leave any decls in the scope, to prevent pop_scope from doing
2806 contradictory things with them.
2807 (finish_struct, finish_enum): Remove redundant diagnostics.
2808 (build_enumerator): Don't cascade diagnostics for error_mark_node.
2809 Mark location where -pedantic changes the meaning of the program.
2810 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
2811 parameter decls into the function's scope structure using bind.
2812 Warn here about function definitions in the wrong style.
2814 (store_parm_decls): Correct the determination of whether a
2815 function was defined with a prototype.
2816 (c_write_global_declarations): Operate on all file decls and on
2817 the external scope. Split body of the loop to...
2818 (c_write_global_declarations_1): ... this new function, to avoid
2820 (truly_local_externals, first_builtin_decl, last_builtin_decl)
2821 (make_scope, pop_scope, in_parm_level_p, set_block)
2822 (any_external_decl, record_external_decl, bind_label, getdecls)
2823 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
2824 (c_reset_state): Delete.
2825 (visible_builtins, c_override_global_bindings_to_false)
2826 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
2827 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
2828 (external_scope, binding_freelist, bind, free_binding_and_advance)
2829 (push_file_scope, pop_file_scope): New.
2830 (pushtag, pushdecl_top_level, lookup_label, declare_label)
2831 (define_label, c_make_fname_decl, finish_decl)
2832 (mark_forward_parm_decls, build_compound_literal)
2833 (grokdeclarator, start_function, check_for_loop_decls)
2834 (identifier_global_value, record_builtin_type): Minor adjustments
2835 for new bindings structures. Improve diagnostics and commentary.
2836 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
2837 pushlevel/poplevel respectively.
2838 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
2839 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
2840 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
2841 correct loop over multiple translation units; call fatal_error if
2842 requested to compile more than one file at once. (This disables
2843 IMA temporarily - an up-front error being preferable to a crash.)
2844 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
2845 (all actions): Adjust calls to pushlevel/poplevel.
2846 (parsing_iso_function_signature): Delete.
2847 (extdef_1): Fold into extdef.
2848 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
2849 warn here about function definitions in the wrong style.
2850 (after_tyle_declarator, parm_declarator_starttypename)
2851 (parm_declarator_nostarttypename, notype_declarator): Remove
2852 commented-out productions.
2853 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
2854 an empty TREE_LIST node. Adjust calls to get_parm_info.
2855 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
2856 to suppress -Wold-style-definition after this error.
2857 (c_parse_file): Don't clear the binding stack or call
2858 finish_fname_decls here. Correct comment.
2859 * c-typeck.c (same_translation_unit_p): Export.
2860 (common_type): Use c_override_global_bindings_to_false, not
2861 pushlevel/poplevel/declare_parm_level.
2862 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
2863 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
2864 and LANG_HOOKS_GETDECLS with do-nothing stubs.
2865 * objc/objc-lang.c: Likewise.
2866 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
2868 (OBJC_VOID_AT_END): Delete; replace all uses
2869 with void_list_node.
2870 (generate_forward_declaration_to_string_table): Delete.
2871 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
2873 * coverage.c (create_coverage): Don't pushdecl anything.
2874 * langhooks.c (lhd_clear_binding_stack): Call
2875 lang_hooks.decls.poplevel, not poplevel.
2876 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
2877 circular list rather than going into an infinite loop.
2879 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
2881 * optabs.c (expand_binop): When synthesizing double word rotates
2882 from single word shifts, use a new register target if the provided
2883 target is not a REG already.
2885 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2887 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
2888 * c-common.c (handle_mode_attribute): Add extra arg to
2889 build_pointer_type_for_mode and build_reference_type_for_mode.
2890 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
2892 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
2893 Chain pointers via TYPE_NEXT_PTR_TO.
2894 (build_reference_type_for_mode): Similarly.
2895 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
2896 and build_reference_type_for_mode.
2897 (tree_check4_failed): New function.
2898 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
2899 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
2900 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
2903 2004-03-23 Roger Sayle <roger@eyesopen.com>
2905 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
2906 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
2907 when both A and B are nonnegative.
2908 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
2911 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2913 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
2914 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
2916 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2918 PR optimization/14669
2919 * fold-const.c (fold): Only unwiden integer comparisons for equality
2920 and inequality operators, or when the signedness doesn't change.
2922 2004-03-23 Jakub Jelinek <jakub@redhat.com>
2924 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
2925 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
2926 * config/sparc/t-linux: New file.
2928 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
2930 * gcse.c (can_assign_to_reg_p): New function, split out from...
2931 (want_to_gcse_p): ...here.
2932 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
2935 2004-03-22 Diego Novillo <dnovillo@redhat.com>
2937 * c-typeck.c (same_translation_unit_p): Fix pasto.
2939 2004-03-22 David Edelsohn <edelsohn@gnu.org>
2941 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
2942 (PARAM_MAX_SCHED_REGION_INSNS): New.
2943 * sched-rgn.c: Include params.h
2944 (MAX_RGN_BLOCKS): Delete.
2945 (MAX_RGN_INSNS): Delete.
2946 (too_large): Return bool. Convert to PARAM_VALUE.
2947 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
2948 * doc/invoke.texi (param): Document max-sched-region-blocks and
2949 max-sched-region-insns.
2951 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2953 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
2956 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2958 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
2961 2004-03-22 Jakub Jelinek <jakub@redhat.com>
2964 * c-decl.c (finish_struct): Change type of incorrect flexible array
2965 field into error_mark_node.
2967 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
2970 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
2971 who are not local for Darwin PIC.
2973 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
2975 * regrename.c (regrename_optimize): Set regs_ever_live for all
2976 registers introduced as replacement.
2978 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2981 * expr.c (mark_queue): New function.
2982 (emit_insns_enqueued_after_mark): New function replacing
2983 emit_queue. Clear the body of emitted queued insns.
2984 (emit_queue): Call emit_insns_enqueued_after_mark.
2985 (store_expr): Mark the increment queue on entry. Emit
2986 only the incrementations queued when expanding the source.
2988 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
2990 * configure.ac: Allow --disable-coverage-flags (for the future benefit
2991 of top level bootstrap, and consistency). Reindent.
2992 * configure: Regenerate.
2994 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
2996 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
2997 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
3000 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
3003 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
3006 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3008 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
3009 to nonimmediate_operand.
3010 ("*doloop_di"): Likewise.
3012 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
3014 * real.h (struct real_value): Use the same type for all
3015 bitfields. Rename exp to uexp.
3016 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
3017 Adjust all uses of exp...
3018 * builtins.c: ... here, ...
3019 * emit-rtl.c: ... here, and ...
3020 * real.c: ... and here.
3022 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
3024 * pretty-print.c (pp_base_maybe_space): New function.
3025 * pretty-print.h (pp_base_maybe_space): Declare.
3026 (pp_maybe_space): New macro.
3028 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3030 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
3032 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3034 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
3035 of using register multiplication cost.
3036 (expand_mult): Adapt choose_mult_variant call.
3037 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
3038 of MODE; pass appropriate cost bound. Adjust result when
3039 performing signed multiplication by a negative constant.
3040 Don't use intermediate modes larger than word_mode.
3042 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3044 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
3045 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
3046 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
3047 * explow.c (expr_size): Likewise.
3048 * expr.h (placeholder_list, find_placeholder): Deleted.
3049 * expr.c (store_constructor): Likewise.
3050 (get_inner_reference): Likewise. Also don't call find_placeholder.
3051 (placeholder_list, find_placeholder): Deleted.
3052 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
3053 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
3054 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
3055 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
3056 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
3058 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
3059 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
3060 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
3061 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
3062 Clean up by using first_rtl_op.
3063 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
3064 (substitute_placeholder_in_expr): New function.
3065 * tree.def (WITH_RECORD_EXPR): Deleted.
3066 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
3067 (substitute_placeholder_in_expr): New.
3069 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
3071 * dojump.c (prefer_and_bit_test): Fix which part of
3072 the and_test is replaced.
3074 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
3076 * frontends.texi: Add missing line.
3078 2004-03-21 Zack Weinberg <zack@codesourcery.com>
3079 Chris Devers <cdevers@pobox.com>
3080 Joseph S. Myers <jsm@polyomino.org.uk>
3082 * doc/frontends.texi: Rewrite.
3083 * doc/gcc.texi: Update last modification date.
3085 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
3087 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
3088 message before redirecting the edge.
3090 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3092 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
3094 * explow.c (force_not_mem): Set REG_POINTER flag according to
3096 * rtl.h (MEM_POINTER): New macro.
3097 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
3100 2004-03-20 Roger Sayle <roger@eyesopen.com>
3103 * cse.c (fold_rtx): Avoid substituting constants into unary
3104 conversion operations.
3106 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3108 * fold-const.c (fold): Replace "expr" with "t".
3110 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
3113 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
3114 DECL_ORIGINAL_TYPE if there isn't one.
3116 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3118 * fold-const.c (fold): Replace "final_type" with "type".
3119 Remove variable "final_type".
3121 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3123 * fold-const.c (fold): Constify "type".
3124 Replace "TREE_TYPE (t)" with "type".
3126 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3128 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
3129 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
3130 via (*targetm.foo) () with targetm.foo ().
3132 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
3135 * doc/install.texi: Add info directory category and entry.
3137 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3139 * fold-const.c (fold): Replace "t" with "tem" where it is used
3140 as a temporary variable. Remove "orig_t" and all of its uses.
3142 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3144 * fold-const.c (fold): Remove variable "invert".
3145 Move the handling of relational expressions that can be folded
3147 (fold_relational_const): ... here.
3148 (tree_expr_nonzero_p): New.
3150 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
3153 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
3156 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
3158 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
3159 (GTFILES): Add $(srcdir)/dojump.h.
3160 (gt-dojump.h): New dependency.
3161 * dojump.c (and_reg, and_test, shift_test): New static variables.
3162 (prefer_and_bit_test): New function.
3163 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
3165 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
3167 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
3168 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
3169 reorg.c, tree.h: Fix comment typos.
3171 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
3173 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
3174 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
3175 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
3176 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
3177 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
3178 vmsdbgout.c: Replace calls via (*targetm.foo) () with
3181 2004-03-19 Ziemowit Laski <zlaski@apple.com>
3183 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
3184 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
3185 always_inline attribute.
3186 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
3187 Treat expansion as completed even if literal argument is
3188 invalid (so that other expansions are not tried in vain).
3190 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
3192 * loop-doloop.c (add_test): Replace GEN_INT (0) with
3195 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
3197 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
3199 (fold_abs_const): ... here.
3201 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3203 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
3205 2004-03-19 Denis Chertykov <denisc@overta.ru>
3208 * config/avr/avr.md ("call_insn"): Handle explicit integer
3210 (call_value_insn): Likewise.
3212 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3214 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
3216 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
3218 * fold-const.c (negate_expr): Move the handling of constants
3220 (fold_negate_const): ... here.
3222 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3224 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
3225 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
3226 * tree.c (debug_no_type_hash): Deleted.
3227 (type_hash_canon): Abort if passed a variant.
3228 Check lang_hooks.types.hash_types.
3229 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
3230 (build_array_type): Remove unnecessary allocation of pointer type.
3231 (build_complex_type): Properly qualify resulting type.
3233 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
3235 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
3237 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
3239 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
3240 (expand_mult): ...here.
3241 (extract_high_half): New, split out from expand_mult_highpart.
3242 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
3243 (expand_highpart): Evaluate the cost of a shift/add sequence,
3244 then see if any of the specialized optabs are cheaper.
3246 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
3248 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
3250 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3252 * convert.c (convert_to_real): Add more math builtins.
3254 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3256 * convert.c (convert_to_real): Reformat using switch stmt.
3258 2004-03-18 Mark Mitchell <mark@codesourcery.com>
3260 * c-common.c (pointer_int_sum): Do not complain about using
3261 pointers to pointers-to-members.
3263 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
3265 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
3266 have moved to the target hooks structure".
3268 2004-03-18 James E Wilson <wilson@specifixinc.com>
3270 * config/mips/mips.md (type): Split move into arith and fmove. Split
3271 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
3272 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
3274 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
3276 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
3277 rm7_fp_quick): Likewise.
3278 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
3279 rm9k_fquick): Likewise.
3280 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
3282 (ir_sr70_icmp): Delete.
3284 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3286 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
3287 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
3288 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
3289 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
3290 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
3291 Protect with proper check.
3292 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
3293 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
3294 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
3295 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
3296 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
3297 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
3299 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
3301 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
3303 * gcse.c (eliminate_partially_redundant_loads): Reject change if
3304 dest is set between beginning and current insn.
3306 2004-03-18 Mark Mitchell <mark@codesourcery.com>
3308 * c-decl.c (grokdeclarator): Do not complain about redeclaring
3309 visible "static" identifiers "extern" in a local scope.
3310 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
3311 post-increments/decrements.
3313 2004-03-18 Bob Wilson <bob.wilson@acm.org>
3315 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
3316 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
3317 (xtensa_va_start): Remove assignment to current_function_arg_words.
3319 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
3321 * alias.c (record_set): Detect the case where a register is assigned
3322 a new value that has the same base term as the old one.
3324 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3326 * doloop.c: Removed.
3327 * loop-doloop.c: New file.
3328 * Makefile.in (doloop.o): Remove.
3329 (loop-doloop.o): New.
3330 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
3331 * cfgloopanal.c (get_loop_level): New function.
3332 * loop-iv.c (iv_number_of_iterations): Handle case when loop
3333 is leaved immediatelly.
3334 * loop.c (strength_reduce): Do not call doloop optimization.
3335 * loop.h (LOOP_BCT): Removed.
3336 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
3337 (rest_of_handle_loop2): Call doloop_optimize_loops.
3338 (rest_of_compilation): Test for optimizations moved to
3339 rest_of_handle_loop2.
3341 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
3343 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
3345 (rs6000_emit_prologue): Ditto.
3346 (rs6000_emit_epilogue): Ditto.
3347 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
3348 macro for mixed mode.
3350 2004-03-18 Jan Hubicka <jh@suse.cz>
3352 * predict.c (propagate_freq): Compute correctly frequency of
3355 2004-03-17 Eric Christopher <echristo@redhat.com>
3357 * builtins.c (apply_args_size): Use reg_raw_mode.
3358 (apply_result_size): Ditto.
3360 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3363 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
3365 2004-03-17 Jakub Jelinek <jakub@redhat.com>
3367 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
3368 32-bit builds when defaulting to 32-bit.
3370 2004-03-17 Jan Hubicka <jh@suse.cz>
3372 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
3375 2004-03-17 James E Wilson <wilson@specifixinc.com>
3377 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
3378 (hazard_nop): Change type to nop.
3379 (type): Split arith into arith, shift, slt, clz. Delete darith.
3380 Fix all uses. Change arith to multi if more than one insn emitted.
3381 * config/mips/5400.md (ir_vr54_arith): Likewise.
3382 * config/mips/5500.md (ir_vr55_arith): Likewise.
3383 * config/mips/7000.md (rm7_int_other): Likewise.
3384 * config/mips/9000.md (rm9k_int): Likewise.
3385 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
3387 2004-03-17 Joel Brobecker <brobecker@gnat.com>
3389 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
3390 to hold the subtype tree instead of recomputing it several times.
3392 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
3394 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
3396 * config/mn10300/mn10300.md (cc): Remove "invert".
3398 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3400 * builtins.c (integer_valued_real_p): Add builtin rint.
3401 (fold_builtin): Likewise.
3402 * convert.c (convert_to_real): Likewise.
3404 * convert.c (convert_to_real): Fix typos in `long double'
3407 2004-03-16 Mark Mitchell <mark@codesourcery.com>
3410 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
3411 generated COMPOUND_EXPRs.
3413 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3415 * config/h8300/t-rtems (h8300-*-rtems*): New.
3417 2004-03-16 Eric Christopher <echristo@redhat.com>
3419 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
3421 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
3423 * config/i386/i386-protos.h: Add a prototype for
3424 ix86_reverse_condition.
3425 * config/i386/i386.c (ix86_reverse_condition): New.
3426 * config/i386/i386.h (REVERSE_CONDITION): Use
3427 ix86_reverse_condition.
3428 * config/i386/i386.md: Use ix86_reverse_condition instead of
3431 2004-03-16 J. Brobecker <brobecker@gnat.com>
3433 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
3435 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
3438 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
3440 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
3442 * c-common.c (c_common_type_for_mode): Build vector types on
3444 (handle_mode_attribute): Deprecate using the mode attribute
3445 to create vector types. Fix indentation.
3446 (vector_type_node_list): Remove.
3447 (handle_vector_size_attribute): Create vector types on demand.
3448 Strip a NON_LVALUE_EXPR from the attribute if there is one.
3449 * c-typeck.c (comptypes): Make vector types compatible if they
3450 have the same underlying mode.
3451 (convert_for_assignment): Use comptypes to convert between
3453 * tree.c (build_common_tree_nodes_2): Do not create vector types.
3454 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
3456 * tree.h: Remove vector types.
3457 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
3458 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3459 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
3460 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
3461 * doc/extend.texi (Vector Types): Document how to use the
3462 vector_size attribute to create vectors, rather than mode.
3464 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
3465 * config/i386/emmintrin.h: Likewise.
3466 * config/i386/mmintrin.h: Likewise.
3467 * config/i386/xmmintrin.h: Likewise.
3468 * config/sh/ushmedia.h: Likewise.
3470 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
3472 * config/freebsd-spec.h, config/arc/arc-protos.h,
3473 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
3474 config/arm/linux-gas.h, config/arm/semi.h,
3475 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
3476 config/ia64/freebsd.h, config/mips/7000.md,
3477 config/mips/9000.md, config/ns32k/ns32k-protos.h,
3478 config/sparc/pbd.h: Update copyright.
3480 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3483 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
3485 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
3487 * combine.c (combine_simplify_rtx): Remove the "last"
3488 parameter and its documentation. Adjust recursive calls.
3489 (simplify_logical): Always perform the only simplification
3490 controlled by "last", if the simplified expression is
3492 (try_combine): Do not pass the "last" parameter to
3493 combine_simplify_rtx.
3495 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
3498 * config/mips/mips.md (UNSPEC_GP): New constant.
3499 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
3500 an UNSPEC instead of (reg $gp).
3501 (mips16_gp_pseudo_reg): Change accordingly.
3502 (print_operand): Print $gp directly when handling CONST_GP_P.
3504 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
3506 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
3507 * longlong.h: Make code 68060 clean when compiling for m68060.
3509 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
3511 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
3512 * doc/md.texi: Clarify description of "i" constraint.
3514 2004-03-15 James E Wilson <wilson@specifixinc.com>
3516 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
3517 Split store into store, fpstore, fpidxstore. Fix all uses.
3518 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
3520 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
3521 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
3522 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
3523 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
3524 ir_sr70_fstore): Likewise.
3526 2004-03-15 Richard Henderson <rth@redhat.com>
3529 * except.c (collect_one_action_chain): Record action for cleanup
3530 outer of exception spec.
3532 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
3534 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3535 Fix the check for abort and only do the mmap if we can.
3537 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
3539 * config/sparc/sparc.h: Rework comments about the code model
3540 in 64-bit environment and the mode 'Pmode'.
3541 * doc/invoke.texi (SPARC options): Rework description of the
3542 different code models supported in 64-bit environment.
3544 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
3546 * defaults.h (REVERSIBLE_CC_MODE): Define.
3547 * jump.c (reversed_comparison_code_parts): Don't check if
3548 REVERSIBLE_CC_MODE is defined.
3550 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
3552 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
3553 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
3554 hosthooks.h, params.h, ra-colorize.c, web.c,
3555 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
3556 config/avr/avr-protos.h, config/avr/avr.md,
3557 config/fr30/fr30-protos.h, config/fr30/fr30.md,
3558 config/h8300/fixunssfsi.c, config/i386/darwin.h,
3559 config/i386/freebsd.h, config/i386/freebsd64.h,
3560 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
3561 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
3562 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
3563 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
3564 config/pa/pa64-regs.h, config/rs6000/aix41.h,
3565 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
3566 config/sparc/aout.h, config/sparc/freebsd.h,
3567 config/sparc/litecoff.h, config/vax/vax-protos.h,
3568 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
3571 2004-03-15 Paul Brook <paul@codesourcery.com>
3573 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
3575 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
3577 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
3578 (pp_c_cv_qualifier): Document.
3579 (pp_c_space_for_pointer_operator): Likewise.
3580 (pp_c_integer_constant): Likewise.
3581 (pp_c_identifier): Likewise.
3582 (pp_c_init_declarator): Don't print function body.
3584 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
3586 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
3587 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
3588 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
3589 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
3590 wording and grammar.
3592 2004-03-14 Roger Sayle <roger@eyesopen.com>
3594 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
3595 with lang_hooks.foo ().
3596 * builtins.c (expand_builtin_va_arg): Likewise.
3597 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
3598 c_common_type_for_mode, c_common_nodes_and_builtins,
3599 handle_mode_attribute, handle_vector_size_attribute): Likewise.
3600 * c-convert.c (convert): Likewise.
3601 * c-format.c (check_format_types): Likewise.
3602 * c-objc-common.c (c_tree_printer): Likewise.
3603 * c-typeck.c (build_unary_op, build_conditional_expr,
3604 build_binary_op): Likewise.
3605 * calls.c (try_to_integrate, expand_call,
3606 emit_library_call_value_1): Likewise.
3607 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
3609 * cgraphunit.c (record_call_1, cgraph_analyze_function,
3610 cgraph_expand_function): Likewise.
3611 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
3612 * coverage.c (build_fn_info_type, build_ctr_info_type,
3613 build_gcov_info, create_coverage): Likewise.
3614 * dbxout.c (dbxout_init): Likewise.
3615 * diagnostic.c (diagnostic_report_current_function): Likewise.
3616 * dojump.c (do_jump): Likewise.
3617 * dwarf2out.c (dwarf2_name): Likewise.
3618 * except.c (init_eh): Likewise.
3619 * explow.c (expr_size, int_expr_size): Likewise.
3620 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
3622 * expr.c (store_expr, store_constructor, safe_from_p,
3623 expand_expr_real, do_store_flag, try_casesi): Likewise.
3624 * function.c (push_function_context_to, pop_function_context_from,
3625 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
3626 put_var_into_stack, allocate_struct_function, current_function_name):
3628 * integrate.c (copy_decl_for_inlining, expand_inline_function):
3630 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
3631 lhd_print_error_function): Likewise.
3632 * opts.c (handle_option, decode_options): Likewise.
3633 * passes.c (open_dump_file): Likewise.
3634 * print-tree.c (print_node): Likewise.
3635 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
3636 expand_decl_cleanup, emit_case_nodes): Likewise.
3637 * stor-layout.c (variable_size): Likewise.
3638 * toplev.c (announce_function, wrapup_global_declarations,
3639 check_global_declarations, compile_file, default_tree_printer,
3640 process_options, lang_dependent_init, finalize): Likewise.
3641 * tree-dump.c (dequeue_and_dump): Likewise.
3642 * tree-inline.c (remap_decl, remap_block, copy_body_r,
3643 initialize_inlined_parameters, declare_return_variable,
3644 inlinable_function_p, expand_call_inline, optimize_inline_calls,
3645 walk_tree, copy_tree_r): Likewise.
3646 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3647 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
3648 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
3649 variably_modified_type_p, dump_tree_statistics): Likewise.
3650 * varasm.c (assemble_variable, compare_constant, copy_constant,
3651 force_const_mem, compute_reloc_for_constant, output_constant,
3652 output_addressed_constants, initializer_constant_valid_p): Likewise.
3654 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
3656 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
3658 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
3660 * doc/install.texi: Reflect autoconf and automake version for
3661 libffi. Update autoconf version to 2.59.
3663 2004-03-13 Roger Sayle <roger@eyesopen.com>
3665 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
3666 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
3667 make_range, build_range_check, fold_range_test, unextend,
3668 constant_boolean_node, fold_binary_op_with_conditional_arg,
3669 fold_truthop, fold_mathfn_compare, fold_inf_compare,
3670 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
3671 with lang_hooks.foo ().
3673 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
3675 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
3677 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
3679 * doc/install.texi: Note status of -fnew-ra.
3681 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3684 * expr.c (store_expr): Call emit_queue before generating the move
3685 from the temporary to the original target. Protect the temporary
3688 2004-03-13 Jakub Jelinek <jakub@redhat.com>
3691 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
3692 other than UNSPEC_GOTOFF.
3694 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
3696 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
3697 to arm_legitimate_index_p. Update all callers with SET as default
3699 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
3700 range if OUTER is a sign-extend operation on QImode. Correctly
3701 reject shift operations on sign-extended QImode addresses.
3702 (bad_signed_byte_operand): Delete.
3703 (arm_extendqisi_mem_op): New function.
3704 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
3705 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
3707 (CONSTRAINT_LEN): New.
3708 (EXTRA_CONSTRAINT): Delete. Replace with...
3709 (EXTRA_CONSTRAINT_STR): ... this.
3710 (PREDICATE_CODES): Remove bad_signed_byte_operand.
3711 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
3712 is now always default.
3713 (define_splits for bad sign-extend loads): Delete.
3714 (arm_extendqisi, arm_extendqisi_v5): Likewise.
3715 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
3716 Rework 'U' constraint to 'Uv'.
3717 * arm-protos.h: Remove bad_signed_byte_operand. Add
3718 arm_extendqisi_mem_op.
3719 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
3722 2004-03-13 Alan Modra <amodra@bigpond.net.au>
3724 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
3725 with targetm version.
3728 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
3729 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
3730 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
3731 Update all users of RS6000_ARG_SIZE.
3732 (function_arg_advance): Count fregno using mode size.
3733 (function_arg): Handle long double split over regs and memory.
3734 (function_arg_partial_nregs): Likewise.
3735 (rs6000_va_arg): Repackage complex args.
3737 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
3740 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
3741 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
3742 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
3744 2004-03-12 Jakub Jelinek <jakub@redhat.com>
3746 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
3748 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
3749 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
3751 2003-03-12 Andrew Pinski <apinski@apple.com>
3753 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3754 Use ret instead of result. Use addr instead of base.
3756 2004-03-12 David Edelsohn <edelsohn@gnu.org>
3758 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
3759 fixes required by libstdc++ and update installation instructions
3762 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
3764 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
3765 leading '@' on fastcall symbols before stripping suffix.
3767 2004-03-12 Roger Sayle <roger@eyesopen.com>
3769 * combine.c (unmentioned_reg_p): New function to check whether an
3770 expression is a "specialization" of another, i.e. that there are
3771 no registers or memory references mentioned in the first that don't
3772 appear in the second.
3773 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
3774 (combine_instructions): Also try combining instructions using the
3775 REG_EQUAL note from a preceding log-linked instruction.
3777 2004-03-12 Roger Sayle <roger@eyesopen.com>
3779 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
3781 2004-03-12 Matt Austern <austern@apple.com>
3783 * target.h (struct gcc_target): New target hook, unwind_label.
3784 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
3785 * output.h (default_emit_unwind_label): New function.
3786 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
3787 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
3788 (TARGET_SUPPORTS_HIDDEN): New target macro.
3789 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
3790 that corresponds to this FDE.
3791 (FRAME_BEGIN_LABEL): Allow target to override default label.
3792 (output_call_frame_info): If FDEs are linknonce, then use extra
3793 indirection for FDE encoding, output a label for each FDE, and
3794 output an empty label for each function without an FDE.
3795 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
3796 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
3797 decls with DECL_ONE_ONLY set, if that macro is defined.
3798 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
3799 for a SUPPORTS_ONE_ONLY target.
3800 * config/darwin-protos.h (darwin_unique_section): Declare.
3801 (darwin_asm_named_section): Likewise.
3802 (darwin_section_type_flags): Likewise.
3803 (darwin_non_lazy_pcrel): Likewise.
3804 (darwin_emit_unwind_label): Likewise.
3805 (darwin_make_decl_one_only): Likewise.
3806 * config/darwin.c (machopic_finish): Get rid of tweak that
3807 eliminate stubs for symbols that are defined.
3808 (darwin_encode_section_info): Don't treat weak functions as defined.
3809 (darwin_make_decl_one_only): Define.
3810 (darwin_asm_named_section): Likewise.
3811 (darwin_section_type_flags): Likewise.
3812 (darwin_unique_section): Likewise.
3813 (darwin_emit_unwind_label): Likewise.
3814 (darwin_non_lazy_pcrel): Likewise.
3815 (darwin_asm_output_dwarf_delta): Difference between two labels is
3816 local only if both labels are local.
3817 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
3818 (ASM_MAKE_LABEL_LINKONCE): Likewise.
3819 (TARGET_SUPPORTS_HIDDEN): Likewise.
3820 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
3821 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
3822 (FRAME_BEGIN_LABEL): Likewise.
3823 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
3824 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3825 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
3826 (TARGET_ASM_UNIQUE_SECTION): Define.
3827 (EH_FRAME_SECTION_NAME): Define.
3828 (EH_FRAME_SECTION_ATTR): Likewise.
3829 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3830 (TARGET_ASM_NAMED_SECTION): Likewise.
3831 (TARGET_SECTION_TYPE_FLAGS): Likewise.
3832 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
3833 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
3834 TARGET_ASM_EMIT_UNWIND_LABEL.
3836 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3838 * builtins.c (expand_builtin_mathfn): Add pow10* to the
3839 existing exp10* case.
3840 (expand_builtin): Likewise.
3842 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3844 * doc/tm.texi (registers) <Values in Registers>: Add
3845 entry for REGMODE_NATURAL_SIZE.
3847 2004-03-12 Richard Henderson <rth@redhat.com>
3850 * target.h (struct gcc_target): Move calls substructure before
3851 booleans. Add split_complex_arg.
3852 * function.c (assign_parms, split_complex_args): Use it.
3853 * calls.c (expand_call): Likewise.
3854 (split_complex_values): Likewise. Check for splittable types
3855 before allocating memory.
3856 (split_complex_types): Likewise.
3857 * system.h (SPLIT_COMPLEX_ARGS): Poison.
3858 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
3859 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
3860 * config/alpha/alpha.c (alpha_split_complex_arg): New.
3861 (TARGET_SPLIT_COMPLEX_ARG): New.
3862 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
3863 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
3864 (rs6000_override_options): Zap it for non-AIX.
3865 (rs6000_function_value): Use targetm.calls.split_complex_arg.
3866 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
3867 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
3868 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
3869 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
3870 SPLIT_COMPLEX_ARGS entry.
3872 2004-03-11 Richard Henderson <rth@redhat.com>
3874 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
3875 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
3876 (alpha_emit_xfloating_arith): Update to match.
3877 (alpha_emit_xfloating_compare): Likewise.
3878 (alpha_emit_xfloating_cvt): Likewise.
3879 (alpha_emit_xfloating_libcall): Take already built symbol,
3881 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
3884 2004-03-11 Richard Henderson <rth@redhat.com>
3887 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
3889 * simplify-rtx.c (simplify_relational_operation): Fix typo.
3891 2004-03-11 Richard Henderson <rth@redhat.com>
3894 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
3896 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3899 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
3900 defined, pass small BLKmode values in registers in the low-order part.
3902 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3904 * combine.c (if_then_else_cond): Check for NULL return value of
3905 simplify_gen_subreg.
3907 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
3910 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
3911 TARGET_SINGLE_FLOAT.
3913 2004-03-11 Steve Ellcey <sje@cup.hp.com>
3915 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
3916 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
3917 * config/ia64/ia64.c (ia64_init_libfuncs): New.
3918 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
3920 2004-03-11 Roger Sayle <roger@eyesopen.com>
3922 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
3923 -((int)X>>C) where C is an integer constant one bit less than the
3924 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
3925 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
3927 * simplify-rtx.c (simplify_unary_operation): Also implement the
3928 above transformations at the RTL level.
3930 2004-03-11 Alan Modra <amodra@bigpond.net.au>
3932 * real.c (encode_ibm_extended): Do round low word.
3934 2004-03-11 Ben Elliston <bje@wasabisystems.com>
3936 * config/arm/arm.md (is_xscale): Comment this attribute and move
3937 it a bit further up in the file, closer to related attributes.
3939 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
3941 * config/host-solaris.c (sol_gt_pch_use_address): Add
3942 missing terminating marker to comment.
3944 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
3946 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
3947 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
3948 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
3949 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
3950 move_operand as source predicate in all cases.
3951 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
3952 Test reg_or_0_operand. Use move_operand as source predicate.
3953 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
3954 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
3955 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
3956 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
3957 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
3958 Use move_operand as source predicate. Remove 'K' constraint.
3959 (*movqi_internal): Likewise movqi_internal.
3960 (*movsf_hardfloat): Renamed from movsf_internal1. Test
3961 reg_or_0_operand. Use move_operand as source predicate.
3962 (*movsf_softfloat): Likewise movsf_internal2.
3963 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
3964 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
3965 (*movdf_softfloat): Likewise movdf_internal2.
3966 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
3967 for DImode if !TARGET_64BIT.
3968 (mips_legitimize_move): Simplify accordingly.
3970 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
3973 * var-tracking.c (struct variable_def): Added field refcount.
3974 (variable_htab_free): Decrease the refcount and delete variable
3975 only if there are no more references.
3976 (unshare_variable): New function.
3977 (vars_copy_1): Increase refcount instead of copying the variable.
3978 (variable_union): Share the variables where possible, unshare
3979 the variables if needed.
3980 (variable_different_p): Return false if var1 and var2 are
3982 (variable_was_changed): Init the refcount of new variable.
3983 (set_frame_base_location): Unshare variable if needed.
3984 (set_variable_part): Init the refcount of new variable.
3985 Unshare the variables if needed.
3986 (delete_variable_part): Unshare the variables if needed.
3987 (emit_notes_for_differences_1): Init the refcount of new variable.
3988 (vt_add_function_parameters): Do not add function parameters to
3989 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
3990 (vt_initialize): Do not add frame_base_decl to IN set of
3991 ENTRY_BLOCK_PTR because it is unused anyway.
3993 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
3995 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
3996 (vars_copy): Likewise.
3997 (variable_union): Likewise.
3998 (set_variable_part): Likewise.
3999 (delete_variable_part): Likewise.
4001 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
4003 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
4004 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
4005 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
4006 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
4007 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
4008 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
4009 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
4010 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
4011 config/stormy16/stormy16.c: Fix comment typos and formatting.
4013 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
4015 * configure: Regenerate, since I forgot to while committing Paolo's