1 2004-03-08 Joel Sherrill <joel@oarcorp.com>
4 * config/rs6000/t-rtems: Add missing file on branch.
6 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
8 * dbxout.c (dbxout_symbol_location): Do not output references
9 to optimized-out constant pool symbols.
11 2004-03-10 Andreas Schwab <schwab@suse.de>
13 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
16 2004-03-09 James E Wilson <wilson@specifixinc.com>
18 * alias.c (alias_sets_might_conflict_p): New.
19 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
20 * common.opt (Wstrict-aliasing=): New.
21 * flags.h (warn_strict_aliasing): Change type to int.
22 * opts.c (warn_strict_aliasing): Change type to int.
23 (common_handle_option): Handle OPT_Wstrict_aliasing_.
24 * tree.h (alias_sets_might_conflict_p): Declare it.
25 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
27 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
30 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
31 (CALL_USED_REGISTERS): Likewise.
32 (REG_CLASS_CONTENTS): Likewise.
33 (REG_ALLOC_ORDER): New.
34 (REGNO_REG_CLASS): Use regno_reg_class.
35 * config/m68k/m68k.c: Add regno_reg_class array.
37 2004-03-09 Steve Ellcey <sje@cup.hp.com>
39 * config/ia64/ia64.md (divsi3): Fix algorithm.
41 (setf_exp_xf): Remove '*' from name.
42 * testsuite/gcc.dg/20040309-1.c: New test.
44 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
46 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
47 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
48 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
49 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
50 (sparc_aout_select_rtx_section): Don't check
51 SUNOS4_SHARED_LIBRARIES.
52 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
54 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
57 * doc/md.texi (Pattern Ordering, Dependent Patterns)
58 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
61 2004-03-09 Zack Weinberg <zack@codesourcery.com>
63 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
64 (LIBGCC_SPEC): Update to match.
66 2004-03-09 Zack Weinberg <zack@codesourcery.com>
68 * c-decl.c (last_function_parms, last_function_parm_tags)
69 (last_function_parm_others, current_function_parms)
70 (current_function_parm_tags, current_function_parm_others):
72 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
74 (grokdeclarator): For function definitions, save the arg-info
75 block from the declarator in DECL_ARGUMENTS.
76 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
77 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
78 contains only PARM_DECLs. Improve diagnostics.
79 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
80 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
81 (store_parm_decls_newstyle): Take the function to operate on,
82 and an arg-info block, as arguments; don't get anything from
83 current_function_* globals.
84 (store_parm_decls_oldstyle): Likewise.
85 (store_parm_decls): Pass fndecl and its arg-info block down to
86 store_parm_decls_newstyle/oldstyle. Send functions with empty
87 argument lists through store_parm_decls_newstyle to reduce
89 (pushdecl): Comment on the problems with the call to copy_node.
90 Clear DECL_ARGUMENTS of the old node after copying it, if it
91 is an arg-info block instead of a chain of decls.
92 (start_function): Do not manipulate current_function_parm* or
95 2004-03-09 Roger Sayle <roger@eyesopen.com>
96 Andrew Pinski <pinskia@physics.uc.edu>
98 * ifcvt.c (noce_try_sign_mask): New function to transform
99 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
100 (noce_process_if_block): Call noce_try_sign_mask.
102 2004-03-09 Andrew Pinski <apinski@apple.com>
104 * c-typeck.c (tagged_types_tu_compatible_p):
107 2004-03-09 Roger Sayle <roger@eyesopen.com>
109 * simplify-rtx.c (simplify_const_relational_operation): New function
110 renamed from simplify_relational_operation.
111 (simplify_relational_operation): Change prototype to accept an
112 additional mode argument. Call simplify_const_relational_operation.
113 (simplify_gen_relational): Update simplify_relational_operation call.
114 (simplify_ternary_operation): Update simplify_relational_operation
115 subroutine call to use simplify_const_relational_operation instead.
117 * rtl.h (simplify_const_relational_operation): Prototype here.
118 (simplify_relational_operation): Add addtional mode argument.
120 * combine.c (combine_simplify_rtx): Update calls to
121 simplify_relational_operation.
122 (simplify_set): Likewise.
123 (gen_binary): Likewise.
124 * cse.c (fold_rtx): Likewise.
125 * dojump.c (compare_from_rtx): Likewise.
126 (do_compare_rtx_and_jump): Likewise.
127 * integrate.c (subst_constants): Likewise.
128 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
130 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
132 * config/m32r/m32r.md: Remove all define_peephole's.
134 2004-03-09 Alan Modra <amodra@bigpond.net.au>
136 * config/rs6000/rs6000.md: Remove trailing whitespace.
138 2004-03-08 Eric Christopher <echristo@redhat.com>
140 * Makefile.in (site.exp): Add libiconv variable definition.
142 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
144 * configure: Regenerate for config/accross.m4 correction.
146 2004-03-08 Joel Sherrill <joel@oarcorp.com>
149 * config/rs6000/t-rtems: Add missing file on branch.
151 2004-03-08 Roger Sayle <roger@eyesopen.com>
154 * c-typeck.c (c_mark_addressable): A register variable should
155 be considered global if its not automatic, i.e. TREE_PUBLIC,
156 TREE_STATIC or DECL_EXTERNAL.
157 * function.c (put_var_into_stack): Call abort when placing a
158 hard register into the stack, if x_parm_reg_stack_loc is NULL.
160 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
162 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
163 ("*extendqisi2_short_displ"): Likewise.
165 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
167 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
168 (comp_operator): Likewise.
169 * config/pdp11/pdp11-protos.h: Remove corresponding
172 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
174 * expr.c (highest_pow2_factor_for_type): Rename into
175 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
176 TYPE_ALIGN when the target is a COMPONENT_REF.
177 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
179 2004-03-08 Alan Modra <amodra@bigpond.net.au>
181 * config/rs6000/rs6000.c: Formatting fix.
182 (legitimate_offset_address_p): Correct offset range check.
184 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
185 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
188 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
190 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
192 ("ashrdi3_no_power"): Disable for little endian.
195 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
197 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
200 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
203 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
204 case, checking for -no-mul-bug-abort option.
205 * configure, config.in: Regenerate.
206 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
207 and -mno-mul-bug-workaround.
208 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
209 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
210 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
211 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
212 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
213 sure mulu.d is not last on cache-line.
214 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
215 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
216 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
217 (TARGET_SWITCHES): New options -mmul-bug-workaround and
218 -mno-mul-bug-workaround.
219 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
220 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
221 * config/cris/cris.c (cris_operand_extend_operator): Clarify
222 relation to MULT in head comment.
223 (cris_op_str): Abort for MULT.
224 (cris_print_operand) <case '!'>: New case.
226 2004-03-08 Alan Modra <amodra@bigpond.net.au>
229 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
230 dw_val_class_vec. Replace use throughout file.
231 (dw_float_const): Delete.
233 (dw_val_struct_union): Rename val_float to val_vec. Replace use
235 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
236 (same_dw_val_p): Adjust vec comparison. Use memcmp.
237 (size_of_die): Adjust dw_val_class_vec sizing.
238 (output_die): Output dw_val_class_vec.
239 (insert_int, extract_int, insert_float): New functions.
240 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
242 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
244 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
246 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
247 AltiVec abi cannot co-exist.
249 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
251 2004-03-07 Jan Hubicka <jh@suse.cz>
253 * except.c (emit_to_new_bb_before): Break fallthru edges.
255 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
257 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
258 ("*lshrsi3"): Also accept an immediate for 68HC12.
259 ("*ashrsi3_const"): Likewise.
260 ("*ashrsi3"): Likewise.
261 ("*ashlsi3_const"): Likewise.
262 ("*ashlsi3"): Likewise.
263 ("cmphi_1_hc12"): Compare two hard register by pushing them and
264 comparing with a pop; don't use a split for that.
265 ("cmphi split"): Disable compare split for 68HC12.
267 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
268 the status operands if they have side effects.
270 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
272 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
274 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
275 config/h8300/h8300.h, config/ia64/ia64.h,
276 config/mcore/mcore.h, config/mmix/mmix.h,
277 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
278 config/stormy16/stormy16.h, config/v850/v850.h,
279 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
280 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
283 2004-03-07 Roger Sayle <roger@eyesopen.com>
285 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
286 <XOR_EXPR>: Fold x ^ x as zero.
287 <AND_EXPR>: Fold x & x as x.
289 2004-03-07 Roger Sayle <roger@eyesopen.com>
291 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
292 "foo++ == const" into "++foo == const+incr".
294 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
296 * config/mips/mips.c (mips_in_small_data_p): Return false if
299 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
301 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
303 (expand_prologue): Don't make an interrupt or a trap handler a far
305 (m68hc11_initial_elimination_offset): Likewise.
307 2004-03-06 Richard Henderson <rth@redhat.com>
309 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
311 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
313 * config/ns32k/ns32k-protos.h: Add a prototype for
314 ns32k_notice_update_cc.
315 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
316 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
317 ns32k_notice_update_cc.
319 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
321 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
322 "*load_multiple_si"): Allow only if reload_completed.
323 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
326 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
328 * config/vax/vax-protos.h: Add a prototype for
329 vax_notice_update_cc.
330 * config/vax/vax.c (vax_notice_update_cc): New.
331 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
332 vax_notice_update_cc.
334 2004-03-06 David Edelsohn <edelsohn@gnu.org>
336 * collect2.c (main): Only export initfunc and finifunc if
337 LD_INIT_SWITCH not defined.
338 (scan_prog_file): Only export constructors and destructors if
339 LD_INIT_SWITCH not defined. Only export symbols not found in
342 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
344 * pa.md (icacheflush): Reorder operands to make match_scratch operand
346 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
347 from calls to gen_icacheflush.
349 2004-03-06 Richard Henderson <rth@redhat.com>
351 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
352 (TARGET_LONG_DOUBLE_128): New.
353 (TARGET_SWITCHES): Add long-double-{128,64}.
354 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
355 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
356 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
357 (WIDEST_HARDWARE_FP_SIZE): New.
358 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
359 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
361 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
362 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
364 2004-03-06 Richard Henderson <rth@redhat.com>
366 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
367 botched rtx class conversion.
369 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
371 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
372 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
374 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
376 * fold-const.c (fold_mathfn_compare, fold): Likewise.
378 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
381 * config/i386/i386.md (movv2di_internal): Conditionalize on
382 TARGET_SSE, not TARGET_SSE2.
384 2004-03-05 Chris Demetriou <cgd@broadcom.com>
386 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
389 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391 * builtins.c: Consistently use logN not log* in comments.
393 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
395 * rtl.h (mem_expr_equal_p): Function prototype added.
396 * cfgcleanup.c (merge_memattrs): New function.
397 (flow_find_cross_jump): Call merge_memattrs for matching insns.
398 * emit-rtl.c (mem_expr_equal_p): New function.
400 2004-03-05 Ziemowit Laski <zlaski@apple.com>
402 * objc/objc-act.c (synth_module_prologue): Const-qualify
403 objc_selector type if using the GNU runtime; fix generated
404 signatures for objc_msg_lookup and objc_msg_lookup_super
405 to match what GNU ObjC headers provide; reformat and clean up.
406 (synth_self_and_ucmd_args): Use previously constructed (and
407 hence possibly const-qualified) objc_selector type.
409 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
411 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
413 2004-03-05 Jason Merrill <jason@redhat.com>
415 * tree.h (TYPE_HASH): Use TYPE_UID.
416 (TREE_HASH): New macro with old definition of TYPE_HASH.
417 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
418 (build_array_type, build_function_type): Likewise.
419 (build_method_type_directly): Likewise.
420 (build_offset_type, build_complex_type): Likewise.
421 (type_hash_list, attribute_hash_list): Likewise. Now static.
422 * except.c: s/TYPE_HASH/TREE_HASH/.
424 2004-03-05 Bob Wilson <bob.wilson@acm.org>
426 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
427 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
428 __va_ndx by 2 words when referencing an argument on the stack.
429 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
430 words when an arg on the stack is first seen.
432 2004-03-05 Paul Brook <paul@codesourcery.com>
434 * arm.h (ARM_FLAG_VFP): Remove.
435 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
436 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
438 2004-03-05 Paul Brook <paul@codesourcery.com>
440 * function.c (assign_parms): Include pretend alignment offset.
442 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
444 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
445 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
447 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
449 * configure.ac: When passing --enable-languages to subdir
450 configure when host != build, make sure we don't pass an empty
452 * configure: Regenerate.
454 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
457 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
460 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
462 * simplify-rtx.c (simplify_relational_operation): If
463 flag_wrapv is set, do not move terms between the two
464 side of a relational operator.
466 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
468 * rtlanal.c: Include target.h and output.h
469 (rtx_cost, address_cost, default_address_cost): Move from...
470 * cse.c (rtx_cost, address_cost, default_address_cost):
472 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
473 * Makefile.in: Adjust dependencies.
475 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
477 * cse.c (cse_end_of_basic_block): Make static.
478 * local-alloc.c (function_invariant_p): Move to
480 * loop.c (libcall_other_reg, record_excess_regs):
482 * reload1.c (function_invariant_p): Moved here
483 from local-alloc.c, made static.
484 * rtl.h (cse_end_of_basic_block, function_invariant_p,
485 libcall_other_reg, record_excess_regs): Remove
488 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
490 * config/m32r/m32r.c (signed_comparison_operator): Add a
493 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
495 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
496 going to call mmap again. Read the file into the right place.
497 Give a fatal error if we have to relocate.
499 2004-03-04 Bob Wilson <bob.wilson@acm.org>
501 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
502 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
504 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
507 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
508 round the same. When rounding, clear bits that would cause a
509 second rounding in pack_d.
510 (_fpmul_parts): Ditto. Remove #if 0:d code.
512 2004-03-04 Ziemowit Laski <zlaski@apple.com>
514 PR c++/14425, c++/14426
515 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
516 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
517 Change C++ definitions to accept a 'const int' argument;
518 the prototypes already do.
519 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
520 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
521 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
522 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
523 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
524 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
525 end in ..._int; change them to accept an int instead of a char
526 as the last parameter.
528 2004-03-04 Phil Edwards <phil@codesourcery.com>
530 * genmultilib: Change '=' to '-' when translating option names
533 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
535 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
536 stack slot for temp used for result of BLKmode but in integral mode.
538 2004-03-04 Jan Hubicka <jh@suse.cz>
540 * reload.c (find_reloads): Reorganize if seqeunce to switch.
542 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
543 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
545 2004-03-04 Steve Ellcey <sje@cup.hp.com>
547 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
548 * testsuite/gcc.dg/20040303-1.c: New test.
550 2004-03-04 Steven Bosscher <stevenb@suse.de>
552 * ppro.md: Rewrite as a DFA pipeline description.
553 * i386.md: Remove all uses of the ppro_uops attribute.
554 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
555 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
556 ix86_sched_reorder, ix86_variable_issue,
557 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
558 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
559 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
560 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
561 * athlon.md (athlon_ssecmp_load): Fix comment
563 2004-03-04 Stuart Hastings <stuart@apple.com>
565 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
567 2004-03-04 Stuart Hastings <stuart@apple.com>
569 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
570 686, tell Darwin assembler to allow prefetch insns, non-empty def
571 of SUBTARGET_OPTION_TRANSLATE_TABLE.
573 2004-03-04 DJ Delorie <dj@redhat.com>
575 PR optimization/14282
576 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
577 between a call and the assignment of its return value.
579 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
581 * config/h8300/h8300.c: Put a comment for every function.
583 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
585 * config/h8300/h8300.md: Add comments about peephole2's.
587 2004-03-04 Steven Bosscher <stevenb@suse.de>
589 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
591 2004-03-04 Jan Hubicka <jh@suse.cz>
593 * cfgcleanup.c (thread_jump): Update call of cselib_init.
594 * cselib.c (cselib_record_memory): New static variable.
595 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
596 Give up on memories when asked for.
597 (cselib_init): Accept new argument.
598 * cselib.h (cselib_init): Update prototype.
599 * gcse.c (local_cprop_pass): Update call of cselib_init.
600 * loop.c (load_mems): Update call of cselib_init.
601 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
602 * sched-deps.c (sched_analyze): Update call of cselib_init.
604 2004-03-04 David Edelsohn <edelsohn@gnu.org>
607 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
610 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
613 * var-tracking.c (track_expr_p): Do not track variables which
614 should be ignored for debugging purposes.
616 2004-03-04 Alan Modra <amodra@bigpond.net.au>
618 * real.c (encode_ibm_extended): Don't bother rounding low double.
619 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
620 when fmt->pnan < fmt->p.
622 2004-03-04 Eric Christopher <echristo@redhat.com>
624 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
625 only range of valid arg registers and fixed_regs.
627 2004-03-04 Alan Modra <amodra@bigpond.net.au>
630 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
631 (abstf2, abstf2_internal): New define_expand.
633 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
635 PR optimization/14235
636 * expr.c (convert_move): Copy the source to a new pseudo
637 when converting from a sub-word source to a larger-than-word
638 register which conflicts with the source.
640 2004-03-03 Zack Weinberg <zack@codesourcery.com>
643 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
644 parameters with the same name, unless one is a forward decl.
645 Do not issue a redundant-redeclaration warning for forward
648 2004-03-04 David Edelsohn <edelsohn@gnu.org>
650 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
653 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
655 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
657 2004-03-04 Alan Modra <amodra@bigpond.net.au>
659 * target-def.h (TARGET_OPTF): Delete.
660 * c-opts.c (TARGET_OPTF): Define.
662 2004-03-04 Jan Hubicka <jh@suse.cz>
664 * cselib.c (cselib_finish): Fix another miss-application of my previous
667 2004-03-03 Mike Stump <mrs@apple.com>
669 Add framework support for darwin.
671 * c-incpath.c: Include target.h and machmode.h.
672 (add_path): Use a consistent style for cpp_dir. Initialize
674 (add_cpp_dir_path): New.
675 (register_include_chains): Add use of extra_includes callback.
676 (hook_void_int): Add.
677 (target_c_incpath): Add.
678 * c-incpath.h (add_cpp_dir_path): New.
679 (target_c_incpath_s): Add.
680 (target_c_incpath): Add.
681 (C_INCPATH_INIT): Add.
682 * c-opts.c (c_common_missing_argument,
683 c_common_handle_option): Add -F argument processing.
684 * c.opt: Add -F argument processing.
685 * gcc.c (trad_capable_cpp): Add -F argument processing.
686 * cppfiles.c (find_file_in_dir): Update to use construct
688 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
690 (_cpp_find_file): Use search_path_exhausted.
691 (make_cpp_dir): Initialize construct to 0.
692 * cpplib.h (missing_header_cb
693 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
694 (cpp_callbacks): Add missing_header
695 (cpp_dir): Add construct.
696 * target-def.h: (TARGET_OPTF): New.
697 * hooks.c (hook_void_int, hook_void_charptr): Add.
698 * hooks.h (hook_void_int, hook_void_charptr): Add.
699 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
700 $(MACHMODE_H) dependencies.
701 * doc/invoke.texi (Darwin Options): Document -F.
702 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
704 * fix-header.c (target_c_incpath): Add.
706 * config/darwin-c.c: Add c-incpath.h include.
707 (using_frameworks, find_subframework_file,
708 find_subframework_header, add_system_framework_path,
709 frameworks_in_use, num_frameworks, max_frameworks,
710 add_framework, find_framework, struct framework_header,
711 framework_header_dirs, framework_construct_pathname,
712 find_subframework_file, add_system_framework_path,
713 add_framework_path, framework_defaults,
714 darwin_register_frameworks, find_subframework_header): Add.
715 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
716 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
717 (CPP_SPEC): Add __APPLE_CC__ support.
718 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
720 2004-03-04 Jan Hubicka <jh@suse.cz>
722 * cselib.c (cselib_finish): Fix miss-application of my previous
725 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
727 * hooks.c (hook_tree_tree_identity): New.
728 * hooks.h: Add a prototype for hook_tree_tree_identity.
729 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
730 instead of MD_ASM_CLOBBERS.
731 * system.h (MD_ASM_CLOBBERS): Poison.
732 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
733 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
734 * target.h (gcc_target): Add md_asm_clobbers.
735 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
736 (ix86_md_asm_clobbers): New.
737 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
738 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
739 TARGET_MD_ASM_CLOBBERS.
741 2004-03-03 Stuart Hastings <stuart@apple.com>
743 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
745 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
747 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
749 * config/sparc/sparc.h (ASM_FLOAT): Delete.
750 (ASM_DOUBLE): Likewise.
751 (ASM_LONGDOUBLE): Likewise.
752 * config/sparc/pbd.h (ASM_INT_OP): Delete.
754 2003-03-03 Richard Henderson <rth@redhat.com>
757 * cselib.c (cselib_record_sets): Don't record multiple sets in
760 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
762 * common.opt: Add description of the new -fgcse-after-reload flag.
764 * flags.h (flag_gcse_after_reload): Declaration of global variable.
766 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
767 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
768 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
769 get_bb_avail_insn, hash_scan_set_after_reload,
770 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
771 gcse_after_reload, get_bb_avail_insn): New functions to implement
773 (gcse_after_reload_main): New function, the main entry point to
776 * rtl.h (gcse_after_reload_main): Declaration of the new function.
778 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
780 * toplev.c (flag_gcse_after_reload): Initialization.
782 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
784 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
785 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
786 the gcse after reload optimization.
788 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
789 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
792 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
794 2004-03-03 Nicolas Pitre <nico@cam.org>
796 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
797 small negative values.
799 2004-03-03 Jan Hubicka <jh@suse.cz>
801 * cselib.c (hash_table): Remove GTY marker.
802 (reg_values): Turn into array.
803 (used_regs): Likewise.
804 (n_used_regs): New static variable.
805 (reg_values_old): Kill.
806 (clear_table): Update uses of arrays.
807 (cselib_lookup): Likewise.
808 (cselib_record_set): Likewise.
809 (cselib_init): Likewise.
810 (cselib_finish): Likewise.
811 (cselib_udpate_varray_sizes): Kill.
812 * cselib.h (cselib_update_varray_sizes): Kill.
814 2004-03-03 Paul Brook <paul@codesourcery.com>
816 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
818 2004-03-03 Jan Hubicka <jh@suse.cz>
820 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
821 Rename from ...; make statistics transparent.
822 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
823 (loc_descriptor): New structure.
824 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
827 (ggc_record_overhead, dump_statistics): New global function.
828 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
829 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
830 from ...; accept locations
831 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
832 ggc_realloc, ggc_alloc_typed): ... this one.
833 from ...; accept locations
834 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
835 ggc_alloc_stat): Rename from ... ; pass locations
836 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
838 (ggc_alloc_stat): Record overehead.
839 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
840 ggc_realloc, ggc_alloc_typed): Turn to macros
841 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
842 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
843 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
844 * langhooks.h (lhd_make_node): Declare.
845 (LANG_HOOKS_MAKE_TYPE): Default to new function,
846 * langhooks.c (lhd_make_node): New.
847 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
849 (rtx_alloc, swallow_copy_rtx): ... this one.
850 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
851 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
852 * toplpev.c (finalize): Dump stats.
853 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
854 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
855 Rename from ... ; pass locators.
856 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
857 build?, build_decl): Declare.
858 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
859 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
861 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
862 build?, build_decl): New macros.
863 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
864 * statistics.h: New file.
866 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
867 Richard Sandiford <rsandifo@redhat.com>
869 * config/mips/mips.h (MASK_FIX_SB1): Bump.
870 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
871 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
872 * config/mips/mips.c (mips_output_division): Fill the branch delay
873 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
875 (mips_output_division): Adjust accordingly.
876 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
877 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
879 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
881 * alias.c (rtx_equal_for_memref_p): Use predicates
882 to test rtx classes and new rtx class codes, possibly
883 splitting conditionals that tested against '<' and 'o'.
884 * caller-save.c (save_call_clobbered_regs): Likewise.
885 * combine.c (contains_muldiv, find_split_point, subst,
886 combine_simplify_rtx, simplify_if_then_else,
887 simplify_set, simplify_logical, expand_compound_operation,
888 make_compound_operation, if_then_else_cond, known_cond,
889 apply_distributive_law, cached_nonzero_bits,
890 cached_num_sign_bit_copies, simplify_shift_const,
891 gen_binary, simplify_comparison, update_table_tick,
892 record_value_for_reg, get_lsat_value_validate): Likewise.
893 * cse.c (mention_regs, find_best_addr, find_comparison_args,
894 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
896 * emit-rtl.c (copy_insn_1): Likewise.
897 * expr.c (force_operand): Likewise.
898 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
899 * flow.c (notice_stack_pointer_modification_1,
900 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
901 and_reg_cond, elim_reg_cond): Likewise.
902 * function.c (update_epilogue_consts): Likewise.
903 * genattrtab.c (attr_rtx_1): Likewise.
904 * genopinit.c (gen_insn): Likewise.
905 * integrate.c (subst_constants): Likewise.
906 * jump.c (reversed_comparison_code_parts,
907 reversed_comparison_code, delete_related_insns,
908 rtx_renumbered_equal_p): Likewise.
909 * local-alloc.c (block_alloc): Likewise.
910 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
911 canonicalize_condition): Likewise.
912 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
914 * optabs.c (add_equal_node, expand_binop): Likewise.
915 * predict.c (estimate_probability): Likewise.
916 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
917 * recog.c (validate_replace_rtx_1, comparison_operator,
918 offsettable_address_p, constrain_operands): Likewise.
919 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
921 * regclass.c (scan_one_insn): Likewise.
922 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
923 * regrename.c (kill_autoinc_value): Likewise.
924 * reload.c (find_reusable_reload, find_reloads,
925 reg_overlap_mentioned_for_reload_p): Likewise.
926 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
927 * rtl.c (copy_rtx): Likewise.
928 * rtl.h (CONSTANT_P, INSN_P): Likewise.
929 * rtlanal.c (commutative_operand_precedence): Likewise.
930 * sched-deps.c (conditions_mutex_p): Likewise.
931 * sched-rgn.c (is_cfg_nonregular): Likewise.
932 * simplify-rtx.c (simplify_gen_binary,
933 simplify_gen_relational, simplify_replace_rtx,
934 simplify_unary_operation, simplify_binary_operation,
935 simplify_ternary_operation, simplify_rtx): Likewise.
936 * unroll.c (reg_dead_after_loop): Likewise.
937 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
938 print_operand): Likewise.
939 * config/arc/arc.c (proper_comparison_operator): Likewise.
940 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
942 * config/avr/avr.c (_reg_unused_after): Likewise.
943 * config/frv/frv.c (frv_ifcvt_modify_tests,
944 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
945 * config/i386/i386.c (ix86_comparison_operator,
946 ix86_carry_flag_operator, fcmov_comparison_operator,
947 arith_or_logical_operator, print_operand,
948 ix86_expand_binary_operator, ix86_binary_operator_ok):
950 * config/i386/i386.md: Likewise.
951 * config/ia64/ia64.c (not_postinc_memory_operand,
952 ia64_print_operand, update_set_flags, errata_emit_nops):
954 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
955 CONSTRAINT_OK_FOR_S): Likewise.
956 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
957 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
958 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
959 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
961 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
962 eqne_comparison_operator, signed_comparison_operator):
964 * config/mips/mips.c (cmp_op, symbolic_expression_p):
966 * config/mmix/mmix (mmix_foldable_comparison_operator,
967 mmix_comparison_operator): Likewise.
968 * config/pa/pa.c (hppa_legitimize_address): Likewise.
969 * config/rs6000/rs6000.c (stmw_operation,
970 branch_comparison_operator, trap_comparison_operator,
972 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
973 * config/s390/s390.c (s390_alc_comparison,
974 s390_slb_comparison):L Likewise.
975 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
977 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
978 noov_compare_op, noov_compare64_op, v9_regcmp_op,
979 emit_hard_tfmode_operation, reg_unused_after)
980 * doc/md.texi, doc/rtl.texi: Likewise.
982 * ra-debug.c: Add 2004 to list of copyright years.
983 * unroll.c: Likewise.
985 * combine.c (simplify_logical): Remove dummy test,
986 (apply_distributive_law): Fix typo in comment.
987 GET_CODE (x) == AND so x is a commutative binary op.
988 * jump.c (delete_related_insns): simplify loop
989 condition, move testing of RTX codes inside the loop.
990 (rtx_renumbered_equal_p): do not use RTX_CODE.
991 * rtl.c (rtx_class): Declare as enum rtx_class.
992 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
993 Move to RTX_COMM_COMPARE class.
994 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
995 Move to RTX_CONST_OBJ class.
996 * rtl.h (enum rtx_class): New declaration,
997 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
998 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
999 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
1000 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
1001 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
1002 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
1003 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
1004 OBJECT_P): New macros.
1005 * config/sparc/sparc.c (noov_compare_op): Remove register
1008 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
1010 * target.h: Remove texi jargons in comments.
1012 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1014 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
1018 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
1019 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
1021 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
1022 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
1024 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1026 * doc/md.texi (cbranchmode4): New.
1028 2004-03-02 Eric Christopher <echristo@redhat.com>
1030 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
1032 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
1033 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
1034 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
1035 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
1037 2004-03-02 Richard Henderson <rth@redhat.com>
1040 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
1041 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
1042 before the compare, if flag_non_call_exceptions.
1044 2004-03-02 Richard Henderson <rth@redhat.com>
1047 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
1048 emitting the label, not after.
1050 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
1052 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
1053 (m68hc11_mov_addr_mode): Likewise.
1054 (m68hc11_override_options): Initialize them based on target.
1055 (register_indirect_p): Allow a MEM for indirect addressing modes and
1056 use flags to control what is allowed.
1057 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
1058 supported addressing modes.
1059 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
1060 (go_if_legitimate_address_internal): Likewise.
1061 (m68hc11_indirect_p): Likewise and check the mode.
1062 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
1064 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1066 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
1067 (expand_builtin_setjmp_setup): Use
1068 targetm.builtin_setjmp_frame_value instead of
1069 BUILTIN_SETJMP_FRAME_VALUE.
1070 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
1071 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
1072 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
1073 * target.h (gcc_target): Add builtin_setjmp_frame_value.
1074 * targhooks.c (default_builtin_setjmp_frame_value): New.
1075 * targhooks.h: Add a prototype for
1076 default_builtin_setjmp_frame_value.
1077 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
1078 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
1080 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
1082 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
1084 (add peepholes): New peepholes to optimize sequences adding small
1086 (bset peepholes): New peepholes to transform an OR in a bset form
1087 (bclr peepholes): Likewise for bclr form.
1088 (cmp peepholes): New peepholes to avoid register copies when comparing.
1090 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
1092 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
1093 to separate push from moves.
1094 ("*pushdf_internal"): Likewise.
1095 ("*pushsf_internal"): Likewise.
1096 ("*pushsi_internal"): Likewise.
1097 ("movdi_internal"): Use define_insn_and_split; non push operand.
1098 ("movdf_internal"): Likewise.
1099 ("movsf_internal"): Likewise.
1100 ("movsi_internal"): Likewise.
1101 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
1102 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
1103 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
1105 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
1107 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
1108 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
1109 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
1110 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
1111 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
1112 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
1113 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
1114 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
1115 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
1116 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
1117 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
1119 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
1121 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
1122 (SOFT_XY_REGNUM): Define.
1123 (cmp split): Use the above instead of hard coded numbers.
1124 (8-bit op split): No need to check the mode; allow Q_REG.
1125 (ashift split): Adjust the first operand if it uses the SP and we
1126 are pushing the shifted value.
1127 (plus shift split): Fix when a source is in register D+X.
1128 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
1130 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
1132 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
1133 comparing with Z register.
1135 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1137 * cfgloop.h (struct loop_desc): Removed.
1138 (struct loop): Fields simple, desc and has_desc removed.
1139 (simple_loop_p, count_loop_iterations): Declaration removed.
1140 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
1141 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
1142 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
1143 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
1144 simple_loop_exit_p, variable_initial_value, variable_initial_values,
1145 simple_condition_p, simple_increment, count_strange_loop_iterations,
1146 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
1148 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
1150 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1152 * genattrtab.c: Don't handle MATCH_INSN.
1153 * genrecog.c: Likewise.
1154 * gensupport.c: Likewise.
1155 * rtl.def (match_insn): Remove.
1156 * doc/md.texi (match_insn, match_insn2): Remove.
1158 2004-03-02 Mark Mitchell <mark@codesourcery.com>
1160 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
1161 macro results in memory allocation.
1163 2004-03-02 David O'Brien <obrien@FreeBSD.org>
1165 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
1166 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
1167 %(fbsd_dynamic_linker),
1168 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
1169 config/i386/freebsd.h
1170 * config/arm/freebsd.h: Ditto.
1171 * config/i386/freebsd.h: Ditto.
1172 * config/i386/freebsd64.h: Ditto.
1173 * config/ia64/freebsd.h: Ditto.
1174 * config/rs6000/sysv4.h: Ditto.
1175 * config/sparc/freebsd.h: Ditto.
1177 2004-03-02 Loren James Rittle <ljrittle@acm.org>
1179 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
1181 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1183 * rtl.def (define_combine): Remove.
1185 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1187 * config/h8300/h8300.md: Tweak formatting.
1189 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1191 * config/h8300/h8300.md (*cmphi_h8300): Rename to
1193 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
1195 2004-03-01 Mark Mitchell <mark@codesourcery.com>
1198 * gcc.c (process_command): Remove const-qualification from argv.
1201 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
1203 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
1204 pushqi1_h8300hs_advanced. Adjust its caller.
1205 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
1208 2004-03-02 Nicolas Roche <roche@act-europe.fr>
1210 * Makefile.in (install-libgcc, install-multilib): Pass
1211 mkinstalldirs var to libgcc.mk.
1213 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
1215 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
1216 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
1218 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
1220 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
1221 * config/h8300/h8300.md: Split several peephole2's, each into
1224 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1226 * dominance.c (recount_dominator): Handle postdominators.
1228 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
1230 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
1231 (NUM_SYMBOL_TYPES): Likewise.
1232 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
1233 (mips_unspec_address): Declare.
1234 (mips_gotoff_page, mips_gotoff_global): Delete.
1235 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
1236 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
1237 (mips_symbolic_constant_p, mips_symbolic_address_p)
1238 (mips_symbol_insns): Handle new symbol types.
1239 (general_symbolic_operand): New predicate.
1240 (mips_unspec_address): Make extern.
1241 (mips_gotoff_page, mips_gotoff_global): Delete.
1242 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
1243 Handle new symbol types.
1244 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
1245 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
1246 mips_unspec_address directly.
1247 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
1248 the documentation of -mexplicit-relocs.
1250 2004-03-01 Jeff Law <law@redhat.com>
1252 * fold-const.c (fold): An equality comparison of a non-weak object
1253 against zero has a known result. Similarly an equality comparison
1254 of the address of two non-weak, unaliased symbols has a known result.
1256 * ggc-page.c (struct page_entry): New field PREV.
1257 (ggc_alloc): Update PREV field appropriately.
1258 (sweep_pages): Likewise.
1259 (ggc_free): Likewise. Use PREV field rather than loop to
1260 improve ggc_free performance.
1262 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
1264 * config/mips/mips.c (mips_output_division): Use the division
1265 instruction to fill the delay slot of a zero check.
1266 (mips_idiv_insns): Adjust accordingly.
1268 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
1270 * config.gcc: Create a default tmake_file for linux, and use
1271 it in all but two linux clauses. Comment those two.
1273 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
1275 * combine.c (try_combine): Do not refer to is_replaced.
1276 (gen_lowpart_for_combine): Perverse subregs now have a
1277 more politically correct name.
1278 * cse.c (cse_insn): Likewise.
1279 * jump.c: Fix bogus reference to delete_insn.
1281 2004-02-29 Mark Mitchell <mark@codesourcery.com>
1284 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
1285 constants as signed values.
1288 * c-tree.h (readonly_warning): Rename to ...
1289 (readonly_error): ... this.
1290 * c-typeck.c (build_unary_op): Adjust accordingly.
1291 (readonly_warning): Rename to ...
1292 (readonly_error): ... this and issue errors, not warnings.
1293 (build_modify_expr): Call readonly_error, not readonly_warning.
1294 (c_expand_asm_operands): Likewise.
1295 * tree-inline.c (optimize_inline_calls): Do not inline functions
1296 after errors have occurred.
1298 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
1300 * configure.ac: Rearrange some threading code for clarity;
1301 add section comment.
1302 * configure: Regenerate.
1304 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1306 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
1308 * doc/cppopts.texi: Fix a typo.
1310 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1312 * config/i386/i386.md: Fix formatting.
1314 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
1316 * configure.ac: Add some comments delineating sections of code.
1318 * doc/install.texi: Note that libada uses autoconf 2.57 also.
1320 * doc/install.texi: Fix idiot typo in previous commit.
1322 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
1324 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1326 * config/h8300/h8300.md: Add comments about peephole2's.
1328 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1330 * config/h8300/h8300.md: Tweak operand numbers of some
1333 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1335 * config/h8300/h8300.md: Tweak comments about peephole2's.
1337 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1340 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
1341 instead of testing whether DECL_RTL is not NULL.
1343 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
1345 * config/sh/sh.c: Fix formatting.
1347 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
1349 * config/sh/sh.c: Convert to ISO-C.
1351 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1353 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
1356 * config/darwin.h (machopic_finish): Output stub even if the
1357 symbol is already defined.
1359 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1361 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
1363 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
1365 * genattr.c (main): Don't define
1366 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
1367 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
1368 (DFA_PIPELINE_INTERFACE): Likewise.
1369 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
1370 (DFA_PIPELINE_INTERFACE): Likewise.
1372 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
1374 * config/mips/mips.md (tstsi, tstdi): Delete.
1376 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1378 * config/mips/mips.c (override_options): Remove an obsolete
1379 duplicate definition of the "e" constraint.
1380 * config/mips/mips.h: Update a comment accordingly.
1382 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1384 * config/mips/mips.md: Complete the unfinished R4000
1385 multiply/shift errata workaround. Improve documentation.
1386 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
1388 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
1389 (muldi3, muldi3_internal): Likewise.
1390 (muldi3_internal2): Remove, replacing with...
1391 (muldi3_mult3, muldi3_r4000): ...these new patterns.
1392 (mulsidi3): Take the errata into account.
1393 (mulsidi3_32bit): Remove, replacing with...
1394 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
1395 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
1396 (umulsidi3): Take the errata into account.
1397 (umulsidi3_32bit): Remove, replacing with..
1398 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
1399 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
1401 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
1402 (smuldi3_highpart, umuldi3_highpart): Likewise.
1403 * doc/invoke.texi: Document the errata workaround.
1405 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1407 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
1408 * config/mips/mips.h (MASK_FIX_SB1): Bump.
1409 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
1410 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
1411 * config/mips/mips.c (mips_idiv_insns): New function.
1412 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
1413 (mips_output_division): Add a workaround for the R4000 divide/shift
1415 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
1416 the length of an "idiv" instruction.
1417 * doc/invoke.texi: Document the new switches.
1419 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
1421 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
1422 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
1424 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1426 PR optimization/14229
1427 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
1429 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
1431 * fold-const.c (fold): Strip NOPs that change the signedness
1432 for RSHIFT too. Expand comment.
1434 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
1436 PR optimization/7871
1437 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
1438 from or to call insns.
1440 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1442 PR optimization/7871
1443 * flow.c (propagate_one_insn): Interpret calls as setting global
1444 registers, not merely clobbering them.
1446 2004-02-27 Dale Johannesen <dalej@apple.com>
1448 * config/darwin.c (machopic_output_possible_stub_label): Remove.
1449 config/darwin-protos.h: Ditto.
1450 config/darwin.h: Remove call to it.
1451 * combine.c (distribute_notes): Do not place a REG_DEAD note
1452 when value is both set and used.
1454 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
1456 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
1458 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
1459 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
1461 2004-02-27 Andrew Pinski <apinski@apple.com>
1463 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
1464 Speedup common case of the type values being in the same order.
1466 2004-02-27 Steve Ellcey <sje@cup.hp.com>
1468 * config/ia64/ia64.h (no-inline-float-divide): New option.
1469 * config/ia64/ia64.h (no-inline-int-divide): New option.
1470 * config/ia64/ia64.h (no-inline-sqrt): New option.
1471 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
1472 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
1473 * config/ia64/ia64.c (ia64_override_options): Modify error
1474 checking for inlined division/sqrt.
1476 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
1478 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
1479 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
1480 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
1481 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
1484 2004-02-27 Paul Brook <paul@codesourcery.com>
1486 * function.c (assign_parms): Don't count pretend args for alignment.
1488 2004-02-27 Richard Henderson <rth@redhat.com>
1490 * passes.c: New file.
1491 * Makefile.in (OBJS-common): Add it.
1492 * diagnostic.c (rtl_dump_and_exit): Move decl ...
1493 * flags.h (rtl_dump_and_exit): ... here.
1494 * output.h (size_directive_output, last_assemble_variable_decl):
1496 * rtl.h (reg_alloc): Move from toplev.c.
1497 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
1498 struct dump_file_info, enum dump_file_index, dump_file_tbl,
1499 open_dump_file, close_dump_file, rest_of_decl_compilation,
1500 rest_of_type_compilation, rest_of_handle_final,
1501 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
1502 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
1503 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
1504 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
1505 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
1506 rest_of_handle_tracer, rest_of_handle_if_conversion,
1507 rest_of_handle_if_after_combine, rest_of_handle_web,
1508 rest_of_handle_branch_prob,
1509 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
1510 rest_of_handle_addressof, rest_of_handle_sibling_calls,
1511 rest_of_handle_jump_bypass, rest_of_handle_inlining,
1512 rest_of_handle_null_pointer, rest_of_handle_combine,
1513 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
1514 rest_of_handle_gcse, rest_of_handle_loop_optimize,
1515 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
1516 (decode_d_option): Use enable_rtl_dump_file.
1517 (compile_file, finalize, do_compile): Move profile+combine+graph
1518 cleanup to finish_optimization_passes.
1519 * toplev.h (init_optimization_passes, finish_optimization_passes,
1520 enable_rtl_dump_file): Declare.
1522 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
1523 Roger Sayle <roger@eyesopen.com>
1525 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
1526 operands to build a tree with swapped operands.
1527 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
1528 'unsignedp' predicate to specify the signedness.
1530 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
1532 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
1533 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
1534 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
1535 comment typos and formatting. Follow spelling conventions.
1537 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
1539 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
1542 * config/rs6000/spe.md: Delete spe_efsctuiz.
1543 Add spe_fixuns_truncsfsi2.
1544 Add spe_fix_truncsfsi2.
1546 2004-02-26 Eric Christopher <echristo@redhat.com>
1548 * c-lex.c (c_lex_string_translate): New variable.
1549 (lex_string): Use to determine string translation.
1550 * c-pragma.h: Prototype.
1551 * c-parse.in (start_string_translation): New. Set above.
1552 (stop_string_translation): Ditto.
1553 (attribute, attribute_list, asm_def, asm_stmt,
1554 asm_operand): Use above functions.
1555 * cp/parser.c (cp_parser_declaration): Translate strings
1556 unless token is RID_EXTERN. Set c_lex_string_translate
1558 (cp_parser_asm_definition): Only translate argument strings
1560 (cp_parser_asm_operand_list): Ditto.
1561 (cp_parser_attribute_list): Do not translate attribute strings.
1563 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1565 * stmt.c (expand_start_case_dummy): Remove.
1566 * tree.h: Remove the corresponding prototype.
1568 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1570 * builtins.c (apply_args_register_offset): Remove.
1571 * tree.h: Remove the corresponding prototype.
1573 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1575 * stor-layout.c (is_pending_size): Remove.
1576 * tree.h: Remove the corresponding prototype.
1578 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1580 * recog.c (validate_replace_src): Remove.
1581 * recog.h: Remove the corresponding prototype.
1583 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1585 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
1586 MAYBE_REG_PARM_STACK_SPACE.
1587 * function.c: Likewise.
1588 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
1589 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
1590 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
1591 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
1593 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1595 * c-decl.c (c_expand_deferred_function): Remove.
1596 * c-tree.h: Remove the corresponding prototype.
1598 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
1600 * postreload.c (reload_cse_move2add): Generate just a PLUS
1601 instead of an entire SET.
1603 2004-02-26 Jan Hubicka <jh@suse.cz>
1605 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
1607 * i386.c (override_options): Add support for new CPUs.
1608 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
1609 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
1611 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
1613 2004-02-26 Bob Wilson <bob.wilson@acm.org>
1615 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
1617 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
1619 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
1620 (sparc_emit_fixunsdi): New prototype.
1621 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
1622 (sparc_emit_fixunsdi): New function.
1623 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
1624 operand 1. Pass SFmode to sparc_emit_floatunsdi.
1625 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
1626 to sparc_emit_floatunsdi.
1627 (fixuns_truncsfdi2): New expander.
1628 (fixuns_truncdfdi2): Likewise.
1630 2004-02-26 Alan Modra <amodra@bigpond.net.au>
1632 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
1635 2004-02-25 Richard Henderson <rth@redhat.com>
1637 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
1638 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
1639 use (op0-op1) == 0 if op0 is a pointer.
1640 * config/alpha/alpha.md (cmpdi): Use some_operand.
1641 (three comparison combine splits): Remove.
1643 2004-02-25 Richard Henderson <rth@redhat.com>
1646 * c-common.c (handle_alias_attribute): Reject the attribute if
1647 current_function_decl is set.
1649 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
1651 * config.gcc: Add comment describing extra_gcc_objs.
1652 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
1653 * configure.ac (extra_gcc_objs): New substitution variable.
1654 (host_extra_gcc_objs): Don't substitute.
1655 * configure: Regenerate.
1656 * Makefile.in: Use extra_gcc_objs.
1658 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
1660 * doc/contrib.texi: Add an entry for myself.
1662 2004-02-25 Jan Hubicka <jh@suse.cz>
1664 * basic-block.h (make_eh_edge, break_superblocks): Declare.
1665 * cfgbuild.c (make_eh_edge): Make global.
1666 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
1667 * except.c (build_post_landing_pads, connect_post_landing_pads,
1668 dw2_build_landing_pads, sjlj_emit_function_enter,
1669 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
1670 sjlj_build_landing_pads): Update CFG.
1671 (emit_to_new_bb_before): New function.
1672 (finish_eh_generation): Do not rebuild the CFG.
1674 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1676 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
1677 target_cpu_default defines.
1678 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
1679 * pa.h (TARGET_DEFAULT): Likewise.
1681 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
1683 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
1684 comparisons with regard to signedness.
1686 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
1688 * arm.c (thumb_legitimize_address): New function.
1689 * arm-protos.h: Prototype it.
1690 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
1691 (LEGITIMIZE_ADDRESS): Use it.
1693 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
1695 * reload1.c (reload): Only spill eliminable register with multiple
1696 adjacent elimination alternatives if all alternatives fail.
1698 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
1700 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
1701 is -4095...+4095 inclusive.
1703 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
1705 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
1706 the bootstrap failure with Sun CC 5.4 and 5.5.
1708 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
1710 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
1711 which modifies NEWREG.
1712 (cse_condition_code_reg): Update the mode of CC_REG in
1713 CC_SRC_INSN on our own.
1715 2004-02-24 Michael Matz <matz@suse.de>
1717 * config/i386/i386.c (ix86_comp_type_attributes): Check for
1720 2004-02-24 Richard Henderson <rth@redhat.com>
1722 * toplev.c (dump_file_tbl): Rename from dump_file.
1723 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
1724 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
1725 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
1726 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
1727 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
1728 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
1729 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
1730 s/rtl_dump_file/dump_file/g.
1732 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
1734 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
1735 (spe_fixuns_truncsfsi2): Delete.
1737 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
1738 (fixuns_truncsfsi2): Delete.
1740 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
1743 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
1745 2004-02-24 Geoffrey Keating <geoffk@apple.com>
1747 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
1749 2004-02-24 Jason Merrill <jason@redhat.com>
1751 * tree.c (check_qualified_type): New fn.
1752 (get_qualified_type): Use it. If type already has the desired
1753 quals, just return it.
1754 * tree.h: Declare it.
1756 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
1758 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
1759 TARGET_SCHED_FINISH_GLOBAL): New macros.
1761 * target.h (md_init_global, md_finish_global): Function
1762 declarations corresponding to new target macros.
1764 * haifa-sched.c (sched_init, sched_finish): Allow target to
1765 call the new schedular hooks.
1767 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
1768 call to update_life_info.
1770 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
1771 flag_schedule_insns for SH4.
1773 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
1774 find_set_regmode_weight, find_insn_regmode_weight,
1775 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
1776 sh_variable_issue, high_pressure, ready_reorder,
1777 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
1778 functions used to throttle the insn movement in first
1779 scheduling pass for SH.
1781 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
1782 TARGET_SCHED_FINISH_GLOBAL.
1784 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
1786 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
1787 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
1788 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
1789 symbols in sections named by the user.
1790 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
1791 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
1792 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
1793 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
1794 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
1796 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
1797 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
1798 one more pseudo to further improve code generation.
1799 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
1800 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
1802 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
1803 * config/frv/frv.c (frv_legitimate_address_p): Added
1804 allow_double_reg_p argument. Adjust all callers. Use it to
1805 decide whether to enable double-register indirect addressing.
1806 (frv_funcdesc_alias_set): Remove.
1807 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
1808 register. Emit movdi_ldd.
1809 (ldd_address_operand): New.
1810 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
1811 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1812 (PREDICATE_CODES): Add ldd_address_operand.
1813 * config/frv/frv.md (movdi_ldd): New.
1814 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
1815 intermediate computations if possible.
1816 (symGOTOFF2reg_i): Fix harmless typo.
1817 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
1818 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
1819 relocated p_vaddr to vaddr type.
1820 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
1821 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
1822 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
1823 MEM, or use a funcdesc alias set. Use regular move instead of
1825 (dbl_memory_one_insn_operand): Recognize function descriptors by
1826 type or by alias set, and don't split them.
1827 * config/frv/frv.md (call, call_value): Never use call_internal
1829 (call_internal, call_value_internal): Never match for FDPIC.
1830 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
1831 call_value_fdpicsi): Require FDPIC.
1833 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
1834 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
1835 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
1836 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
1837 FDPIC. Compute data base address.
1838 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
1839 before the other self-specs are processed.
1840 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
1842 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
1843 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
1844 inhibit_libc is defined.
1845 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
1846 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
1848 (__RELOC_POINTER): Define.
1849 (_Unwind_IteratePhdrCallback): Use it.
1850 * config/frv/frv.h (Twrite): Define.
1851 (TRANSFER_FROM_TRAMPOLINE): Use it.
1852 * config/frv/linux.h (INVOKE__main): Undefine.
1854 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1855 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
1856 (-mlibrary-pic): Emphasize that this option generates EABI code.
1859 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
1860 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
1861 and CONSTs in FDPIC mode.
1862 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
1863 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1864 * config/frv/frv.c (move_source_operand): Don't accept symbolic
1866 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
1867 rather than 'i' constraint for the 2-instruction alternative.
1868 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
1869 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1870 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
1871 EXTRA_CONSTRAINT_FOR_Y.
1872 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
1873 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
1874 (addsi3): Change 'Y' constraint to 'Q'.
1875 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
1876 * reload.c (CONST_POOL_OK_P): New macro.
1877 (find_reloads): Use it to decide whether a constant can be forced
1879 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
1880 constant satisfies got12_operand.
1881 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
1882 (frv_legitimate_address_p): Check for valid unspec offsets using
1883 got12_operand rather than frv_legitimate_fdpic_operand_p.
1884 (frv_legitimate_fdpic_operand_p): Delete.
1885 (frv_emit_movsi): Abort if we try to use the FDPIC register during
1887 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
1889 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
1890 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1891 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
1892 (frv_fdpic_fptr_operand): Don't declare here.
1893 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
1894 rather than fdpic_got12_operand.
1895 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
1896 got12_operand and const_unspec_operand.
1897 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
1898 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
1899 (symbolic_operand): Remove.
1900 (const_unspec_operand): New predicate.
1901 * config/frv/frv.md (*movsi_got): Use got12_operand.
1902 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
1903 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
1904 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
1905 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
1906 * config/frv/frv.c (frv_unspec): New structure.
1907 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
1908 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
1909 validate CONST indices. Use frv_output_const_unspec to print them.
1910 (frv_print_operand): Update call to unspec_got_name. Use
1911 frv_output_const_unspec to print constant unspecs.
1912 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
1913 Reject UNSPECs otherwise.
1914 (unspec_got_name): Take the relocation number as argument, not an
1916 (frv_output_addr_const_extra): Remove, replacing with...
1917 (frv_output_const_unspec): ...this new function.
1918 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
1919 (gpr_or_int12_operand): Use fdpic_got12_operand.
1920 (dbl_memory_one_insn_operand): Likewise.
1921 (fdpic_got12_operand): Use frv_const_unspec_p.
1922 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
1923 are already legitimate. Use frv_small_data_reloc_p when deciding
1924 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
1925 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
1926 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
1927 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
1928 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1929 label, for real this time.
1930 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
1931 representation of visibility.
1932 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
1934 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
1935 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
1936 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
1937 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
1938 it was explicitly disabled.
1939 (frv_stack_info): There is no need to save the link register in every
1940 frame unless TARGET_LINKED_FP is true.
1941 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
1942 frame pointer if the stack pointer might change value.
1943 (frv_return_addr_rtx): Check and process "count" argument.
1944 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
1945 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
1946 (frv_find_base_term): Declare.
1947 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
1948 (FIND_BASE_TERM): Define.
1949 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
1950 small_data_register_operand, small_data_symbolic_operand. Add
1952 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
1953 (frv_print_operand_memory_reference, output_move_single): Remove
1954 special handling for unlegitimized sdata addresses.
1955 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
1956 and symbolic addresses.
1957 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
1958 (frv_find_base_term): New function.
1959 (int_2word_operand): Check specifically for symbolic address constants.
1960 (pic_register_operand, pic_symbolic_operand): Delete.
1961 (small_data_register_operand, small_data_symbolic_operand): Delete.
1962 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
1963 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
1964 (move_source_operand): Only accept CONSTs if they're a two-insn
1966 (fdpic_got12_operand): Don't require TARGET_FDPIC.
1967 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
1968 using gen_symGOTOFF2reg*.
1969 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
1970 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
1971 themselves a cost of 3 insns.
1972 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
1973 Change predicate to symbolic_operand.
1974 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
1975 (*movsi_lda_sdata): Delete.
1976 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
1977 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1978 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
1980 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1982 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
1983 -multilib-library-pic.
1984 (LINK_SPEC): Add -z text for -mfdpic.
1985 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
1986 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
1987 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
1989 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
1990 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
1991 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
1992 crtstuff-generated files.
1993 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1994 * config.gcc: Add frv-*-*linux*.
1995 * config/frv/linux.h, config/frv/t-linux: New.
1996 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
1997 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
1998 when -mfdpic even if a linker script is explicitly listed.
1999 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
2000 * config/frv/frv.c (frv_override_options): Clear asm_out
2001 unaligned_op for SImode on FDPIC.
2002 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
2003 argument passed to decl_readonly_section.
2004 (frv_assemble_integer): Revert 2003-09-30's change, but make the
2005 whole block run with FDPIC even with -fno-PIC.
2006 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
2007 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
2008 symbol or label plus offset to memory.
2009 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
2010 GOTOFF and GPREL for LABEL_REF.
2011 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
2012 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
2013 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
2014 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
2015 * doc/invoke.texi: Document them.
2016 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2017 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
2018 (frv_splittable_got_operand): Removed.
2019 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
2020 LO_SUM. Add comments.
2021 (frv_override_options): Moved enabling of FDPIC to
2022 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
2023 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
2024 (frv_legitimize_fdpic_address): Don't duplicate logic in
2026 (frv_gen_GPsym2reg): New.
2027 (unspec_got_name): Added gprel.
2028 (frv_expand_fdpic_call): Add support for inlining PLTs.
2029 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
2030 (gpr_or_int12_operand): Added GPREL12.
2031 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
2032 (small_data_symbolic_operand): Fail if FDPIC.
2033 (fdpic_splittable_got_operand): Removed.
2034 (fdpic_got12_operand): Added GPREL12.
2035 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
2036 when appropriate. Fix sdata GOTOFF.
2037 (frv_legitimate_constant_p): Require legitimate PIC operand for
2038 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
2039 (frv_assemble_integer): Move FDPIC funcdesc handling out of
2041 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
2042 frv_assemble_integer fails.
2043 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
2044 (SUBTARGET_DRIVER_SELF_SPECS): New.
2045 (ASM_SPEC): Don't pass -mno-fdpic.
2046 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
2047 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
2048 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
2049 -multilib-library-pic.
2050 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
2051 condexec_si_media_operator, condexec_sf_add_operator and
2052 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
2053 and condexec_sf_unary_operator.
2054 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
2056 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
2057 movsi_internal. Give them internal names. movsi_got has type
2059 (fdpic got splitters): Remove.
2060 (symGPREL2reg, symGPREL2reg_hilo): New.
2061 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
2062 to -mlibrary-pic. Map -multilib-library-pic to it.
2063 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
2065 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
2066 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
2067 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
2068 (frv_cannot_force_const_mem): New function.
2069 (const_small_data_p, plus_small_data_p): Update comments on sdata
2071 (frv_override_options): Set flag_pie for FDPIC too.
2072 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
2073 call-saved registers on FDPIC.
2074 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
2075 don't force LR to be preserved.
2076 (frv_expand_prologue): Likewise.
2077 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
2078 (frv_frame_pointer_required): Don't force it just because the
2079 FDPIC register is used.
2080 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
2081 operand only if !condexec_p.
2082 (frv_legitimize_address): Return the FDPIC-legitimized address.
2083 Don't match small data here on FDPIC.
2084 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
2085 symbols. Use TRUE/FALSE instead of 1/0.
2086 (frv_local_funcdesc_p): New.
2087 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
2088 immediates when possible.
2089 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
2090 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
2092 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
2093 12-bit immediates when possible.
2094 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
2095 are not legitimate pic operands.
2096 (frv_in_small_data_p): Re-enable for FDPIC.
2097 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
2098 (FRV_GLOBAL_P): Removed.
2099 * config/frv/frv.md: Add modes to CONSTs.
2101 (movsi_lo_sum_got): Use separate matches instead of match_dup.
2102 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
2103 (fdpic splittable operations): Match on flag_pic != 1.
2104 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
2105 * config/frv/frv.c (frv_asm_out_constructor,
2106 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
2108 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
2109 * config/frv/frv.c (frv_assemble_integer): Reject complex
2110 expressions referencing function SYMBOL_REFs.
2111 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
2112 (move_source_operand): Reject CONSTs that reference function
2113 SYMBOL_REFs on FDPIC.
2114 (frv_emit_movsi): If we get such a CONST, break it up.
2115 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
2116 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
2117 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
2119 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
2120 (frv_trampoline_size): Increase for FDPIC.
2121 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
2122 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
2123 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
2124 Disable use of GOTOFF for now.
2125 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
2126 Disable use of small data in FDPIC for now.
2127 (frv_asm_output_mi_thunk): Implement for FDPIC.
2128 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
2129 * config/frv/frv.c (frv_asm_out_constructor): Use
2130 frv_assemble_integer for FDPIC pointers.
2131 (frv_asm_out_destructor): Likewise.
2132 * config/frv/frv.md (ldd): Fix order of operands. Use
2133 address_operand for input.
2134 2003-09-18 DJ Delorie <dj@redhat.com>
2135 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
2136 (unspec_got_name): Correct typo.
2137 (frv_emit_movsi): Pre-expand splittable GOTs.
2138 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
2139 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
2140 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
2141 * config/frv/t-frv: Add -mfdpic multilibs.
2142 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
2143 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
2144 * config/frv/frv.c (frv_override_options): -mfdpic assumes
2145 flag_pic, default to 32-bit pics, require DWORD ops.
2146 (frv_override_options): Add W and Z constraints.
2147 (frv_expand_prologue): No pic prologue for -mfdpic.
2148 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
2149 (frv_print_operand_memory_reference): Handle GOT constants.
2150 (frv_legitimate_address_p): Allow GOT constants.
2151 (frv_legitimize_address): Handle GOT addresses too.
2152 (frv_legitimate_fdpic_operand_p): New.
2153 (frv_legitimize_fdpic_address): New.
2154 (unspec_got_name): New.
2155 (frv_output_addr_const_extra): New.
2156 (frv_expand_fdpic_call): New.
2157 (frv_fdpic_fptr_operand): New.
2158 (gpr_or_int12_operand): Handle GOT operands.
2159 (int_2word_operand): Handle GOT operands.
2160 (fdpic_operand): New.
2161 (fdpic_splittable_got_operand): New.
2162 (fdpic_got12_operand): New.
2163 (frv_emit_movsi): Handle GOT operands.
2164 (frv_assemble_integer): -mfdpic doesn't use rofixups.
2165 (frv_print_operand): Support 'g' code for GOT operands.
2166 * config/frv/frv-protos.h: Add prototypes as needed.
2167 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
2168 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
2169 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
2170 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
2171 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
2172 R_FRV_GOTOFFLO): New.
2173 (movsi_high_got, movsi_lo_sum_got): New.
2174 (*movsi_pic): Don't use this splitter for -mfdpic.
2175 (addsi3): Allow GOT references also.
2176 (call, call_value): Handle -mfdpic separately.
2177 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
2178 call_value_fdpicsi): New.
2179 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
2180 symGOTOFF2reg_i): New.
2181 * config/frv/frv.h (MASK_FDPIC): New.
2182 (TARGET_FDPIC): New.
2183 (TARGET_SWITCHES): Add -mfdpic.
2184 (FDPIC_FPTR_REGNO): New.
2186 (OUR_FDPIC_REG): New.
2187 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
2189 (REG_CLASS_NAMES): Likewise.
2190 (REG_CLASS_CONTENTS): Likewise.
2191 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
2192 (EXTRA_CONSTRAINT): Add it here.
2193 (FRV_GLOBAL_P): New.
2194 (OUTPUT_ADDR_CONST_EXTRA): New.
2196 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
2198 * config/sparc/sparc.h: Remove commented-out definitions of
2199 TARGET_EDOM and GEN_ERRNO_RTX.
2201 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
2203 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
2204 df_analyse with df_analyze.
2206 2004-02-24 Alan Modra <amodra@bigpond.net.au>
2208 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
2211 2004-02-23 James E Wilson <wilson@specifixinc.com>
2213 * calls.c (precompute_arguments): Update comment.
2215 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
2217 * et-forest.c: Replace et_occurences with et_occurrences.
2219 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
2221 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
2224 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
2226 * config/i386/i386.c: Rename pni to sse3.
2227 * config/i386/i386.h: Likewise.
2228 * config/i386/i386.md: Likewise.
2229 * config/i386/pmmintrin.h: Likewise.
2230 * doc/extend.texi: Likewise.
2231 * doc/invoke.texi: Likewise.
2233 2004-02-23 Zack Weinberg <zack@codesourcery.com>
2234 Kazu Hirata <kazu@cs.umass.edu>
2236 Remove -fwritable-strings.
2237 * c-common.c (fix_string_type): Don't check
2238 flag_writable_strings.
2239 (fix_string_type): Likewise.
2240 * c-opts.c (set_std_c89): Don't initialize
2241 flag_writable_strings.
2242 (set_std_c99): Likewise.
2243 * common.opt (fwritable-strings): Remove.
2244 * flags.h: Remove the external declaration of
2245 flag_writable_strings.
2246 * opts.c (common_handle_option) <OPT_fwritable_strings>:
2248 * toplev.c (flag_writable_strings): Remove.
2249 (f_options): Remove an entry for writable-strings.
2250 * varasm.c (const_hash_1) <STRING_CST>: Don't check
2251 flag_writable_strings.
2252 (compare_constant) <STRING_CST>: Likewise.
2253 (build_constant_desc): Likewise.
2254 * config/darwin.c (machopic_select_section): Likewise.
2255 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
2256 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
2257 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
2258 * config/mips/mips.c (mips_select_section): Likewise.
2259 (mips_encode_section_info): Likewise.
2260 * config/pa/pa.c (pa_select_section): Likewise.
2261 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
2262 * config/v850/v850.c (v850_select_section): Likewise.
2263 * doc/invoke.texi (-fwritable-strings): Remove.
2264 (-fno-const-strings): Don't mention -fwritable-strings.
2265 * doc/trouble.texi: Don't mention -fwritable-strings.
2267 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
2269 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
2271 2004-02-23 Dale Johannesen <dalej@apple.com>
2273 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
2274 (movdf_hardfloat64): Ditto.
2275 (movdf_softfloat64): Ditto.
2277 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
2278 * config/rs6000/rs6000.c (function_arg): call to
2279 rs6000_mixed_function_arg for DFmode moved to allow
2280 normal DFmode incoming register assignment.
2282 2004-02-23 Dale Johannesen <dalej@apple.com>
2284 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
2285 (movdf_hardfloat64): Ditto.
2287 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
2289 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
2290 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
2293 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
2296 * c-typeck.c (c_expand_return): Change check for VAR_DECL
2297 to use DECL_P instead.
2299 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
2300 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
2302 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
2304 * Makefile.in (opts.o): Depend on target.h.
2305 * opts.c (decode_options): Use targetm.default_short_enums
2306 instead of DEFAULT_SHORT_ENUMS.
2307 * system.h (DEFAULT_SHORT_ENUMS): Poison.
2308 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
2309 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
2310 * target.h (gcc_target): Add default_short_enums.
2311 * config/cris/cris.h: Remove a comment about
2312 DEFAULT_SHORT_ENUMS.
2313 * config/ip2k/ip2k.h: Likewise.
2314 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
2315 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
2317 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2318 Falk Hueffner <falk@debian.org>
2321 * builtins.c (expand_builtin_va_arg): Emit an informative message
2322 if a trap is generated.
2323 * c-typeck.c (build_function_call): Likewise.
2325 2004-02-22 Jakub Jelinek <jakub@redhat.com>
2327 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
2329 * libgcov.c: Include sys/stat.h.
2330 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
2331 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
2332 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
2333 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
2335 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
2337 * reorg.c: Remove comments about dead ports.
2339 2004-02-22 Christopher Faylor <cgf@redhat.com>
2341 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
2342 extra host object file when targetting cygwin rather than generic
2345 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
2347 Merge from tree-ssa:
2348 2003-11-20 Richard Henderson <rth@redhat.com>
2350 * tree-inline.c (insert_decl_map): New.
2351 (remap_decl, remap_type, remap_block, copy_body_r,
2352 initialize_inlined_parameters, declare_return_variable,
2353 remap_save_expr): Use it.
2355 * function.c (copy_body_r): Add mapping from id->ret_label to
2356 id->ret_label. Revert test for ret_label.
2358 2004-02-22 Jakub Jelinek <jakub@redhat.com>
2360 * genoutput.c (process_template): Strip trailing whitespace in @
2361 templates and issue a warning if there was any.
2363 2004-02-21 Christopher Faylor <cgf@redhat.com>
2365 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
2366 object file when targetting cygwin.
2367 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
2368 overridden by top-level Makefile.
2370 2004-02-21 Roger Sayle <roger@eyesopen.com>
2372 * config/i386/i386.c (standard_80387_constant_p): Also prefer
2373 the x87's load constant instructions when optimizing for size.
2375 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
2377 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
2378 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
2379 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
2380 * fold-const.c: Likewise.
2381 * simplify-rtx.c: Likewise.
2383 2004-02-21 Alan Modra <amodra@bigpond.net.au>
2385 * combine.c (can_combine_p): Don't ignore SETs marked with
2386 REG_EH_REGION notes.
2387 (try_combine): When attemting to fix unrecognized insns, don't
2388 split a PARALLEL that contains the original i2.
2390 2004-02-21 Ziemowit Laski <zlaski@apple.com>
2392 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
2393 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
2394 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
2395 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
2396 (vector, pixel, bool): #define to __vector, __pixel and __bool.
2397 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
2399 (__altivec_link_error_invalid_argument): Remove prototype; will use
2400 __builtin_altivec_compiletime_error("vec_*") instead.
2401 (vec_*): Fix/complete set of available operation overloads given the
2402 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
2403 cv-correctness of pointer arguments; in C, always check for correct
2404 argument types before macro expansion.
2405 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
2406 defining Darwin/PowerPC-specific '-f[no-]altivec' and
2407 '-W[no-]altivec-long-deprecated' switches.
2408 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
2409 '__vector', '__pixel' and '__bool' macros using
2410 '__attribute__((altivec(...)))' types.
2411 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
2412 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
2413 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
2415 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
2416 handling '-W[no-]altivec-long-deprecated'.
2417 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
2418 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
2419 altivec_expand_dst_builtin): Remove casts from integer literals.
2420 (altivec_expand_builtin): Likewise; handle expansion of new
2421 '__builtin_altivec_compiletime_error' function.
2422 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
2423 types, and make them distinct from other vector types; register
2424 '__builtin_altivec_compiletime_error' function.
2425 (print_operand): For 'P', print a full target register name instead of
2427 (rs6000_attribute_table): Add "altivec" attribute.
2428 (rs6000_handle_altivec_attribute): New function.
2429 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
2430 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
2432 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
2434 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
2436 2004-02-20 James E Wilson <wilson@specifixinc.com>
2438 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
2440 (shift_mix4left+2): Delete redundant pattern.
2442 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
2444 * alias.c (OUTGOING_REGNO): Don't define the default.
2445 * builtins.c (OUTGOING_REGNO): Likewise.
2446 (INCOMING_REGNO): Likewise.
2447 (apply_args_register_offset): Always use OUTGOING_REGNO.
2448 * combine.c (OUTGOING_REGNO): Likewise.
2449 * sibcall.c (OUTGOING_REGNO): Likewise.
2450 * defaults.h (INCOMING_REGNO): Provide the default.
2451 (OUTGOING_REGNO): Likewise.
2453 2004-02-21 Jan Hubicka <jh@suse.cz>
2455 * params.def (max-peeled-insns, max-completely-peeled-insns,
2456 max-once-peeled-insns): Set to 400.
2458 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2461 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
2462 are set for parameters before outputing debugging information.
2464 2004-02-20 Falk Hueffner <falk@debian.org>
2467 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
2470 2004-02-20 Per Bothner <per@bothner.com>
2472 * input.h: Don't #include line-map.h. It may cause link problems
2473 with undefined linemap_line_start when line-map.h is included but
2474 line-map.o is not linked, as currently happens with gengtype on
2475 compilers that don't support inline.
2476 * toplev.c: So we do have to explicitly #include line-map.h here.
2478 2004-02-20 Richard Henderson <rth@redhat.com>
2480 * doc/invoke.texi: Add -Wvariadic-macros.
2482 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
2484 * haifa-sched.c (sched_emit_insn): Remove.
2485 * sched-int.h: Remove the corresponding prototype.
2487 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
2490 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2491 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
2492 * system.h (DEFAULT_SHORT_ENUMS): Poison.
2493 * config/cris/cris.h: Remove a comment about
2494 DEFAULT_SHORT_ENUMS.
2495 * config/ip2k/ip2k.h: Likewise.
2496 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
2498 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
2499 Tom Tromey <tromey@redhat.com>
2501 * doc/install.texi: Moved --disable-libgcj and
2502 --with-system-zlib documentation to new section for
2503 Java-specific options.
2504 Added explicit Cross-Compiler-Specific Options subheading.
2505 Added section for Java-specific options.
2507 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
2509 * doc/install.texi (Building the Ada compiler): Remove
2512 2004-02-20 James E Wilson <wilson@specifixinc.com>
2514 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
2516 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
2518 * gcc.c (process_command): Allow translation of the copyright
2519 symbol but not the rest of the copyright message.
2520 * gcov.c (print_version): Likewise. Allow translation of the
2521 message about warranty.
2523 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
2525 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
2527 ("*andsi_clear"): Tweak constraints to not match postincrement.
2528 Adjust the predicate to exclude a volatile memory reference.
2529 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
2530 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
2532 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
2534 * move-if-change: Remove.
2535 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
2536 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
2537 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
2538 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
2539 (s-gtyp-gen, s-iov): Use the top level move-if-change.
2540 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
2542 2004-02-19 James E Wilson <wilson@specifixinc.com>
2544 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
2545 for operand2. Add condition that requires register_operand operand2
2548 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
2549 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2551 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
2552 * config/mips/mips.md: Expand comment above unaligned loads and stores.
2554 2004-02-19 Richard Henderson <rth@redhat.com>
2556 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
2557 * tree.c (build0, build1, build2, build3, build4): Split out from...
2558 (build): ... here. Call them.
2559 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
2561 * convert.c (convert_to_integer): Remove extra build argument.
2562 * tree-inline.c (expand_call_inline): Likewise.
2564 2004-02-19 Richard Henderson <rth@redhat.com>
2566 * c-opts.c (warn_variadic_macros): New.
2567 (c_common_handle_option): Set it.
2568 (sanitize_cpp_opts): Copy it to cpp_opts.
2569 * c.opt (Wvariadic-macros): New.
2570 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
2571 * cppinit.c (cpp_create_reader): Initialize it.
2572 * cppmacro.c (parse_params): Check it.
2574 2004-02-19 David Daney <ddaney@avtrex.com>
2576 PR preprocessor/14198
2577 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
2578 builtin_assert ("machine=mips")
2580 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2582 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
2583 * system.h (DEFAULT_SHORT_ENUMS): Poison.
2584 * config/cris/cris.h: Remove a comment about
2585 DEFAULT_SHORT_ENUMS.
2586 * config/ip2k/ip2k.h: Likewise.
2587 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
2589 2004-02-19 Zack Weinberg <zack@codesourcery.com>
2591 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
2592 when passing single SFmode quantities in general registers,
2593 put them in the high half.
2595 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
2597 * doc/md.texi (Standard Names): Document additional dependency on
2600 * optabs.c (ftruncify): Remove.
2601 (expand_fix): Manually inline ftruncify above.
2602 (can_fix_p): Add FIXME note.
2604 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
2606 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
2607 spe_fixuns_truncsfsi2.
2609 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
2612 2004-02-19 Steve Ellcey <sje@cup.hp.com>
2614 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
2615 * testsuite/gcc.dg/20040219-1.c: New test.
2617 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
2619 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
2620 "*subsf3_cconly"): Subtraction is not commutative.
2622 2004-02-19 Zack Weinberg <zack@codesourcery.com>
2624 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
2625 (sdbout_symbol): If called before sdbout_init, queue DECL for
2627 (sdbout_init): Set sdbout_initialized true, process decls
2628 queued earlier by sdbout_symbol.
2629 (sdbout_finish): Use size_t for index variable.
2631 2004-02-19 Jeff Law <law@redhat.com>
2633 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
2634 for unordered comparison codes.
2636 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
2638 * reload1.c (reload): Correct comment.
2639 (scan_paradoxical_subregs): Remove #if 0 and old comment.
2640 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
2641 register variables are not used by reload.
2643 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
2646 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
2647 constraints to not match postincrement. Adjust the predicate to
2648 exclude a volatile memory reference.
2650 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2652 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
2654 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2656 * hooks.c (hook_void_tree_int): Remove.
2657 (hook_void_constcharptr): Likewise.
2658 (hook_int_void_0): Likewise.
2659 * hooks.h: Remove the prototypes for the above three
2661 * targhooks.c (hook_bool_machine_mode_true): Remove.
2662 * targhooks.h: Remove the prototype for
2663 hook_bool_machine_mode_true.
2665 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2667 * emit-rtl.c (subreg_realpart_p): Remove.
2668 (reorder_insns_with_line_notes): Likewise.
2669 (end_full_sequence): Likewise.
2670 * rtl.h: Remove the prototype for the above functions.
2672 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2674 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
2675 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
2676 config/iq2000/iq2000.h, config/m32r/m32r.h,
2677 config/pdp11/pdp11.h, config/sparc/sparc.h,
2678 config/xtensa/xtensa.h: Remove commented-out or useless
2679 definitions of CASE_VECTOR_PC_RELATIVE.
2681 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
2683 * loop.c (all_sets_invariant_p): Remove.
2685 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
2688 * config/sparc/sparc.h (NPARM_REGS): Delete.
2689 (BASE_RETURN_VALUE_REG): Likewise.
2690 (BASE_OUTGOING_VALUE_REG): Likewise.
2691 (BASE_PASSING_ARG_REG): Likewise.
2692 (BASE_INCOMING_ARG_REG): Likewise.
2693 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
2694 TARGET_ARCH64, not TARGET_V9.
2695 (function_arg_slotno): Dispatch based on the mode class.
2696 Handle vector modes like floating-point modes.
2697 (function_arg_record_value_1): Handle vector types like
2698 floating-point types.
2699 (function_arg_record_value_2): Likewise.
2700 Calculate regno after mode transformation.
2701 (function_arg): Handle vector modes like floating-point modes.
2702 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
2703 If ARCH64, do not recheck alignment.
2704 (function_arg_pass_by_reference): Reorder the conditions.
2705 (sparc_return_in_memory): Move after function_arg_padding.
2706 Implement calling conventions for vector modes.
2707 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
2708 (function_value): Move scope of 'regbase'.
2709 Implement calling conventions for vector modes.
2710 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
2711 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
2712 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
2713 the argument is passed by reference.
2714 (sparc_type_code): Handle vector types.
2716 2004-02-19 Alan Modra <amodra@bigpond.net.au>
2718 * function.c (assign_parms): When building decl_rtl for
2719 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
2721 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
2723 * expr.c (is_aligning_offset): Check if we are aligning the
2724 expressions's address over BIGGEST_ALIGNMENT in bytes, not
2727 2003-02-18 Matt Austern <austern@apple.com>
2729 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
2730 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
2731 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
2732 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
2734 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
2736 2004-02-18 Zack Weinberg <zack@codesourcery.com>
2738 * dwarf2out.c (loclabel_num): Move outside #ifdef
2739 DWARF2_DEBUGGING_INFO and mark with GTY(()).
2740 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
2742 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
2743 Allocate memory with ggc_alloc. No need to copy anything.
2744 (ia64_hpux_file_end): Update to match.
2746 2004-02-18 Jakub Jelinek <jakub@redhat.com>
2748 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
2751 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
2753 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
2754 ("divmodtisi3"): Likewise.
2755 ("udivmoddi4", "udivmodtidi3"): Likewise.
2756 ("divmodsi4", "divmoddisi3"): Likewise.
2757 ("udivmodsi4", "udivmoddisi3"): Likewise.
2758 ("udivsi3", "umodsi3"): Likewise.
2760 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
2762 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
2763 placeholder insn when chunkifying the pool.
2765 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2767 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
2768 generating PIC code.
2770 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2772 * config/h8300/h8300-protos.h: Add a prototype for
2773 h8300_expand_branch.
2774 * config/h8300/h8300.c (h8300_expand_branch): New.
2775 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
2776 bgtu, beq, bne): Call h8300_expand_branch().
2778 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2780 * config/h8300/h8300-protos.h: Add prototypes for
2781 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
2782 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
2783 (h8300_hard_regno_mode_ok): Likewise.
2784 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
2785 h8300_hard_regno_nregs().
2786 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
2788 2004-02-18 Per Bothner <per@bothner.com>
2790 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
2791 partly reverts my 2003-10-01 change, because we're back to logically
2792 including <command line> inside the main line.
2793 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
2794 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
2795 Fixes PR preprocessor/14103.
2797 * cppfiles.c (_cpp_stack_include): When appropriate decrement
2798 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
2799 (cpp_push_include): Don't need to increment pfile's line field.
2800 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
2802 * c-ppoutput.c (print struct): New first_time field.
2803 (init_pp_output): Set print.first_time.
2804 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
2805 which is set also for (say) <command line>. Clear print.first_time.
2807 * cppfiles.c (struct _cpp_file): Comment and type for pch field
2808 does not match the code, so fix both.
2809 (should_stack_file): Inline include_pch_p function.
2810 (include_pch_p): Remove pointless function.
2812 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
2814 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2816 * config/h8300/h8300.md (four define_peephole2's): Use
2817 h8300_regs_ok_for_stm().
2819 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2821 * config/h8300/h8300-protos.h: Update the prototype for
2823 * config/h8300/h8300.c (expand_a_rotate): Remove the first
2825 * config/h8300/h8300.md: Update all callers.
2827 2004-02-18 Jan Hubicka <jh@suse.cz>
2829 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
2831 (simplify_binary_operation): Deal with logicals on floats.
2833 * i386.md (SSE fabs splitters): Emit new patterns.
2834 (SSE cmov splitters): Likewise.
2835 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
2836 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
2838 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
2839 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
2841 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2843 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
2845 (output_a_rotate): Tweak a comment.
2846 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
2847 (*rotlhi3_1): Change to rotlhi3_1.
2848 (*rotlsi3_1): Change to rotlsi3_1.
2850 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
2853 * arm.c (load_multiple_operation): Don't insist that the source reg
2854 of a post-increment component is the same as the destination.
2855 (store_multiple_operation): Likewise.
2857 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2859 * config/h8300/h8300.md: Move movsf patterns into one section
2862 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2864 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
2865 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
2866 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
2867 config/mips/linux64.h, config/pa/pa-64.h,
2868 config/rs6000/aix51.h, config/rs6000/aix52.h,
2869 config/rs6000/spe.md, config/sparc/linux.h,
2870 config/sparc/linux64.h: Update copyright.
2872 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
2874 * config/h8300/h8300.md: Move push patterns into one
2875 section of the file.
2877 2004-02-18 Mark Mitchell <mark@codesourcery.com>
2880 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
2883 2004-02-18 Paul Brook <paul@codesourcery.com>
2885 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
2887 2004-02-18 Paul Brook <paul@codesourcery.com>
2890 * dwarf2out.c (loc_descriptor_from_tree): Handle
2891 EXPR_WITH_FILE_LOCATION.
2893 2004-02-18 Jakub Jelinek <jakub@redhat.com>
2895 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
2896 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
2897 trailing whitespace from instructions.
2899 2004-02-17 Geoffrey Keating <geoffk@apple.com>
2901 * configure.ac: When generating auto-build.h, pass
2902 --enable-languages to the sub-configure.
2903 Put quotes around ${program_transform_name} when generating
2904 name of as, ld, nm, objdump.
2905 * configure: Regenerate.
2907 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
2909 * Makefile.in (s-check, s-config, s-conditions, s-flags)
2910 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
2911 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
2912 (s-preds, s-iov): Do not depend on move-if-change.
2914 2004-02-17 James E Wilson <wilson@specifixinc.com>
2916 * caller-save.c (insert_restore): Pass mem through copy_rtx.
2917 (insert_save): Likewise.
2919 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2921 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
2924 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2926 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
2928 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
2930 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2932 * config/h8300/h8300-protos.h: Update the prototype of
2934 * config/h8300/h8300.c (fix_bit_operand): Remove the second
2936 * config/h8300/h8300.md: Update all callers.
2938 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2940 * config/h8300/h8300.c (fix_bit_operand): Change the name of
2941 the last argument to "code" from "type".
2943 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2945 * config/h8300/h8300.c: Remove an extern declaration of
2946 rtx_equal_function_value_matters.
2948 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2950 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
2952 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
2953 (*iorqi3_1): Change to iorqi3_1.
2954 (*xorqi3_1): Change to xorqi3_1.
2956 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2958 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
2961 2004-02-17 Jan Hubicka <jh@suse.cz>
2963 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
2965 2004-02-18 Alan Modra <amodra@bigpond.net.au>
2967 PR optimization/14119
2968 * combine.c (try_combine): When attemting to fix unrecognized insns,
2969 don't delete SETs marked with REG_EH_REGION notes.
2971 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
2973 * combine.c (simplify_if_then_else): Do not replace
2974 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
2977 2004-02017 Steven Bosscher <stevenb@suse.de>
2979 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
2980 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
2981 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
2982 * ada/utils.c: Likewise.
2983 * cp/decl.c: Likewise.
2984 * f/com.c: Likewise.
2985 * java/class.c: Likewise.
2987 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
2989 * config/h8300/h8300.md: Fix comment typos.
2991 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2993 * config/mips/t-iris6gld: Renamed to ...
2994 * config/mips/t-irix-gld: ... this.
2995 * config.gcc (mips-sgi-irix6*): Reflect this
2996 (mips-sgi-irix5*): Use it with GNU ld.
2998 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
3000 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
3001 * config/mips/t-irix-gld: Reflect this.
3002 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3004 * config/mips/iris5gld.h: New file.
3005 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
3006 Only use collect2 without gas.
3008 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
3009 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
3010 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
3011 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3013 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
3014 * config/mips/iris5.h: ... here.
3016 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
3017 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
3018 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
3020 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
3021 using irix_startfile_spec, irix_endfile_spec.
3023 2004-02-16 Gunther Nikl <gni@gecko.de>
3025 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
3027 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
3029 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
3032 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3034 * cfghooks.c (split_edge): Speed up updating of dominators.
3036 2004-02-17 Mark Mitchell <mark@codesourcery.com>
3039 * c-common.c (flag_abi_version): Remove.
3040 * c-common.h (flag_abi_version): Likewise.
3041 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
3042 * c.opt (fabi-version): Remove.
3043 * calls.c (expand_call): Always pass a function type to
3044 struct_value_rtx. Use convert_memory_address.
3045 * common.opt (fabi-version): Add it.
3046 * flags.h (flag_abi_version): Likewise.
3047 (abi_version_at_least): New macro.
3048 * opts.c (common_handle_option): Add OPT_fabi_version.
3049 * toplev.c (flag_abi_version): Define it.
3050 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3052 (ia64_output_mi_thunk): Use it.
3053 (ia64_struct_value_rtx): Likewise.
3055 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
3057 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
3058 Don't generate insns by hand.
3060 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
3063 * doc/invoke.texi (fabi-version): The default is 2 now.
3065 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3067 * loop-iv.c: New file.
3068 * Makefile.in (loop-iv.o): New.
3069 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
3070 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
3071 num_loop_branches): New functions.
3072 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
3073 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
3074 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
3075 get_simple_loop_desc, free_simple_loop_desc): Declare.
3076 (simple_loop_desc): New inline function.
3077 (struct rtx_iv, struct niter_desc): New.
3078 * cfgloopmanip.c (loopify): Specify semantics more precisely.
3079 * expr.c (force_operand): Handle subregs of expressions created by
3081 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
3082 parts of the initialization to toplev.c
3083 * loop-unroll.c (loop_exit_at_end_p): New.
3084 (unroll_and_peel_loops): Call iv_analysis_done.
3085 (decide_peel_once_rolling, decide_peel_completely,
3086 decide_unroll_stupid, decide_unroll_constant_iterations,
3087 decide_unroll_runtime_iterations, decide_peel_simple,
3088 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
3089 unroll_loop_runtime_iterations): Use new simple loop analysis.
3090 * loop-unswitch.c (compare_and_jump_seq): New.
3091 (may_unswitch_on_p): Renamed to ...
3092 (may_unswitch_on): Use new iv analysis.
3093 (reversed_condition): Export.
3094 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
3095 * predict.c (estimate_probability): Use new simple loop analysis.
3096 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
3097 canon_condition, simplify_using_condition): Declare.
3098 * stor-layout.c (get_mode_bounds): New.
3099 * toplev.c (rest_of_handle_loop2): Some parts of
3100 initialization/finalization moved here from loop-init.c.
3102 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
3104 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
3106 (CALL_USED_REGISTERS): Likewise.
3107 (REG_ALLOC_ORDER): Likewise.
3108 (REG_CLASS) <GENERAL_REGS>: Likewise.
3110 2004-02-16 Geoffrey Keating <geoffk@apple.com>
3112 * doc/md.texi (Insn Canonicalizations): Document left-chaining
3113 in associative operators.
3114 * rtlanal.c (commutative_operand_precedence): Create some new
3115 variables. Prefer a commutative operand on the left, then
3116 binary expressions, then NEG and NOT.
3118 2004-02-16 Matthias Klose <doko@debian.org>
3120 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
3121 in terms of SHLIB_SOVERSION.
3122 * config/m68k/t-slibgcc-elf-ver: New file.
3123 * config/pa/t-slibgcc-elf-ver: New file.
3124 * config.gcc (m68k-linux, parisc-linux): Use them when not
3125 sjlj exceptions are not configured.
3127 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
3129 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
3131 2004-02-16 Zack Weinberg <zack@codesourcery.com>
3133 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
3135 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
3137 * doc/sourcebuild.texi: Mention backends.html.
3139 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
3141 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
3142 line-map.c, line-map.h, var-tracking.c: Fix comment
3145 2004-02-16 Richard Henderson <rth@redhat.com>
3147 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
3149 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
3151 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
3153 * config/h8300/h8300.md: Remove unnecessary parallels from
3154 all define_insn and define_split patterns.
3156 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
3158 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
3161 2004-02-15 Bernardo Innocenti <bernie@develer.com>
3163 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
3166 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
3168 * config/ia64/ia64.c, config/mips/mips.c,
3169 config/mmix/mmix-modes.def: Fix comment typos.
3171 2004-02-15 Roger Sayle <roger@eyesopen.com>
3173 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
3174 (get_directive_line): Remove unused function prototype.
3176 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
3178 * tree-inline.c (copy_body_r): Do not replace ret_label.
3180 2004-02-14 Jan Hubicka <jh@suse.cz>
3182 * i386.c (x86_four_jump_limit): New variable.
3183 (k8_avoid_jump_misspredicts): Rename to ...
3184 (ix86_avoid_jump_misspredicts): .. this one.
3185 (ix86_pad_returns): Break out from ...
3186 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
3188 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
3190 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
3192 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
3195 2004-02-14 Per Bothner <per@bothner.com>
3197 * fix-header.c (line_table): Move local variable in main to global.
3198 * scan.h (line_table): Use it.
3199 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
3200 line (recently renamed to src_loc) before calling recognized_function.
3202 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
3204 * Makefile.in: Fix comment typos.
3206 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
3208 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
3209 for start_value when it is directly moved into reg, and factorize
3210 the retrieval of GET_MODE (reg).
3212 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
3214 * config/mips/mips-protos.h (mips_load_got_page): Delete.
3215 (mips_load_got_global): Delete.
3216 (mips_gotoff_page): Declare.
3217 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
3218 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
3219 UNSPEC_LOAD_GOT pattern rather than a MEM.
3220 (*load_got[sd]i): New patterns.
3221 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
3222 (mips_load_got_page, mips_load_got_global): Delete.
3223 (mips_gotoff_page): New function.
3224 (override_options): Don't initialize mips_got_alias_set.
3226 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
3228 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
3229 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
3230 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
3231 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
3232 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
3233 * config/mips/mips.c: Fix some overly-long lines.
3234 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
3235 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
3237 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3239 * configure.ac: Search for as, ld below libexec/gcc.
3240 * configure: Regenerate.
3242 2004-02-14 Ben Elliston <bje@wasabisystems.com>
3244 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
3245 __builtin_arm_setwcx ().
3246 * config/arm/arm.c (arm_expand_builtin): Generate operands
3247 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
3249 2004-02-14 Ben Elliston <bje@wasabisystems.com>
3251 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
3252 and "wmuluh" to "wmulsm" and "wmulum", respectively.
3253 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
3254 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
3255 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
3256 (_mm_mulhi_pu16): Likewise.
3258 2004-02-13 Zack Weinberg <zack@codesourcery.com>
3260 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
3261 DECL_NAME != 0 before dereferencing.
3263 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
3265 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
3266 (s390_output_addr_const_extra): Declare.
3267 (s390_output_pool_entry): Remove FILE * argument.
3268 * config/s390/s390.c (s390_output_symbolic_const): Remove.
3269 (s390_output_addr_const_extra): New function.
3270 (print_operand_address): Call output_addr_const instead of
3271 s390_output_symbolic_const.
3272 (print_operand): Likewise.
3273 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
3274 Remove FILE * argument.
3275 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
3276 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
3279 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3281 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
3282 (struct edge, struct vertex, struct graph): New.
3283 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
3284 free_graph): New functions.
3286 2004-02-12 Chris Demetriou <cgd@broadcom.com>
3288 * config/mips/mips.md (casesi_internal, casesi_internal_di):
3289 Use ".set macro" to avoid warnings about multi-instruction
3290 macros, since they're intentional.
3292 2004-02-12 Geoffrey Keating <geoffk@apple.com>
3294 * config/darwin.h: Add include guards. Remove old, now incorrect,
3295 comment about STANDARD_EXEC_PREFIX.
3297 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
3298 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
3299 for installing .1 manpages. Add rules for installing cpp
3300 and gcov manpages under their installed names.
3302 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
3304 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
3305 host, but try LD_FOR_TARGET first.
3306 * configure: Rebuilt.
3308 2004-02-12 Zack Weinberg <zack@codesourcery.com>
3310 * dbxout.c: Move declaration of dbxout_type_decl outside
3311 #ifdef DBX_DEBUGGING_INFO.
3312 * c-parse.in: Don't give the asmdef production a type.
3314 2004-02-12 Zack Weinberg <zack@codesourcery.com>
3316 * debug.h (struct gcc_debug_hooks): Add type_decl field.
3317 (debug_nothing_tree_int): Prototype.
3318 (dwarf_debug_hooks): Delete, unused.
3319 * debug.c (do_nothing_debug_hooks): Update.
3320 (debug_nothing_tree_int): New function.
3321 * langhooks.h (struct lang_hooks_for_decls):
3322 Remove builtin_type_decls field.
3323 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
3324 (LANG_HOOKS_DECLS): Update.
3325 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
3326 Use debug_hooks->type_decl.
3327 * dbxout.c (preinit_symbols): New static.
3328 (dbx_debug_hooks, xcoff_debug_hooks): Update.
3329 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
3330 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
3331 for symbols to output.
3332 (dbxout_type_decl): New function.
3333 (dbxout_symbol): If called before dbxout_init has run, queue
3334 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
3335 to TYPE_DECLs before emitting them.
3336 * xcoffout.c (assign_type_number): Delete.
3337 (xcoff_type_numbers): New static table.
3338 (xcoff_assign_fundamental_type_number): New function.
3339 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
3340 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
3341 * sdbout.c: Include varray.h.
3342 (deferred_global_decls): New static.
3343 (sdb_debug_hooks): Update.
3344 (sdbout_global_decl): If we can't emit something right now,
3345 remember it in deferred_global_decls.
3346 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
3347 (sdbout_init): Initialize deferred_global_decls.
3348 * Makefile.in: Update dependencies of sdbout.o.
3349 * dwarf2out.c (dwarf2out_type_decl): New function.
3350 (dwarf2_debug_hooks): Update.
3351 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
3352 * c-decl.c (getdecls): Just return 0.
3353 (check_for_loop_decls): Don't use getdecls.
3354 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
3355 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
3357 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
3359 * config/s390/s390.c (s390_sched_reorder2): Remove.
3360 (TARGET_SCHED_REORDER2): Do not redefine.
3362 2004-02-12 Zack Weinberg <zack@codesourcery.com>
3364 * c-parse.in (maybe_type_qual): Delete.
3365 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
3366 (asm_argument): New grammar rules.
3367 (extdef_1): Use asmdef.
3368 (maybeasm): Move down with other asm rules; use simple_asm_expr.
3369 (xexpr): Move up with other expression rules.
3370 (stmt): Use asm_stmt.
3372 * c-typeck.c (build_asm_expr): New function - body mostly
3373 pulled from build_asm_stmt.
3374 (build_asm_stmt): Just handle tacking on the volatile qualifier.
3375 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
3377 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
3380 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
3381 (mips_declare_object): Make variadic.
3382 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
3383 mips_output_aligned_decl_common.
3384 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
3385 (mips_declare_object): Make variadic.
3387 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3389 * function.c (update_epilogue_consts): Teach about binary operations.
3391 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
3392 previous MEM_VOLATILE in REF.
3393 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
3394 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
3396 2004-02-12 Gunther Nikl <gni@gecko.de>
3398 * config.gcc: Restore support for m68k-openbsd.
3400 2004-02-12 Jan Hubicka <jh@suse.cz>
3402 * tree-optimize.c (tree_rest_of_compilation): Do not release
3405 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
3407 * doc/install.texi: Fix the spelling of "explicitly".
3409 2004-02-11 Eric Christopher <echristo@redhat.com>
3411 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
3412 duplicate argument structure of cpp_interpret_string.
3413 * cpphash.h: Move prototype...
3415 * cpplib.c: Fix calls to match new function signature.
3417 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
3420 * cppexp.c (num_binary_op): Don't allow comma operators in #if
3421 constant expressions at all outside C99 mode if pedantic.
3423 2004-02-11 Uros Bizjak <uros@kss-loka.si>
3425 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
3426 (log10_optab, log2_optab): Define corresponding macros.
3427 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
3428 * genopinit.c (optabs): Implement log10_optab and log2_optab
3429 using log10?f2 and log2?f2 patterns.
3430 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
3431 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
3432 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
3433 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3435 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
3436 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
3437 log2, log2f and log2l built-ins as inline x87 intrinsics.
3439 2004-02-11 Richard Henderson <rth@redhat.com>