1 2005-12-01 Richard Guenther <rguenther@suse.de>
3 * fold-const.c (fold_binary): Use fold_build2, not
6 2005-12-01 Nathan Sidwell <nathan@codesourcery.com>
8 * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
10 * vec.h (VEC_block_remove): New.
12 2005-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
15 * c-common.c (lvalue_error): Fix wording.
17 2005-12-01 Richard Guenther <rguenther@suse.de>
19 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
22 2005-12-01 Geoffrey Keating <geoffk@apple.com>
24 * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
27 2005-12-01 Ben Elliston <bje@au.ibm.com>
29 * mklibgcc.in: Parameterise the script to build soft float
30 functions by iterating over each type, rather than cloning the
33 2005-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36 * builtins.c (fold_builtin_fputs): Defer check for missing
37 replacement functions.
39 2005-11-30 Kean Johnston <jkj@sco.com>
41 * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
42 simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
44 2005-11-30 Richard Guenther <rguenther@suse.de>
46 PR tree-optimization/22501
47 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
48 function split out from ...
49 (forward_propagate_addr_expr): ... here. Use it to propagate
50 ADDR_EXPRs to all uses.
52 2005-11-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
54 * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
55 * builtins.c (expand_builtin_mathfn): Use them.
56 (expand_builtin_mathfn_2): Likewise.
57 (expand_builtin_mathfn_3): Likewise.
58 (expand_builtin_int_roundingfn): Likewise.
59 (expand_builtin): Likewise.
60 (integer_valued_real_p): Likewise.
61 (fold_builtin_int_roundingfn): Likewise.
62 (fold_builtin_bitop): Likewise.
63 (fold_builtin_logarithm): Likewise.
64 (fold_builtin_1): Likewise.
65 * convert.c (convert_to_integer): Likewise.
66 * fold-const.c (negate_mathfn_p): Likewise.
67 (tree_expr_nonnegative_p): Likewise.
69 2005-11-30 Dale Johannesen <dalej@apple.com>
70 Andrew Pinski <pinskia@physics.uc.edu>
72 * combine.c (find_split_point): Sign extend bitmask
73 when changing bitfield assignment to IOR of AND.
75 2005-11-30 Nathan Sidwell <nathan@codesourcery.com>
77 * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
78 clobber to scratch reg.
79 (*decrement_and_branch_until_zero_no_clobber): Remove.
80 (decrement_and_branch peephole): Add dummy scratch reg to pattern.
81 (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
82 * config/ms1/ms1.opt (mmul): Remove.
83 * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
84 (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
86 2005-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
87 Bernd Schmidt <bernd.schmidt@analog.com>
89 * pa/predicates.md (symbolic_operand): Add comment.
90 * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
91 * pa/pa-protos.h (pa_secondary_reload_class): Delete.
92 * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
93 (pa_secondary_reload_class): Delete.
94 (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
95 and pa_secondary_reload_class. Reorder some checks. Update inline
96 copy of symbolic operand.
97 * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
99 2005-11-30 Nathan Sidwell <nathan@codesourcery.com>
101 * loop-doloop.c (add_test): Only add jump notes if we did emit a
104 2005-11-30 Jeff Law <law@redhat.com>
106 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
107 handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
109 2005-11-30 Jakub Jelinek <jakub@redhat.com>
111 * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
112 Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
113 (ia64_expand_move): Adjust caller.
115 * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
116 fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
119 2005-11-30 Paolo Bonzini <bonzini@gnu.org>
121 * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
122 Always produce an output if we can remove NEGs or canonicalize
123 (minus (minus ...)) expressions. Provide a fast path for the
125 (simplify_gen_binary): Do not call simplify_plus_minus.
126 (simplify_binary_operation_1): Reassociate at the end of the
129 2005-11-29 Evan Cheng <evan.cheng@apple.com>
131 * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
132 moves and unpack to speed up.
134 2005-11-29 David S. Miller <davem@sunset.davemloft.net>
136 * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
137 argument, they are always sparc_compare_op0 and sparc_compare_op1.
138 (gen_v9_scc): Update callers.
139 * config/sparc/sparc.md: Likewise.
140 * config/sparc/sparc-protos.h: Update extern declaration.
142 * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
144 2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
146 * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
149 2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
151 * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
152 (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
155 2005-11-29 Ben Elliston <bje@au.ibm.com>
157 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
160 2005-11-29 Ben Elliston <bje@au.ibm.com>
162 * Makefile.in (clean-target): Depend on clean-target-libgcc.
163 (clean-target-libgcc): Import rule from the top-level Makefile.in.
165 2005-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
169 * builtins.c (init_target_chars): New.
170 (expand_builtin_printf, expand_builtin_fprintf,
171 expand_builtin_sprintf, fold_builtin_sprintf,
172 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
173 fold_builtin_snprintf_chk, fold_builtin_printf,
174 fold_builtin_fprintf): Check for matching format strings using
177 2005-11-29 Paul Brook <paul@codesourcery.com>
179 * config.gcc: Do not use fixproto on m68k-elf.
181 2005-11-28 Roger Sayle <roger@eyesopen.com>
183 * expmed.c (div_cost): Replace with...
184 (sdiv_cost, udiv_cost): New.
185 (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
186 Rename the div and mod fields, used to initialize sdiv_pow2_cheap
187 and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
188 (expand_divmod): Replace use of div_cost with either sdiv_cost
189 or udiv_cost depending upon the signedness of the operation.
191 2005-11-28 Alexandre Oliva <aoliva@redhat.com>
194 * config/darwin.c (machopic_indirection_name,
195 machopic_output_indirection): Follow transparent alias chain.
197 2005-11-28 Alexandre Oliva <aoliva@redhat.com>
199 * varasm.c (ultimate_transparent_alias_target): Add comment.
201 2005-11-28 Kazu Hirata <kazu@codesourcery.com>
203 * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
204 SET_SRC instead of XEXP where appropriate.
206 2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
208 * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
211 2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
213 * config/fp-bit.h (LSHIFT): Take shift count parameter.
214 * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
217 2005-11-28 Bernd Schmidt <bernd.schmidt@analog.com>
219 * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
220 secondary_input_reload_class, made static. Adapt to new
222 (secondary_output_reload_class): Delete.
223 (TARGET_SECONDARY_RELOAD): New macro.
224 * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
225 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
227 2005-11-28 Nathan Sidwell <nathan@codesourcery.com>
230 * c-decl.c (finish_struct): Only set DECL_PACKED on a field
231 when its natural alignment is > BITS_PER_UNIT.
232 * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
233 * c-common.c (handle_packed_attribute): Ignore packing on a field
234 whose type is naturally char aligned.
236 2005-11-28 Richard Guenther <rguenther@suse.de>
238 * c-common.c (strict_aliasing_warning): Handle all
239 component-ref like accesses.
241 2005-11-28 Roger Sayle <roger@eyesopen.com>
242 Uros Bizjak <uros@kss-loka.si>
245 * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
246 sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
247 when flag_unsafe_math_optimizations is set and
248 we don't care about NaNs or Infinities.
250 Move x/expN(y) and x/pow(y,z) transformation into common
251 flag_unsafe_math_optimizations section.
253 2005-11-27 Mark Mitchell <mark@codesourcery.com>
255 * gcc.c (main): Change type of argv to "char **".
257 2005-11-28 Alan Modra <amodra@bigpond.net.au>
259 * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
261 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
262 * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
263 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
264 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm. Don't
265 output locals to sbss if !rs6000_elf_in_small_data_p.
266 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
268 2005-11-28 Alan Modra <amodra@bigpond.net.au>
271 * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
273 * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
274 indexed_or_indirect_address.
275 (indexed_or_indirect_address): Don't test for base reg. Call
276 address_operand last. Make it a special predicate.
278 2005-11-27 Kazu Hirata <kazu@codesourcery.com>
280 * config/m68k/m68k.c (notice_update_cc): Remove useless code.
282 2005-11-27 Andrew Pinski <pinskia@physics.uc.edu>
285 * fold-const.c (negate_expr_p): Add case for signed divides if overflow
287 (negate_expr): Likewise.
289 2005-11-27 Andreas Schwab <schwab@suse.de>
291 * config/m68k/m68k.c: Reindent and fix whitespace, remove
294 2005-11-27 Steven Bosscher <stevenb@suse.de>
296 * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
297 has EH predecessor edges.
299 2005-11-26 Eric Christopher <echristo@apple.com>
301 * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
302 register stalls by zero extending to the full register.
304 2005-11-27 Joseph S. Myers <joseph@codesourcery.com>
306 * config/floatunsisf.c, config/floatunsidf.c,
307 config/floatunsixf.c, config/floatunsitf.c: New files.
308 * config/ia64/t-hpux: Add floatunsitf.c.
309 * config/ia64/ia64.c (ia64_init_libfuncs): Use
310 _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
312 2005-11-26 Richard Henderson <rth@redhat.com>
314 * c-lex.c (pragma_lex): Rename from c_lex.
315 * c-pch.c: Update for pragma_lex rename.
316 * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
317 * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
318 * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
319 * config/sol2-c.c, config/v850/v850-c.c: Likewise.
320 * doc/tm.texi: Likewise.
322 2005-11-26 Andrew Pinski <pinskia@physics.uc.edu>
325 * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
326 when overflow is undefined.
328 2005-11-26 Hans-Peter Nilsson <hp@axis.com>
330 * doc/md.texi (Insn Canonicalizations): Refer to the
331 function commutative_operand_precedence for further rules.
333 2005-11-25 Roger Sayle <roger@eyesopen.com>
336 * expmed.c (choose_mult_variant): Return immediately when mult_cost
337 is less than zero. Limit mult_cost to a reasonable upper bound for
338 the synthetic multiplication sequence.
340 2005-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
343 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
344 fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
345 Lookup the explicit replacement functions for any unlocked
346 stdio builtin transformations.
348 2005-11-25 Hans-Peter Nilsson <hp@axis.com>
350 * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
352 * targhooks.c (default_secondary_reload): Don't require operand 2
353 for an input reload to be earlyclobber.
355 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
357 * fold-const.c (negate_mathfn_p): Fix comment and add support
358 for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
361 2005-11-25 Joseph S. Myers <joseph@codesourcery.com>
364 * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
365 _Q_ulltoq for unsigned conversions from SImode and DImode to
368 2005-11-25 Alan Modra <amodra@bigpond.net.au>
370 * config/rs6000/ppc64-fp.c (__floatunditf): New function.
371 (__floatundidf, __floatundisf): Likewise.
373 2005-11-25 David Edelsohn <edelsohn@gnu.org>
375 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
376 (rs6000_override_options): Remove initialization of
378 (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
379 (rs6000_emit_stack_tie): Same.
380 (emit_frame_save): Same.
381 (gen_frame_mem_offset): Same.
382 (rs6000_emit_prologue): Same.
383 (rs6000_emit_epilogue): Same.
385 2005-11-25 Andrew Pinski <pinskia@physics.uc.edu>
388 * fold-const.c (fold_build): Convert bool_var != 1 and
389 bool_var == 0 to !bool_var.
391 2005-11-25 Andrew Pinski <pinskia@physics.uc.edu>
394 * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
395 for C being INTEGER_CST. Likewise for !=.
397 2005-11-25 Joseph S. Myers <joseph@codesourcery.com>
400 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
401 unsigned conversions from SImode to TFmode.
403 2005-11-24 Bernd Schmidt <bernd.schmidt@analog.com>
405 * expr.c (expand_expr_real_1): Fix error in last change.
407 2005-11-24 J"orn Rennecke <joern.rennecke@st.com>
409 * caller-save.c: (this_insn_sets): Move into:
410 (save_call_clobbered_regs).
411 (mark_set_regs): Get this_insn_sets from data.
413 (save_call_clobbered_regs): Take sets of the return value by
414 sibcalls into account.
416 2005-11-24 J"orn Rennecke <joern.rennecke@st.com>
419 * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
420 SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
421 (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
422 (memory_move_secondary_cost, init_reg_autoinc): Remove
423 SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
424 Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
425 secondary_reload_class call.
426 (copy_cost): Likewise. Add new parameter prev_sri. Changed all
428 * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
429 (push_secondary_reload): Use secondary_reload target hook.
430 (secondary_reload_class, scratch_reload_class): New functions.
431 (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
432 SECONDARY_OUTPUT_RELOAD_CLASS tests. Replace
433 SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
434 * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
435 (secondary_reload_class, scratch_reload_class): Declare.
436 * reload1.c: Include target.h.
437 (reload_adjust_reg_for_temp): New function.
438 (reload_adjust_reg_for_icode): Likewise.
439 (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
440 Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
442 (emit_input_reload_insns): Likewise. Rewrite secondary reload checks
443 for inheritance. Support case when both secondary & tertiary reloads
444 are for intermediate registers.
445 (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
446 with secondary_reload_class call. Support case when both secondary
447 & tertiary reloads are for intermediate registers.
448 * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
449 (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
450 * target.h (secondary_reload_info): New struct / typedef.
451 (struct gcc_target): New member secondary_reload.
452 * targhooks.c Include reload.h, optabs.h and recog.h.
453 (default_secondary_reload): New function.
454 * targhooks.h (default_secondary_reload): Declare.
455 * doc/tm.texi: Document secondary_reload target hook. Update
456 description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
457 * doc/md.texi: Likewise.
459 * sh-protos.h (sh_secondary_reload): Declare.
460 * sh.c (TARGET_SECONDARY_RELOAD): Override.
461 (sh_secondary_reload): New function.
462 * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
463 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
464 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
465 (HAVE_SECONDARY_RELOADS): Define.
466 * sh.md (reload_indf): Rename to:
468 (reload_outdf): Rename to:
469 (reload_outdf__RnFRm).
470 (reload_insf): Rename to:
472 (reload_insi): Rename to:
473 (reload_insi__i_fpul).
475 2005-11-24 Uros Bizjak <uros@kss-loka.si>
477 * configure.ac: Require at least texinfo 4.4.
478 * configure: Regenerate.
480 * doc/install.texi (Tools/packages necessary for building GCC):
481 Update required version of texinfo to at least 4.4.
482 (Installing GCC: Building): Update required version of texinfo
484 (Installing GCC: Final installation): Update required version
485 of texi2dvi to at least 4.4.
486 (Host/target specific installation notes for GCC): Update required
487 version of texinfo to at least 4.4.
489 2005-11-24 Richard Guenther <rguenther@suse.de>
490 Dirk Mueller <dmueller@suse.de>
493 * c-common.h (strict_aliasing_warning): Declare.
494 * c-common.c (strict_aliasing_warning): New function,
496 * c-typeck.c (build_c_cast): ... here.
498 2005-11-24 Paolo Bonzini <bonzini@gnu.org>
500 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
502 (swap_commutative_operands_with_target): New.
504 2005-11-24 Paolo Bonzini <bonzini@gnu.org>
506 * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
507 also when doing PRE, rather than only for global CPROP.
509 2005-11-24 Ben Elliston <bje@au.ibm.com>
511 * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
512 * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
514 (expand_twoval_unop): Likewise.
515 (widen_clz): Likewise.
516 (expand_parity): Likewise.
517 (expand_unop): Likewise.
518 (emit_cmp_and_jmp_insn_1): Likewise.
519 (prepare_float_lib_cmp): Likewise.
521 2005-11-24 Ben Elliston <bje@au.ibm.com>
523 * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
524 Remove unused `class' variable.
526 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
529 * c-typeck.c (build_array_ref): Avoid code duplicate. Use common
530 C/C++ diagnostic function warn_array_subscript_with_type_char.
531 * c-common.h (warn_array_subscript_with_type_char): Declare.
532 * c-common.c (warn_array_subscript_with_type_char): Define.
534 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
537 * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
538 compiling at the intersection of C and C++.
540 2005-11-23 Mark Mitchell <mark@codesourcery.com>
542 * doc/invoke.texi: For man pages, include gcc-vers.texi.
543 List @file in the option summary. Include the libiberty
544 documentation for @file.
545 * gcc.c (main): Call expandargv.
546 * Makefile.in (gcc-vers.texi): Define srcdir.
548 2005-11-23 Diego Novillo <dnovillo@redhat.com>
550 * passes.c (init_optimization_passes): Document
551 sequencing of passes.
553 2005-11-23 Kazu Hirata <kazu@codesourcery.com>
555 * config/m68k/predicates.md (pcrel_address, extend_operator,
556 post_inc_operand, pre_dec_operand): Remove redundant
558 (const_uint32_operand, const_sint32_operand): Use gcc_assert
560 (valid_dbcc_comparison_p): Rewrite in the lisp style.
562 2005-11-23 Ben Elliston <bje@au.ibm.com>
564 * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
566 2005-11-22 J"orn Rennecke <joern.rennecke@st.com>
568 Preparatory work for PR target/21623:
569 * alpha.c (secondary_reload_class): Rename to:
570 (alpha_secondary_reload_class).
571 * alpha.h, alpha-protos.h: Likewise.
572 * mn10300.c (secondary_reload_class): Rename to:
573 (mn10300_secondary_reload_class).
574 * mn10300.h, mn10300-protos.h: Likewise.
575 * pa.c (secondary_reload_class): Rename to:
576 (pa_secondary_reload_class).
577 * pa.h, pa-protos.h: Likewise.
578 * rs6000.c (secondary_reload_class): Rename to:
579 rs6000_secondary_reload_class.
580 * rs6000.h, rs6000-protos.h: Likewise.
582 2005-11-22 Eric Botcazou <ebotcazou@adacore.com>
585 * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
587 2005-11-22 Ian Lance Taylor <ian@airs.com>
589 * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
591 (prepare_cmp_insn): Likewise.
593 2005-11-22 Kazu Hirata <kazu@codesourcery.com>
596 * m68k.md (zero_extendsidi2): Force operands[1] to a register
597 if both operands[0] and operands[1] are memory.
599 2005-11-22 Andrew Pinski <pinskia@physics.uc.edu>
602 * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
603 COMPARISON_CLASS_P and an integral types create create a new
604 expression with the new type and fold that.
606 2005-11-22 Andrew Pinski <pinskia@physics.uc.edu>
609 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
610 to SUBTARGET_OS_CPP_BUILTINS.
612 2005-11-22 Richard Earnshaw <richard.earnshaw@arm.com>
614 * arm.c (emit_set_insn): New function.
615 (arm_split_constant): Call it.
616 (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
617 (arm_legitimize_address): Likewise. Use plus_constant.
618 (arm_expand_prologue): Likewise. Use VOIDmode in SET.
619 (thumb_expand_prologue): Likewise.
620 (arm_gen_load_multiple): Use VOIDmode in SET.
621 (arm_gen_store_multiple): Likewise.
622 (vfp_emit_fstmx): Likewise. Use plus_constant.
623 (emit_multi_reg_push): Likewise.
624 (emit_sfm): Use plus_constant.
626 2005-11-23 Alan Modra <amodra@bigpond.net.au>
629 * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
632 2005-11-22 Alan Modra <amodra@bigpond.net.au>
635 * expmed.c (store_bit_field): Don't attempt to insv a field
638 2005-11-22 Alan Modra <amodra@bigpond.net.au>
641 * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
642 explicit sign extension, not a (char) cast.
644 2005-11-22 Ben Elliston <bje@au.ibm.com>
646 * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
647 GET_MODE_CLASS (x) == MODE_FLOAT.
648 * config/i386/i386.c: Likewise.
649 * config/rs6000/xcoff.h: Likewise.
650 * config/rs6000/linux64.h: Likewise.
651 * config/rs6000/rs6000.c: Likewise.
652 * config/rs6000/rs6000.h: Likewise.
653 * config/rs6000/predicates.md: Likewise.
654 * config/rs6000/sysv4.h: Likewise.
656 2005-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
658 * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
661 * config/alpha/freebsd.h, config/alpha/linux.h,
662 config/arm/linux-elf.h, config/bfin/bfin.h,
663 config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
664 config/i386/beos-elf.h, config/i386/gnu.h,
665 config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
666 config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
667 config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
668 config/rs6000/linux64.h, config/rs6000/sysv4.h,
669 config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
670 config/sh/linux.h, config/sh/sh.h, config/sol2.h,
671 config/sparc/linux.h, config/sparc/linux64.h,
672 config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
674 * doc/invoke.texi: Document that the macros __pic__ and __PIC__
675 are both defined when either flag -fpic or -fPIC are used.
677 2005-11-22 Joseph S. Myers <joseph@codesourcery.com>
679 * config/fp-bit.c (clzusi): New function.
680 (si_to_float, usi_to_float): Use it to compute proper shift.
681 (usi_to_float): Preserve guard bits when shifting right.
682 * libgcc-std.ver (GCC_4.2.0): New version.
683 * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
684 __floatundisf): New functions.
685 * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
686 __floatundisf): Declare.
687 * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
688 _floatundixf, and _floatunditf.
689 * optabs.c (expand_float): If target does not define a pattern for
690 signed or unsigned conversion, use an unsigned libcall instead of
692 (init_optabs): Initialize ufloat_optab.
694 2005-11-22 Joseph S. Myers <joseph@codesourcery.com>
696 * config/rs6000/rs6000.opt (mmulhw): New option.
697 * doc/invoke.texi (-mmulhw): Document.
698 * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
700 * config/rs6000/rs6000.md: Add half-word multiply and
701 multiply-accumulate instructions for 405 and 440.
703 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
705 * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
706 which matches behavior of gcc 4.0 and older for RTEMS targets. The
707 default now includes a linker group which makes the RTEMS one nest.
709 2005-11-22 Ben Elliston <bje@au.ibm.com>
711 * cse.c (fold_rtx): Typo fix.
712 (find_comparison_args): Pass the mode of arg1, not arg1 itself.
714 2005-11-21 Richard Henderson <rth@redhat.com>
716 * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
717 langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
719 * c-tree.h (lookup_name): Move declaration ...
720 * c-common.h (lookup_name): ... here.
721 * config/darwin-c.c: Include c-common.h.
722 * config/t-darwin: Update dependencies.
724 2005-11-22 Ben Elliston <bje@au.ibm.com>
726 * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
727 explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
728 * genopinit.c (gen_insn): Likewise.
729 * reload.c (find_equiv_reg): Likewise.
730 * loop.c (load_mems): Likewise.
731 * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
732 * cse.c (find_comparison_args, fold_rtx): Likewise.
733 * dwarf2out.c (add_const_value_attribute): Likewise.
734 * expr.c (convert_move): Likewise.
735 * recog.c (general_operand, register_operand): Likewise.
736 * reg-stack.c (replace_reg): Likewise.
737 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
738 * c-common.c (handle_vector_size_attribute): Likewise.
739 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
740 (simplify_binary_operation_1): Likewise.
741 (simplify_const_binary_operation): Likewise.
742 (simplify_relational_operation): Likewise.
743 (simplify_const_relational_operation): Likewise.
744 (simplify_immed_subreg): Likewise.
745 * emit-rtl.c (gen_lowpart_common): Likewise.
746 * expmed.c (expand_mult): Likewise.
747 * stor-layout.c (layout_type): Likewise.
749 2005-11-21 Paolo Bonzini <bonzini@gnu.org>
752 * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
753 cst2 only for SPE vectors.
755 2005-11-21 David Edelsohn <edelsohn@gnu.org>
758 * config/rs6000/predicates.md (vrsave_operation): Check
759 UNSPEC_VOLATILE value.
761 2005-11-21 Jan Hubicka <jh@suse.cz>
763 PR tree-optimization/24653
764 * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
766 2005-11-21 Uros Bizjak <uros@kss-loka.si>
768 * config/i386/predicates.md (ax_reg_operand): New predicate.
769 (memory_displacement_only_operand): New predicate.
770 * config/i386/i386.md ("modrm" attribute): Return 0 if one
771 operand is AX register and the other operand is memory operand
772 with displacement only.
774 2005-11-21 Uros Bizjak <uros@kss-loka.si>
776 * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
777 if we don't care about NaNs or Infinities.
779 2005-11-20 Ian Lance Taylor <ian@airs.com>
781 PR rtl-optimization/24883
782 * combine.c (combinable_i3pat): When checking whether the
783 destination of i3 is used in i3, consider paradoxical subregs.
785 2005-11-21 Kazu Hirata <kazu@codesourcery.com>
788 * cse.c (cse_insn): Reject invalid forms of CONST earlier.
790 2005-11-20 Joseph S. Myers <joseph@codesourcery.com>
792 * combine.c (try_combine): Do not run subst on i1src and i2src in
793 the case of generating a PARALLEL for a comparison.
795 2005-11-20 Richard Henderson <rth@redhat.com>
798 * tree-sra.c (struct sra_elt): Add all_no_warning.
799 (struct sra_walk_fns) <use>: Add use_all argument.
800 (sra_walk_expr): Pass it.
801 (sra_walk_modify_expr): Likewise.
802 (scalarize_ldst): Likewise.
803 (scan_use): Update for new argument.
804 (mark_no_warning): New.
805 (scalarize_use): Use it.
807 2005-11-20 Bernd Schmidt <bernd.schmidt@analog.com>
809 * expr.c (expand_expr_real): Use usmul_optab for widening
810 signed * unsigned multiplies.
811 * genopinit.c (optabs): Add usmul_widen_optab.
812 * optabs.c (init_optabs): Likewise.
813 * optabs.h (enum optab_index): Add OTI_usmul_widen.
814 (usmul_widen_optab): Define.
815 * config/bfin/bfin.md (usmulhisi3): New pattern.
817 * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
819 2005-11-20 Graham Stott <btinternet.com>
821 * gensupport.c (std_preds): Fixed extraneous `false` in last change.
823 2005-11-20 Andreas Schwab <schwab@suse.de>
826 * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
829 2005-11-19 Richard Henderson <rth@redhat.com>
832 * tree-gimple.c (is_gimple_id): Export.
833 * tree-gimple.h (is_gimple_id): Declare.
834 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
835 (get_default_value): Use it.
836 (maybe_fold_stmt_indirect): Likewise.
838 2005-11-19 James A. Morrison <phython@gcc.gnu.org>
840 * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
841 than VR1 or vice-versa.
843 2005-11-19 Hans-Peter Nilsson <hp@axis.com>
847 * reload.c (find_reloads_address_1): Mention dependency on
849 * reload1.c (gen_reload): For IN with an unary operation, try
850 moving inner expression to OUT if trivial SET is not valid.
851 Confirm that the result is valid. Move common code block into...
852 (emit_insn_if_valid_for_reload): New function.
854 2005-11-19 Richard Guenther <rguenther@suse.de>
856 * fold-const.c (fold_indirect_ref_1): Make sure we fold
857 ARRAY_REFs of constant strings.
859 2005-11-19 Jakub Jelinek <jakub@redhat.com>
861 * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
864 2005-11-19 Joseph S. Myers <joseph@codesourcery.com>
866 * combine.c (make_compound_operation): Swap operands of
867 commutative operation if necessary before returning.
869 2005-11-19 Richard Guenther <rguenther@suse.de>
872 * fold-const.c (fold_plusminus_mult_expr): New function.
873 (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
874 cases, remove now unnecessary code.
876 2005-11-19 Paolo Bonzini <bonzini@gcc.gnu.org>
878 * gensupport.c (old_preds): Rename to std_preds, add special field.
879 (struct old_pred_table): Rename to struct std_pred_table, add special
881 (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
882 (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
883 (init_predicate_table): Adjust, and set along the way whether a
884 predicate is special.
886 2005-11-18 Mark Mitchell <mark@codesourcery.com>
888 * BASE-VER: Change to 4.2.0.
890 2005-11-18 James E Wilson <wilson@specifix.com>
892 * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
895 2005-11-18 Mike Stump <mrs@apple.com>
897 * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
898 * config/darwin-c.c (darwin_pragma_unused): Likewise.
899 * c-decl.c (lookup_name_two) Remove.
900 * c-tree.h (lookup_name_two): Remove.
901 * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
902 * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
903 (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
904 * langhooks.h (lang_hooks_for_decls): Add lookup_name.
906 2005-11-18 Richard Earnshaw <richard.earnshaw@arm.com>
909 * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
910 when not generating code to use that co-processor.
912 2005-11-18 James A. Morrison <phython@gcc.gnu.org>
914 * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
915 add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
916 these functions are now in tree-phinodes.c.
918 2005-11-18 Jie Zhang <jie.zhang@analog.com>
920 * config/bfin/bfin.md (trap): New pattern.
922 2005-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
924 * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
927 * expr.c (expand_expr_real): Don't call record_block_change unless
928 ib_boundaries_block is non-null
930 * postreload.c (reload_cse_move2add): Don't try to work with BImode.
932 * fold-const.c (build_range_check): Use proper type for subtraction
933 when merging lower bound.
935 2005-11-18 Zdenek Dvorak <dvorakz@suse.cz>
937 PR rtl-optimization/24497
938 * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
941 2005-11-18 Zdenek Dvorak <dvorakz@suse.cz>
943 * tree-scalar-evolution.c (expression_expensive_p): New function.
944 (scev_const_prop): Use compute_overall_effect_of_inner_loop.
946 2005-11-18 Bernd Schmidt <bernd.schmidt@analog.com>
948 * config/bfin/crtlibid.s: New file.
950 2005-11-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
953 * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
954 when not using sjlj exceptions.
955 * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
956 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
957 * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
958 * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
959 DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
960 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
961 * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
962 DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
963 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
964 * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
965 (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
966 DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
967 ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
969 * config/pa/hpux-unwind.h: New file.
971 2005-11-17 Alexandre Oliva <aoliva@redhat.com>
973 * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
974 * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
975 * varasm.c (do_assemble_alias): Adjust call.
976 (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
978 * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
980 2005-11-17 James E Wilson <wilson@specifix.com>
982 * tree.def (FUNCTION_DECL): Correct typo in comment.
984 2005-11-17 Richard Henderson <rth@redhat.com>
986 * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
987 (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
988 and DW_CFA_def_cfa_sf.
989 (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
990 (dbx_reg_number): Don't assert particular registers here.
991 (based_loc_descr): ... do it here instead. Fold in ...
992 (eliminate_reg_to_offset): ... this function.
993 (compute_frame_pointer_to_cfa_displacement): Fold in the effects
994 of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
995 * unwind-dw2.c (execute_cfa_program): Apply data align factor
996 to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
997 * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
998 (instantiate_virtual_regs): Likewise.
999 * var-tracking.c (adjust_stack_reference): Likewise.
1000 * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
1002 2005-11-17 Bernd Schmidt <bernd.schmidt@analog.com>
1004 * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
1005 * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
1006 * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
1008 ($(T)crtlibid.o): New rule.
1010 2005-11-16 Richard Guenther <rguenther@suse.de>
1013 * fold-const.c (extract_array_ref): Return byte offset
1015 (fold_binary): Fold &x[a] CMP &x[b] to
1016 a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
1019 2005-11-16 Richard Henderson <rth@redhat.com>
1022 * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
1023 parts of an SSA_NAME.
1025 2005-11-16 Richard Earnshaw <richard.earnshaw@arm.com>
1028 * arm.md (split for movsf with immediate): Restrict split to insns
1029 that set a general register.
1031 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1033 * config/ia64/unwind-ia64.c (uw_advance_context): New. Call
1035 * unwind-dw2.c (uw_advance_context): Likewise.
1036 * unwind-sjlj.c (uw_advance_context): Likewise. Also call
1037 _Unwind_SjLj_Unregister.
1038 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
1040 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1042 * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
1044 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
1046 * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
1047 langhook to get a DImode integer type.
1049 2005-11-16 Richard Henderson <rth@redhat.com>
1050 J"orn Rennecke <joern.rennecke@st.com>
1051 Ulrich Weigand <uweigand@de.ibm.com>
1055 * reload1.c (reg_equiv_invariant): New.
1056 (reload): Allocate, initialize, and free it.
1057 (calculate_needs_all_insns): Check it when skipping equivalence
1059 (alter_reg): Likewise.
1060 (eliminate_regs_1): Rename from eliminate_regs. Add new
1061 may_use_invariant argument; only use reg_equiv_invariant when true.
1062 (eliminate_regs): New.
1063 (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
1064 a context for which may_use_invariant may be true.
1066 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
1068 * fold-const.c (const_binop): Don't constant fold the operation
1069 if the result has overflowed and flag_trapping_math.
1070 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
1072 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1074 * config/arm/unwind-arm.c (abort): Add prototype here.
1075 (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
1076 (struct phase1_vrs): Add prev_sp.
1077 (unwind_phase2_forced): Save the original core registers instead of
1078 modifying entry_vrs. Take a new flag argument for resuming unwinding
1079 and set action flags accordingly. Always set _US_END_OF_STACK when
1080 get_eit_entry fails. Unwind before calling the stop function.
1081 (_Unwind_GetCFA): New function.
1082 (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
1083 (__gnu_Unwind_Resume_or_Rethrow): Likewise.
1084 (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
1085 just call unwind_phase2_forced.
1086 (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
1087 * config/arm/unwind-arm.h (abort): Remove prototype.
1088 (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
1090 (_Unwind_GetCFA): New prototype.
1091 * config/arm/pr-support.c (abort): Add prototype here.
1092 * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
1094 * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
1095 not schedule the prologue with non-call exceptions and EABI.
1097 2005-11-16 Nathan Sidwell <nathan@codesourcery.com>
1099 * config/arm/unwind-arm.h: Reorder interface function declarations.
1100 (_URC_END_OF_STACK): New enumeration value.
1101 (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
1102 (struct _Unwind_Control_Block): Document reserved field use.
1103 (_Unwind_Stop_Fn): New typedef.
1104 (_Unwind_ForcedUnwind): Declare.
1105 (_Unwind_Resume_or_Rethrow): Declare.
1106 * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
1108 (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
1109 * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
1110 (UCB_FORCED_STOP_ARG): New.
1111 (search_EIT_table): Update boundary condition checks.
1112 (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
1113 (unwind_phase2): Replace for with do..while.
1114 (unwind_phase2_forced): New.
1115 (__gnu_Unwind_RaiseException): Replace for with do..while.
1116 (__gnu_Unwind_ForcedUnwind): New.
1117 (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
1118 Use appropriate phase2 unwinder.
1119 (__gnu_Unwind_Resume_or_Rethrow): New.
1120 (__gnu_unwind_pr_common): Cope with forced unwinding.
1122 2005-11-16 David Edelsohn <edelsohn@gnu.org>
1125 * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
1127 * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
1128 roundsf2): Remove "s" from mnemonic.
1130 2005-11-16 Bernd Schmidt <bernd.schmidt@analog.com>
1132 * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
1134 * config/bfin/crtn.s: Change epilogues to match.
1135 * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
1136 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
1137 __PIC__ and __pic__.
1139 2005-11-16 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
1142 * doc/invoke.texi: Distinguish between free and fixed form instead of
1143 Fortran and Fortran 90/95. Remove ratfor from the list of supported
1145 * gcc.c (default_compilers): Remove double entries, add entries for
1146 suffixes '.F90' and '.F95'.
1148 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
1150 * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
1151 in the stack probing loop.
1153 2005-11-15 David Edelsohn <edelsohn@gnu.org>
1155 * configure.ac: Use .machine power5 not power5x.
1156 * configure: Regenerate.
1158 2005-11-15 Mike Stump <mrs@apple.com>
1160 * c-decl.c (lookup_name_two): Add.
1161 * c-tree.h (lookup_name_two): Likewise.
1162 * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
1163 * config/darwin-c.c (darwin_pragma_unused): Likewise.
1165 2005-11-16 Alan Modra <amodra@bigpond.net.au>
1167 PR rtl-optimization/23392
1168 * regrename.c (enum scan_actions) Add mark_access.
1169 (scan_actions_name): Ditto.
1170 (scan_rtx_reg): Handle mark_access.
1171 (scan_rtx_address): Do nothing for mark_access.
1172 (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
1173 and regs in REG_INC notes before closing chains for dead regs.
1174 Mark destination regs in REG_FRAME_RELATED_EXPR notes after
1175 opening chains for new writes.
1177 2005-11-15 David Edelsohn <edelsohn@gnu.org>
1179 * c.opt (ffixed-line-length-none): New.
1181 2005-11-15 Steve Ellcey <sje@cup.hp.com>
1183 * mklibgcc.in: Change contents of eh_dummy.c.
1185 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
1187 * loop.c (scan_loop): Do not insert temporaries for hard registers.
1189 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
1191 * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
1193 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define. Set r7 also.
1195 2005-11-15 Jan Hubicka <jh@suse.cz>
1197 * invoke.texi (large-unit-insns): Document.
1198 * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
1199 * params.def (large-unit-insns): New param.
1201 2005-11-15 Hans-Peter Nilsson <hp@axis.com>
1204 * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
1205 special register for operand 3. Reindent constraints to align
1208 2005-11-14 David Edelsohn <edelsohn@gnu.org>
1210 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
1211 -mpopcntb, -mfprnd. Add -mcpu=power5+.
1212 * configure.ac: Add test for FP rounding instructions.
1213 * configure: Regenerate.
1214 * config.in: Regenerate.
1215 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1216 _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
1218 * config/rs6000/rs6000.opt (mfprnd): New.
1219 * config/rs6000/rs6000.c (processor_target_table): Add power5+.
1220 (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
1221 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
1222 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
1223 (TARGET_FPRND): New.
1224 * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
1226 (btrunc<mode>2): New.
1228 (floor<mode>2): New.
1229 (round<mode>2): New.
1231 2005-11-14 Geoffrey Keating <geoffk@apple.com>
1233 * gcc.c (version_compare_spec_function): Use fatal() rather than
1236 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
1237 (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
1238 * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
1240 * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
1243 * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
1244 on -mmacosx-version-min setting.
1246 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1249 * tree-vrp.c (infer_value_range): Return false if STMT is a
1250 block terminator and its basic block has no successors.
1252 2005-11-14 Mike Stump <mrs@apple.com>
1254 * config/i386/i386.c (override_options): -masm=intel isn't
1255 supported on darwin.
1256 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
1258 2005-11-15 Joseph S. Myers <joseph@codesourcery.com>
1260 * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
1261 vfork after including auto-host.h.
1263 2005-11-15 Alan Modra <amodra@bigpond.net.au>
1265 PR rtl-optimization/22002
1266 * combine.c (distribute_notes): Detect cases where a reg dies
1267 two or more times in a bb, including on the insn we are combining,
1268 and place the death note on the correct range.
1270 2005-11-14 Dale Johannesen <dalej@apple.com>
1272 * expmed.c (store_bit_field): Add offset unconditionally for
1274 (extract_bit_field): Don't force extzv or extv operand into
1275 a register if field is too big.
1277 2005-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1279 * config/arm/arm.c (pic_labelno): New.
1280 (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
1281 LABEL_REF. Pass only the labelno to PIC insns.
1282 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1283 (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
1284 * arm.md (UNSPEC_PIC_LABEL): New constant.
1285 (pic_add_dot_plus_four, pic_add_dot_plus_eight)
1286 (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
1287 Use the correct label prefix.
1289 2005-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1291 * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
1294 2005-11-14 Richard Earnshaw <richard.earnshaw@arm.com>
1296 * loop-invariant.c: Include tm_p.h.
1297 * Makefile.in: Updated.
1299 2005-11-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1301 * pa.c (store_reg): Revise generation of frame notes in large frames.
1302 (set_reg_plus_d): Likewise.
1304 2005-11-13 Andrew MacLeod <amacleod@redhat.com>
1306 PR tree-optimization/24709
1307 * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
1310 2005-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1312 * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
1313 and duplicate declaration of pthread_self.
1315 2005-11-13 Eric Botcazou <ebotcazou@adacore.com>
1316 Ian Lance Taylor <ian@airs.com>
1319 * calls.c (expand_call): If TARGET is a MEM and some part of the
1320 argument area has been saved, force TARGET to a register.
1322 2005-11-13 Razya Ladelsky <razya@il.ibm.com>
1324 * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
1327 2005-11-13 Jason Merrill <jason@redhat.com>
1330 * dwarf2out.c (gen_subprogram_die): Force a declaration die for
1331 lazily declared methods.
1332 (force_decl_die): Stop if forcing out the context already make a
1334 (force_type_die): Likewise.
1336 2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
1339 * builtins.c (integer_valued_real_p): Add break in
1340 REAL_CST having TREE_OVERFLOW set.
1342 2005-11-13 Zdenek Dvorak <dvorakz@suse.cz>
1344 * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
1345 addressing modes during calculation of costs.
1347 2005-11-12 Eric Botcazou <ebotcazou@adacore.com>
1349 * function.c (assign_stack_local_1): Restrict sanity check
1350 on frame size overflow to 32-bit and above platforms.
1352 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
1354 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
1355 * config/cris/cris.c: Include reload.h.
1356 (cris_initial_elimination_offset): New function.
1357 * config/cris/cris-protos.h: (cris_initial_elimination_offset):
1360 2005-11-12 Richard Guenther <rguenther@suse.de>
1362 * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
1364 2005-11-12 Jan Hubicka <jh@suse.cz>
1366 * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
1367 to compare against 0 when possible.
1369 2005-11-12 Jie Zhang <jie.zhang@analog.com>
1371 * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
1372 HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1373 REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
1374 * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
1377 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
1379 * recog.c (constrain_operands) <case 'g'>: For a match, require
1380 that a non-register matches general_operand when strict >= 0.
1382 2005-11-11 Steven Bosscher <stevenb@suse.de>
1384 * loop-invariant.c (move_loop_invariants): Fix a thinko in the
1387 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
1389 * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
1390 (memory_address_same): New.
1391 (dse_optimize_stmt): Call memory_address_same.
1393 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
1396 * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
1397 ZERO_EXTEND>: New cases.
1399 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
1401 * longlong.h (__clz_tab): Always provide.
1403 2005-11-11 Steven Bosscher <stevenb@suse.de>
1406 * loop-invariant.c (may_assign_reg_p): Make sure a hard register
1408 (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
1409 before check_maybe_invariant.
1410 (move_invariant_reg): Use gen_move_insn instead of replacing
1411 SET_DEST with the temporary for the invariant.
1412 (move_loop_invariants): If checking is enabled, do internal
1413 consistency checks after completing the pass.
1415 2005-11-11 David Edelsohn <edelsohn@gnu.org>
1418 * common.opt (Wvolatile-register-var): New.
1419 * varasm.c (make_decl_rtl): Only emit warning when option
1420 specified. Clarify warning message.
1421 * doc/invoke.texi (Wvolatile-register-var): Document new option.
1423 * doc/md.texi (copysign): Document standard named pattern.
1425 2005-11-11 Jie Zhang <jie.zhang@analog.com>
1427 * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
1428 bytes when align is 2.
1429 * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
1430 by the first instruction of the loop.
1432 2005-11-11 Jason Merrill <jason@redhat.com>
1435 * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
1438 2005-11-11 Zdenek Dvorak <dvorakz@suse.cz>
1440 PR rtl-optimization/22509
1441 * local-alloc.c (memref_used_between_p): Check whether a function call
1442 could not reference the memref.
1444 2005-11-11 Ulrich Weigand <uweigand@de.ibm.com>
1446 * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
1447 algorithm so as to choose the best, not the worst, alternative.
1448 Reset accumulated register class before processing next alternative.
1450 2005-11-11 Kaz Kojima <kkojima@gcc.gnu.org>
1453 * calls.c (expand_call): Copy a return value to a plain register
1456 2005-11-10 Alexandre Oliva <aoliva@redhat.com>
1459 * varasm.c (assemble_name): Recompute name only for transparent
1462 2005-11-10 Hans-Peter Nilsson <hp@axis.com>
1464 * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
1466 2005-11-04 Jeff Law <law@redhat.com>
1469 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
1470 perform reassociation if the parent statement will not die as
1471 a result of the optimization.
1473 2005-11-10 Daniel Berlin <dberlin@dberlin.org>
1475 * tree-ssa-alias.c (compute_may_aliases): Remove call to
1476 delete_old_heap_vars.
1477 * tree-dfa.c (referenced_var_remove): Remove function.
1478 * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
1479 (delete_tree_ssa): Remove call to delete_old_heapvars.
1480 Add call to delete_alias_heapvars.
1481 * tree-flow.h (referenced_var_remove): Remove prototype
1482 (init_alias_heapvars): New prototype.
1483 (delete_alias_heapvars): Ditto.
1484 * Makefile.in (tree-ssa-structalias.o): Add
1485 gt-tree-ssa-structalias.o
1486 (GTFILES): Add tree-ssa-structalias.h and
1487 tree-ssa-structalias.c.
1488 (s-gtype): Add gt-tree-ssa-structalias.h.
1489 * tree-ssa-structalias.c (heapvars): Remove.
1490 (oldheapvars): Remove.
1491 (heapvar_for_stmt): New variable.
1492 (heapvar_lookup): New function.
1493 (heapvar_insert): Ditto.
1494 (get_constraint_for): See if we have an old heapvar
1496 (init_alias_heapvars): New function.
1497 (delete_alias_heapvars): Ditto.
1498 Add include of gt-tree-ssa-structalias.h.
1500 2005-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1503 * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
1505 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
1507 * tree.c (int_fits_type_p): Only look at the base type
1508 if it has the same precision as the original type.
1510 2005-11-10 Jakub Jelinek <jakub@redhat.com>
1513 * varasm.c (assemble_alias): Use %q+D in the error
1514 message instead of %J and %qD.
1516 2005-11-10 Richard Guenther <rguenther@suse.de>
1518 * gcse.c (free_ldst_entry): Only free hashtable if
1521 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
1523 * function.c (assign_stack_local_1): Issue an error message if
1524 the frame size overflows in the signed target arithmetics.
1526 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
1528 * tree.c (build_qualified_type): Chain the new type to the original
1529 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
1530 a POINTER_TYPE or a REFERENCE_TYPE respectively.
1531 (build_pointer_type_for_mode): Only return unqualified types.
1532 (build_reference_type_for_mode): Likewise.
1534 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1536 * Makefile.in (gnucompare): Do comparison of all files using one of
1537 the chosen methods and only afterwards decide if just warning should
1538 be issued or comparison failure raised.
1540 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
1542 * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
1543 (noce_try_abs): Negate if the comparison is reversed.
1544 Look only one instruction backwards for a REG_EQUAL note.
1546 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1549 * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
1550 gthr-tpf.h: Define __gthrw. For all identifiers that might
1551 be weak, introduce weakrefs or non-weak aliases with __gthrw,
1552 and prefix all uses with __ghtrw.
1554 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1557 * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
1558 (TREE_DEPRECATED): Adjust comment. Check for a DECL.
1559 * c-common.c (handle_weakref_attribute): New.
1560 (c_common_attribute_table): Add weakref.
1561 * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
1563 * configure, config.in: Rebuilt.
1564 * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
1565 * doc/extend.texi: Document weakref attribute.
1566 * varasm.c (ultimate_transparent_alias_target): New
1567 (assemble_name): Use it.
1568 (weak_finish_1): Split out of...
1569 (weak_finish): ... and deal with weakrefs in...
1570 (weakref_targets): ... new list.
1571 (globalize_decl): Clean up weakref_targets.
1572 (do_assemble_alias): Handle weakrefs.
1573 (finish_aliases_1): Do not reject weakrefs to external symbols.
1574 (assemble_alias): Handle weakrefs.
1576 2005-11-09 Richard Guenther <rguenther@suse.de>
1578 PR tree-optimization/24716
1579 * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
1580 t_bool to track results from follow_ssa_edge.
1582 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
1584 * final.c (force_source_line): New global variable.
1585 (final_scan_insn): Set it to true instead of clearing last_filename.
1586 (notice_source_line): Return true if force_source_line is true,
1587 unless source info is absent.
1589 2005-11-09 Andrew Pinski <pinskia@physics.uc.edu>
1592 * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
1593 a linkage name for a variable if it a register variable.
1594 * c-decl.c (grokdeclarator): Global register variables
1595 should be set as PUBLIC.
1597 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
1600 * config/s390/s390.c (struct s390_frame_layout): New fields
1601 first_save_gpr_slot and last_save_gpr_slot.
1602 (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
1603 s390_emit_epilogue, s390_initial_elimination_offset): Replaced
1604 first_save_gpr and last_save_gpr with the _slot variants.
1605 (s390_register_info): Calculate first_save_gpr_slot and
1606 last_save_gpr_slot using regs_ever_live.
1608 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
1611 * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
1612 for a function containing a landing pad.
1614 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
1617 * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
1620 2005-11-08 Bernd Schmidt <bernd.schmidt@analog.com>
1622 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
1623 MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
1625 2005-11-09 Nathan Sidwell <nathan@codesourcery.com>
1628 * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
1630 (call,load,store): New insn types.
1631 (mem_access, branch_access): Adjust reservation conditions.
1632 (define_delay): Adjust condition.
1633 (decrement_and_branch_until_zero): Allow for ms2. Set branch
1635 (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
1636 (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
1638 (call_internal, call_value_internal, return_internal,
1639 return_interrupt_internal, eh_return_internal, indirect_jump,
1640 tablejump): Set call insn type.
1641 (blockage, ei, di): Use appropriate unspec const.
1642 * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
1643 (ms1_get_attr_type): Adjust to give load & store types.
1644 (ms1_final_prescan_insn): Adjust for new insn types. Don't look
1645 backwards past a barrier.
1646 (ms1_override_options): Accept ms2 arch. Copy and reset delayed
1648 (struct branch_info, struct label_info): New.
1650 (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
1651 (ms1_machine_reorg): New.
1652 (TARGET_MACHINE_DEPENDENT_REORG): Override.
1653 * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
1654 * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
1655 (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
1658 2005-11-09 Per Bothner <per@bothner.com>
1659 Uros Bizjak <uros@kss-loka.si>
1662 * toplev.c (process_options): Initialize debug_hooks early
1663 in case lang_hooks.post_options ends up calling a debug_hook.
1665 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1667 * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
1668 DBX_REGISTER_NUMBER being contiguous.
1670 2005-11-08 James A. Morrison <phython@gcc.gnu.org>
1671 Diego Novillo <dnovillo@redhat.com>
1674 * tree-vrp.c (register_edge_assert_for): Do not register
1675 always-false predicates.
1677 2005-11-08 Devang Patel <dpatel@apple.com>
1679 PR tree-optimization/23115
1680 * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
1683 2005-11-08 Joseph S. Myers <joseph@codesourcery.com>
1685 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
1688 2005-11-08 Daniel Berlin <dberlin@dberlin.org>
1690 Fix PR tree-optimization/23382
1692 * tree-ssa-alias.c (compute_may_aliases): Call
1693 delete_old_heap_vars.
1694 * tree-dfa.c (referenced_var_remove): New function.
1695 * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
1696 * tree-flow.h (referenced_var_remove): Add prototype.
1697 (delete_old_heap_vars): Ditto.
1698 * tree-ssa-structalias.c (heapvars): New variable.
1699 (oldheapvars): Ditto.
1700 (get_constraint_for): Put heap vars on heapvars list.
1701 (delete_old_heap_vars): New function.
1703 2005-11-08 Jason Merrill <jason@redhat.com>
1705 * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
1707 2005-11-08 Uros Bizjak <uros@kss-loka.si>
1710 * reg-stack.c (reg_to_stack): Update register liveness also
1711 for flag_sched2_use_traces.
1713 2005-11-08 Alan Modra <amodra@bigpond.net.au>
1716 * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
1717 override prior explicit -mno-powerpc-gfxopt.
1719 2005-11-07 Eric Botcazou <ebotcazou@adacore.com>
1721 * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
1722 if the bitsize is zero.
1723 * doc/md.texi (Standard Pattern Names): Document it.
1725 * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
1726 (TARGET_PASS_BY_REFERENCE): Likewise.
1728 2005-11-07 Ian Lance Taylor <ian@airs.com>
1730 PR rtl-optimization/24683
1731 * config/i386/i386.c (legitimize_pic_address): If constant operand
1732 to PLUS is too large, put it in a register.
1734 2005-11-07 Jie Zhang <jie.zhang@analog.com>
1736 * configure.ac: Enable checking assembler dwarf2 support for bfin
1738 * configure: Regenerate.
1740 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
1744 * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
1745 gen_easy_vector_constant_add_self): Delete.
1746 (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
1748 (output_vec_const_move): Use gen_easy_altivec_constant.
1749 (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
1750 * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
1751 (easy_vector_constant_add_self): Rewritten.
1752 * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
1753 easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
1754 (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
1755 * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
1756 Macroize and adjust for the other changes.
1758 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
1762 * c-typeck.c (build_c_cast): Try using a shared constant, and see
1763 if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
1765 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1767 PR rtl-optimization/23567
1768 * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
1769 (noce_process_if_block): Don't do any optimizations except
1770 if (cond) x = x; if !set_b and write into orig_x may trap
1771 or fault. Remove the MEM_READONLY_P check.
1773 2005-11-06 Diego Novillo <dnovillo@redhat.com>
1776 * tree-vrp.c (fix_equivalence_set): New.
1777 (extract_range_from_assert): Call it.
1779 2005-11-05 Ian Lance Taylor <ian@airs.com>
1782 * combine.c (apply_distributive_law): Don't distribute across a
1785 2005-11-05 Kazu Hirata <kazu@codesourcery.com>
1787 * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
1788 config/ms1/ms1.h, config/rs6000/predicates.md,
1789 config/s390/s390.c, params.def, postreload-gcse.c,
1790 tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
1791 tree-vrp.c, tree.c: Fix comment typos.
1792 * doc/invoke.texi: Fix typos.
1794 2005-11-05 Sebastian Pop <pop@cri.ensmp.fr>
1796 * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
1797 for testing whether the data_dependence_relation contains distance
1798 vectors. Iterate over all distance vectors of the ddr.
1799 * lambda.h: Define a vec of lambda_vector pointers.
1800 * tree-data-ref.c (dump_data_dependence_relation,
1801 dump_data_dependence_direction): Iterate over all distance and
1802 direction vectors of the ddr.
1803 (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
1805 (build_classic_dist_vector, build_classic_dir_vector): Push a set
1806 of distance/direction vectors instead of a single one.
1807 * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
1808 lambda_vectors with a vec of lambda_vectors.
1809 (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
1810 (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
1811 DDR_NUM_DIST_VECTS): New.
1812 * tree-loop-linear.c (gather_interchange_stats): Test for the
1813 existence of distance vectors only after having checked that there
1814 is a dependence. Iterate over all distance vectors of the ddr.
1815 (linear_transform_loops): Use dump_data_dependence_relation.
1816 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
1817 distance vectors using DDR_NUM_DIST_VECTS. Iterate over all the
1818 distance vectors of the ddr.
1820 2005-11-05 Bernd Schmidt <bernd.schmidt@analog.com>
1822 * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
1823 expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
1824 IS_INTHANDLER; all callers changed.
1825 (n_regs_saved_by_prologue): Take interrupt handler attributes into
1827 (do_link, do_unlink): New argument ALL; all callers changed.
1828 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
1829 If function isn't leaf, save and restore all registers.
1830 (bfin_function_ok_for_sibcall): Only true if not an interrupt or
1833 2005-11-05 Jan Hubicka <jh@suse.cz>
1835 PR rtl-optimization/23490
1836 * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
1837 max-flow-memory-location): Document.
1838 * flow.c: Include params.h
1839 (MAX_MEM_SET_LIST_LEN): Kill.
1840 (add_to_mem_set_list): Use new param.
1841 * cse.c (cse_basic_block): Replace 1000 by new param.
1842 * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
1843 PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
1844 * predict.c (predict_loops): Use new param.
1845 * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
1847 * ipa-inline.c (cgraph_decide_inlining_of_small_function,
1848 cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1849 Do not hold memory returned by cgraph_node_name across other call.
1851 2005-11-04 Hans-Peter Nilsson <hp@axis.com>
1854 * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
1857 2005-11-04 Jeff Law <law@redhat.com>
1860 * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
1861 * tree-ssa-dom.c: Include params.h.
1862 (thread_across_edge): If there are too many statements in the
1863 target block, then do not thread through it.
1864 * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
1865 * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
1867 2005-11-03 Diego Novillo <dnovillo@redhat.com>
1870 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
1871 TODO_update_ssa instead of TODO_update_ssa_no_phi.
1873 2005-11-04 Sebastian Pop <pop@cri.ensmp.fr>
1876 * tree-scalar-evolution.c (instantiate_parameters_1,
1877 instantiate_parameters, resolve_mixers): Compute the size of an
1878 expression to be instantiated and give up the instantiation if the
1879 size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1881 2005-11-04 Richard Guenther <rguenther@suse.de>
1883 * tree-flow.h (ref_contains_indirect_ref): Rename to
1884 array_ref_contains_indirect_ref.
1885 * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
1886 (array_ref_contains_indirect_ref): Make comment match the code
1888 (ref_contains_array_ref): Likewise.
1889 * tree-ssa-structalias.c (find_func_aliases): Remove call to
1890 ref_contains_indirect_ref.
1891 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1892 Rename calls to ref_contains_indirect_ref.
1894 2005-11-04 Paul Brook <paul@codesourcery.com>
1896 * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
1897 gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
1898 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1899 * config/arm/arm.md: Use match_operand in peephole input templates
1900 and match_dup in peephole output templates.
1902 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
1904 * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
1907 2005-11-04 Mark Mitchell <mark@codesourcery.com>
1908 Daniel Jacobowitz <dan@codesourcery.com>
1910 * longlong.h (add_ssaaaa): Clobber condition code register
1912 (sub_ddmmss): Likewise.
1913 (umul_ppmm): Likewise.
1915 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
1916 Paul Brook <paul@codesourcery.com>
1917 Phil Blundell <pb@reciva.com>
1919 * configure.ac: Add test for ARM TLS support.
1920 * configure: Regenerated.
1921 * config/arm/arm-protos.h (legitimize_tls_address)
1922 (arm_tls_referenced_p, tls_mentioned_p)
1923 (arm_output_addr_const_extra): New prototypes.
1924 (thumb_legitimize_pic_address): Delete.
1925 * config/arm/arm.c: Include "gt-arm.h".
1926 (enum tls_reloc): New.
1927 (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
1928 (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
1929 (arm_call_tls_get_addr, legitimize_tls_address)
1930 (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
1931 (arm_init_tls_builtins, arm_emit_tls_decoration)
1932 (arm_output_addr_const_extra): New functions.
1933 (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
1934 (TARGET_HAVE_TLS): Define.
1935 (target_thread_pointer): New.
1936 (arm_override_options): Handle -mtp=.
1937 (legitimize_pic_address): Ignore UNSPECs.
1938 (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
1940 (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
1941 (tls_get_addr_libfunc): New variable.
1942 (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
1943 (arm_init_builtins): Call arm_init_tls_builtins.
1944 (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
1945 (arm_encode_section_info): Call default_encode_section_info.
1946 * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
1947 (enum arm_tp_type): New.
1948 (target_thread_pointer): Add declaration.
1949 (LEGITIMATE_CONSTANT_P): Handle TLS.
1950 (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
1951 (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
1952 (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
1953 * config/arm/arm.md: Add UNSPEC_TLS.
1954 (movsi): Handle TLS.
1955 (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
1957 (tls_load_dot_plus_eight): New insn and a peephole to create it.
1958 (load_tp_hard, load_tp_soft): New insns.
1959 * arm.opt: Add -mtp=.
1960 * doc/invoke.texi (ARM Options): Document -mtp.
1962 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
1964 * config/arm/lib1funcs.asm: Don't include "libunwind.S".
1965 * config/arm/libunwind.S: Include "lib1funcs.asm".
1966 * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
1967 (LIB2ADDEH): Add libunwind.S.
1968 (LIB2ADDEHDEP): Add lib1funcs.asm.
1969 * mklibgcc.in: Handle asm files in libgcc_eh.a.
1971 2005-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1974 * gcc/c.opt: Add a -lang-fortran option.
1975 * gcc/c-opts.c: Add a lang_fortran flag.
1976 (c_common_init_options): Handling the -lang-fortran option.
1977 (c_common_handle_option): Add a case for Fortran options in
1978 preprocessing. Remove cases for -ffixed-form and
1979 -ffixed-line-length. Add a case for -lang-fortran.
1981 2005-11-03 David Edelsohn <edelsohn@gnu.org>
1983 * config/rs6000/rs6000.c: Include params.h
1984 (optimization_options): Set max-grow-copy-bb-insns default to 16.
1985 (bdesc_2arg): Delete vpkuhss and vpkuwss.
1986 * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
1987 (UNSPEC_VPKUWSS): Delete.
1988 (altivec_vpkuhss): Delete.
1989 (altivec_vpkuwss): Delete.
1990 * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
1992 (neg_eq0<mode>): Remove final condition.
1993 (neg_eq<mode>): Remove condition and split-condition.
1995 2005-11-04 Alan Modra <amodra@bigpond.net.au>
1997 * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
1998 Use associated print macros.
2000 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
2003 * diagnostic.c (diagnostic_set_info_translated): New function.
2004 (diagnostic_set_info): Use it. Add comment.
2005 * diagnostic.h (diagnostic_set_info_translated): Declare.
2007 2005-11-03 Eric Botcazou <ebotcazou@adacore.com>
2009 * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
2010 On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
2011 reference only if 'public' is true.
2012 (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
2013 emit the .hidden directive only if the indirect reference is public.
2014 (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
2015 Pass it to dw2_force_const_mem.
2016 * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
2017 * dwarf2out.c (output_cfi): Adjust calls to above function.
2018 (output_call_frame_info): Likewise.
2019 * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
2020 as 'public' argument to dw2_asm_output_encoded_addr_rtx.
2022 2005-11-03 Zdenek Dvorak <dvorakz@suse.cz>
2024 PR tree-optimization/24483
2025 * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
2026 field to elts if possible.
2028 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2031 * gimplifier.c (gimplify_expr): Create a temporary for lvalue
2034 2005-11-03 Daniel Berlin <dberlin@dberlin.org>
2036 Fix PR tree-optimization/24351
2038 * tree-ssa-structalias.c (struct variable_info): Add
2040 (get_varinfo_fc): New function to follow collapsing.
2041 (new_var_info): Set collapsed_to to NULL.
2042 (dump_constraint): Follow collapsing.
2043 (build_constraint_graph): Handle collapsing.
2044 (do_simple_structure_copy): Return false if something bad
2046 (collapse_rest_of_var): New function.
2047 (do_structure_copy): Collapse if do_simple_structure_copy returns
2050 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
2053 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
2054 expressions to a statement list instead of gimplifying them.
2056 2005-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2058 PR rtl-optimization/23585
2059 * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
2060 that can't trap plus a constant integer, if the mode has zero size.
2062 2005-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2065 * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
2067 ("*insv<mode>_reg_extimm"): Likewise.
2069 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
2072 * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
2073 c_common_type_for_mode returns an unnamed type.
2075 2005-11-02 Richard Henderson <rth@redhat.com>
2079 * dwarf2out.c (dwarf2out_reg_save_reg): New.
2080 (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
2081 * function.c (assign_parms): Use calls.internal_arg_pointer.
2082 (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
2084 * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
2085 (TARGET_CALLS): Add it.
2086 * target.h (struct gcc_target): Add calls.internal_arg_pointer.
2087 * targhooks.c (default_internal_arg_pointer): New.
2088 * targhooks.h (default_internal_arg_pointer): Declare.
2089 * tree.h (dwarf2out_reg_save_reg): Declare.
2090 * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
2091 * config/i386/i386.c (dbx_register_map): Add return column.
2092 (dbx64_register_map, svr4_dbx_register_map): Likewise.
2093 (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
2094 (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
2095 (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
2096 (ix86_save_reg): Save force_align_arg_pointer.
2097 (ix86_emit_save_regs): Make regno unsigned.
2098 (ix86_emit_save_regs_using_mov): Likewise.
2099 (ix86_expand_prologue): Handle force_align_arg_pointer.
2100 (ix86_expand_epilogue): Likewise.
2101 * config/i386/i386.h: (dbx_register_map): Update.
2102 (dbx64_register_map, svr4_dbx_register_map): Update.
2103 (struct machine_function): Add force_align_arg_pointer.
2104 * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
2105 (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
2106 (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
2108 2005-11-02 Jan Hubicka <jh@suse.cz>
2111 * i386.md: Add peep2 for simplyfing array accesses.
2113 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
2116 * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
2117 * config/s390/s390.c (s390_decompose_shift_count): New function.
2118 (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
2119 (print_shift_count_operand): Use s390_decompose_shift_count.
2120 * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
2121 Use s390_decompose_shift_count. Do not accept any non-base hard regs.
2123 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
2126 * loop.c (loop_givs_rescan): Use force_operand to expand
2129 2005-11-02 Andrew Pinski <pinskia@physics.uc.edu>
2132 * fold-const.c (build_range_check): Use unsigned when signed
2133 overflow is undefined also. If etype is subtype, make sure that
2134 the subtraction is in the supertype.
2136 2005-11-02 Richard Henderson <rth@redhat.com>
2139 * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
2142 2005-11-01 Richard Henderson <rth@redhat.com>
2145 * loop.c (scan_loop): Do not propagate computations to a hard
2146 register destination with SMALL_REGISTER_CLASSES.
2148 2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
2150 * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
2151 costs for MULT inside PLUS or MINUS.
2153 2005-11-01 Bob Wilson <bob.wilson@acm.org>
2155 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
2156 (TRAMPOLINE_SIZE): Round up to 60.
2157 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
2159 2005-10-31 James E. Wilson <wilson@specifix.com>
2162 * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
2163 ifdef. Put ifdefs around call in gen_subprogram_die.
2164 (compute_frame_pointer_to_cfa_displacement): Likewise.
2165 (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
2168 PR rtl-optimization/17356
2169 * cfgrtl.c (purge_dead_edges): Undo last change. In EDGE_EH code,
2170 add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
2172 2005-10-31 Jan Hubicka <jh@suse.cz>
2175 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
2178 * i386.c (legitimize_pic_address): Deal with large immediates.
2181 * coverage.c (coverage_checksum_string): Fix code to stip random seeds
2182 from symbol names while computing checkup.
2185 * predict.c (predict_loops): Do not estimate more than
2186 MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
2187 * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
2189 2005-10-31 Andrew MacLeod <amacleod@redhat.com>
2191 PR tree-optimization/19097
2192 * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
2194 2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
2196 * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
2198 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
2201 * tree-inline.c (setup_one_parameter): If the init_stmt
2202 is NULL, don't insert the statement.
2204 2005-10-30 Jan Hubicka <jh@suse.cz>
2206 PR tree-optimization/24172
2207 * tree-inline.c (copy_body_r): Unshare the substituted value first.
2209 2005-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2211 * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
2212 constants for hosts with long != 32 bits.
2214 2005-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
2217 * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
2219 2005-10-28 Aldy Hernandez <aldyh@redhat.com>
2221 * config/ms1/ms1.h (TARGET_MS1_64_001): New.
2222 (TARGET_MS1_16_002): New.
2223 (TARGET_MS1_16_003): New.
2225 * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
2226 ("*decrement_and_branch_until_zero_no_clobber"): New.
2227 Add corresponding splitter for decrement_and_branch_until_zero
2229 Key all decrement_and_branch_until_zero patterns off of
2232 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
2235 * tree-complex.c (extract_component): Treat RESULT_DECL
2236 like the rest of the decls.
2238 2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
2240 * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
2241 indirect call to _mcount if the function needs a static chain.
2243 2005-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2244 Caroline Tice <ctice@apple.com>
2246 PR rtl-optimization/24460
2247 * dwarf2out.c (have_switched_text_sections): New boolean variable.
2248 (dwarf2out_switch_text_section): Set it to true instead of
2249 incrementing separate_line_info_table_in_use.
2250 (output_loc_list): Additionally test have_switched_text_sections.
2251 (output_ranges): Likewise.
2252 (dwarf2out_finish): Likewise.
2253 * varasm.c (assemble_start_function): Do not call
2254 insert_section_boundary_note.
2255 (assemble_end_function): If flag_reorder_blocks_and_partition,
2256 switch to the function's section before emitting the .size directive.
2257 * bb-reorder.c (insert_section_boundary_note): Staticify.
2258 (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
2259 * output.h (insert_section_boundary_note): Delete.
2261 2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
2264 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
2265 instead of pointer equality when comparing types.
2267 2005-10-24 James E. Wilson <wilson@specifix.com>
2269 * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
2270 add_dependence_list_and_free calls.
2272 2005-10-24 Steven Bosscher <stevenb@suse.de>
2274 * contrib.texi: Add the names of the LLNL folks who donated
2275 Cray pointer support for gfortran.
2277 2005-10-24 Steven Bosscher <stevenb@suse.de>
2279 PR tree-optimization/24225
2280 * profile.c (branch_prob): Look from end to start through a
2281 basic block when looking for a locus.
2283 2005-10-24 Richard Henderson <rth@redhat.com>
2285 * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
2287 (hppa_expand_prologue): Likewise.
2289 2005-10-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2291 * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
2292 (NO_DEFERRED_PROFILE_COUNTERS): Define.
2293 * pa.h (NO_PROFILE_COUNTERS): Define.
2294 * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
2295 (funcdef_nos): New vector to hold label numbers of deferred profile
2297 (output_deferred_profile_counters): New function.
2298 (hppa_profile_hook): Push label number onto funcdef_nos.
2299 (pa_hpux_file_end): Call output_deferred_profile_counters if
2300 NO_DEFERRED_PROFILE_COUNTERS is false.
2302 * pa-protos.h (get_deferred_plabel): New prototype.
2303 * pa.c (get_plabel): Rename to get_deferred_plabel. Return plabel.
2305 (output_call): Adjust calls.
2307 2005-10-24 Alan Modra <amodra@bigpond.net.au>
2309 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
2310 peculiarity of GOT/TOC section usage.
2312 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu>
2315 * c-common.c (constant_string_class_name): Add documentation.
2317 2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
2320 * recog.c (peephole2_optimize): Increment peep2_current_count
2321 only when the slot is empty.
2323 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2326 * except.c (output_function_exception_table): Call
2327 assemble_external_libcall if we need a personality function.
2329 2005-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2331 PR rtl-optimization/24460
2332 * bb-reorder.c (fix_crossing_unconditional_branches): Do not
2333 set the basic block for barriers.
2335 2005-10-21 Janis Johnson <janis187@us.ibm.com>
2337 * var-tracking.c (vt_initialize): Initialize post.
2339 2005-10-21 Devang Patel <dpatel@apple.com>
2342 * c-common.c (vector_types_convertible_p): Check vector element type.
2344 2005-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
2346 * config/sh/sh.c (prepare_move_operands): Handle the address
2347 constant which is a tls symbolic address plus a constant.
2349 2005-10-21 Andrew Pinski <pinskia@physics.uc.edu>
2352 * gcc.c (main): Use the correct counter for erroring out
2353 about mulitple files.
2355 2005-10-21 Alan Modra <amodra@bigpond.net.au>
2358 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
2359 use r2 for 64-bit tls .got access.
2361 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
2363 * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
2366 2005-10-20 Steven Bosscher <stevenb@suse.de>
2368 PR tree-optimization/24307
2369 * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
2371 2005-10-20 Alexandre Oliva <aoliva@redhat.com>
2374 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
2376 * varasm.c (find_decl_and_mark_needed): After cgraph global info
2377 is ready, stop marking functions, but still mark variables.
2379 2005-10-20 Richard Guenther <rguenther@suse.de>
2382 * fold-const.c (invert_truthvalue): Handle COND_EXPR with
2385 2005-10-20 Eric Botcazou <ebotcazou@libertysurf.fr>
2387 PR rtl-optimization/23585
2388 * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
2389 (rtx_addr_can_trap_p): ... here. Invoke rtx_addr_can_trap_p_1.
2390 (may_trap_p_1): New predicate extracted from...
2391 (may_trap_p): ... here. Invoke may_trap_p_1.
2392 (may_trap_or_fault_p): New predicate.
2393 * rtl.h (may_trap_or_fault_p): Declare it.
2394 * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
2395 instead of may_trap_p.
2396 (steal_delay_list_from_fallthrough): Likewise.
2397 (fill_simple_delay_slots): Likewise.
2398 (fill_slots_from_thread): Likewise.
2399 * function.c (pad_to_arg_alignment): Rework comment about
2400 SPARC_STACK_BOUNDARY_HACK.
2401 * config/sparc/sparc.h: Likewise.
2403 2005-10-19 Adrian Straetling <straetling@de.ibm.com>
2405 * config/s390/s390.c (s390_expand_insv): New.
2406 * config/s390/s390-protos.h (s390_expand_insv): Declare.
2407 * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
2408 ("icm_hi"): Remove mode attribute.
2409 ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
2411 ("*extracthi", "*extractqi"): Remove.
2412 (extv<mode>", "*extzv<mode>"): New.
2413 ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
2414 "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
2416 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2418 * cfgexpand.c (discover_nonconstant_array_refs_r,
2419 discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
2420 (tree_expand_cfg): Call discover_nonconstant_array_refs.
2421 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
2422 discover_nonconstant_array_refs.
2424 2005-10-19 Steven Bosscher <stevenb@suse.de>
2427 * c-decl.c (pop_scope): Don't warn about an unused variable
2428 if it is marked with TREE_NO_WARNING.
2429 (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
2430 somenow mismatch and olddecl is to be replaced.
2432 2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
2435 * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
2436 whether registers live on the edge can be saved/restored.
2438 2005-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
2440 * config/sh/sh.c (fixup_mova): Skip notes.
2442 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2444 * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
2445 * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
2446 (s390_can_eliminate): Handle BASE_REGNUM elimination.
2447 (s390_initial_elimination_offset): Likewise.
2448 (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
2449 register on TARGET_ZARCH targets.
2450 * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
2451 (INITIAL_FRAME_POINTER_OFFSET): Remove.
2452 (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
2453 (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
2455 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
2457 * config/s390/s390.md: Comment describing output modifiers updated.
2458 * config/s390/s390.c (print_operand): Likewise.
2460 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
2462 * config/s390/s390.c (override_options): Added check for -mstack-size
2464 * doc/invoke.texi: Mention that limit in the documenation.
2466 2005-10-18 Paolo Bonzini <bonzini@gnu.org>
2469 * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
2471 2005-10-18 Daniel Berlin <dberlin@dberlin.org>
2473 Fix PR tree-optimization/24231
2475 * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
2476 (compute_avail): Ditto.
2478 2005-10-18 Richard Henderson <rth@redhat.com>
2481 * config/i386/i386.c (legitimate_constant_p): Check
2482 SYMBOL_REF_TLS_MODEL directly. Don't fallthru to SYMBOL_REF
2484 (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
2485 (legitimate_pic_address_disp_p): Reorg CONST checking to make
2486 sure SYMBOL_REF_TLS_MODEL is tested. Test SYMBOL_REF_TLS_MODEL
2488 (print_operand_address): Likewise.
2489 * config/i386/predicates.md (x86_64_immediate_operand): Test
2490 SYMBOL_REF_TLS_MODEL properly inside CONST.
2491 (x86_64_zext_immediate_operand): Likewise.
2492 (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
2493 initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
2494 * config/i386/i386-protos.h: Remove predicates.md entries.
2496 2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
2498 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
2499 Check that elements of TYPE_METHODS are FUNCTION_DECLs.
2501 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
2502 Ian Lance Taylor <ian@airs.com>
2505 * fold-const.c (fold_widened_comparison): Do not allow range based
2506 constant folding when right operand cannot be unwidened.
2508 2005-10-17 Richard Henderson <rth@redhat.com>
2510 * builtins.c (expand_builtin_synchronize): Build a new-style asm
2511 with a memory clobber.
2513 2005-10-17 James E Wilson <wilson@specifix.com>
2515 PR rtl-optimization/17356
2516 * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
2517 checking for EDGE_EH.
2519 2005-10-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2521 * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
2522 the slot on an even boundary for any type with 16-byte alignment.
2524 2005-10-17 Hans-Peter Nilsson <hp@axis.com>
2527 * md.texi (Modifiers) <%>: Clarify that % doesn't work
2528 after register allocation.
2530 2005-10-17 DJ Delorie <dj@redhat.com>
2532 * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
2535 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
2538 * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
2541 2005-10-17 Kaz Kojima <kkojima@gcc.gnu.org>
2543 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
2544 to 2 if it's already non-zero.
2545 (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
2546 is set and warn about it if flag_schedule_insns is 1.
2548 2005-10-17 Paul Woegerer <paul.woegerer@nsc.com>
2550 * config/crx/crx.md: Compare-and-branch instructions need to
2553 2005-10-17 Uros Bizjak <uros@kss-loka.si>
2556 * config/i386/i386.md (*pushdi2_rex64 splitter)
2557 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
2558 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
2559 flow2 pass only when (optimize > 0 && flag_peephole2).
2561 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
2564 * gcc.c (have_c): New static variable.
2566 (process_command): Remove declation of have_c.
2567 Set have_o to 1 when handling -o.
2568 (main): Add a fatel error if there are multiple
2569 files specified and -o and -c/-S is passed witout
2570 -combine or multiple languages.
2572 2005-10-16 Daniel Berlin <dberlin@dberlin.org>
2574 Fix PR tree-optimization/22444
2575 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
2576 Assert that we don't hit something with subvars.
2577 (setup_pointers_and_addressables): Don't add things with subvars,
2578 because we'll already process the subvars for aliasing purposes.
2580 2005-10-16 Hans-Peter Nilsson <hp@axis.com>
2583 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
2584 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
2585 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
2586 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
2587 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
2588 swapped, alternatives for the R constraint.
2591 * builtins.c (get_builtin_sync_mode): Make unlimited
2592 mode_for_size request.
2594 2005-10-15 Richard Henderson <rth@redhat.com>
2596 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
2597 (gimplify_expr): ... here.
2598 (gimplify_compound_lval): Use it in initial scan loop. Allow
2599 fb_lvalue in base expression.
2601 2005-10-15 Richard Henderson <rth@redhat.com>
2604 * builtins.c (expand_builtin_trap): Export.
2605 * expr.h (expand_builtin_trap): Declare.
2606 * expr.c (expand_assignment): Emit a trap for integral offsets
2607 from registers that weren't reduced to bitpos.
2609 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
2610 (mark_array_ref_addressable): Remove.
2611 * tree-flow.h (mark_array_ref_addressable): Remove.
2612 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
2614 2005-10-15 James E Wilson <wilson@specifix.com>
2617 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
2618 (add_dependence_list_and_free): Likewise.
2619 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
2622 2005-10-15 Diego Novillo <dnovillo@redhat.com>
2626 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
2627 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
2629 (vrp_visit_phi_node): Only prevent infinite iterations when
2630 the previous result and the new result are both VR_RANGEs.
2632 2005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
2634 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
2637 2005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2640 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
2643 2005-10-14 Per Bothner <per@bothner.com>
2645 PR preprocessor/21250
2646 * c-ppoutput.c (print_line): Print internal line 0 as 1.
2648 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
2651 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
2652 overflow flags. Refactor some conditionals.
2654 2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
2657 * tree-dfa.c (add_referenced_var): Only look at decls which
2658 have TREE_CONSTANT or TREE_READONLY set instead of if
2659 !TREE_PUBLIC or !TREE_CONSTANT.
2661 2005-10-13 James E Wilson <wilson@specifix.com>
2663 * doc/invoke.texi: For -x, add f95-cpp-input.
2664 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
2666 2005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
2668 PR tree-optimization/24262
2669 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
2670 in loop all the time.
2672 2005-10-12 Richard Henderson <rth@redhat.com>
2675 * tree.h (DECL_TRANSPARENT_UNION): Remove.
2676 * function.c (assign_parm_find_data_types): Don't support it.
2677 * print-tree.c (print_node): Likewise.
2678 * c-common.c (handle_transparent_union_attribute): Likewise.
2679 Use build_duplicate_type.
2680 * tree-inline.c (remap_type_1): Split out of remap_type;
2681 properly remap aggregate fields.
2682 (build_duplicate_type): New.
2683 * doc/extend.texi (Variable Attributes): Remove documentation
2684 for transparent_union.
2686 2005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2689 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
2690 (gen_stack_pointer_dec): Likewise.
2692 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2696 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
2698 (struct cxx): Add adjust_class_at_definition target hook.
2699 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
2700 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
2701 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
2702 hook_void_tree. Add to TARGET_CXX.
2703 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
2705 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
2706 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
2707 instead of attribute. Check for dllexport override. Warn if
2708 inconsistent dll linkage. Don't lose old dllimport if decl has
2709 had address referenced. Tweak lookup of dllimport atribute.
2710 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
2711 for target specific rules. Don't add dllimport attribute if
2712 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
2713 dllimport attribute.
2714 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
2715 * varasm.c (initializer_constant_valid_p): Replace
2716 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
2720 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
2721 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
2722 (i[34567]86-*-mingw32*): Likewise.
2724 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
2725 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
2727 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
2728 C++-specific code. Change return value to bool.
2729 (i386_pe_dllimport_p): Likewise.
2730 (associated_type): Simplify and make language-independent
2731 (i386_pe_encode_section_info): Replace override of ambiguous
2732 dllimport symbol refs with a gcc_assert.
2733 (i386_pe_valid_dllimport_attribute_p): Define.
2734 * config/i386/winnt-cxx.c: New file. Define C++ versions of
2735 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2736 i386_pe_adjust_class_at_definition.
2737 * config/i386/winnt-stubs.c: New file. Define stub versions of
2738 lang-specific functions.
2739 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
2740 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2741 i386_pe_adjust_class_at_definition.
2742 (i386_pe_valid_dllimport_attribute_p): Declare.
2743 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
2744 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
2745 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
2748 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
2749 dllimport attribute with test of DECL_DLLIMPORT_P.
2751 2005-10-12 Adrian Straetling <straetling@de.ibm.com>
2753 * combine.c (make_extraction): Correct offset computation.
2755 2005-10-12 Hans-Peter Nilsson <hp@axis.com>
2757 * config/cris/t-linux (LIMITS_H_TEST): Define.
2759 2005-10-12 Richard Henderson <rth@redhat.com>
2762 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
2764 2005-10-12 Richard Guenther <rguenther@suse.de>
2766 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
2768 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
2771 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
2772 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
2775 2005-10-12 Richard Guenther <rguenther@suse.de>
2778 * varasm.c (output_constant): Correct typo from previous
2781 2005-10-11 Ian Lance Taylor <ian@airs.com>
2783 PR rtl-optimization/13931
2784 * combine.c: Revert patch of 2003-05-14, and:
2785 (try_combine): Only set elim_i1 and elim_i2 if the destination is
2786 completely killed in the appropriate insn.
2787 (distribute_notes): Don't skip multiple hard register test for
2788 elim_i1 and elim_i2.
2790 2005-10-11 Richard Henderson <rth@redhat.com>
2793 * c-typeck.c (convert_for_assignment): Use build_constructor_single
2794 to initialize a transparent union instead of a nop_expr.
2796 2005-10-11 Richard Henderson <rth@redhat.com>
2798 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
2799 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
2800 (tree_ssa_dce_loop): Call scev_reset.
2803 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
2804 * tree-ssa-dce.c: Include cfgloop.h.
2805 (tree_ssa_dce_loop, pass_dce_loop): New.
2806 * tree-pass.h (pass_dce_loop): Declare it.
2807 * passes.c (init_optimization_passes): Use it.
2809 2005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2812 * convert.c (convert_to_real): Revert 2005-10-05 patch.
2813 Only apply the optimization for rounding builtins if the inner
2814 cast is also an extension.
2816 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
2819 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
2820 mark_new_vars_to_rename instead of update_stmt.
2822 2005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
2824 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
2826 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2828 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
2829 for setting MMX register to 0 rather than mmx.
2831 2005-10-10 Steve Ellcey <sje@cup.hp.com>
2834 * configure.ac: Move gas check from mips specific case to common case.
2835 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
2836 * configure: Regenerate
2837 * doc/install.texi: Update.
2839 2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2842 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
2844 2005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
2846 * gcc.c (do_spec_1): Accept numeric characters in file name
2849 2005-10-10 Nick Clifton <nickc@redhat.com>
2851 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
2852 describing the deleted arm_gen_rotated_half_load function.
2854 2005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
2856 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
2859 2005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2861 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
2863 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
2864 (EXTRA_MULTILIB_PARTS): Define.
2865 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2866 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2867 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
2868 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2869 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2870 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
2872 2005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
2874 PR tree-optimization/24226
2875 * tree-cfg.c (remove_bb): Clean up unreachable loops.
2876 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
2877 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
2880 2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
2882 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
2884 2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2887 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
2888 Rewrite for no need for the early clobber.
2890 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
2892 Merge from csl-arm-branch:
2893 2005-09-07 Paul Brook <paul@codesourcery.com>
2894 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
2897 2005-04-30 Paul Brook <paul@codesourcery.com>
2898 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
2899 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
2901 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
2902 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
2903 (arm_override_options): Use TARGET_AAPCS_BASED.
2904 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
2905 (PTRDIFF_TYPE): Use int for AAPCS.
2906 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
2907 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
2908 (DEFAULT_SHORT_ENUMS): Delete.
2909 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
2911 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
2912 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
2913 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
2914 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
2916 2004-12-03 Mark Mitchell <mark@codesourcery.com>
2917 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
2919 2004-11-22 Mark Mitchell <mark@codesourcery.com>
2920 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
2922 2004-11-19 Mark Mitchell <mark@codesourcery.com>
2923 * config.gcc (arm*-*-linux-gnueabi): Add it.
2924 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
2926 (TARGET_OS_CPP_BUILTINS): Likeiwse.
2927 * config/arm/linux-eabi.h: New file.
2928 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
2929 (LINUX_TARET_LINK_SPEC): Likewise.
2930 (LINK_SPEC): Use it.
2931 * config/arm/t-linux-eabi: New file.
2933 2005-10-08 Steven Bosscher <stevenb@suse.de>
2936 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
2938 (PARAM_SMS_DFA_HISTORY): Likewise.
2940 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
2943 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
2944 (load_register_parameters): Call it.
2945 (check_sibcall_argument_overlap_1): Likewise.
2946 (store_one_arg): Likewise.
2948 2005-10-07 James E. Wilson <wilson@specifix.com>
2950 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
2951 DImode not VECINT24 for operand 2.
2954 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
2958 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
2959 fr_spill): Use destination_operand for operand 0.
2961 2005-10-07 DJ Delorie <dj@redhat.com>
2963 * varasm.c (output_constant): Limit error to expanding
2966 2005-10-07 Richard Guenther <rguenther@suse.de>
2969 * fold-const.c (fold_binary): Fix operand types during folding
2970 of X op (A, Y). Evaluation order of the side-effects of
2971 X and A are frontend-defined, so ensure we honour that even for
2972 tcc_comparison class operands; eased by removing duplicate code.
2974 2005-10-07 Steve Ellcey <sje@cup.hp.com>
2976 * stor-layout.c (layout_type): Do not allow alignment of array
2977 elements to be greater than their size.
2979 2005-10-07 Steve Ellcey <sje@cup.hp.com>
2981 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
2983 (hppa*-*-linux*): Ditto.
2984 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
2985 * config/host-hpux.c: New.
2986 * config/x-hpux: New.
2987 * config/pa/x-hpux: Remove.
2988 * config/pa/x-linux: Remove.
2989 * config/pa/pa-host.c: Remove.
2991 2005-10-07 Jeff Law <law@redhat.com>
2993 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
2994 determine whether or not to try and thread outgoing edges.
2996 2005-10-07 David Edelsohn <edelsohn@gnu.org>
2998 * config/rs6000/rs6000.md (eqsi_power): New.
2999 (neg_eq0si): Add TARGET_POWER to final condition.
3002 2005-10-06 Richard Henderson <rth@redhat.com>
3004 * config/rs6000/rs6000.c: Revert last change.
3006 2005-10-06 Richard Henderson <rth@redhat.com>
3008 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
3009 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
3011 2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
3015 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
3016 out return_label and naked_return_label.
3018 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
3020 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
3023 2005-10-06 Richard Henderson <rth@redhat.com>
3026 * tree-inline.c (declare_return_variable): Handle modify_dest not
3029 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
3031 Fix PR tree-optimization/22488
3032 * tree-ssa-structalias.c (check_for_overlaps): New function.
3033 (create_variable_info_for): Use it.
3035 2005-10-06 Richard Henderson <rth@redhat.com>
3038 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
3039 (dwarf2out_start_source_file): Print it.
3041 2005-10-06 Geoffrey Keating <geoffk@apple.com>
3043 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
3045 2005-10-06 Richard Henderson <rth@redhat.com>
3048 * mode-switching.c (optimize_mode_switching): Clear transp bit
3049 for block with incomming abnormal edges.
3051 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
3052 (fpscr_set_from_mem): Use them.
3053 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
3054 (fpscr postinc splitters): Rewrite as peephole2+split.
3056 2005-10-06 David Edelsohn <edelsohn@gnu.org>
3058 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
3059 (eq<mode>_compare): Same.
3061 2005-10-06 Richard Guenther <rguenther@suse.de>
3063 PR tree-optimization/24238
3064 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
3066 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
3068 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
3069 here. Use AC_PATH_PROG for environment variables instead of
3071 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
3073 * configure: Regenerated.
3075 2005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
3078 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
3079 then force it into a register.
3080 (call_value): Likewise.
3082 2005-10-06 Richard Henderson <rth@redhat.com>
3085 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
3086 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
3087 under pass_vectorize.
3089 2005-10-05 Devang Patel <dpatel@apple.com>
3092 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
3093 handling constants. Check NAMESPACE_DECL context for constants.
3095 2005-10-05 Eric Christopher <echristo@apple.com>
3097 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
3099 2005-10-05 Richard Henderson <rth@redhat.com>
3102 * tree-cfg.c (mark_array_ref_addressable_1): New.
3103 (mark_array_ref_addressable): New.
3104 * tree-flow.h (mark_array_ref_addressable): Declare.
3105 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
3107 2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
3111 * reload.c (subst_reloads): When adding a REG_LABEL to a
3112 jump instruction, also update JUMP_LABEL.
3114 2005-10-05 David Edelsohn <edelsohn@gnu.org>
3116 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
3117 * bb-reorder.c (copy_bb_p): Use it.
3118 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
3120 2005-10-05 Richard Henderson <rth@redhat.com>
3123 * toplev.c (process_options): Warn about unsupported combinations
3124 of unwind tables and omit-frame-pointer.
3125 * config/i386/i386.c (override_options): Similarly. Enable
3126 accumulate-outgoing-args if not explicitly disabled.
3128 2005-10-05 Steve Ellcey <sje@cup.hp.com>
3130 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
3131 Handle big endian vs. small endian.
3132 (vec_initv2sf): Handle big endian vs. small endian.
3133 (*vec_extractv2sf_1): Ditto.
3135 2005-10-05 Dale Johannesen <dalej@apple.com>
3137 * convert.c (convert_to_real): Don't convert
3138 (float)floor(double d) to floorf((float)d).
3140 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3142 * config/arm/arm.md (insv): Use gen_int_mode in more places.
3144 2005-10-05 Andrew MacLeod <amacleod@redhat.com>
3146 PR tree-optimization/18587
3147 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
3148 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
3149 build_vuses): Change to VEC type.
3150 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
3151 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
3152 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
3153 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
3154 (get_name_decl): New. Return DECL_UID of base variable.
3155 (operand_build_cmp): New. qsort comparison routine.
3156 (operand_build_sort_virtual): New. Sort virtual build vector.
3157 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
3158 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
3159 (FINALIZE_BASE): Use get_name_decl.
3160 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
3161 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
3162 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
3163 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
3164 direct VEC_* manipulations.
3165 (build_ssa_operands): Call operand_build_sort_virtual.
3166 (copy_virtual_operand, create_ssa_artficial_load_stmt,
3167 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
3168 with direct VEC_* manipulations.
3169 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
3170 with direct VEC manipulations.
3172 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
3174 PR tree-optimization/21419
3175 PR tree-optimization/24146
3176 PR tree-optimization/24151
3178 * c-typeck.c (readonly_error): Handle USE being lv_asm.
3179 (build_asm_expr): Call it if outputs are read-only.
3180 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
3182 2005-10-05 Billy Biggs <billy.biggs@gmail.com>
3183 Paolo Bonzini <bonzini@gnu.org>
3187 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
3188 enable the instructions and not just the built-ins.
3189 * doc/invoke.texi (x86 Options): Likewise.
3191 2005-10-04 Geoffrey Keating <geoffk@apple.com>
3193 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
3195 * doc/invoke.texi (Option Summary): Correct spelling
3196 of -mmacosx-version-min.
3198 2005-10-04 Devang Patel <dpatel@apple.com>
3200 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
3203 2005-10-04 Steve Ellcey <sje@cup.hp.com>
3205 * tree-vect-transform.c (vect_create_epilog_for_reduction):
3206 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
3208 2005-10-04 Adrian Straetling <straetling@de.ibm.com>
3210 * config/s390/s390.md ("TDSI","DP"): New mode macros.
3211 ("TE","tg"): New mode attributes.
3212 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
3213 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
3214 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
3215 dword_mode and one for GPRmode.
3217 2005-10-04 Ian Lance Taylor <ian@airs.com>
3219 PR preprocessor/13726
3220 * c-ppoutput.c (cb_include): Add comments parameter, and print out
3221 any comments passed in.
3223 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
3225 * tree.c (annotate_with_file_line): Fix typo.
3227 2005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3230 * builtins.c (fold_builtin_memcmp): When constructing the pointer
3231 type used to access data in the inlined length == 1 case, use
3232 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
3233 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3235 2005-10-04 Uros Bizjak <uros@kss-loka.si>
3237 * config/i386/i386.h (TARGET_FISTTP): Enable also for
3238 TARGET_SSE3 and only for TARGET_80387.
3239 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
3240 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
3241 Do not depend on TARGET_80387.
3243 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
3245 * tree.c (last_annotated_node): Change type to location_t*.
3246 (annotate_with_file_line): Reflect the change of
3247 last_annotated_node type.
3249 2005-10-04 Richard Guenther <rguenther@suse.de>
3252 * c-decl.c (grokdeclarator): Don't write to fields
3255 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
3258 * c-decl.c (finish_decl): Use set_user_assembler_name even for
3260 * varasm.c (make_decl_rtl): If a register variable does not
3261 have a set user assmbler name, error out.
3262 Decode the asmspec is now name+1 bypassing '*'.
3264 2005-10-04 Steven Bosscher <stevenb@suse.de>
3266 PR tree-optimization/23049
3267 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
3268 of a COND_EXPR is folded before calling fold on the whole rhs of a
3269 conditional assignment.
3270 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
3271 document that a COND_EXPR may appear there.
3273 2005-10-03 Diego Novillo <dnovillo@redhat.com>
3276 * tree-vrp.c (extract_range_from_assert): If the new numeric
3277 range created out of the assertion contradicts the existing
3278 numeric range of the ASSERT_EXPR variable, make the new range
3281 2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
3283 * config/sh/sh.c (sh_register_move_cost): Add case for moving
3284 from T_REGS to FP register class.
3286 2005-10-03 Richard Henderson <rth@redhat.com>
3289 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
3290 before creating a new one.
3292 2005-10-03 David Edelsohn <edelsohn@gnu.org>
3294 * config/rs6000/t-aix43 (LDFLAGS): New.
3295 * config/rs6000/t-aix52 (LDFLAGS): New.
3297 2005-10-03 Ian Lance Taylor <ian@airs.com>
3299 * gimplify.c (find_single_pointer_decl_1): New static function.
3300 (find_single_pointer_decl): New static function.
3301 (internal_get_tmp_var): For a formal variable, set restrict base
3302 information if appropriate.
3303 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
3305 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
3306 (DECL_GET_RESTRICT_BASE): Define.
3307 (SET_DECL_RESTRICT_BASE): Define.
3308 (decl_restrict_base_lookup): Declare.
3309 (decl_restrict_base_insert): Declare.
3310 (struct tree_decl_with_vis): Add based_on_restrict_p field.
3311 * tree.c (restrict_base_for_decl): New static variable.
3312 (init_ttree): Initialize restrict_base_for_decl.
3313 (copy_node_stat): Copy restrict base information.
3314 (decl_restrict_base_lookup): New function.
3315 (decl_restrict_base_insert): New function.
3316 (print_restrict_base_statistics): New static function.
3317 (dump_tree_statistics): Call print_restrict_base_statistics.
3319 2005-10-02 Diego Novillo <dnovillo@redhat.com>
3322 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
3323 case of anti-ranges.
3325 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
3328 * c-typeck.c (tagged_tu_seen): Rename to ...
3329 (tagged_tu_seen_cache): this and add val field.
3330 (comptypes): Move functional to comptypes_internal
3331 and free tagged_tu_seen.
3332 (comptypes_internal): New function and call comptypes_internal
3333 instead of comptypes. Speed up by sibcalling
3334 tagged_types_tu_compatible_p.
3335 (alloc_tagged_tu_seen): New function
3336 (free_all_tagged_tu_seen_up_to): New function.
3337 (tagged_types_tu_compatible_p): Return the val of the seen two
3339 Add that the two types are the same to tagged_tu_seen_base
3340 if they are and call comptypes_internal instead of comptypes.
3341 <case UNION_TYPE>: Speed up common type where the fields are
3343 (function_types_compatible_p): Call comptypes_internal instead of
3345 (type_lists_compatible_p): Likewise.
3346 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
3348 2005-10-02 Matthias Klose <doko@debian.org>
3350 * doc/invoke.texi: Fix typo and speling error.
3352 2005-10-01 Richard Henderson <rth@redhat.com>
3354 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
3356 2005-10-01 Mark Mitchell <mark@codesourcery.com>
3358 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
3359 using --start-group and --end-group.
3361 2005-10-01 Diego Novillo <dnovillo@redhat.com>
3363 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
3364 FIXME note regarding quirky semantics.
3366 2005-10-01 Diego Novillo <dnovillo@redhat.com>
3369 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
3370 non-null range as a last resort.
3372 2005-10-01 James A. Morrison <phython@gcc.gnu.org>
3373 Diego Novillo <dnovillo@redhat.com>
3376 * tree-vrp.c (extract_range_from_assert): For !=
3377 assertions, only build an anti-range if LIMIT is a
3378 single-valued range.
3380 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
3382 * arm.md (movqi): On thumb when optimizing, handle loading from
3383 memory by describing this as taking a subreg of a zero-extended load
3384 into an SImode register.
3387 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3389 * reload1.c (merge_assigned_reloads): Do not change any
3390 RELOAD_FOR_OUTPUT_ADDRESS reloads.
3392 2005-09-30 Geoffrey Keating <geoffk@apple.com>
3394 * Makefile.in (LIPO_FOR_TARGET): Define.
3395 (STRIP_FOR_TARGET): Define.
3397 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
3398 before creating new ones. Do symlinks before creating the actual
3401 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
3402 to work out which multilibs are actually being built.
3404 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
3406 * tree-vect-transform.c, config/ms1/ms1.md,
3407 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
3408 Follow spelling conventions.
3409 * doc/invoke.texi, doc/md.texi: Fix typos.
3411 2005-09-30 Andrew Macleod <amacleod@redat.com>
3413 PR tree-optimization/21430
3414 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
3415 use operands, and set stmt pointer if need be.
3416 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
3417 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
3420 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3423 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
3425 2005-09-29 Mark Mitchell <mark@codesourcery.com>
3427 * optabs.c (expand_binop): Initialize first_pass_p.
3429 2005-09-29 Jakub Jelinek <jakub@redhat.com>
3432 * c-decl.c (c_write_global_declarations_1): If any
3433 wrapup_global_declaration_2 call returned true, restart the loop.
3435 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
3437 Fix PR tree-optimization/24117
3438 * tree-ssa-structalias.c (find_func_aliases): Strip nops
3439 before considering whether to use anyoffset.
3441 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
3445 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
3447 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3449 (swap_commutative_operands_with_target): New.
3451 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
3454 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
3457 2005-09-29 Steven Bosscher <stevenb@suse.de>
3459 PR tree-optimization/23911
3460 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
3461 and IMAGPART_EXPR too.
3463 2005-09-28 Mark Mitchell <mark@codesourcery.com>
3466 * expmed.c (expand_shift): Move logic to reverse rotation
3467 direction when rotating by constants ...
3468 * optabs.c (expand_binop): ... here.
3469 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
3470 (ix86_rotrdi3): New pattern.
3471 (rotldi3): Handle 32-bit mode.
3472 (ix86_rotldi3): New pattern.
3474 2005-09-29 Alan Modra <amodra@bigpond.net.au>
3477 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
3478 check for numbers that need no bit twiddle.
3480 2005-09-28 Geoffrey Keating <geoffk@apple.com>
3482 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
3483 multilib to be built.
3485 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
3486 (stage1-start): Delete old libgcc and libunwind before moving
3487 anything into the stage directory.
3488 (stage2-start): Likewise.
3489 (stage3-start): Likewise.
3490 (stage4-start): Likewise.
3491 (stageprofile-start): Likewise.
3492 (stagefeedback-start): Likewise.
3493 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
3494 header in tm_file and CPU-specific t-darwin in tmake_file.
3495 (i[34567]86-*-darwin*): Don't change tm_file.
3496 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
3497 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
3498 shared library stub for target OS version.
3499 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
3500 (SHLIB_LINK): Don't make SHLIB_SOLINK.
3501 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
3502 (libgcc_s.%.dylib): New.
3504 (install-darwin-libgcc-stubs): New.
3505 (INSTALL_LIBGCC): New append.
3506 * config/i386/darwin-libgcc.10.4.ver: New.
3507 * config/i386/darwin-libgcc.10.5.ver: New.
3508 * config/i386/t-darwin: New.
3509 * config/rs6000/darwin-libgcc.10.4.ver: New.
3510 * config/rs6000/darwin-libgcc.10.5.ver: New.
3511 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
3512 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
3514 2005-09-28 Paul Brook <paul@codesourcery.com>
3516 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
3519 2005-09-28 Richard Guenther <rguenther@suse.de>
3521 PR tree-optimization/23853
3522 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
3523 host_integerp to verify misalignment value.
3525 2005-09-28 Richard Henderson <rth@redhat.com>
3527 * builtins.c (get_builtin_sync_mode): New.
3528 (expand_builtin_sync_operation): Pass in mode argument.
3529 (expand_builtin_compare_and_swap): Likewise.
3530 (expand_builtin_lock_test_and_set): Likewise.
3531 (expand_builtin_lock_release): Likewise.
3532 (expand_builtin): Update to match.
3534 2005-09-28 Nick Clifton <nickc@redhat.com>
3536 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
3537 formatting. Add check to PLUS case to ensure that the offset is
3538 within an acceptable range.
3540 * config/v850/v850.md (casesi): Disable the generation of the
3541 switch pattern as it is not being handled properly at the moment.
3543 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
3544 for when the high words are identical.
3546 2005-09-27 Richard Henderson <rth@redhat.com>
3548 * pretty-print.c (pp_base_format): Fix typo for %>.
3550 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
3551 Devang Patel <dpatel@apple.com>
3553 PR tree-optimization/23625
3554 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
3555 LABEL_EXPR, assertion check.
3557 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
3559 * optabs.c (no_conflict_move_test): Check if a result of a
3560 to-be-moved insn would be clobbered by an originally
3563 2005-09-27 Jeff Law <law@redhat.com>
3565 * passes.c (init_optimization_passes): Replace copy propagation
3566 passes immediately after DOM with phi-only copy propagation
3567 pases. Add phi-only copy propagation pass after first DOM pass.
3568 * tree-pass.h (pass_phi_only_copy_prop): Declare.
3569 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
3570 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
3571 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
3572 to init_copy_prop. Callers updated.
3573 (do_phi_only_copy_prop): New function.
3574 (pass_phi_only_copy_prop): New pass descriptor.
3576 2005-09-27 Nick Clifton <nickc@redhat.com>
3578 * libgcc2.c (__popcount_tab): Remove redundant prototype.
3580 2005-09-26 Jason Merrill <jason@redhat.com>
3583 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
3585 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
3587 2005-09-26 James E Wilson <wilson@specifix.com>
3589 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
3590 copyright. Add gcc copyright plus libgcc exception.
3591 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
3593 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
3595 2005-09-26 Jeff Law <law@redhat.com>
3597 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
3598 about when to iterate.
3600 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
3603 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
3604 for __complex__ double in -mcpu=G5 mode.
3606 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
3608 PR tree-optimization/23942
3609 * Makefile.in (SCEV_H): Depends on PARAMS_H.
3610 * tree-scalar-evolution.c: Include params.h.
3612 (follow_ssa_edge, follow_ssa_edge_in_rhs,
3613 follow_ssa_edge_in_condition_phi_branch,
3614 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
3615 Change return type to t_bool. Use a parameter to limit the size of
3616 trees that are walked before stopping
3617 (analyze_evolution_in_loop): Initialize the limit to 0.
3618 (follow_ssa_edge): Give up by returning t_dont_know if the limit
3619 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3621 2005-09-26 Uros Bizjak <uros@kss-loka.si>
3624 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
3625 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
3627 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
3629 * combine.c (make_extraction): Check for valid use of subreg.
3631 2005-09-26 Uros Bizjak <uros@kss-loka.si>
3634 * config/i386/i386.md ("*fistdi2_1"): New pattern.
3635 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
3636 ("fist<mode>2_with_temp"): Use only register operands.
3638 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
3640 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
3641 CALL_INSN_FUNCTION_USAGE.
3643 2005-09-26 Richard Guenther <rguenther@suse.de>
3646 * gcse.c: Include hashtab.h, define ldst entry hashtable.
3647 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
3648 (ldst_entry): Use the hashtable instead of list-walking.
3649 (find_rtx_in_ldst): Likewise.
3650 (free_ldst_entry): Free the hashtable.
3651 (compute_ld_motion_mems): Create the hashtable.
3652 (trim_ld_motion_mems): Remove entry from hashtable if
3653 removing it from list.
3654 (compute_store_table): Likewise^2.
3655 (store_motion): Free hashtable in case we did not see
3658 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
3660 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
3661 and arg1 if we are passing them to fold_build2.
3663 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
3666 * config/i386/i386.c (ix86_function_regparm): Fix the test for
3669 2005-09-25 Richard Henderson <rth@redhat.com>
3671 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
3672 SYMBOL_REF_TLS_MODEL to be correct.
3674 2005-09-24 Richard Henderson <rth@redhat.com>
3676 * ipa-type-escape.c (discover_unique_type): Remove dead code at
3677 end of function. Reindent.
3679 2005-09-24 Ian Lance Taylor <ian@airs.com>
3681 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
3682 NEGATE_EXPR/BIT_NOT_EXPR case.
3684 2005-09-24 Richard Henderson <rth@redhat.com>
3686 * c-common.c (handle_mode_attribute): When not modifying in place,
3687 create subtypes for enumerations.
3688 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
3689 * gimplify.c (create_tmp_from_val): Likewise.
3691 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
3693 * config/i386/i386.md (*tls_global_dynamic_64,
3694 *tls_local_dynamic_base_64): Add missing mode to call.
3695 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
3697 2005-09-24 Jan Hubicka <jh@suse.cz>
3699 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
3700 (cgraph_clone_node): Likewise.
3701 * cgraph.h (cgraph_clone_edge): Update prototype.
3702 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
3703 duplicated prototypes; add updating argument.
3704 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
3705 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
3707 (cgraph_mark_inline_edge): Likewise.
3708 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
3709 (cgraph_flatten_node): Likewise.
3710 (cgraph_decide_recursive_inlining): Likewise.
3711 (cgraph_decide_inlining_of_small_function): Likewise.
3712 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3714 2005-09-23 David Edelsohn <edelsohn@gnu.org>
3715 Pete Steinmetz <steinmtz@us.ibm.com>
3717 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
3718 (rldic.): Set type to "compare".
3720 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
3721 mfjmpr for MFCTR/MFLR.
3722 (movdf_hardfloat64): Same.
3723 (movdf_softfloat64): Same. Correct order of store and move types.
3724 (movti_string): Set type to store_ux/load_ux.
3725 (load_multiple): Set type to load_ux.
3726 (store_multiple): Set type to store_ux.
3727 (movmemsi): Set type to store_ux.
3728 (output_cbranch direct_return): Set type to jmpreg.
3729 (stmw): Set type to store_ux.
3730 (lmw): Set type to load_ux.
3731 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
3732 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
3733 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
3734 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
3735 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
3736 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
3737 (rios1-fpstore): Increase latency to 3.
3738 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
3739 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
3741 2005-09-23 David Edelsohn <edelsohn@gnu.org>
3742 Andrew Pinski <pinskia@physics.uc.edu>
3744 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
3745 operand2 constraint to "b".
3746 (sync_<fetchop_name>di_internal): Same.
3747 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
3749 (sync_old_<fetchop_name>di_internal): Same.
3750 (sync_new_<fetchop_name>si_internal): Same.
3751 (sync_new_<fetchop_name>di_internal): Same.
3753 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
3756 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
3757 case, define as macros.
3759 PR rtl-optimization/23837
3760 * optabs.c (no_conflict_move_test): Don't set must_stay for a
3761 clobber / clobber match between dest and p->first.
3763 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
3764 (no_conflict_move_test): Update comments.
3766 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
3768 * doc/install.texi: Update URL for Jacks.
3769 * doc/sourcebuild.texi: Likewise.
3771 2005-09-22 David Edelsohn <edelsohn@gnu.org>
3774 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
3775 registers when choosing register preferences.
3776 (movdf_hardfloat64): Same.
3778 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
3780 * expmed.c (expand_shift): Don't use the target of the rotate as
3781 target for the first expanded shift insn.
3782 * testsuite/gcc.dg/20050922-1.c: Testcase added.
3784 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
3786 PR tree-optimization/22438
3787 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
3788 preserved iv rhs rewriting specially.
3790 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
3792 * tree-data-ref.c (analyze_array_indexes): Only estimate when
3793 estimate_only is true.
3794 * tree-flow.h (ref_contains_indirect_ref): New prototype.
3795 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
3796 tree-ssa-structalias.c
3797 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
3798 ref_contains_indirect_ref.
3799 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
3801 2005-09-21 DJ Delorie <dj@redhat.com>
3803 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
3805 (mn10300_return_in_memory): Support variable size types also.
3806 (mn10300_pass_by_reference): Likewise.
3807 (mn10300_function_value): New.
3808 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
3809 (FUNCTION_OUTGOING_VALUE): Likewise.
3810 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
3811 * doc/invoke.texi: Document it.
3813 2005-09-21 Uros Bizjak <uros@kss-loka.si>
3816 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
3817 force integer op1 into register for XFmode compares.
3819 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
3822 * expmed.c (alg_code): Add alg_impossible.
3823 (alg_hash_entry): Add cost.
3824 (synth_mult): Record alg_impossible in the hash table if
3825 multiplication by a given integer is impossble within the
3826 limit. Speed up using alg_impossible.
3828 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
3830 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
3831 argument. Allow and set any offset if needs_anyoffset is passed
3833 (get_constraint_for): Add argument here too.
3835 (do_structure_copy): Pass NULL to get_constraint_for.
3836 (handle_ptr_arith): Ditto.
3837 (find_func_aliases): Ditto.
3839 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
3841 PR rtl-optimization/23898
3842 * output.h (get_attr_min_length): Declare.
3843 * final.c (get_attr_length_1): New function, broken out of:
3845 (get_attr_min_length): New function.
3846 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
3847 (duplicate_computed_gotos): Likewise.
3848 * genattr.c (insn_min_length): Generate declaration.
3849 * genattrtab.c (min_fn, min_attr_value): New functions.
3850 (make_length_attrs): Generate insn_min_length.
3852 2005-09-20 Steve Ellcey <sje@cup.hp.com>
3854 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
3856 2005-09-20 Richard Henderson <rth@redhat.com>
3858 PR tree-optimization/24059
3859 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
3862 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
3864 * c.opt (fextended-identifiers): New.
3865 * c-opts.c (c_common_handle_option): Handle
3866 -fextended-identifiers.
3867 * doc/cpp.texi: Update documentation of extended identifiers.
3868 * doc/cppopts.texi (-fextended-identifiers): Document.
3870 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3872 PR tree-optimization/23929
3873 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
3876 PR tree-optimization/23818
3877 * tree-stdarg.c (execute_optimize_stdarg): Call
3878 calculate_dominance_info.
3880 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
3882 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
3883 (analyze_siv_subscript_cst_affine): Add weak SIV test.
3884 (compute_overlap_steps_for_affine_1_2): Use
3885 get_number_of_iters_for_loop.
3886 (analyze_subscript_affine_affine): Check whether difference is
3888 Use get_number_of_iters_for_loop.
3889 Check whether overlap occurs outside of bounds.
3890 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
3892 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
3894 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
3895 base register if possible.
3897 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
3899 PR tree-optimization/18463
3900 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
3901 converting it directly is not possible.
3902 (chrec_convert_aggressive): New function.
3903 * tree-chrec.h (chrec_convert_aggressive): Declare.
3904 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
3905 Fold chrec conversions aggressively if asked to.
3906 (instantiate_parameters): Modified because of changes in
3907 instantiate_parameters_1.
3909 2005-09-19 Richard Henderson <rth@redhat.com>
3911 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
3912 (reduc_splus_v2df): New.
3914 2005-09-19 Richard Sandiford <richard@codesourcery.com>
3916 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
3917 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
3919 2005-09-19 Richard Henderson <rth@redhat.com>
3921 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
3924 2005-09-19 Richard Henderson <rth@redhat.com>
3926 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
3927 (ia64_expand_dot_prod_v8qi): New.
3928 * config/ia64/ia64-protos.h: Update.
3929 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
3930 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
3931 sdot_prodv8qi, sdot_prodv4hi): New.
3932 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
3934 2005-09-19 Richard Henderson <rth@redhat.com>
3937 * real.c (exact_real_truncate): Return false if the format cannot
3938 represent the number as a normal.
3940 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
3941 for a memory source.
3943 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
3945 * tree-ssa-operands.c (swap_tree_operands): Export.
3946 * tree.h (swap_tree_operands): Declare.
3947 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
3948 Call swap_tree_operands.
3950 2005-09-19 Richard Henderson <rth@redhat.com>
3952 * tree-flow.h (merge_alias_info): Declare.
3953 * tree-ssa-copy.c (merge_alias_info): Export.
3954 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
3955 (vect_create_data_ref_ptr): Use create_iv directly.
3956 (vectorizable_load): Use correct types for integer constants.
3957 (vect_generate_tmps_on_preheader): Likewise.
3958 (vect_gen_niters_for_prolog_loop): Likewise.
3960 2005-09-19 Steven Bosscher <stevenb@suse.de>
3962 PR rtl-optimization/23943
3963 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
3965 2005-09-18 Jan Hubicka <jh@suse.cz>
3967 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
3969 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
3971 * varasm.c (output_constant): Do not abort on conversions to union
3972 types between different sizes.
3974 2005-09-18 Richard Guenther <rguenther@suse.de>
3977 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
3980 2005-09-18 Paul Brook <paul@codesourcery.com>
3982 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
3984 2005-09-17 Richard Henderson <rth@redhat.com>
3986 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
3987 * tree-ssa-loop.c (pass_vect_dce): Remove.
3988 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
3991 2005-09-17 Richard Henderson <rth@redhat.com>
3993 * tree-pass.h (pass_vect_dce): Declare.
3994 * passes.c (init_optimization_passes): Add it.
3995 * tree-flow.h (tree_ssa_dce): Declare.
3996 * tree-ssa-dce.c (tree_ssa_dce): Export.
3997 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
3998 (gate_tree_vectorize): ... here.
3999 (pass_vect_dce): New.
4001 2005-09-17 Jan Hubicka <jh@suse.cz>
4003 * except.c (struct eh_status): Turn region_array into vec.
4004 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
4005 convert_from_eh_region_ranges, find_exception_handler_labels,
4006 current_function_has_exception_handlers, assign_filter_values,
4007 build_post_landing_pads, dw2_build_landing_pads,
4008 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
4009 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
4010 foreach_reachable_handler, can_throw_internal_1,
4011 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
4013 (duplicate_eh_region_1): Update region_array.
4014 (duplicate_eh_regions): Resize region_array and avoid recomputing.
4016 2005-09-17 David Edelsohn <edelsohn@gnu.org>
4019 * expmed.c (expand_mult): Substitute simple register for op0 when
4022 2005-09-17 Richard Henderson <rth@redhat.com>
4024 * expr.c (emit_move_via_integer): Add force argument, pass it on
4025 to emit_move_change_mode. Update callers.
4026 (emit_move_complex): Pass true to new force argument.
4027 * function.c (expand_function_end): Move expand_eh_return call
4028 earlier. Merge sub-word complex values into a pseudo before
4029 copying to the return hard register.
4031 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
4033 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
4034 between different sizes.
4036 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
4040 * passes.c (init_optimization_passes): Register dump files for
4043 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
4045 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
4046 * config/s390/s390.c (s390_overlap_p): New function.
4047 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
4048 peephole2, "*xc" peephole2): Added overlap check to the peephole2
4051 2005-09-16 Richard Guenther <rguenther@suse.de>
4053 * ipa-pure-const.c (static_execute): Free auxiliar information.
4054 * ipa-type-escape.c (discover_unique_type): Free temporary key.
4055 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
4057 2005-09-15 DJ Delorie <dj@redhat.com>
4059 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
4061 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
4063 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
4065 (swap_commutative_operands_with_target): New.
4067 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
4069 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
4072 (estimate_iters_using_array): New function.
4073 * tree-data-ref.h (estimate_iters_using_array): Prototype
4074 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
4075 Use estimate_iters_using_array instead of analyze_array.
4077 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
4079 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
4082 2005-09-15 Michael Matz <matz@suse.de>
4084 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
4086 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
4088 PR tree-optimization/23835
4089 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
4090 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
4092 2005-09-14 Richard Henderson <rth@redhat.com>
4094 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
4095 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
4097 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
4099 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
4100 in the ARRAY_TYPE case.
4102 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
4104 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
4106 2005-09-14 Uros Bizjak <uros@kss-loka.si>
4109 * tree-vect-transform.c (vectorizable_operation): Return false for
4110 scalar shift operations and for vector shift operations with
4111 non-invariant shift arguments. Use scalar tree operand op1 as
4112 a shift operand when vector shift insn pattern uses scalar shift
4114 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
4116 2005-09-14 Olivier Hainque <hainque@adacore.com>
4118 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
4119 value if it has side-effects.
4121 2005-09-14 David Edelsohn <edelsohn@gnu.org>
4124 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
4126 2005-09-14 Alan Modra <amodra@bigpond.net.au>
4128 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
4129 passed as NAME as if it were label at start of function code.
4131 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
4133 * config/sh/sh.md (*movv4sf_i): Add general register cases to
4136 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
4138 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
4139 as early clobber. Rewrite so the PIC register is not implicitly used.
4141 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4143 * tree.c (annotate_with_file_line): Compare line numbers before
4146 2005-09-13 Uros Bizjak <uros@kss-loka.si>
4149 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
4150 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
4152 2005-09-13 Ian Lance Taylor <ian@airs.com>
4154 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
4155 than a HOST_WIDEST_INT to gen_doloop_begin.
4157 2005-09-13 Diego Novillo <dnovillo@redhat.com>
4159 * tree-dfa.c (dump_variable): Guard against NULL annotations.
4161 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
4163 PR tree-optimize/23817
4164 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
4166 2005-09-13 Alan Modra <amodra@bigpond.net.au>
4169 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
4170 word before changing the stack pointer. Use gen_frame_mem for MEMs.
4171 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
4172 (restore_stack_nonlocal): Likewise.
4173 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
4175 2005-09-12 Ian Lance Taylor <ian@airs.com>
4178 * c.opt (ffriend-injection): New C++ option.
4179 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
4180 (C++ Dialect Options): Document -ffriend-injection.
4182 2005-09-12 Josh Conner <jconner@apple.com>
4185 * ipa-reference.c (static_execute): Don't mark variables in
4186 named sections TREE_READONLY.
4188 2005-09-12 Alan Modra <amodra@bigpond.net.au>
4190 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
4193 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
4195 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
4196 V_MUST_DEF instead of just the first_use_p.
4197 Don't mark the virtual variables for renaming on the statement which
4199 (pass_dse): Remove TODO_update_ssa.
4201 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
4204 * stor-layout.c (compute_record_mode): For records with a single
4205 field, actually check the field's mode size against the type size.
4207 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
4208 registers for TARGET_SHMEDIA.
4209 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
4210 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
4211 of GENERAL_REGS and FP_REGS.
4213 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
4215 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
4217 2005-09-12 Alan Modra <amodra@bigpond.net.au>
4219 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
4220 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
4221 are omitted. Exclude stack_tie insn too.
4223 2005-09-11 David Edelsohn <edelsohn@gnu.org>
4225 PR rtl-optimization/23098
4226 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
4228 * config/rs6000/rs6000.md (movdf splitter): Use
4229 const_double_operand predicate for TARGET_POWERPC64.
4230 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
4231 SYMBOL_REF method to ABI_V4.
4233 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
4234 replace_equiv_address.
4235 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
4236 rs6000_sr_alias_set and MEM_NOTRAP.
4237 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
4239 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
4241 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
4242 handle CALL_EXPR again.
4244 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
4246 * arm/predicates.md (alignable_memory_operand): Delete.
4248 2005-09-10 Richard Henderson <rth@redhat.com>
4251 * dbxout.c (dbxout_expand_expr): New.
4252 (dbxout_symbol): Use it.
4254 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
4256 * arm.c (arm_gen_rotated_half_load): Delete.
4257 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
4258 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
4259 (thumb_set_return_address): Likewise.
4260 (thumb_load_double_from_address): Use adjust_address.
4261 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
4262 (extendhsisi2_mem, movhi_bytes): Use change_address.
4263 (movhi): Use widen_memory_access.
4264 (reload_out_df): Use replace_equiv_address.
4265 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
4267 2005-09-09 Richard Henderson <rth@redhat.com>
4270 * dbxout.c: Include expr.h.
4271 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
4272 (dbxout_symbol): Handle DECL_VALUE_EXPR.
4273 * Makefile.in (dbxout.o): Add EXPR_H.
4275 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
4277 PR tree-optimization/23509
4278 * tree-cfg.c (replace_uses_by): Use replace_exp.
4279 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
4280 pointers have name_mem_tag or type_mem_tag set.
4282 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
4284 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
4285 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
4286 of wrongly accessing operands.
4288 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
4290 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
4291 * tree-chrec.c: Include tree-scalar-evolution.h.
4292 (chrec_convert): Instantiate the base and step before calling
4293 scev_probably_wraps_p that would fail on parametric evolutions.
4294 Collect all the fails into a single section failed_to_convert,
4295 print a diagnostic, and return chrec_dont_know instead of calling
4297 * tree-scalar-evolution.c (loop_closed_phi_def): New.
4298 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
4300 (scev_const_prop): Don't replace the definition of a loop closed ssa
4301 phi node by itself, or by another loop closed ssa phi node.
4302 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
4303 that base and step are defined.
4305 2005-09-09 Richard Guenther <rguenther@suse.de>
4308 * fold-const.c (fold_ternary): Check truth_value_p before
4309 calling invert_truthvalue.
4311 2005-09-09 Nick Clifton <nickc@redhat.com>
4313 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
4314 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
4315 dimension of these arrays.
4316 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
4318 * longlong.h: Only provide a prototype for the __clz_tab[] array
4319 if this header has not been included from libgcc2.h.
4320 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
4322 Provide prototypes for exported functions.
4323 Use the __clz_tab[] and __popcount_tab[] arrays provided by
4326 2005-09-08 Josh Conner <jconner@apple.com>
4330 * expr.c (expand_expr_addr_expr_1): Don't invoke
4331 expand_simple_binop for EXPAND_INITIALIZER.
4333 2005-09-08 Richard Henderson <rth@redhat.com>
4336 * toplev.c (wrapup_global_declaration_1): Split out ...
4337 (wrapup_global_declaration_2): ... from ...
4338 (wrapup_global_declarations): ... here. Return bool.
4339 (check_global_declaration_1): Split out ...
4340 (check_global_declarations): from here.
4341 (emit_debug_global_declarations): New.
4342 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
4343 check_global_declaration_1, emit_debug_global_declarations): Declare.
4344 * c-decl.c (c_write_global_declarations_1): Don't create a vector
4345 of decls. Call wrapup_global_declaration_1,
4346 wrapup_global_declaration_2, check_global_declaration_1 directly.
4347 (c_write_global_declarations_2): New.
4349 (c_write_global_declarations): Call c_write_global_declarations_2.
4350 * langhooks.c (write_global_declarations): Call
4351 emit_debug_global_declarations.
4353 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
4354 remove decls that have DECL_RTL_SET_P.
4355 * passes.c (rest_of_decl_compilation): Invoke
4356 cgraph_varpool_finalize_decl for all but functions.
4358 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
4360 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
4361 the result of a conversion if the new min and max cannot be compared.
4363 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
4365 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
4366 (override_options): Setting s390_sr_alias_set removed.
4367 (save_fpr, save_gprs): Set alias set to vararg or frame.
4368 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
4369 s390_sr_alias_set with get_frame_alias_set ().
4370 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
4371 get_varargs_alias_set ().
4373 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
4377 * c-parser.c (c_parser_objc_method_definition): If the next
4378 token is not "{", error out and don't start the function.
4380 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
4382 * tree-vrp.c (extract_range_from_expr): Move the check for non
4383 nullness after the check for gimple invariant.
4385 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4387 * tree.c (host_integerp, tree_low_cst): Correct function comment.
4389 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4392 * config/m32r.md (movmemsi_internal): Canonicalize order of
4393 operands in PLUS component of template.
4395 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
4397 * reload1.c (fixup_eh_region_note): Remove assertion.
4398 (fixup_abnormal_edges): Reverted removal of call to
4399 find_many_sub_basic_blocks made on 2005-08-31.
4401 2005-09-07 Richard Henderson <rth@redhat.com>
4403 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
4404 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
4405 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
4406 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
4407 rearrange for better packing.
4408 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
4409 (lookup_cfa_1): Remove inline marker.
4410 (cfa_equal_p): Split out of ...
4411 (def_cfa_1): ... here. Use INVALID_REGNUM.
4412 (build_cfa_loc): Handle !cfa->indirect.
4413 (frame_pointer_cfa_offset): New.
4414 (dbx_reg_number): Assert register elimination performed; do
4415 leaf register remapping.
4416 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
4417 (eliminate_reg_to_offset): New.
4418 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
4419 for verifiably local stack frame addresses; re-base to CFA.
4420 (mem_loc_descriptor): Remove can_use_fbreg argument.
4421 (concat_loc_descriptor, loc_descriptor): Likewise.
4422 (containing_function_has_frame_base): Remove.
4423 (rtl_for_decl_location): Don't do register elimination or
4424 leaf register remapping here.
4425 (secname_for_decl): Split out from ..
4426 (add_location_or_const_value_attribute): ... here.
4427 (convert_cfa_to_loc_list): New.
4428 (compute_frame_pointer_to_cfa_displacement): New.
4429 (gen_subprogram_die): Use them.
4430 * tree.h (frame_base_decl): Remove.
4431 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
4432 (prologue_stack_adjust): Remove.
4433 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
4434 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
4435 (set_frame_base_location): Remove.
4436 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
4437 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
4438 (vt_add_function_parameters): Don't eliminate_regs.
4439 (vt_initialize): Don't create frame_base_decl.
4441 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4443 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
4444 version of GNU binutils for 4.x and later.
4446 2005-09-06 Mark Mitchell <mark@codesourcery.com>
4448 * ggc-page.c (ggc_push_context): Remove.
4449 (ggc_pop_context): Likewise.
4450 * ggc.h (ggc_push_context): Remove.
4451 (ggc_pop_context): Likewise.
4453 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
4456 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
4457 returning from an interrupt handler.
4459 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
4462 * config/arc/arc.c (output_shift): Add check for loop count when
4465 2005-09-06 Steven Bosscher <stevenb@suse.de>
4467 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
4469 (abs_replacement): Likewise.
4470 (pass_phiopt): Remove TODO_update_ssa.
4472 2005-09-06 Jakub Jelinek <jakub@redhat.com>
4475 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
4476 if "return with no value, in function returning non-void" warning
4478 * tree-cfg.c (execute_warn_function_return): Don't look at
4479 RETURN_EXPRs with TREE_NO_WARNING set.
4482 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
4483 for internal functions doesn't use registers used by global registers
4484 variables. Use fewer register parameters if there are global register
4487 2005-09-06 Olivier Hainque <hainque@adacore.com>
4488 Eric Botcazou <ebotcazou@adacore.com>
4491 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
4492 when we would be extracting outside its bit span (bitpos+bitsize
4493 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
4494 Ada unchecked conversions.
4496 2005-09-06 Steven Bosscher <stevenb@suse.de>
4498 * tree-ssa-pre.c (try_look_through_load): New function.
4499 (compute_avail): Use it to try to look through loads for some
4500 more useful expressions.
4502 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
4504 * simplify-rtx.c (simplify_binary_operation_1): Correct the
4505 condition for detecting cases like (a&a) and (a^a).
4507 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
4509 * common.opt: Add option ftree-vect-loop-version.
4510 * params.def: Add --param vect-max-version-checks.
4511 * doc/invoke.texi: Document ftree-vect-loop-version and
4512 --param vect-max-version-checks.
4513 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
4514 may_misalign_stmts and defines for accessors.
4515 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
4516 LOOP_VINFO_MAY_MISALIGN_STMTS.
4517 (destroy_loop_vec_info): VEC_free for
4518 LOOP_VINFO_MAY_MISALIGN_STMTS.
4519 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
4520 Update documentation.
4521 (vect_update_misalignment_for_peel): New.
4522 (vect_enhance_data_refs_alignment): Update to choose loop
4523 peeling or loop versioning if appropriate for the (potentially)
4524 unaligned data references in the loop.
4525 (vect_analyze_data_refs_alignment): Remove call to
4526 vect_enhance_data_refs_alignment so the checks can be done
4528 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
4529 and move up call to vect_analyze_data_refs_alignment.
4530 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
4531 (vect_transform_loop): Add call to loop_version.
4533 2005-09-06 Jakub Jelinek <jakub@redhat.com>
4535 PR rtl-optimization/23098
4536 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
4537 * simplify-rtx.c (constant_pool_reference_p): New function.
4538 * rtl.h (constant_pool_reference_p): New prototype.
4539 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
4540 constant_pool_reference_p in condition and
4541 avoid_constant_pool_reference in preparation statements.
4543 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
4545 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
4546 STRICT_LOW_PART SETs.
4548 2005-09-06 Alan Modra <amodra@bigpond.net.au>
4551 * except.c (sjlj_emit_function_enter): Find the function begin
4552 note even when it's not in first basic block.
4554 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
4556 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
4557 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
4558 * aclocal.m4: Regenerate.
4560 2005-09-05 DJ Delorie <dj@redhat.com>
4562 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
4565 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
4567 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
4568 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
4569 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
4570 Follow spelling conventions.
4571 * doc/invoke.texi: Follow spelling conventions.
4573 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
4575 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
4576 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
4577 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
4579 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
4582 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
4583 (output_stack_adjust): Use gen_tmp_stack_mem.
4584 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
4585 (sh_set_return_address, sh_allocate_initial_value): Likewise.
4586 (sh_get_pr_initial_val): Likewise.
4587 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
4588 (sh_initialize_trampoline): Likewise. Also use adjust_address.
4589 * sh.md (divsi_inv_m0): Use gen_const_mem.
4590 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
4591 (movdf_i4+1): Use gen_tmp_stack_mem.
4592 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
4593 (fpu_switch+2): Likewise.
4594 (movv4sf_i, movv16sf_i): Use adjust_address.
4595 (symGOT_load): Set MEM_NOTRAP_P bit.
4597 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4600 * pa.c (emit_move_sequence): Fix typo in last change.
4602 2005-09-03 Jakub Jelinek <jakub@redhat.com>
4604 PR rtl-optimization/23454
4605 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
4608 2005-09-03 Richard Henderson <rth@redhat.com>
4609 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4612 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
4615 2005-09-02 Nicolas Pitre <nico@cam.org>
4617 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
4618 to bit_count to 32 bits.
4620 2005-08-31 Mark Mitchell <mark@codesourcery.com>
4623 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
4624 generating synthetic loads from volatile lvalues.
4626 005-09-02 Nick Clifton <nickc@redhat.com>
4628 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
4629 __ctzhi2, __clzhi2): New functions.
4631 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
4634 * tree-nested.c (struct var_map_elt): Mark with GTY.
4635 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
4637 (lookup_field_for_decl): Allocate new element in GC memory.
4638 (lookup_tramp_for_decl): Likewise.
4639 (convert_nl_goto_reference): Likewise
4640 (create_nesting_tree): Allocate info in GC memory. Likewise for
4642 (free_nesting_tree): Free with ggc_free instead of free.
4643 (root): New static variable.
4644 (lower_nested_functions): Remove root as local variable. And zero out
4645 root at the end of the function.
4647 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
4649 PR rtl-optimization/20365
4650 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
4651 to short. New member ix.
4652 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
4653 (simplify_plus_minus): Initialize ix members before calling qsort.
4655 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
4657 PR tree-optimization/23626
4658 * tree-cfg.c (replace_uses_by): Clean up eh info.
4660 2005-09-01 DJ Delorie <dj@redhat.com>
4662 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
4665 2005-09-01 David Edelsohn <edelsohn@gnu.org>
4667 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
4668 (rs6000_split_multireg_move): Use replace_equiv_address instead of
4671 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
4673 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
4674 do not issue warning for a variable definition following
4677 2005-09-01 Richard Henderson <rth@redhat.com>
4680 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
4681 conversion to CONST_VECTOR.
4683 2005-09-01 Richard Henderson <rth@redhat.com>
4686 * reload1.c (reload_as_needed): Check !CALL_P before calling
4687 fixup_eh_region_note.
4688 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
4690 2005-09-01 DJ Delorie <dj@redhat.com>
4692 * varasm.c (output_constant): Let the target resolve
4693 conversions of addresses to non-default pointer sizes.
4695 2005-09-01 Nicolas Pitre <nico@cam.org>
4697 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
4698 to alow matching ARM pre-indexed addressing mode.
4699 (arm_override_options): Remove now irrelevant comment.
4701 2005-09-01 Phil Edwards <phil@codesourcery.com>
4703 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
4704 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
4705 * config/i386/vxworks.h: Likewise.
4706 * config/i386/t-vxworksae: New file, for VxWorks AE.
4707 * config/i386/vxworksae.h: Likewise.
4709 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
4711 PR tree-optimization/23410
4712 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
4713 sequence is not wrapping during the first step.
4715 2005-09-01 Jakub Jelinek <jakub@redhat.com>
4718 * dwarf2out.c (base_type_die): Compare char_type_node with
4719 TYPE_MAIN_VARIANT (type), not type.
4721 2005-09-01 Richard Guenther <rguenther@suse.de>
4723 PR tree-optimization/15366
4724 * common.opt: Add -finline-functions-called-once.
4725 Put -fearly-inlining in alphabetically ordered place.
4726 * doc/invoke.texi: Document new option.
4727 * ipa-inline.c (cgraph_decide_inlining): Honour
4728 flag_inline_functions_called_once.
4730 2005-09-01 Jakub Jelinek <jakub@redhat.com>
4732 PR rtl-optimization/23478
4733 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
4734 (alloc_qty): Initialize it.
4735 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
4736 (combine_regs): Combine also n_throwing_calls_crossed fields.
4737 (find_free_reg): Don't attempt to caller-save pseudos crossing
4738 calls that might throw.
4739 * global.c (struct allocno): Add throwing_calls_crossed field.
4740 (global_alloc): Revert 2005-08-22 change. Initialize
4741 throwing_calls_crossed.
4742 (find_reg): Don't attempt to caller-save pseudos crossing calls that
4745 2005-09-01 Alan Modra <amodra@bigpond.net.au>
4748 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
4749 (mask64_operand): Reinstate code prior to 2005-06-11 change.
4750 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
4751 (and64_2_operand): Tweak to use predicate.
4752 (and_operand): Adjust for mask_operand changes.
4753 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
4754 (print_operand): Likewise.
4755 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
4756 (mask64_1or2_operand): Delete.
4757 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
4758 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
4759 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
4760 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
4761 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
4762 (rotldi3_internal4): Likewise.
4763 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
4764 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
4765 (ashldi3_internal7): Likewise.
4766 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
4767 (ashldi3_internal, ashldi3_internal9 split): Likewise.
4768 (anddi3 split): Don't match mask64_operand.
4769 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
4770 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
4771 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
4772 't' splitter predicate.
4773 (movdi_internal64 + 2): Revert 2005-06-11 change.
4775 2005-08-31 DJ Delorie <dj@redhat.com>
4777 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
4778 (m32c_asm_integer): Add support for 32 bit pointers.
4780 2005-08-31 Richard Henderson <rth@redhat.com>
4782 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
4783 component-like references for setting MEM_NOTRAP_P.
4785 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
4786 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
4788 2005-08-31 Richard Henderson <rth@redhat.com>
4790 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
4791 into a pseudo before applying gen_lowpart.
4793 2005-08-31 Geoffrey Keating <geoffk@apple.com>
4795 * doc/install.texi (Specific): Update cctools version required
4796 for full functionality.
4797 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
4798 linkers as -macosx_version_min.
4800 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
4803 * sh.c (print_operand, %R and %S): Add handling of floating point
4804 registers, memory, constants and invalid operands.
4806 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
4808 * ipa-pure-const.c: Change dump name.
4810 2005-08-31 Uros Bizjak <uros@kss-loka.si>
4813 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
4814 to "reg_or_0_operand".
4815 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
4817 2005-08-31 Dale Johannesen <dalej@apple.com>
4819 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
4820 loops that count down.
4822 2005-08-31 Richard Henderson <rth@redhat.com>
4825 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
4826 (fixup_eh_region_note): New.
4827 (reload_as_needed): Call it.
4828 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
4829 don't call find_many_sub_basic_blocks; call verify_flow_info.
4830 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
4831 (keep_stack_depressed): Likewise.
4832 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
4834 2005-08-31 Richard Henderson <rth@redhat.com>
4836 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
4839 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
4841 * expr.c (expand_expr_real_1): Compare size of address
4842 mode to target's address mode size in deciding expansion of
4843 the constant address.
4845 2005-08-31 Richard Guenther <rguenther@suse.de>
4848 * expr.c (all_zeros_p): New function.
4849 (expand_expr_real_1): Handle the case of an all-zero
4850 non-addressable constructor separately.
4852 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
4854 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
4855 arguments, adjust all callers.
4856 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
4858 2005-08-30 Richard Henderson <rth@redhat.com>
4861 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
4862 whenever the mode sizes match.
4864 2005-08-31 Alan Modra <amodra@bigpond.net.au>
4866 * calls.c (load_register_parameters): Fix comment typo.
4867 * expr.c (emit_push_insn): Comment formatting.
4869 2005-08-30 Ian Lance Taylor <ian@airs.com>
4871 * config/i386/x-cygwin (host-cygwin): Change dependency from
4872 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
4874 2005-08-29 Geoffrey Keating <geoffk@apple.com>
4876 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
4879 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
4882 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
4883 call to ggc_collect.
4885 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
4888 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
4889 beginning. Remove $(INCLUDES) from all the rules, if following
4890 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
4892 2005-08-29 Jakub Jelinek <jakub@redhat.com>
4895 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
4896 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
4897 not constant, but maxlen is, don't set len to maxlen, rather
4898 set maxlen to len if len is a constant.
4900 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
4902 PR tree-optimization/23475
4903 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
4906 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
4908 Fix PR middle-end/22455
4910 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
4911 Checksum only the parts of the tree that exist for the tree code.
4913 2005-08-28 Dale Johannesen <dalej@apple.com>
4915 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
4917 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
4919 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
4921 2005-08-28 Richard Henderson <rth@redhat.com>
4923 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
4924 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
4927 2005-08-28 Jakub Jelinek <jakub@redhat.com>
4930 * builtins.c (get_memory_rtx): Don't strip nops
4931 in between COMPONENT_REFs.
4933 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
4936 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
4938 (gimplify_modify_expr): Check for zero sized types and gimplify the
4939 rhs and lhs as statements.
4941 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
4944 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
4945 state for return address column of signal frames.
4947 2005-08-27 David Edelsohn <edelsohn@gnu.org>
4950 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
4951 bytes >= 2 not bytes == 2.
4952 (expand_block_move): Same.
4954 2005-08-27 Richard Guenther <rguenther@suse.de>
4957 * config/i386/sse.md (sse2_movsd): Add missing closing
4960 2005-08-27 Paul Brook <paul@codesourcery.com>
4962 * genrecog.c (enum decision_type): Add DT_num_insns.
4963 (struct decision_test): Add u.num_insns.
4964 (add_to_sequence): Add DT_num_insns test.
4965 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
4966 (write_cond, debug_decision_2): Ditto.
4967 (change_state): Assume peep2_next_insn never fails.
4968 Remove "afterward" argument.
4969 (write afterward, write_tree): Update to match.
4970 * recog.c (peep2_current_count): New variable.
4971 (peep2_next_insn): Check it.
4972 (peephole2_optimize): Set peep2_current_count.
4973 * recog.h (peep2_current_count): Declare.
4975 2005-08-26 Josh Conner <jconner@apple.com>
4978 * ipa-pure-const.c (check_tree): Check for volatile-ness
4979 when considering a dereference.
4981 2005-08-27 Jakub Jelinek <jakub@redhat.com>
4983 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
4985 2005-08-26 Jakub Jelinek <jakub@redhat.com>
4987 PR rtl-optimization/23561
4988 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
4989 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
4990 at most LEN bytes long memory fits into the field.
4991 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
4992 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
4993 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
4995 2005-08-26 Richard Henderson <rth@redhat.com>
4998 * loop.c (biased_biv_may_wrap_p): New.
4999 (maybe_eliminate_biv_1): Use it to suppress non-equality
5000 comparison transformations. Delete disabled code.
5002 2005-08-26 Ian Lance Taylor <ian@airs.com>
5004 * combine.c (make_extraction): Avoid reference outside object.
5006 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
5008 * stor-layout.c (finalize_type_size): Restore behaviour for
5009 non-aggregate types to the status quo ante of the patch for
5010 pr 23467. Document why it matters.
5012 2005-08-26 Jakub Jelinek <jakub@redhat.com>
5015 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
5016 array by one element, initialize the BT_LAST element with NULL.
5018 2005-08-26 David Edelsohn <edelsohn@gnu.org>
5020 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
5021 optimizing for size.
5023 (compare_plus_eqsi): Same.
5024 (plus_eqsi_compare): Same.
5025 (neg_eq0<mode>): Same.
5026 (neg_eq<mode>): Same.
5028 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
5031 2005-08-26 Nick Clifton <nickc@redhat.com>
5033 * config/v850/v850.c (ep_memory_operand): Return FALSE if
5034 TARGET_EP is not defined.
5035 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
5036 TARGET_EP is enabled.
5037 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
5038 * config/v850/v850.md (save_all_interrupt): Only use the EP
5039 register if TARGET_EP is defined.
5040 (restore_all_interrupt): Likewise.
5041 * config/v850/lib1funcs.asm: Update functions so that the EP
5042 register is only used if __EP__ is defined.
5044 2005-08-26 David Ung <davidu@mips.com>
5046 * config/mips/mips.c (mips_expand_prologue): Handle case when
5047 generating for MIPS16 and the outgoing argument area is more than
5048 SMALL_OPERAND. Use the frame pointer as temporary to generate the
5051 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
5053 * config/crx/crx.md: Make doloop_end pattern usage controllable
5054 via mloop-nesting=<max-nesting> command line switch. Make sure
5055 the combiner cannot use doloop_end_<mode> in an illegal way.
5056 * config/crx/crx.c: Use regs up to r6 for argument passing.
5057 Refine crx_address_cost (non cst4 displacements are expensive).
5058 * config/crx/crx.opt: Add switch for mloop-nesting=.
5060 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
5062 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
5063 (UNSPEC_MVST): New constant.
5065 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5067 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
5068 Reject operands containing eliminable registers.
5069 * testsuite/gcc.dg/20050825-1.c: New testcase.
5071 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
5072 Jan Hubicka <jh@suse.cz>
5074 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
5076 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
5078 PR tree-optimization/23546
5079 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
5082 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
5084 * params.def (PARAM_MIN_SPEC_PROB): New.
5085 * sched-rgn.c (MIN_PROBABILITY): Delete.
5086 (compute_trg_info): Convert to PARAM_VALUE.
5087 * doc/invoke.texi (param): Document min-spec-prob.
5089 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
5091 * config/darwin.h: define __PIC__
5092 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
5093 TARGET_OS_CPP_BUILTINS macro.
5095 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
5097 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
5100 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
5102 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
5104 * cfghooks.c (duplicate_block): Added position where to place
5105 new block as argument.
5106 * cfghooks.h (duplicate_block): Declaration changed.
5107 * cfglayout.c (copy_bbs): Add argument after. Pass it to
5109 * cfglayout.h (copy_bbs): Declaration changed.
5110 * cfgloop.h (loop_version): Declaration changed.
5111 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
5112 position to copy_bbs.
5113 (loop_version): Pass position to duplicate_loop_to_header_edge.
5114 Add place_after argument and position new blocks according to
5116 * modulo-sched.c (sms_schedule): Pass place_after argument
5118 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
5119 * tree-cfg.c (split_edge_bb_loc): New function.
5120 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
5121 to determine position of new blocks.
5122 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
5124 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
5125 argument to duplicate_block.
5126 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5127 Pass position to copy_bbs.
5129 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
5131 * fold-const.c (ptr_difference_const): Use
5132 cst_and_fits_in_hwi instead of host_integerp.
5134 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
5136 * config/darwin.c (gen_pic_offset): New.
5137 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
5140 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
5142 PR tree-optimization/23486
5143 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
5145 2005-08-23 Phil Edwards <phil@codesourcery.com>
5147 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
5148 remove use_collect2.
5149 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
5151 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
5152 configuration files to override the default value.
5154 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
5155 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
5156 * config/vx-common.h: New file, split out from...
5157 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
5158 * config/vxworksae.h: New file, for VxWorks AE.
5159 * config/vxworks.opt: New file.
5160 * config/vxlib.c: Update for VxWorks 6.
5162 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
5163 other MULTILIB_* variables appropriately.
5164 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
5165 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
5166 * config/rs6000/vxworks.h: Update for VxWorks 6.
5167 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
5169 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
5172 * config/darwin.c (machopic_select_section): Remove the hack to
5173 mark "::operator new" and "::operator delete" for coalescing
5174 even though they are not weak.
5176 2005-08-24 Alan Modra <amodra@bigpond.net.au>
5178 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
5179 * configure: Regenerate.
5181 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
5184 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
5186 * convert.c (convert_to_integer, convert_to_vector): Likewise.
5187 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
5190 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
5192 * config/rs6000/predicates.md (equality_operator): New.
5193 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
5194 comparison with a large constant.
5196 2005-08-23 Mark Mitchell <mark@codesourcery.com>
5198 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
5200 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
5202 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
5203 registers is even, and we have a hardware double precision fp,
5205 (sh_gimplify_va_arg_expr): For floating point arguments, consider
5206 size of current argument when checking if argument was passed in
5209 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
5212 * stor-layout.c (finalize_type_size): Dont override
5213 existing alignment with a smaller alignment from the mode.
5215 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
5217 * lambda-code.c (lambda_vector_lexico_pos): Moved...
5218 * lambda.h (lambda_vector_lexico_pos): ... here.
5219 * tree-data-ref.c (build_classic_dist_vector): Return false when
5220 the distance vector is lexicographically negative.
5222 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
5224 PR tree-optimization/23511
5225 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
5226 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
5228 2005-08-23 Jakub Jelinek <jakub@redhat.com>
5230 PR tree-optimization/22043
5231 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
5232 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
5233 If ALLOW_FLEXARR, handle types ending with flexible array member.
5234 Pass false as second argument to recursive count_type_elements calls.
5235 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
5236 argument to count_type_elements call.
5237 * tree-sra.c (decide_block_copy): Likewise.
5238 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
5239 for a constant-sized object, set cleared as well. Pass true as
5240 second argument to count_type_elements call.
5242 2005-08-23 Alan Modra <amodra@bigpond.net.au>
5245 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
5246 from legitimate_small_data_p, and make global. Update use.
5247 Remove forward declaration.
5248 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
5250 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
5252 2005-08-23 David Edelsohn <edelsohn@gnu.org>
5254 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
5255 of scratch intermediates.
5256 (eq<mode>_compare): Same.
5257 (neg_eq0<mode>): New.
5258 (neg_eq<mode>): Convert to define_insn_and_split.
5260 2005-08-23 Alan Modra <amodra@bigpond.net.au>
5263 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
5264 stdarg functions, set/clear the fp marker even when no variable
5266 * config/rs6000/sysv4.opt (mprototype): Describe.
5268 2005-08-22 Jakub Jelinek <jakub@redhat.com>
5270 PR rtl-optimization/23478
5271 * regs.h (reg_info): Add throw_calls_crossed.
5272 (REG_N_THROWING_CALLS_CROSSED): Define.
5273 * flow.c (allocate_reg_life_data): Initialize
5274 REG_N_THROWING_CALLS_CROSSED.
5275 (propagate_one_insn, attempt_auto_inc): Update
5276 REG_N_THROWING_CALLS_CROSSED.
5277 * global.c (global_alloc): Don't allocate pseudos across
5278 calls that may throw.
5280 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
5283 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
5284 value is inbetween the range if we did not find an exact match.
5286 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
5288 * doc/invoke.texi (Option Summary): Add ms1 options.
5289 * doc/extend.texi: Document interrupt handler attribute for ms1.
5290 * doc/md.texi: Document ms1 constraints.
5291 * config.gcc: Add ms1-*-elf.
5292 * config/ms1/ms1.h: New.
5293 * config/ms1/ms1.c: New.
5294 * config/ms1/ms1.md: New.
5295 * config/ms1/ms1-protos.h: New.
5296 * config/ms1/ABI.txt: New.
5297 * config/ms1/crti.asm: New.
5298 * config/ms1/crtn.asm: New.
5299 * config/ms1/lib2extra-funcs.c: New.
5300 * config/ms1/t-ms1: New.
5301 * config/ms1/ms1.opt: New.
5303 2005-08-22 Ira Rosen <irar@il.ibm.com>
5305 * config/rs6000/altivec.md (xorv4sf3): New.
5306 (negv4sf2, neg<mode>2): Likewise.
5308 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
5311 * config/ia64/ia64.md (divsi3): Check divide by zero.
5312 (udivsi3): Likewise.
5314 (udivdi3): Likewise.
5316 2005-08-21 Jakub Jelinek <jakub@redhat.com>
5318 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
5319 up to elem_bitsize bits, not max_bitsize.
5321 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
5323 PR tree-optimization/23433
5324 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
5325 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
5327 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
5329 PR tree-optimization/23434
5330 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
5331 the iteration bound is not an INTEGER_CST.
5333 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
5335 * tree-vect-transform.c (get_initial_def_for_reduction): Set
5336 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
5337 NULL if need_epilog_adjust is false.
5338 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
5339 Case 3 always peels first itration, not just for PLUS case, and no need
5340 to use scalar_initial_def here. Create an epilog adjustment only if
5341 scalar_initial_def is not NULL.
5343 (vectorizable_reduction): Remove assert.
5345 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
5348 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
5349 (__moddi3): Likewise.
5350 (__udivdi3): Likewise.
5351 (__umoddi3): Likewise.
5352 (__divsi3): Likewise.
5353 (__modsi3): Likewise.
5354 (__udivsi3): Likewise.
5355 (__umodsi3): Likewise.
5357 2005-08-20 Jakub Jelinek <jakub@redhat.com>
5359 * tree-pass.h (TDF_GRAPH): Define.
5360 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
5361 * passes.c (finish_optimization_passes): Only call
5362 finish_graph_dump_file if TDF_GRAPH is set.
5363 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
5364 NULL. Set TDF_GRAPH bit.
5365 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
5367 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
5369 * arm.h (arm_stack_offsets): Add locals_base field.
5370 * arm.c (arm_get_frame_offsets): Compute it.
5371 (thumb_compute_initial_elimination offset): Make the Thumb frame
5372 pointer point to the base of the local variables.
5373 (thumb_expand_prologue): Update accordingly.
5374 (thumb_expand_epilogue): Likewise.
5376 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
5377 mode of clobbered scratch to DImode. Handle a case that's known to
5380 2005-08-19 David Edelsohn <edelsohn@gnu.org>
5382 * config/rs6000/rs6000.md (gt0<mode>): Delete.
5383 (gt0<mode>_compare): Delete.
5384 (neg_gt0<mode>): Delete.
5386 2005-08-19 Eric Christopher <echristo@apple.com>
5388 * optabs.h: Change CTI_ to COI_.
5391 2005-08-19 James E Wilson <wilson@specifix.com>
5393 * builtins.c (expand_builtin_return_addr): Set
5394 current_function_accesses_prior_frames when count != 0. Use
5395 frame_pointer_rtx when count == 0.
5396 * function.h (struct function): Add accesses_prior_frames field.
5397 (current_function_accesses_prior_frames): Define.
5398 * reload1.c (init_elim_table): Check
5399 current_function_accesses_prior_frames.
5400 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
5402 2005-08-19 Diego Novillo <dnovillo@redhat.com>
5404 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
5405 indicator. Return true if the flowgraph changed during
5408 2005-08-19 Diego Novillo <dnovillo@redhat.com>
5411 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
5412 conditional expression before testing its value.
5414 2005-08-19 Diego Novillo <dnovillo@redhat.com>
5416 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
5418 2005-08-19 Devang Patel <dpatel@apple.com>
5420 PR tree-optimization/23048
5421 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
5422 third parameter. Check whether latch is dominated by exit
5424 (if_convertible_loop_p): Supply exit block itself to
5425 if_convertible_bb_p.
5427 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
5430 * arm.md (arm_load_pic_register): Change argument to the mask of
5431 saved registers. Call thumb_find_work_register if we need a
5432 scratch register on Thumb.
5433 (arm_expand_prologue): Pass empty register set to
5434 arm_load_pic_register.
5435 (thumb_expand_prologue): Pass live_regs_mask directly to
5436 arm_load_pic_register.
5437 * arm-protos.h (arm_load_pic_register): Update prototype.
5439 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
5441 * sh.c (find_sole_member): New function.
5442 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
5443 if the record's alignment is larger than the size of its only member.
5445 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
5448 * arm.c (thumb_legitimize_reload_address): New function.
5449 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
5450 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
5452 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
5454 * config/crx/crx.c: Implement crx_decompose_address. Reject
5455 symbolic displacements since CRX register relative adressing
5456 mode can't handle unsigned 32-bit values as displacements.
5457 * config/crx/crx.h: Simplify definitions, remove redundant
5458 parenthesis and obsolete macros.
5459 * config/crx/crx.opt: Add new switch for debugging addresses.
5460 * config/crx/crx-protos.h: Add new declarations for above.
5462 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
5465 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
5468 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5470 * collect2.c (dup2): Delete.
5471 * configure.ac: Don't check for dup2.
5473 * config.in, configure: Regenerate.
5475 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
5477 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
5478 record with the type of its only member.
5480 2005-08-18 David Edelsohn <edelsohn@gnu.org>
5482 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
5483 define_insn_and_split.
5484 (plus_ltu<mode>_compare): Same.
5485 (gtu<mode>_compare): Same.
5486 (plus_gtu<mode>_compare): Same.
5488 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
5490 PR tree-optimization/22228
5491 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
5493 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
5494 are recorded in vect_vnames_to_rename for renaming.
5495 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
5496 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
5497 in vect_vnames_to_rename.
5498 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
5499 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
5501 2005-08-18 Jan Hubicka <jh@suse.cz>
5504 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
5505 info only for local statics, not for member variables.
5507 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5509 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
5511 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5513 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
5515 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
5518 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
5520 2005-08-17 James E Wilson <wilson@specifix.com>
5522 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
5525 2005-08-17 David Edelsohn <edelsohn@gnu.org>
5527 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
5528 (leu<mode>_compare): Same.
5529 (plus_leu<mode>): Same.
5530 (neg_leu<mode>): Same.
5531 (and_neg_leu<mode): Same.
5532 (ltu<mode>_compare): Same.
5533 (plus_ltu<mode>): Same.
5535 (geu<mode>_compare): Same.
5536 (plus_geu<mode>): Same.
5537 (neg_geu<mode>): Same.
5538 (and_neg_geu<mode>): Same.
5539 (plus_gt<mode>): Same.
5540 (gtu<mode>_compare): Same.
5541 (plus_gtu<mode>): Same.
5543 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
5545 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
5546 Move call_table_data to end. Delete spurious .text.
5547 (callt_save_all_interrupt): Fix comment typo.
5549 2005-08-17 James E Wilson <wilson@specifix.com>
5550 Kevin Winchester <winchester@amirix.com>
5553 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
5555 2005-08-17 Uros Bizjak <uros@kss-loka.si>
5558 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
5559 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
5561 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
5563 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
5564 record with the type of its only member if the modes don't match.
5566 * varasm.c (decode_reg_name): Skip empty additional register names.
5568 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
5570 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
5571 lsm_tmp_name_length): New.
5572 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
5573 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
5575 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5576 Andreas Krebbel <krebbel1@de.ibm.com>
5578 * config.gcc: Added z9-109 switch.
5579 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
5580 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
5581 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
5582 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
5583 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
5584 for "z9_109" cpu attribute.
5585 * config/s390/s390.c (z9_109_cost): New processor cost structure.
5586 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
5587 (s390_handle_arch_option): Added z9-109 switch.
5588 (override_options): Set respective cost function for z9-109.
5589 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
5590 (legitimate_reload_constant_p): Accept extended immediates.
5591 (print_operand): Three new output modifiers added: k, m and o.
5592 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
5593 (s390_output_mi_thunk): Use extended immediate when possible.
5594 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
5595 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
5596 (CONSTRAINT_LEN): Added length of O constraint.
5597 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
5598 * config/s390/s390.md ("cpu"): New value z9_109 added.
5599 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
5600 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
5601 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
5602 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
5603 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
5604 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
5605 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
5606 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
5607 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
5608 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
5609 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
5610 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
5611 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
5612 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
5613 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
5615 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
5616 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
5617 insns for TARGET_EXTIMM.
5619 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
5621 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
5623 2005-08-17 Nick Clifton <nickc@redhat.com>
5625 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
5626 Call default_encode_section_info.
5628 2005-08-17 Steven Bosscher <stevenb@suse.de>
5630 PR tree-optimization/21574
5631 * tree-ssa-ccp.c (likely_value): If the right hand side is a
5632 constant, return CONSTANT.
5633 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
5634 (ccp_fold, visit_assignment): Likewise.
5635 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
5637 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
5639 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
5640 fold_buildN instead of buildN then fold_initializer or fold.
5641 (build_unary_op): Likewise.
5642 (build_binary_op): Likewise.
5643 * fold-const.c (fold_initializer): Remove.
5644 (fold_build1_initializer): New function.
5645 (fold_build2_initializer): New function.
5646 (fold_build3_initializer): New function.
5647 * tree.h (fold_initializer): Remove.
5648 (fold_build1_initializer): New function.
5649 (fold_build2_initializer): New function.
5650 (fold_build3_initializer): New function.
5652 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
5654 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
5655 (try_move_mult_to_index): Call fold_build2 instead of build2.
5656 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
5657 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
5658 fold_binary_to_constant.
5659 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
5661 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
5662 check if A == gcd (A, B). Remove TYPE argument.
5663 (analyze_offset) Use fold_build2 instead of fold (build.
5664 (create_data_ref): Likewise.
5665 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
5666 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
5669 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
5671 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
5672 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
5674 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
5677 * gimplify.c (zero_sized_type): New function.
5678 (gimplify_modify_expr_rhs): If we have a zero sized type,
5679 replace the statement with an empty statement.
5681 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
5683 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
5686 2005-08-16 Ian Lance Taylor <ian@airs.com>
5688 * doc/tm.texi (Label Output): Correct typo.
5690 2005-08-16 Steven Bosscher <stevenb@suse.de>
5693 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
5694 force_operand will work later on using have_insn_for.
5696 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5698 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
5700 2005-08-16 Ian Lance Taylor <ian@airs.com>
5703 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
5704 vector type, don't try to construct it element by element. Add an
5705 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
5707 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5709 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
5711 2005-08-16 Geoffrey Keating <geoffk@apple.com>
5713 * doc/invoke.texi (Precompiled Headers): Document some more options
5714 which are known to be safe.
5716 2005-08-16 James E Wilson <wilson@specifix.com>
5718 PR tree-optimization/21105
5719 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
5720 TREE_OVERFLOW check.
5722 2005-08-16 David Edelsohn <edelsohn@gnu.org>
5724 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
5725 (neg_ltu<mode>): Same.
5727 (neg_gtu<mode>): Same.
5729 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5731 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
5732 (fold_builtin_isdigit): Use fold_buildN.
5733 (build_function_call_expr): Likewise.
5734 * c-typeck.c (c_finish_loop): Likewise.
5736 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
5737 Richard Shann <rshann@superh.com>
5739 PR middle-end/20396:
5740 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
5742 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
5744 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
5746 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
5749 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
5750 arm_compure_save_reg0_reg12_mask to determine when the PIC register
5753 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5756 * fold-const.c (build_range_check): Disable optimization for function
5757 pointer expressions on targets that require function pointer
5760 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
5762 * simplify-rtx.c (simplify_const_relational_operation): When
5763 extracting arguments of a COMPARE, recompute the mode as well.
5765 2005-08-15 Ian Lance Taylor <ian@airs.com>
5767 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
5769 2005-08-15 DJ Delorie <dj@redhat.com>
5771 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
5773 (movsi_splittable): Allow, but split, moves to the stack.
5774 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
5777 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5779 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
5780 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
5781 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
5783 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
5784 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
5785 Delete HOST_PTR_PRINTF.
5787 * configure, config.in: Regenerate.
5789 2005-08-15 David Edelsohn <edelsohn@gnu.org>
5791 * config/rs6000/rs6000.md (QHSI): New mode macro.
5792 (wd): Extend mode attr for QImode and HImode
5793 (dbits): New mode attr.
5794 (zero_extend<mode>di2): Convert to mode macro.
5796 2005-08-15 Steve Ellcey <sje@cup.hp.com>
5799 * doc/invoke.texi (-mgnu-ld): Update description.
5802 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
5805 * Makefile.in (tree-chrec.o): Depends on real.h.
5806 * tree-chrec.c: Include real.h.
5807 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
5808 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
5809 * tree-scalar-evolution.c (add_to_evolution_1,
5810 interpret_rhs_modify_expr): Ditto.
5812 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
5815 * tree-data-ref.c (estimate_niter_from_size_of_data): When
5816 step is negative compute the estimation from init downwards to zero.
5818 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
5820 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
5822 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
5824 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
5826 (legitimate_reload_constant_p): Fix handling of lliXX operands.
5827 Accept double-word constants that can be split.
5828 * config/s390/s390.md ("movti"): Use 'P' constraint.
5829 ("*movdi_31", "*movdf_31"): Likewise.
5831 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
5833 Fix PR tree-optimization/22615
5835 * tree-ssa-structalias.c (solution_set_add): Handle
5836 first_vi_for_offset returning NULL.
5837 (do_da_constraint): Ditto.
5838 (do_sd_constraint): Ditto.
5839 (do_ds_constraint): Ditto
5840 (find_func_aliases): Ditto.
5841 (build_constraint_graph): RHS is allowed be ANYTHING.
5842 (first_vi_for_offset): Return NULL if we couldn't find anything at
5845 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
5847 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
5848 over memory as first operand.
5850 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
5853 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
5854 available for setting it.
5856 2005-08-14 Ira Rosen <irar@il.ibm.com>
5858 PR tree-optimization/23320
5859 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
5860 data-refs' types instead of base object nullness. Add check for
5861 pointer type data-refs before first location comparison. Remove
5864 2005-08-14 Andreas Schwab <schwab@suse.de>
5866 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
5868 2005-08-13 James E Wilson <wilson@specifix.com>
5870 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
5871 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
5872 -fstack-protector-all, --param ssp-buffer-size): Document.
5873 (-Wvariadic-macros): Alphabetize.
5874 (-fsched-stalled-insns-dep): Add missing 'f'.
5876 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
5879 2005-08-13 David Edelsohn <edelsohn@gnu.org>
5881 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
5882 or indirect address operand.
5883 (EXTRA_ADDRESS_CONSTRAINT): New.
5884 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
5886 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
5888 PR tree-optimization/22236
5889 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
5890 successors and predecessors.
5891 * tree-chrec.c (chrec_convert): Before converting, check that
5892 sequences don't wrap.
5893 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
5894 (analyze_array): Extern.
5895 (find_data_references_in_loop): Remove call to
5896 compute_estimated_nb_iterations.
5897 * tree-data-ref.h (analyze_array): Declared.
5898 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
5899 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
5900 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
5901 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
5903 * tree-ssa-loop-ivcanon.c: Fix documentation.
5904 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
5905 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
5906 (infer_loop_bounds_from_undefined): New.
5907 (estimate_numbers_of_iterations_loop): Use
5908 infer_loop_bounds_from_undefined.
5909 (used_in_pointer_arithmetic_p): New.
5910 (scev_probably_wraps_p): Pass an extra parameter. Call
5911 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
5912 (convert_step): Fix documentation.
5913 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
5914 Use initial_condition_in_loop_num and evolution_part_in_loop_num
5915 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
5916 scev_probably_wraps_p.
5918 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
5920 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
5921 (s390_register_info): Ignore clobbered_regs information for fixed
5922 registers, and only fixed registers.
5923 (s390_init_frame_layout): Remove redundant call.
5925 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
5927 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
5928 description of -Wold-style-casts.
5930 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
5931 Jakub Jelinek <jakub@redhat.com>
5933 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5934 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
5935 * config/s390/s390.c (print_operand): New output modifier 'G' added.
5936 (get_thread_pointer): Renamed to s390_get_thread_pointer.
5937 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
5938 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
5939 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
5940 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
5941 ("stack_protect_set", "stack_protect_test"): New expanders.
5942 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
5943 "stack_protect_testdi"): New insn definitions.
5945 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
5947 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
5949 2005-08-12 Paul Brook <paul@codesourcery.com>
5951 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
5953 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
5955 * config/s390/predicates.md (setmem_operand): New predicate.
5956 (shift_count_operand): Accept ANDs with special constants as
5958 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
5959 with special constants.
5960 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
5961 shift_count_operand with setmem_operand.
5963 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
5965 * config/s390/s390.c (s390_extract_part, s390_single_part):
5967 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
5968 (s390_output_mi_thunk): Don't use lg on 31 bit.
5969 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
5970 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
5972 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
5974 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
5975 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
5976 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
5977 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
5978 with one of the new macros.
5980 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
5982 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
5983 Don't set save_return_addr_p.
5984 (s390_register_info): Make clobbered_regs not depending on
5987 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
5989 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
5990 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
5992 2005-08-11 James E. Wilson <wilson@specifix.com>
5994 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
5996 2005-08-11 Jakub Jelinek <jakub@redhat.com>
5998 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
5999 locations gathered by var-tracking in single entry loc_list
6000 over loc_descriptor_from_tree.
6002 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
6003 pass it down to loc_descriptor.
6004 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
6005 (containing_function_has_frame_base): Move earlier in the file.
6006 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
6007 instead of always assuming fbreg can't be used.
6009 2005-08-11 David Edelsohn <edelsohn@gnu.org>
6011 * config/rs6000/altivec.md: Change constraint "m" to "Z".
6012 * config/rs6000/predicates.md (indexed_or_indirect_operand):
6013 Accept address wrapped in AND for Altivec.
6014 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
6015 Strip AND wrapping offset address for Altivec.
6017 2005-08-11 Richard Henderson <rth@redhat.com>
6020 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
6021 before using TYPE_IS_SIZETYPE.
6023 2005-08-11 Richard Henderson <rth@redhat.com>
6026 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
6027 insn types not present on ev4.
6028 (alphaev5_insn_pipe): Similarly.
6030 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
6033 * arm.c (arm_override_options): If the user has selected callee-super-
6034 interworking, then enable normal interworking.
6036 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6038 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
6041 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
6043 * doc/rtl.texi: Fix two typos.
6045 2005-08-11 Richard Guenther <rguenther@suse.de>
6048 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
6049 cases where we call to/from functions returning void.
6051 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
6054 * tree.c (build_pointer_type_for_mode): Robustify.
6056 2005-08-10 James E Wilson <wilson@specifix.com>
6058 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
6059 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
6061 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
6064 2005-08-10 Eric Christopher <echristo@apple.com>
6066 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
6067 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
6070 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
6073 * config/darwin.c (machopic_indirect_data_reference): Use a new register
6074 for the high part when generating dynamic-no-pic code.
6076 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
6078 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
6079 (x86_64-*-linux*): Likewise.
6081 * config/i386/crtfastmath.c: New file.
6082 * config/i386/t-crtfm: Likewise.
6084 * config/i386/linux.h (ENDFILE_SPEC): New.
6085 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
6087 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
6090 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
6092 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
6093 (vec_shl, vec_shr): Document new operations.
6094 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
6096 2005-08-10 David Edelsohn <edelsohn@gnu.org>
6098 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
6099 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
6100 change predicate to indexed_or_indirect_address.
6102 2005-08-10 Richard Sandiford <richard@codesourcery.com>
6104 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
6105 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
6106 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
6107 and __aeabi_uwrite8.
6108 * config/arm/unaligned-funcs.c: New file.
6109 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
6111 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
6113 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
6115 * cfglayout.c (pass_insn_locators_initialize): Add dump.
6116 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
6118 * except.c (pass_convert_to_eh_region_ranges): Add dump.
6119 * final.c (pass_shorten_branches): Add dump.
6120 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
6121 (pass_life): Rename dump.
6122 (rest_of_handle_flow2): Remove initial verify_flow_info.
6123 * function.c (pass_instantiate_virtual_regs): Add dump.
6124 * integrate.c (pass_initial_value_sets): Add dump.
6125 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
6126 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
6127 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
6128 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
6129 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
6130 gate_rtl_unrool_and_peel_loops): New.
6131 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
6132 rtl_doloop): Do not look at flags.
6133 * mode-switching.c (pass_mode_switching): Add dump.
6134 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
6135 pass_split_before_regstack): Add dump.
6136 * regmove.c (pass_stack_adjustments): Add dump.
6137 * tree-optimize.c (pass_fixup_cfg): Add dump.
6139 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6142 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
6143 deciding which instruction sequence to use.
6145 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
6147 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
6148 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
6150 2005-08-09 Richard Guenther <rguenther@suse.de>
6152 * c-common.c (builtin_function_2): Remove.
6153 (def_builtin_1): New function.
6154 (c_common_nodes_and_builtins): Use def_builtin_1 to
6155 build builtin functions.
6157 2005-08-09 Jie Zhang <jie.zhang@analog.com>
6159 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
6160 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
6161 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
6164 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
6166 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
6167 fold_binary instead of fold_build2 since we don't care about the
6169 (loop_niter_by_eval): Likewise.
6170 (compare_trees): Likewise.
6171 (proved_non_wrapping_p): Likewise.
6173 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
6177 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
6178 if the if is really empty.
6180 2005-08-09 Steven Bosscher <stevenb@suse.de>
6182 PR tree-optimization/23234
6183 * tree-ssa-math-opts.c (place_reciprocal): New enum.
6184 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
6185 argument of the new enum.
6186 (execute_cse_reciprocals): Add reciprocals for function arguments
6187 on the unique successor edge of the entry block. Update other calls
6188 to execute_cse_reciprocals_1.
6190 2005-08-08 Richard Henderson <rth@redhat.com>
6193 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
6195 2005-08-08 Bob Wilson <bob.wilson@acm.org>
6197 * expr.c (write_complex_part): Return after handling MEM.
6199 2005-08-08 Josh Conner <jconner@apple.com>
6201 PR rtl-optimization/23241
6202 * combine.c (simplify_comparison): Fix error in determining
6203 whether to lift a subreg from comparison.
6205 2005-08-08 David Edelsohn <edelsohn@gnu.org>
6208 * config/rs6000/altivec.md (vec_init<mode>): New.
6209 (vec_set<mode>): New.
6210 (vec_extract<mode>): New.
6211 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
6212 (rs6000_expand_vector_set): New.
6213 (rs6000_expand_vector_extract): New.
6214 (rs6000_legitimate_offset_address_p): Offset addresses are valid
6215 for Altivec modes before reload.
6216 (altivec_expand_vec_init_builtin): New.
6217 (get_element_number): New.
6218 (altivec_expand_vec_set_builtin): New.
6219 (altivec_expand_vec_ext_builtin): New.
6220 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
6222 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
6224 * config/rs6000/rs6000.h (rs6000_builtins): Add
6225 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
6226 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
6227 * config/rs6000/rs6000-protos.h: Declare new functions.
6229 2005-08-08 Jan Hubicka <jh@suse.cz>
6231 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
6232 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
6233 * i386.md (movdi*): Use pic_32bit_operand.
6234 * predicates.md (pic_32bit_operand): New.
6236 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
6239 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
6241 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
6243 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
6244 (test_for_singularity): Use fold_build2.
6246 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6248 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
6250 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
6252 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
6253 (COMMON_ASM_OP) Define.
6254 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
6255 (ix86_encode_section_info): Likewise.
6256 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
6257 SUBTARGET_ENCODE_SECTION_INFO.
6259 2005-08-06 Richard Henderson <rth@redhat.com>
6262 * tree-nested.c (convert_local_reference): Save and restore val_only
6263 around component_ref and friends. Clear walk_subtrees by default.
6265 2005-08-06 Peter O'Gorman <peter@pogma.com>
6268 * gcc.c (process_command): Check the argument to -b has a dash.
6269 * doc/invoke.texi: Update -b and -V docs.
6271 2005-08-06 James E Wilson <wilson@specifix.com>
6273 * config/mips/cross64.h, config/mips/t-cross64: Delete.
6275 2005-08-06 Michael Matz <matz@suse.de>
6277 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
6278 member only if only one insn is associated with the value.
6280 2005-08-06 Nick Clifton <nickc@redhat.com>
6282 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
6284 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
6285 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
6286 Check symbol flags instead of symbol name mangling.
6287 (xstormy16_asm_output_aligned_common): Likewise. Also
6288 simplify code since the bss100_section cass is the only case
6289 where the below100 code will be triggered.
6290 (xstormy16_encode_section_info): Encode below100 attribute
6291 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
6293 (xstormy16_strip_name_encoding): Delete - this function is no
6295 (TARGET_STRIP_NAME_ENCODING): Undefine.
6296 * config/stormy16/stormy16-protos.h: Delete prototype for
6297 xstormy16_strip_name_encoding.
6299 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
6301 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
6302 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
6303 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
6304 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
6305 config/alpha/predicates.md, config/arc/arc.h,
6306 config/arm/arm.h, config/arm/ieee754-df.S,
6307 config/arm/ieee754-sf.S, config/bfin/bfin.c,
6308 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
6309 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
6310 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
6311 config/m68hc11/m68hc11.h, config/mips/mips.c,
6312 config/mips/mips.h, config/mips/openbsd.h,
6313 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
6314 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
6315 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
6316 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
6317 config/sparc/linux.h, config/sparc/linux64.h,
6318 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
6319 doc/extend.texi, doc/gcov.texi, doc/install.texi,
6320 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
6321 typos. Follow spelling conventions.
6323 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
6326 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
6327 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
6328 specially. Check for side effects only for COND_EXPR.
6329 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
6330 return with TREE_NO_WARNING.
6332 2005-08-06 Richard Sandiford <richard@codesourcery.com>
6334 PR rtl-optimization/23233
6335 * loop.c (combine_movables): Require the modes to be the same.
6336 (move_movables): Remove handling of cases where the replacement
6337 had a different mode to the original.
6339 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
6341 PR tree-optimization/23128
6342 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
6343 subtraction wrap, and set TREE_OVERFLOW if they do.
6345 2005-08-05 Richard Henderson <rth@redhat.com>
6348 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
6349 FORCED_LABEL labels.
6351 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
6354 * reload.c (find_reloads_subreg_address): Pass down TYPE
6355 unchanged. Change all callers except find_reloads_toplev.
6357 2005-08-05 Michael Matz <matz@suse.de>
6359 * genattrtab.c (current_alternative_string): Remove.
6360 (SIMPLIFY_ALTERNATIVE): Ditto.
6361 (attr_alt_bit_p): Ditto.
6362 (alternative_name): Make const char *.
6363 (evaluate_eq_attr): Remove use of above things.
6364 (simplify_test_exp): Ditto.
6365 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
6366 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
6368 2005-08-04 James E Wilson <wilson@specifix.com>
6370 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
6371 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
6372 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
6373 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
6374 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
6376 2005-08-04 Richard Henderson <rth@redhat.com>
6379 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
6380 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
6381 * tree-sra.c (decide_block_copy): Use it. Disable element copy
6382 if we'd have to instantiate too many members.
6384 2005-08-04 Richard Henderson <rth@redhat.com>
6387 * tree-outof-ssa.c (coalesce_asm_operands): New.
6388 (coalesce_ssa_name): Use it. Split out ...
6389 (coalesce_phi_operands, coalesce_result_decls): ... these.
6391 2005-08-04 Paul Brook <paul@codesourcery.com>
6393 * read-rtl.c (read_quoted_string): Break if EOF.
6395 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
6397 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
6398 (fold_build2): Likewise.
6399 (fold_build3): Likewise.
6400 (fold_build1_stat): New function prototype.
6401 (fold_build2_stat): Likewise.
6402 (fold_build3_stat): Likewise.
6403 * fold-const.c (fold_build1): Rename to ..
6404 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
6405 through to build1_stat.
6406 (fold_build2): Rename to ..
6407 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
6408 through to build2_stat.
6409 (fold_build3): Rename to ..
6410 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
6411 through to build3_stat.
6413 2005-08-04 David Edelsohn <edelsohn@gnu.org>
6414 Ian Lance Taylor <ian@airs.com>
6416 * function.c (assign_stack_local_1): Do not correct stack slot
6417 address if allocation size is smaller than mode size.
6419 2005-08-04 Diego Novillo <dnovillo@redhat.com>
6422 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
6423 (tree_merge_blocks): Propagate anything allowed by
6425 Clarify documentation.
6426 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
6427 SSA form, schedule an update if necessary.
6429 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
6431 * doc/install.texi (Binaries): Remove broken link to
6432 Sinix/Reliant Unix binaries.
6434 2005-08-03 Richard Henderson <rth@redhat.com>
6437 * function.c (stack_protect_epilogue): Export.
6438 * tree.h (stack_protect_epilogue): Declare.
6439 * calls.c (expand_call): Call it.
6441 2005-08-03 Eric Christopher <echristo@apple.com>
6443 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
6444 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
6447 2005-08-04 Jan Hubicka <jh@suse.cz>
6449 * profile.c (branch_prob): Split edges with goto locus on them
6450 to get proper line counts.
6451 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
6453 2005-08-03 Paul Brook <paul@codesourcery.com>
6455 * function.c (assign_parms): Round current_function_args_size
6456 to PARM_BOUNDARY, not STACK_BOUNDARY.
6458 2005-08-03 Geoffrey Keating <geoffk@apple.com>
6460 * config/i386/i386.c (x86_elf_aligned_common)
6461 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
6463 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
6465 PR tree-optimization/23157
6466 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
6467 before emitting them.
6469 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6471 PR tree-optimization/19899
6472 * Makefile.in (tree-scalar-evolution.o): Add real.h.
6473 * tree-scalar-evolution.c: Include real.h.
6474 (add_to_evolution): Build constant -1 of correct type.
6476 2005-08-03 Jan Hubicka <jh@suse.cz>
6478 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
6479 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
6480 profile updating for complette unrolling.
6481 * loop-unroll.c (peel_loop_completely): Use it.
6482 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
6483 (tree_unroll_loops_completely): Disable code growing unrolling of cold
6486 2005-08-03 Paul Brook <paul@codesourcery.com>
6488 * combine.c (can_change_dest_mode): New function.
6489 (try_combine, simplify_set): Use it.
6491 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
6493 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
6496 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
6498 * doc/install.texi (Specific): Adjust link to openavr.org.
6499 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
6500 (Binaries): Adjust HP-UX Porting Center link.
6501 (Binaries): Adjust Free Software Foundation ordering link.
6503 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
6505 * convert.c (convert_to_integer): Use fold_build1 instead of
6506 build1 when converting an integer to an integer.
6508 2005-08-02 Richard Henderson <rth@redhat.com>
6510 * combine.c (combine_instructions): Don't use reg_equal/equiv
6511 results if the mode doesn't match.
6513 2005-08-02 Mark Mitchell <mark@codesourcery.com>
6515 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
6516 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
6518 2005-08-02 Richard Henderson <rth@redhat.com>
6521 * explow.c (memory_address): Remove special-case for
6522 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
6524 2005-08-02 Diego Novillo <dnovillo@redhat.com>
6527 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
6528 number of calls to cleanup_tree_cfg_1.
6530 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
6532 * doc/invoke.texi: document file extensions .F90 and .F95
6534 2005-08-02 Richard Guenther <rguenther@suse.de>
6536 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
6537 positive if its first argument is positive.
6539 2005-08-02 Richard Guenther <rguenther@suse.de>
6541 PR tree-optimization/23177
6542 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
6545 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
6547 PR tree-optimization/23129
6548 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
6549 varying for divisions with anti-ranges.
6551 2005-08-02 Jan Hubicka <jh@suse.cz>
6553 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
6554 * tree-ssa-threadupdate.c (thread_block): Add it here.
6556 2005-08-01 James E Wilson <wilson@specifix.com>
6558 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
6559 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
6560 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
6562 * config/mips/predicates.md (const_call_insn_operand): Add check for
6563 SYMBOL_REF_LONG_CALL_P.
6564 * doc/extend.texi (long_call): Document the new attribute.
6566 2005-08-01 Ian Lance Taylor <ian@airs.com>
6567 Richard Henderson <rth@redhat.com>
6569 * Makefile.in (RTL_BASE_H): Add real.h.
6570 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
6572 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
6574 * rtl.c (rtl_check_failed_code_mode): New.
6575 * rtl.h (struct rtx_def): Add u.rv.
6576 (XCMWINT, XCNMPRV): New.
6577 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
6578 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
6580 2005-08-01 Richard Henderson <rth@redhat.com>
6582 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
6583 with auto-inc codes.
6585 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
6587 2005-08-01 Jan Hubicka <jh@suse.cz>
6589 * i386-protos.h (asm_preferred_eh_data_format): Declare.
6590 * i386.c: Include dwarf2.h
6591 (asm_preferred_eh_data_format): New.
6592 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
6594 2005-08-01 Ian Lance Taylor <ian@airs.com>
6596 * config/host-linux.c (linux_gt_pch_get_address): Add new name
6597 randomize_va_space for virtual address randomization control.
6599 2005-08-01 Steven Bosscher <stevenb@suse.de>
6601 * common.opt (flag_ipa_cp): Put in right place to maintain
6604 2005-08-01 Jan Hubicka <jh@suse.cz>
6606 * profile.c (compute_value_histograms): Fix thinko.
6607 * value-prof.c: Include toplev.h
6608 (check_counter): New function.
6609 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
6610 tree_mod_subtract_transform): Add sanity check.
6612 2005-08-01 Richard Guenther <rguenther@suse.de>
6614 PR tree-optimization/23133
6615 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
6616 current functions parameter decls to find defs to cse
6619 2005-08-01 Richard Guenther <rguenther@suse.de>
6621 PR tree-optimization/23109
6622 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
6623 If trapping math is in effect, use post-dominator information
6624 to check if we'd in any case reach a trapping point before
6625 doing the reciprocal insertion.
6626 (execute_cse_reciprocals): Compute post-dominators, if necessary.
6627 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
6628 expressions are invariant only if trapping math is not in effect.
6630 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
6632 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
6633 cgraph_function_versioning): New declarations.
6634 * cgraphunit.c: Add include to ipa-prop.h.
6635 (update_call_expr, cgraph_copy_node_for_versioning,
6636 cgraph_function_versioning): New functions.
6637 * integrate.c (copy_decl_for_inlining): Remove.
6638 * ipa-prop.h (ipa_replace_map): New struct.
6639 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
6640 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
6641 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
6642 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
6643 ipcp_iterate_stage, ipcp_method_scale_print,
6644 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
6645 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
6646 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
6647 ipcp_update_bb_counts, ipcp_update_profiling,
6648 ipcp_update_edges_counts): New functions.
6649 (ipcp_method_cval_init): Remove restriction regarding local methods.
6650 (ipcp_init_stage): Add ipcp_method_compute_scale.
6651 (ipcp_insert_stage): Add versioning.
6652 (ipcp_structures_print): Add ipcp_method_scale_print.
6653 (ipcp_driver): Dump profiling info.
6654 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
6655 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
6656 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
6657 (struct inline_data): Add versioning_p, ipa_info, new fields.
6658 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
6659 declare_return_variable): Replace calls to copy_decl_for_inlining with
6661 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
6663 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
6664 Add argument VERSIONING.
6665 (copy_arguments_for_versioning, copy_static_chain,
6666 function_versionable_p, tree_versionable_function_p,
6667 tree_function_versioning, replace_ref_tree): New functions.
6668 * tree-inline.h: Include varray.h.
6669 (tree_versionable_function_p, tree_function_versioning,
6670 tree copy_decl_for_dup): New declarations.
6672 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
6674 * ipa-cp.c: New file. Contains IPCP specific functionality.
6675 * ipa-prop.h: New file. Contains structures/definitions that can be
6676 used by several interprocedural data flow optimizations (and also IPCP).
6677 * ipa-prop.c: New file.
6678 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
6679 * common.opt: Add ipa-cp flag.
6680 * timevar.def: Add IPCP optimization.
6681 * tree-optimize.c (init_tree_optimization_passes): Schedule
6683 * tree-pass.h (pass_ipa_cp): Declare.
6685 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
6687 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
6688 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
6689 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
6690 config/i386/i386.c, config/mips/mips.h,
6691 config/rs6000/rs6000.h, config/sh/sh.c,
6692 config/stormy16/stormy16.c: Fix comment typos.
6694 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
6697 * c-typeck.c (build_binary_op): Use common_type wrapper on
6699 (common_type): Update comment.
6701 2005-07-31 Steven Bosscher <stevenb@suse.de>
6704 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
6705 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
6706 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
6708 2005-07-31 Jan Hubicka <jh@suse.cz>
6710 * pretty-print.h (pp_widest_integer): New macro.
6711 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
6714 2005-07-31 Jan Hubicka <jh@suse.cz>
6716 * output.h (enum section_category): Export from varasm.c
6717 (categorize_decl_for_section): Likewise.
6718 * varasm.c (enum section_category): Kill.
6719 (categorize_decl_for_section): Make global.
6720 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
6722 * i386.c (ix86_section_threshold): New static variable.
6723 (ix86_in_large_data_p, ix86_encode_section_info,
6724 x86_64_elf_unique_section,
6725 x86_64_elf_select_section): New functions.
6726 (TARGET_ENCODE_SECTION_INFO): Define
6727 (override_options): Enable medium model for PIC.
6728 (ix86_expand_prologue): Expand gen_set_got_rex64.
6729 (legitimate_constant_p): Handle new UNSPECs.
6730 (legitimate_pic_address_disp_p): Likewise.
6731 (legitimize_pic_address): Lower MEDIUM model addressing.
6732 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
6733 (enum cmodel): Add MEDIUM_PIC.
6734 (SYMBOL_REF_FAR_ADDR_P): New macro.
6735 (SYMBOL_FLAG_FAR_ADDR): New flag.
6736 * i386.md (movdi): Support medium model.
6737 (set_got_rex64): New pattern.
6738 * i386.opt (mlarge-data-threshold): New flag.
6739 * predicates.md (zext_operand/sext_operand): Deal with medium model.
6740 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
6741 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
6742 TARGET_ASM_UNIQUE_SECTION): New.
6744 * invoke.texi (-mlarge_data_threshold): Document
6746 2005-07-31 Jan Hubicka <jh@suse.cz>
6748 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
6749 (coalesce_vars): Likewise.
6750 * tree-ssa-live.c (coalesce_cost): New.
6751 (build_tree_conflict_graph): Use coalesce_cost.
6752 * tree-ssa-live.h (coalesce_cost): Declare.
6754 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
6756 * arm.md (all peepholes for post-increment operations): Delete.
6757 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
6758 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
6759 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
6760 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
6761 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
6763 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
6765 * fold-const.c (tree_expr_nonnegative_p): Always return true for
6768 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
6771 * doc/invoke.texi: Document -rdynamic.
6773 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
6776 * c-parser.c (c_parser_parms_list_declarator): Call
6777 mark_forward_parm_decls.
6778 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
6779 decls with visibility structure.
6781 2005-07-30 Paul Brook <paul@codesourcery.com>
6783 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
6785 2005-07-30 Paul Brook <paul@codesourcery.com>
6787 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6789 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
6791 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
6793 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
6796 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
6797 nested function declarators.
6798 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
6799 (grokparms): Call warn_if_shadowing for parameters used within the
6801 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
6802 not used within the parameter list.
6803 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
6805 2005-07-30 Jan Hubicka <jh@suse.cz>
6807 * expr.c (expand_expr_real_1): Do not load mem targets into register.
6808 * i386.c (ix86_fixup_binary_operands): Likewise.
6809 (ix86_expand_unary_operator): Likewise.
6810 (ix86_expand_fp_absneg_operator): Likewise.
6811 * optabs.c (expand_vec_cond_expr): Validate dest.
6813 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
6816 * real.c (real_from_string): Also set last bit if there is a
6817 nonzero hex digit beyond GCC's internal precision after ".".
6819 2005-07-29 David Edelsohn <edelsohn@gnu.org>
6821 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
6822 define_constants. Change duplicate values to unassigned numbers.
6823 Change UNSPEC_SUBS to UNSPEC_VSUBS.
6824 (*altivec_vspltsf): New.
6825 (altivec_vperm_v4sf): Delete.
6826 (altivec_vperm_<mode>): Use mode macro V.
6827 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
6828 (altivec_predicate_v4sf): Delete.
6829 (altivec_predicate_<mode>): Use mode macro V.
6830 (*altivec_lvesfx): New.
6831 (*altivec_stvesfx): New.
6832 (vec_realign_load_v4sf): Delete.
6833 (vec_realign_load_<mode>): Use mode macro V.
6834 * config/rs6000/rs6000.c (generate_set_vrsave): Use
6837 2005-07-29 Mark Mitchell <mark@codesourcery.com>
6840 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
6842 * configure: Regenerated.
6844 2005-07-29 Paul Brook <paul@codesourcery.com>
6846 * doc/install.texi: Add link to GFortran binaries wiki page.
6848 2005-07-29 David Ung <davidu@mips.com>
6850 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
6851 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
6852 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
6853 * config/mips/mips.md (cpu): Add 5kf name.
6854 (includes): Includes 5k.md.
6855 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
6856 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
6859 2005-07-29 Diego Novillo <dnovillo@redhat.com>
6862 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
6863 (cleanup_tree_cfg): ... here.
6864 Call cleanup_tree_cfg_1 until there are no more cleanups to
6867 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
6869 * tree-vrp.c (compare_range_with_value): Return true or false
6870 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
6871 EQ_EXPR respectively.
6873 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
6875 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
6878 2005-07-29 Diego Novillo <dnovillo@redhat.com>
6880 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
6881 (tree_ssa_dominator_optimize): Increment it.
6882 (dump_dominator_optimization_stats): Print it.
6884 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
6885 Steven Bosscher <stevenb@suse.de>
6887 PR rtl-optimization/23117
6888 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
6889 when head == tail. Tidy comment.
6891 2005-07-28 Richard Henderson <rth@redhat.com>
6893 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
6894 * cselib.c (rtx_equal_for_cselib_p): Likewise.
6895 * jump.c (rtx_renumbered_equal_p): Likewise.
6896 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
6897 CONST_INT and CONST_DOUBLE.
6898 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
6899 * reload.c (operands_match_p): Special case CONST_INT and
6900 CONST_DOUBLE; check mode earlier.
6902 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
6905 * c-typeck.c (convert_for_assignment): Do not check
6906 DECL_IN_SYSTEM_HEADER on NULL fundecl.
6908 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
6911 * c-typeck.c (composite_type): Prefer constant size arrays to
6914 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
6917 * real.c (real_from_string): Set last bit if there is a nonzero
6918 hex digit beyond GCC's internal precision.
6920 2005-07-28 Richard Henderson <rth@redhat.com>
6923 * cfgcleanup.c (try_forward_edges): Watch out for end of
6926 2005-07-28 James E Wilson <wilson@specifixinc.com>
6929 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
6931 2005-07-28 Jan Hubicka <jh@suse.cz>
6933 * Makefile.in (rtl-profile.o): Kill all traces of it.
6934 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
6935 * coverage.h (rtl_coverage_counter_ref): Kill.
6936 * opts.c (flag_speculative_prefetching_set): Kill.
6937 (flag_loop_optimize_set): New.
6938 (common_handle_option): Disable loop optimizer when profiling;
6939 do not handle speculative prefetching.
6940 * passes.c (init_optimization_passes): Replace pass_profiling combo
6941 by branch_prob pass.
6942 * profile.c (compute_value_histograms): Update for simplified value
6944 (rtl_register_profile_hooks): Kill.
6945 (pass_profiling): Kill.
6946 (rest_of_handle_branch_prob): Do not profile.
6947 * toplev.c (process_options): Remove speculative prefetching.
6948 * toplev.h (flag_tree_based_profiling): Kill.
6949 * tree-profile.c (prepare_instrumented_value,
6950 tree_gen_interval_profiler, tree_gen_pow2_profiler,
6951 tree_gen_one_value_profiler, do_tree_profiling): Update for
6952 simplified datastructures.
6953 * value-prof.c: Add comment that speculative prefetching was dropped;
6954 update rest of file for simplified datastructures.
6955 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
6956 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
6957 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
6958 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
6959 rtl_mod_subtract, gen_speculative_prefetch,
6960 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
6961 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
6962 (gate_handle_value_profile_transformations,
6963 rest_of_handle_value_profile_transformations,
6964 pass_value_profile_transformations): Kill.
6965 * value-prof.h (histogram_value_t): Remove IL based unions.
6966 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
6967 rtl_profile_hooks): Remove hooks.
6969 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
6971 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
6972 (cgraph_clone_node): Likewise.
6973 * cgraph.h (cgraph_clone_edge): Update prototype.
6974 (cgraph_clone_node): Likewise.
6975 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
6977 (lookup_recursive_calls): Consider profile.
6978 (cgraph_decide_recursive_inlining): Fix updating; use new
6979 probability argument; use profile.
6980 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
6981 * tree-inline.c (copy_bb): Update clal of clone_edge.
6982 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
6984 * invoke.texi (min-inline-recursive-probability): Document.
6986 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
6988 * doc/install.texi (Configuration): Update Valgrind homepage.
6990 2005-07-28 Richard Henderson <rth@redhat.com>
6993 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
6994 labels we want to delete.
6995 (cfg_layout_merge_blocks): Likewise.
6997 2005-07-28 Richard Henderson <rth@redhat.com>
7000 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
7001 when expanding to nothing.
7003 2005-07-28 Josh Conner <jconner@apple.com>
7005 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
7006 (cgraph_decide_inlining_of_small_functions): Likewise.
7008 2005-07-28 Josh Conner <jconner@apple.com>
7010 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
7011 direction of badness if negative.
7012 (cgraph_default_inline_p): Add reason to parameters, and assign it
7014 (cgraph_decide_inlining_of_small_functions): New parameter in call
7015 to cgraph_default_inline_p.
7016 (cgraph_decide_inlining_incrementally): Likewise.
7017 * cgraphunit.c (decide_is_function_needed): Likewise.
7018 * cgraph.h (cgraph_default_inline_p): Likewise.
7020 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7022 * builtins.c: Fix comment typo(s).
7023 * genautomata.c: Likewise.
7024 * gimplify.c: Likewise.
7025 * tree-dfa.c: Likewise.
7026 * tree-flow-inline.h: Likewise.
7027 * tree-into-ssa.c: Likewise.
7028 * tree-ssa-alias.c: Likewise.
7029 * tree-ssa-ccp.c: Likewise.
7030 * tree-ssa-copy.c: Likewise.
7031 * tree-ssa-dce.c: Likewise.
7032 * tree-ssa-dom.c: Likewise.
7033 * tree-ssa-operands.c: Likewise.
7034 * tree-tailcall.c: Likewise.
7035 * tree-vectorizer.c: Likewise.
7036 * tree-vrp.c: Likewise.
7039 2005-07-28 Jeff Law <law@redhat.com>
7041 * tree-vrp.c (test_for_singularity): Extracted from ...
7042 (simplify_cond_using_ranges): Attempt to simplify a relational
7043 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
7045 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
7047 PR tree-optimization/22506
7048 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
7049 phis whose argument is constant.
7051 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
7053 PR rtl-optimization/18992
7054 Back out this patch:
7055 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7056 PR optimization/12142
7057 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
7058 uses of the register in the SET_SRC. Remove unnecessary argument.
7060 Replace it with this:
7061 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
7062 if flag_non_call_exceptions is set and the insn may trap, pass
7063 pc_rtx as dest for recursion.
7064 In SET_SRC part of SET case, if dest is already set, pass it down
7067 2005-07-28 Jan Hubicka <jh@suse.cz>
7069 * cfg.c (update_bb_profile_for_threading): Use RDIV.
7070 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
7071 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
7073 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
7074 profile when available.
7076 2005-07-28 Jan Beulich <jbeulich@novell.com>
7078 * config/ia64/ia64.c (ia64_load_pair_ok): New.
7079 (ia64_print_operand): Describe and handle 'X'.
7080 (ia64_register_move_cost): Also handle FP_REGS.
7081 (ia64_preferred_reload_class): Likewise.
7082 (ia64_secondary_reload_class): Likewise.
7083 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
7084 it. Also check for ITANIUM_CLASS_FLDP.
7085 * config/ia64/ia64.h (FP_REGNO_P): New.
7086 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
7087 (reg_class): Add FP_REGS.
7088 (REG_CLASS_NAMES): Adjust for it.
7089 (REG_CLASS_CONTENTS): Likewise.
7090 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
7091 (REG_CLASS_FROM_LETTER): Handle 'x'.
7092 (CLASS_MAX_NREGS): Handle FP_REGS.
7093 (MEMORY_MOVE_COST): Likewise.
7094 * config/ia64/ia64.md (itanium_class): Add fldp.
7095 (type): Handle fldp.
7096 (movti_internal): More allowable operand combinations. Use ldfp8 when
7097 splitting unnecessary. Remove predicable attribute. Adjust
7098 itanium_class attribute.
7099 (smuldi3_highpart): Remove outdated comment.
7100 (mulditi3, umulditi3, rotlti3): New expanders.
7101 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
7102 (absti2): Disabled new insn for future reference.
7103 Respective new splitters.
7104 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
7105 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
7106 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
7108 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
7110 PR rtl-optimization/23047
7111 * simplify-rtx.c (simplify_const_relational_operation): Respect
7112 flag_wrapv for comparisons with ABS.
7114 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
7116 PR tree-optimization/22493
7117 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
7118 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
7120 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
7122 * config/frv/frv.opt (moptimize-membar): New.
7124 * doc/invoke.texi: Document -moptimize-membar and its inverse.
7126 * config/frv/frv.h: Remove machine_function definition.
7128 * config/frv/frv.c (struct frv_io): New.
7129 (struct machine_function): Moved from frv.h. Add has_membar_p.
7130 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
7131 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
7132 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
7133 (frv_optimize_membar_global, frv_optimize_membar): New functions.
7134 (frv_reorg): Call frv_optimize_membar when appropriate.
7135 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
7136 (frv_expand_builtin): Adjust calls accordingly.
7137 (frv_io_address_cookie): New function.
7138 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
7139 load or store rather than a special insn. Add ccnstant address and
7140 io-type operands to the membar.
7141 (frv_ifcvt_modify_tests): Unsign regno.
7142 (frv_ifcvt_modify_tests): Same.
7144 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
7145 UNSPEC_OPTIONAL_MEMBAR constant.
7146 (builtin_read_<mode>): Delete.
7147 (builtin_write_<mode>): Delete.
7148 ("optional_membar_<mode>"): Add operand.
7150 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
7151 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
7152 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
7153 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
7154 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
7155 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
7156 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
7157 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
7158 * testsuite/gcc.target/frv/all-read-write-1.c: New.
7160 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
7162 * df.c (df_uses_record): Handle SCRATCH.
7164 2005-07-28 Steven Bosscher <stevenb@suse.de>
7167 * passes.c (rest_of_decl_compilation): If decl is a type and
7168 we have encountered errors, don't emit debug information.
7170 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
7172 * params.def: Fixed comment.
7174 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
7177 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
7178 (TARGET_ASM_UNALIGNED_HI_OP): Add.
7179 (TARGET_ASM_UNALIGNED_SI_OP): Add.
7181 2005-07-27 Steven Bosscher <stevenb@suse.de>
7184 * varasm.c (assemble_start_function): Don't do anything that may
7185 require a CFG if the current function is a thunk.
7187 2005-07-25 Geoffrey Keating <geoffk@apple.com>
7189 * doc/install.texi (Prerequisites): Mention that perl is needed
7190 to do export control in libstdc++ targetting Darwin.
7192 2005-07-27 Steven Bosscher <stevenb@suse.de>
7194 PR rtl-optimization/17808
7195 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
7196 (sched_insns_conditions_mutex_p): Split out from...
7197 (add_dependence): ...here. But don't call it from here.
7198 (add_dependence_list): Check sched_insns_conditions_mutex_p
7199 before calling add_dependence.
7200 (add_dependence_list_and_free): Likewise.
7201 (fixup_sched_groups): Likewise.
7202 (sched_analyze_1): Likewise.
7203 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
7204 (sched_analyze): Likewise.
7205 (sched_analyze_insn): Likewise.
7206 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7207 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
7208 dependencies on all COND_EXEC insns to jumps ending basic blocks
7209 when doing intrablock scheduling.
7210 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
7212 2005-07-27 Jeff Law <law@redhat.com>
7214 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
7215 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
7216 equivalency sets, correctly handle the case were vr0 has an
7217 equivalency set, but vr1 does not.
7219 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
7221 PR tree-optimization/23073
7222 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
7223 vect_print_dump_info before fprintf.
7225 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
7227 PR tree-optimize/22348
7228 * tree-ssa-loop-niter.c (number_of_iterations_cond):
7229 Fold the partial computation.
7231 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
7233 PR tree-optimization/22325
7234 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
7236 * tree-scalar-evolution.c (scev_const_prop): Add generic final
7238 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
7239 (force_var_cost): ... this function.
7240 (compute_phi_arg_on_exit): Export.
7242 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
7244 PR tree-optimization/20773
7245 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
7248 2005-07-27 Richard Guenther <rguenther@suse.de>
7250 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
7251 Avoid pushing again if current struct contains only
7252 fields we decomposed.
7254 2005-07-27 Jan Hubicka <jh@suse.cz>
7256 PR tree-optimization/22574
7257 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
7260 * tree-tailcall.c (decrease_profile): New function.
7261 (eliminate_tail_call): Use it.
7263 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
7264 visibility flags correctly in whole program mode.
7266 2005-07-26 Steve Ellcey <sje@cup.hp.com>
7268 PR rtl-optimization/22472
7269 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
7271 2005-07-26 Steven Bosscher <stevenb@suse.de>
7273 PR tree-optimization/22504
7274 * tree-complex.c (expand_complex_addition): Use 'code' instead
7275 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
7277 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
7279 * config.gcc (cpu_type): Add frv case.
7280 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
7281 (supported_defaults): Add fr550 case.
7283 2005-07-26 Diego Novillo <dnovillo@redhat.com>
7286 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
7287 whether a pointer of type T * may point to objects of type T *.
7289 2005-07-26 DJ Delorie <dj@redhat.com>
7291 * configure: Regenerate.
7293 2005-07-26 Dale Johannesen <dalej@apple.com>
7295 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
7297 2005-07-26 Mark Mitchell <mark@codesourcery.com>
7299 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
7300 Clarify use of "build" in name.
7302 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
7304 * doc/extend.texi (Raw read/write Functions): New section.
7305 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
7306 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
7307 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
7308 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
7309 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
7310 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
7311 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
7312 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
7313 * config/frv/frv.c: Add bdesc_loads global.
7314 Add bdesc_stores global.
7315 (frv_init_builtins): Add support for __builtin_{read/write}*.
7316 (frv_volatile_memref): New.
7317 (frv_expand_load_builtin): New.
7318 (frv_expand_store_builtin): New.
7319 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
7320 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
7321 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
7322 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
7323 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
7324 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
7325 (builtin_read_<mode>): New.
7326 (builtin_write_<mode>): New.
7327 (builtin_write64): New.
7328 (optional_membar_<mode>): New.
7330 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
7332 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
7333 (rather than units) against HOST_BITS_PER_WIDE_INT.
7335 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
7337 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
7338 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
7339 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
7340 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
7343 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
7344 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
7345 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
7347 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
7349 2005-07-26 Richard Guenther <rguenther@suse.de>
7351 PR tree-optimization/22486
7352 * fold-const.c (fold_unary): Fold away useless component
7353 references of the form (T *)&T.x, if the address
7356 2005-07-25 James E Wilson <wilson@specifixinc.com>
7358 * dwarf2out.c (add_call_src_coords_attributes): New.
7359 (gen_inlined_subroutine_die): Call it.
7360 (maybe_emit_file, init_file_table): Add comments.
7361 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
7363 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
7364 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
7365 * tree.h (BLOCK_SOURCE_LOCATION): New.
7366 (struct tree_block): New field locus.
7368 2005-07-26 Andreas Schwab <schwab@suse.de>
7370 PR rtl-optimization/23043
7371 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
7372 when allocating a struct unoccr.
7374 2005-07-25 Richard Henderson <rth@redhat.com>
7377 * tree-complex.c (gate_no_optimization): True if errors.
7378 * Makefile.in (tree-complex.o): Update dependencies.
7380 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
7382 * config/frv/predicates.md (integer_register_operand): Use
7385 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
7388 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
7390 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
7392 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
7394 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
7395 types when flag_unsafe_math_optimizations is true.
7397 2005-07-25 Mark Mitchell <mark@codesourcery.com>
7399 * gcc.c (option_map): Add --sysroot.
7400 (process_command): Handle --sysroot.
7401 (display_help): Document it.
7402 * doc/cppopts.tex (-isysroot): Document.
7403 * doc/invoke.texi (--sysroot): Document.
7404 * doc/install.texi (--with-build-sysroot): Document.
7406 * Makefile.in (inhibit_libc): New variable.
7407 (INHIBIT_LIBC_CFLAGS): Likewise.
7408 (LIBGCC2_CFLAGS): Include
7409 $(INHIBIT_LIBC_CFLAGS).
7410 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
7411 ($(T)crtbegin.o): Do not use @inhibit_libc@.
7412 ($(T)crtend.o): Likewise.
7413 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
7414 ($(T)crtendS.o): Likewise.
7415 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
7416 ($(T)crtendT.o): Likewise.
7417 (stmp-fixinc): Do not complain about missing headers if
7419 * configure.ac (inhibit_libc): Set it to true/false.
7420 (--with-build-sysroot): New option. Use it to set
7422 * configure: Regenerated.
7424 2005-07-25 Manfred Hollstein <mh@suse.com>
7426 * calls.c (store_one_arg): Fix unsigned comparison warning.
7428 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7431 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
7432 (ggc_print_statistics): Initialize variable before use.
7434 2005-07-25 Richard Guenther <rguenther@suse.de>
7436 * tree-dfa.c (mark_new_vars_to_rename): Protect against
7437 calling with a PHI_NODE argument.
7439 * tree-flow-inline.h (overlap_subvar): Protect against
7442 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
7444 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
7445 * configure: Regenerate.
7447 2005-07-25 Ira Rosen <irar@il.ibm.com>
7449 * expr.c (highest_pow2_factor): Make extern.
7450 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
7451 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
7452 record_array_differ_p, array_ptr_differ_p): Likewise.
7453 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
7454 additional cases. Call the above functions.
7455 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
7456 base_object_differ_p when there are two base objects. Otherwise, compare
7457 base address and offset. Call may_alias_p.
7458 (dump_data_reference): Use a correct field name.
7459 (analyze_array): Make static. Initialize new data-ref fields.
7460 (analyze_indirect_ref): New function.
7461 (init_data_ref): Initialize new data-ref fields.
7462 (strip_conversion): Moved from tree-vect-analyze.c.
7463 (analyze_offset_expr, get_ptr_offset, address_analysis,
7464 object_analysis): Likewise.
7465 (analyze_offset): New function.
7466 (create_data_ref): Likewise.
7467 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
7468 dimensions for ARRAY_REFs only.
7469 (build_classic_dist_vector): Make static.
7470 (access_functions_are_affine_or_constant_p): Call macro to get the
7471 address of access functions.
7472 (compute_all_dependences): Add new parameter
7473 compute_self_and_read_read_dependences. Compute self and read-read
7474 dependences if it is true.
7475 (find_data_references_in_loop): Call create_data_ref. Initialize new
7477 (compute_data_dependences_for_loop): Add new parameter
7478 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7479 compute nb_loops. Call compute_all_dependences,
7480 build_classic_dist_vector and build_classic_dir_vector with correct
7482 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
7483 with correct parameters. Compare dimensions for ARRAY_REFs only.
7484 (free_data_refs): Call macro to free access functions.
7485 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
7486 fields from stmt_vinfo.
7487 (struct base_object_info): New structure.
7488 (struct data_reference): Move fields to base_object_info. Add fields
7489 first_location and object_info for above structures. Move fields from
7490 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
7491 aligned_to. Add macros to access the new fields.
7492 Update functions declarations.
7493 * tree-flow.h (is_aliased_with): Declare.
7494 * tree-loop-linear.c (linear_transform_loops): Call
7495 compute_data_dependences_for_loop with correct parameters.
7496 * tree-ssa-alias.c (is_aliased_with): New function.
7497 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
7498 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
7499 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
7500 vect_base_addr_differ_p, compute_subscript_distance and
7501 build_classic_dist_vector. Add printings. Check absolute value of
7503 (vect_analyze_data_ref_dependences): Go through ddrs instead of
7505 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
7506 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
7507 to bytes. Add printing.
7508 (vect_compute_data_refs_alignment): Go through loads and stores in one
7510 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
7511 vect_analyze_data_ref_access): Likewise.
7512 (vect_analyze_pointer_ref_access): Remove.
7513 (vect_address_analysis, vect_object_analysis): Likewise.
7514 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
7515 and analyze data-refs in the loop.
7516 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
7517 fields of data-ref instead of stmt. Add init to the offset from the
7519 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
7520 (vect_update_init_of_dr): Likewise.
7521 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7522 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
7524 (new_loop_vec_info): Initialize new fields.
7525 (destroy_loop_vec_info): Free new fields.
7526 (vect_strip_conversion): Remove.
7527 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
7528 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7529 datarefs. Add new field ddrs.
7530 Add macros for the new fields access.
7531 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
7532 base_aligned_p, misalignment, memtag, ptr_info and subvars.
7533 Remove their macros.
7534 * tree.h (highest_pow2_factor): Declare.
7536 2005-07-25 Jakub Jelinek <jakub@redhat.com>
7538 * calls.c (store_one_arg): Check for sibling call MEM arguments
7539 from already clobbered incoming argument area.
7541 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7543 * c-common.c (check_missing_format_attribute): New.
7544 * c-common.h (check_missing_format_attribute): Likewise.
7545 * c-typeck.c (convert_for_assignment): Use it.
7547 2005-07-24 Andreas Schwab <schwab@suse.de>
7549 * config/m68k/m68k.md ("extendqidi2"): When source is an address
7550 register use a word move. Correct operand of ext.w in 68000 code.
7552 2005-07-23 Mark Mitchell <mark@codesourcery.com>
7554 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
7555 variables as declarations, rather than definitions.
7557 2005-07-24 Ira Rosen <irar@il.ibm.com>
7559 PR tree-optimization/22526
7560 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
7563 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7565 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
7566 that C99 reserve for future use. Use it to define clog10,
7567 clog10f and clog10l.
7569 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7571 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
7572 * configure.ac: Check for -Wmissing-format-attribute.
7574 * configure: Regenerate.
7576 2005-07-23 Richard Henderson <rth@redhat.com>
7578 PR tree-optimization/22623
7579 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
7581 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
7584 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
7586 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7588 * Makefile.in (C_TREE_H): Update dependencies.
7589 * c-tree.h: Include toplev.h.
7590 * diagnostic.h (diagnostic_set_info): Add format attribute.
7591 * rtl-error.c (diagnostic_for_asm): Likewise.
7593 2005-07-23 Chao-ying Fu <fu@mips.com>
7595 * config/mips/mips-dsp.md: New file.
7596 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
7597 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
7599 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
7600 MIPS_BUILTIN_BPOSGE32.
7601 (mips_expand_builtin_direct): Add one parameter to indicate that
7602 builtin functions need to return a value.
7603 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
7605 (mips_regno_to_class): Add classes for 12 new DSP registers.
7606 (mips_subword): Change to check four HI registers.
7607 (mips_output_move): Output move to and from 6 new DSP accumulators.
7608 (override_options): Make sure -mdsp and -mips16 are not used together.
7609 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
7611 (mips_conditional_register_usage): Disable 6 new DSP accumulators
7613 (print_operand): Add 'q' for printing DSP accumulators.
7614 (mips_cannot_change_mode_class): Check ACC_REGS.
7615 (mips_secondary_reload_class): Check ACC_REGS.
7616 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
7617 (mips_register_move_cost): Check ACC_REGS.
7618 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
7619 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
7620 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
7621 (dsp_bdesc): New array.
7622 (bdesc_arrays): Add DSP builtin function table.
7623 (mips_prepare_builtin_arg): Check predicate again after
7625 (mips_expand_builtin): Add one more parameter to
7626 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
7627 MIPS_BUILTIN_BPOSGE32.
7628 (mips_init_builtins): Initialize new function types.
7629 (mips_expand_builtin_direct): Check if builtin functions need to
7630 return a value and pass operands properly.
7631 (mips_expand_builtin_bposge): New function.
7632 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
7633 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
7634 (FIRST_PSEUDO_REGISTER): Increase to 188.
7635 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
7636 Update for 12 new DSP registers.
7637 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
7638 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
7639 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
7640 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
7641 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
7642 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
7643 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
7644 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
7645 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
7646 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
7647 (REGISTER_NAMES): Add names for 12 new DSP registers.
7648 * config/mips/mips.md: Include mips-dsp.md.
7649 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
7650 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
7651 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
7652 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
7653 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
7654 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
7655 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
7656 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
7657 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
7658 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
7659 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
7660 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
7661 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
7662 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
7663 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
7664 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
7665 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
7666 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
7667 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7668 (UNSPEC_RDDSP): New constants.
7669 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
7670 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
7672 * config/mips/mips.opt (-mdsp): New option.
7673 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
7674 (reg_imm10_operand): New predicates.
7675 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
7676 * doc/invoke.texi (-mdsp): Document new option.
7678 2005-07-22 DJ Delorie <dj@redhat.com>
7680 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
7682 * tree-inline.c (inlinable_function_p): Likewise.
7684 2005-07-22 Mark Mitchell <mark@codesourcery.com>
7687 * toplev.c (check_global_declarations): Do not mark undefined
7688 variables as DECL_IGNORED_P.
7689 * varasm.c (first_global_object_name): GTY it.
7690 (weak_global_object_name): Likewise.
7691 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
7692 a string to go into {weak,first}_global_object_name.
7694 2005-07-22 DJ Delorie <dj@redhat.com>
7696 * c-format.c (check_function_format): Change warning control
7697 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
7699 2005-07-22 Diego Novillo <dnovillo@redhat.com>
7701 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
7702 &PTR->FLD a dereference of PTR.
7703 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
7704 a potential dereference of PTR.
7706 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
7708 PR rtl-optimization/20370
7709 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
7710 call allocate_reg_info if necessary.
7712 PR rtl-optimization/21848
7713 * calls.c (emit_library_call_value_1): For const functions, add
7714 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
7716 PR rtl-optimization/22445
7717 * cselib.c (target.h): Include.
7718 (rtx_equal_for_cselib_p): Allow commutative matches.
7719 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
7720 Remove MODE parameter. Changed all callers.
7722 PR rtl-optimization/22258
7723 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
7725 (try_combine): Use likely_spilled_retval_p.
7727 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
7729 * config.gcc: Add crx-elf support.
7731 * doc/contrib.texi: Mention crx.
7732 * doc/extend.texi: Document crx extensions.
7733 * doc/install.texi: Document crx install.
7734 * doc/invoke.texi: Document crx options.
7735 * doc/md.texi: Document crx constraints.
7737 * config/crx/crx-protos.h: New file.
7738 * config/crx/crx.c: New file.
7739 * config/crx/crx.h: New file.
7740 * config/crx/crx.md: New file.
7741 * config/crx/crx.opt: New file.
7742 * config/crx/t-crx: New file.
7744 2005-07-22 Manfred Hollstein <mh@suse.com>
7746 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
7748 (int_add_graph_edge): Likewise.
7749 (collapse_nodes): Likewise.
7750 (process_unification_queue): Likewise.
7752 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7753 Laurent GUERBY <laurent@guerby.net>
7755 PR tree-optimization/22336
7756 * function.c (record_block_change): Check for
7757 cfun->ib_boundaries_block.
7759 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
7761 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
7762 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
7764 2005-07-21 DJ Delorie <dj@redhat.com>
7766 * toplev.c (warn_deprecated_use): Add warning control to warning
7768 * c-typeck.c (parser_build_binary_op): Likewise.
7769 (c_finish_if_stmt): Likewise.
7770 * c-common.c (check_function_sentinel): Likewise.
7771 (check_nonnull_arg): Likewise.
7773 2005-07-21 Richard Henderson <rth@redhat.com>
7776 * tree-complex.c (complex_ssa_name_components): New.
7777 (cvc_lookup): Allow entry not found.
7778 (create_components): Remove.
7779 (create_one_component_var, get_component_var): New.
7780 (get_component_ssa_name, set_component_ssa_name): New.
7781 (extract_component): Use get_component_ssa_name.
7782 (update_complex_components): Use set_component_ssa_name.
7783 (update_complex_components_on_edge): Likewise.
7784 (update_phi_components): Create new PHI nodes directly, instead
7785 of adding insns to edges.
7786 (tree_lower_complex): Allocate and free complex_variable_components
7787 and complex_ssa_name_components here.
7789 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
7791 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
7792 revert to returning false.
7794 2005-07-21 Uros Bizjak <uros@kss-loka.si>
7797 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
7799 2005-07-21 Uros Bizjak <uros@kss-loka.si>
7802 * config/i386/i386.md (cmpxf): Change operand constraints
7803 to "nonmemory_operand".
7805 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
7807 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
7809 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
7812 * fold-const.c (fold_build1): Add checksum for the operands.
7813 (fold_build2): Likewise.
7814 (fold_build3): Likewise.
7816 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
7819 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
7821 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
7823 * common.opt (-fforward-propagate): Committed by mistake,
7826 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7828 * reg-stack.c: Fix comment typo(s).
7829 * tree-ssa-operands.c: Likewise.
7830 * tree-vectorizer: Likewise.
7832 2005-07-21 Nick Clifton <nickc@redhat.com>
7834 * config/sh/symbian.c: Replace C++ style line comments with C
7835 style line comments.
7836 (symbian_add_attribute): Do not use a ? operator on the LHS of
7838 (sh_symbian_handle_dll_attribute): Change the type of the
7839 method vector to "VEC(tree,gc)*" and use vector accessor
7840 macros to walk over the elements.
7841 (symbian_export_vtable_and_rtti_p): Likewise.
7842 (symbian_class_needs_attribute_p): Likewise.
7844 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
7847 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
7848 initialize targetm.resolve_overloaded_builtin here.
7849 (altivec_expand_overloaded_builtin): Make it non-static.
7850 * config/rs6000/rs6000-protos.h
7851 (altivec_expand_overloaded_builtin): New prototype.
7852 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
7853 targetm.resolve_overloaded_builtin here.
7854 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
7856 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
7857 Zdenek Dvorak <dvorakz@suse.cz>
7859 PR tree-optimization/19210
7860 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
7862 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
7863 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
7864 rely on unproven assumptions.
7865 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
7866 * tree-flow.h (number_of_iterations_exit): Add final parameter.
7867 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
7868 to number_of_iterations_exit.
7869 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
7870 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
7871 * tree-ssa-loop-niter.c (find_loop_niter,
7872 estimate_numbers_of_iterations_loop): Likewise.
7873 (number_of_iterations_exit): Honor the new options.
7874 * doc/invoke.texi (Wunsafe-loop-optimizations,
7875 funsafe-loop-optimizations): Document them.
7877 2005-07-21 Richard Sandiford <richard@codesourcery.com>
7879 PR rtl-optimization/22167
7880 * gcse.c (hoist_code): Fix hoist_exprs[] check.
7882 2005-07-20 Adam Nemet <anemet@lnxw.com>
7884 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
7885 __do_global_dtors_aux longcall.
7887 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
7889 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
7890 (old_special_pred_table): Don't reference
7891 SPECIAL_MODE_PREDICATES.
7892 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
7893 * config/arc/arc.h: Don't mention PREDICATE_CODES.
7894 * config/sh/predicates.h: Don't mention
7895 SPECIAL_MODE_PREDICATES.
7896 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
7899 2005-07-20 DJ Delorie <dj@redhat.com>
7901 * config.gcc: Add m32c-elf support.
7903 * doc/contrib.texi: Mention m32c.
7904 * doc/extend.texi: Document m32c extensions.
7905 * doc/install.texi: Mention m32c.
7906 * doc/invoke.texi: Document m32c options.
7907 * doc/md.texi: Document m32c constraints.
7909 * config/m32c/addsub.md: New file.
7910 * config/m32c/bitops.md: New file.
7911 * config/m32c/cond.md: New file.
7912 * config/m32c/jump.md: New file.
7913 * config/m32c/m32c-lib1.S: New file.
7914 * config/m32c/m32c-lib2.c: New file.
7915 * config/m32c/m32c-modes.def: New file.
7916 * config/m32c/m32c-pragma.c: New file.
7917 * config/m32c/m32c-protos.h: New file.
7918 * config/m32c/m32c.abi: New file.
7919 * config/m32c/m32c.c: New file.
7920 * config/m32c/m32c.h: New file.
7921 * config/m32c/m32c.md: New file.
7922 * config/m32c/m32c.opt: New file.
7923 * config/m32c/minmax.md: New file.
7924 * config/m32c/mov.md: New file.
7925 * config/m32c/muldiv.md: New file.
7926 * config/m32c/predicates.md: New file.
7927 * config/m32c/prologue.md: New file.
7928 * config/m32c/shift.md: New file.
7929 * config/m32c/t-m32c: New file.
7931 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
7933 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
7934 (stack_protect_set, stack_protect_test): New expanders.
7935 (stack_protect_set_si, stack_protect_set_si_media,
7936 stack_protect_set_di_media, stack_protect_test_si,
7937 stack_protect_test_si_media, stack_protect_test_di_media):
7940 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
7942 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
7944 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
7946 * tree.h (tree_expr_nonzero_p): Export.
7947 * fold-const.c (tree_expr_nonzero_p): Likewise.
7948 Return true for CALL_EXPRs that are alloca calls.
7949 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
7951 * tree-flow.h (expr_computes_nonzero): Remove.
7952 * tree-vrp.c (expr_computes_nonzero): Remove.
7953 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
7954 (extract_range_from_unary_expr): Likewise.
7955 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
7956 tree_expr_nonzero_p.
7958 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
7960 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
7961 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
7962 extra arg "picreg" and use it instead of pic_offset_table_rtx.
7963 All callers changed.
7964 (frame_related_constant_load): New arg "related" which controls
7965 setting of RTX_FRAME_RELATED_P. All callers changed.
7966 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
7967 (bfin_expand_prologue): Add stack limit checking.
7968 * config/bfin/bfin.md (trapifcc): New pattern.
7970 * config/bfin/bfin.c: Include "langhooks.h".
7971 (def_builtin): Go through lang_hooks to call builtin_function.
7973 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
7974 * config/bfin/predicates.md (symbol_ref_operand): New.
7975 (call_insn_operand): Delete. All callers changed to use
7976 register_no_elim_operand.
7977 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
7979 (function_arg): Use it to generate the call's operand 2.
7980 (bfin_longcall_p): New function.
7981 (bfin_expand_call): Extra arg "cookie". All callers and declaration
7982 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
7983 determine if the address needs to be in a REG.
7984 (bfin_handle_longcall_attribute): New function.
7985 (bfin_attribute_table): Add "longcall" and "shortcall".
7986 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
7987 (CUMULATIVE_ARGS): New member call_cookie.
7988 (PREDICATE_CODES): Add symbol_ref_operand.
7989 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
7990 extra USE to the pattern.
7991 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
7992 New patterns, split off call_insn, sibcall_insn, call_value_insn and
7993 sibcall_value_insn; now the new patterns handle direct calls and the
7994 old ones indirect calls.
7995 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
7997 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
7999 * doc/trouble.texi: Update section on handling of empty loops.
8001 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
8003 * config.gcc: Remove support for sparc-*-openbsd*,
8004 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
8006 * config.host: Remove support for i860-*-sysv4* as a host.
8007 * config/i860/*, config/ip2k/*, config/ns32k/*,
8008 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
8009 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
8010 mention obsolete ports.
8012 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
8014 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
8016 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
8017 of frame_pointer_rtx.
8018 (sh_expand_epilogue): Likewise.
8019 (sh_set_return_address): Likewise.
8020 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
8021 instead of FRAME_POINTER_REGNUM if needed. Add elimination
8022 offsets from FRAME_POINTER_REGNUM.
8023 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
8024 (sh_register_names): Add initializer for sfp.
8025 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
8026 (VALID_REGISTER_P): Likewise.
8027 (FIRST_PSEUDO_REGISTER): Update.
8028 (DWARF_FRAME_REGISTERS): Define.
8029 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
8030 (HARD_FRAME_POINTER_REGNUM): Define.
8031 (FRAME_POINTER_REGNUM): Redefine.
8032 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
8033 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
8034 from FRAME_POINTER_REGNUM.
8035 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
8036 FRAME_POINTER_REGNUM.
8037 (REG_CLASS_CONTENTS): Add sfp.
8038 (REG_ALLOC_ORDER): Likewise.
8039 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
8040 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
8041 of frame_pointer_rtx.
8042 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8044 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
8046 * fold-const.c (tree_expr_nonnegative_p): Only return true for
8047 ABS_EXPR when flag_wrapv is false because of INT_MIN.
8048 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
8050 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
8053 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
8055 Make CONSTRUCTOR use VEC to store initializers.
8056 * c-common.c (complete_array_type): Update to cope with VEC in
8058 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
8059 (pp_c_constructor_elts): New function.
8060 * c-pretty-print.h (pp_c_constructor_elts): Declare.
8061 * c-typeck.c (build_function_call, build_c_cast, digest_init,
8062 struct constructor_stack, struct initializer_stack,
8063 constructor_elements, push_init_level, pop_init_level,
8064 add_pending_init, find_init_member, output_init_element): Update to
8065 cope with VEC in CONSTRUCTOR_ELTS.
8066 * coverage.c (build_fn_info_value, build_ctr_info_value,
8067 build_gcov_info): Likewise.
8068 * expr.c (categorize_ctor_elements_1, store_constructor,
8069 expand_expr_real_1): Likewise.
8070 * fold-const.c (fold_ternary): Likewise.
8071 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
8072 gimplify_init_constructor, gimplify_expr): Likewise.
8073 * tree-dump.c (dequeue_and_dump): Likewise.
8074 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
8076 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
8078 * tree-sra.c (generate_element_init_1): Likewise.
8079 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8080 * tree-ssa-operands.c (get_expr_operands): Likewise.
8081 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
8082 * tree-vect-transform.c (vect_get_vec_def_for_operand):
8083 (get_initial_def_for_reduction): Likewise.
8084 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
8085 value handle in annotations.
8086 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
8087 tree_node_structure): Add support for constr_kind.
8088 (build_vector_from_ctor, build_constructor_single,
8089 build_constructor_from_list): New functions.
8090 (build_constructor): Update to take a VEC instead of a TREE_LIST.
8091 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
8092 Update to cope with VEC in CONSTRUCTOR_ELTS.
8093 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
8094 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
8095 CONSTRUCTOR_APPEND_ELT): New macros.
8096 (struct constructor_elt, struct tree_constructor): New data types.
8097 (union tree_node): Add tree_constructor field.
8098 * treestruct.def: Define TS_CONSTRUCTOR.
8099 * varasm.c (const_hash_1, compare_constant, copy_constant,
8100 compute_reloc_for_constant, output_addressed_constants,
8101 initializer_constant_valid_p, output_constant,
8102 array_size_for_constructor, output_constructor): Update to cope with
8103 VEC in CONSTRUCTOR_ELTS.
8104 * vec.h (VEC_empty, VEC_copy): New macros.
8106 2005-07-19 Devang Patel <dpatel@apple.com>
8108 * dbxout.c (dbxout_type): Check Objective-C++ lang.
8110 2005-07-19 Richard Henderson <rth@redhat.com>
8113 * gimplify.c (gimplify_expr): Use main variant type for the temp
8114 destination for a discarded volatile read.
8115 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
8116 casts between non-void types that change volatility.
8118 2005-07-15 DJ Delorie <dj@redhat.com>
8120 * toplev.h: Add comment about the first parameter for warning().
8121 * errors.h: Likewise.
8123 * c.opt (Wpragmas): New.
8124 * doc/invoke.texi: Document it.
8126 * function.c (do_warn_unused_parameter): Add warning control to
8128 * c-decl.c (warn_if_shadowing): Likewise.
8129 * c-lex.c (cb_def_pragma): Likewise.
8130 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
8131 (pop_alignment): Likewise.
8132 (handle_pragma_pack): Likewise.
8133 (apply_pragma_weak): Likewise.
8134 (handle_pragma_weak): Likewise.
8135 (handle_pragma_redefine_extname): Likewise.
8136 (add_to_renaming_pragma_list): Likewise.
8137 (handle_pragma_extern_prefix): Likewise.
8138 (maybe_apply_renaming_pragma): Likewise.
8139 (handle_pragma_visibility): Likewise.
8141 * config/c4x/c4x-c.c (BAD): Likewise.
8142 (c4x_parse_pragma): Likewise.
8143 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
8144 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
8145 (rs6000_pragma_longcall): Likewise.
8146 * config/v850/v850-c.c (pop_data_area): Likewise.
8147 (ghs_pragma_section): Likewise.
8148 (ghs_pragma_section): Likewise.
8149 (ghs_pragma_interrupt): Likewise.
8150 (ghs_pragma_starttda): Likewise.
8151 (ghs_pragma_startsda): Likewise.
8152 (ghs_pragma_startzda): Likewise.
8153 (ghs_pragma_endtda): Likewise.
8154 (ghs_pragma_endsda): Likewise.
8155 (ghs_pragma_endzda): Likewise.
8157 2005-07-19 Danny Berlin <dberlin@dberlin.org>
8158 Kenneth Zadeck <zadeck@naturalbridge.com>
8160 * Makefile.in: Removed tree-promote-statics.c
8161 * tree-promote-statics.c: Removed.
8162 * common.opt: Removed flag-promote-statics.
8164 * passes.c: Removed tree-promote-statics pass.
8165 * tree-pass.h: Ditto.
8166 * timevar.def: Removed TV_PROMOTE_STATICS.
8169 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
8171 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
8173 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
8175 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8178 * c-common.c (check_function_arguments): Call
8179 'check_function_format' if either -Wformat or
8180 -Wmissing-format-attribute are specified.
8181 * c-format.c (check_function_format): Check -Wformat before
8182 calling 'check_format_info'.
8183 * c-opts.c (c_common_post_options): Don't warn for
8184 -Wmissing-format-attribute without -Wformat.
8185 * c-typeck.c (convert_for_assignment): Detect additional cases for
8186 -Wmissing-format-attribute.
8187 * doc/invoke.texi (-Wmissing-format-attribute): Document new
8190 2005-07-19 Richard Guenther <rguenther@suse.de>
8192 * config/i386/i386.md (lrint<mode>2): Use temporary
8193 instead of clobbering non-existent memory.
8195 2005-07-19 Nick Clifton <nickc@redhat.com>
8197 * config/avr/avr.c (legitimate_address_p): Fix debugging print
8198 statement to avoid displaying ASCII control characters.
8200 2005-07-19 Ben Elliston <bje@au.ibm.com>
8202 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
8203 * cfganal.c (find_edge_index): Ditto.
8204 * combine.c (combine_instructions): Ditto.
8205 * ddg.c (create_scc): Ditto.
8206 (find_successors): Ditto.
8207 (find_predecessors): Ditto.
8208 (find_nodes_on_paths): Ditto.
8209 (longest_simple_path): Ditto.
8210 * flow.c (update_life_info): Ditto.
8211 (count_or_remove_death_notes): Ditto.
8212 (clear_log_links): Ditto.
8213 * modulo-sched.c (generate_reg_moves): Ditto.
8214 (find_max_asap): Ditto.
8215 (find_max_hv_min_mob): Ditto.
8216 (find_max_dv_min_mob): Ditto.
8217 * sbitmap.c (sbitmap_first_set_bit): Ditto.
8218 * sched-rgn.c (extract_edgelst): Ditto.
8219 * tree-into-ssa.c (prepare_names_to_update): Ditto.
8220 (dump_update_ssa): Ditto.
8221 (ssa_names_to_replace) Ditto.
8222 (switch_virtuals_to_full_rewrite): Ditto.
8223 (update_ssa): Ditto.
8224 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
8226 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
8228 Fix PR tree-optimization/22483
8230 * tree-complex.c (create_components): Use
8231 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
8232 * tree-flow-inline.h (fill_referenced_var_vec): New function.
8233 * tree-flow.h (safe_referenced_var_iterator): New structure.
8234 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
8235 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
8236 safe_referenced_var iterator.
8237 (add_type_alias): Ditto.
8239 2005-07-19 Steven Bosscher <stevenb@suse.de>
8241 * loop-init.c (rest_of_handle_loop2): Remove.
8242 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
8243 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
8244 (pass_rtl_loop_init, pass_rtl_loop_done,
8245 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
8246 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
8247 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
8248 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
8249 pass_tree_loop_done, and pass_tree_unswitch.
8250 (gate_loop): Rename to gate_tree_loop.
8251 * passes.c (init_optimization_passes): Update for renamed tree
8252 loop passes. Add the new loop2 passes as subpasses of loop2.
8253 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
8254 Update for the renamed tree loop passes.
8256 2005-07-18 Ian Lance Taylor <ian@airs.com>
8259 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
8260 blocks when optimizing.
8262 2005-07-18 Steve Ellcey <sje@cup.hp.com>
8264 * common.opt (frename-registers): Initialize to 2.
8266 (fgcse-after-reload): Ditto.
8267 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
8268 (process_options): Only change flag_web, flag_rename_registers,
8269 and flag_rerun_cse_after_loop if not explicitly set by user.
8271 2005-07-18 Jan Beulich <jbeulich@novell.com>
8273 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
8274 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
8275 in 64-bit mode the same as DImode in 32-bit mode.
8276 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
8277 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
8278 mode. Add new mode parameter.
8279 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
8280 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
8281 x86_64_shift_adj): New expanders.
8282 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
8283 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
8285 Respective new splitters. Use renamed shift splitter helpers in 32-bit
8286 DImode shift splitters.
8287 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
8288 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
8291 2005-07-18 Jan Beulich <jbeulich@novell.com>
8293 * i386.md (movdi_extzv_1): New.
8294 (zero_extendhidi2): Combine alternatives and never force use of
8296 (zero_extendqidi2): Likewise. Don't restrict input selection.
8298 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
8300 Fix PR tree-optimization/22531
8301 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
8304 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
8306 * tree-promote-statics.c (pass_promote_statics): Change dump file
8309 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
8311 * tree-optimize.c (init_tree_optimization_passes): Add
8312 pass_eliminate_useless_stores pass.
8313 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
8314 * tree-ssa-pre.c (is_copy_stmt): New function.
8315 (follow_copies_till_vuse): Ditto.
8316 (do_eustores): Ditto.
8317 (gate_eustores): Ditto.
8319 2005-07-16 Richard Henderson <rth@redhat.com>
8321 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
8323 2005-07-16 Danny Berlin <dberlin@dberlin.org>
8324 Kenneth Zadeck <zadeck@naturalbridge.com>
8326 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
8327 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
8328 ipa-type-escape.h, tree-promote-statics.c
8329 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
8330 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
8331 tree-promote-statics.c: new files.
8332 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
8333 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
8334 int nonlocal_set_p, mark_constant_function): Deleted.
8335 (rest_of_handle_cfg): Removed call to mark_constant_function.
8336 (nonoverlapping_component_refs_p): Added calls to support
8337 type based aliasing.
8338 * tree-ssa-alias.c (may_alias_p,
8339 compute_flow_insensitive_aliasing): Ditto.
8340 * calls.c (flags_from_decl_or_type): Removed reference to
8342 * c-typeck.c (convert_arguments): Make builtins tolerant of having
8343 too many arguments. This is necessary for Spec 2000.
8344 * cgraph.h (const_function, pure_function): Removed.
8345 * common.opt: Added "fipa-pure-const", "fipa-reference",
8346 "fipa-type-escape", and "ftree-promote-static".
8348 * passes.c: Added ipa and tree-promote-statics passes.
8349 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
8350 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
8351 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
8352 * tree-flow.h: Added exposed sra calls and addition of
8353 reference_vars_info field for FUNCTION_DECLS.
8354 * tree-pass.h: Added passes.
8355 * tree-sra.c: (sra_init_cache): New function.
8356 (sra_insert_before, sra_insert_after) Made public.
8357 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
8359 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
8360 aliasing. (may_alias_p): Added code to use type escape analysis to
8362 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
8363 code to prune clobbers of static variables based on information
8364 produced in ipa-reference pass. Changed call clobbering so that
8365 statics are not marked as clobbered if the call does not clobber
8368 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
8370 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
8373 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
8375 * doc/install.texi (*-*-solaris2*): Document recommended version
8376 of GNU binutils and mention GNU linker problem on Solaris 10.
8378 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
8381 * c-decl.c (c_build_bitfield_integer_type): New function.
8382 (finish_struct): Call it.
8383 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
8385 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8387 * c-typeck.c (digest_init): Call 'convert_for_assignment'
8390 2005-07-16 Jan Hubicka <jh@suse.cz>
8392 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
8393 (scale_bbs_frequencies_int): Watch roundoff errors.
8394 * predict.c (return_prediction): Initialize return_stmt.
8396 2005-07-16 Jan Hubicka <jh@suse.cz>
8398 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
8399 after RTL profiling.
8401 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
8404 * fold-const.c (build_range_check): Convert high/low to etype
8405 if we are only comparing against exp.
8407 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
8409 Fix PR tree-optimization/22376
8410 * tree-ssa-structalias.c (build_constraint_graph): We really meant
8412 (need_to_solve): New function.
8413 (compute_points_to_sets): Use it.
8415 2005-07-15 Jan Hubicka <jh@suse.cz>
8417 * cfg.c (update_bb_profile_for_threading): More diagnostic.
8418 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
8420 2005-07-15 Richard Guenther <rguenther@suse.de>
8422 * c-common.c (handle_flatten_attribute): New function.
8423 Add flatten function attribute.
8424 * doc/extend.texi: Document flatten function attribute.
8425 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
8426 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
8428 (cgraph_decide_inlining): Handle functions with flatten
8431 2005-07-14 David Edelsohn <edelsohn@gnu.org>
8433 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
8434 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
8435 UNSPEC_XCHG, UNSPEC_AND): New.
8436 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
8437 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
8438 * config/rs6000/sync.md (FETCHOP): New code macro.
8439 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
8441 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
8442 (sync_compare_and_swap<mode>): Same.
8443 (sync_lock_test_and_set<mode>): Same.
8444 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
8445 for QImode and HImode, and not PPC405.
8446 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
8447 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
8448 (sync_<fetchop>{si,di}_internal): New.
8449 (sync_nand{si,di}_internal): New.
8450 (sync_old_<fetchop>{si,di}_internal): New.
8451 (sync_old_nand{si,di}_internal): New
8452 (sync_new_<fetchop>{si,di}_internal): New.
8453 (sync_new_nand{si,di}_internal): New.
8454 (atomic_and{si,di}): New.
8455 (sync_new_nand{si,di}_internal): New.
8456 (atomic_and{si,di}): New.
8457 (sync_add<mode>_internal): Delete.
8458 (sync_addshort_internal): Use unspec instead of unspec_volatile.
8459 (sync_sub<mode>_internal): Delte.
8460 (sync_subshort_internal): New.
8461 (sync_andsi_internal): Use unspec instead of unspec_volatile.
8462 (sync_anddi_internal): Delete.
8463 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
8464 (sync_booldi_internal): Delete.
8465 (sync_boolc<mode>_internal): Delete.
8466 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
8467 (sync_boolc<mode>_internal2): Delete.
8468 (sync_boolcc<mode>_internal): Delete.
8469 (isync, lwsync): Use unspec instead of unspec_volatile.
8470 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
8471 Revert UNSPEC_VOLATILE.
8472 (rs6000_split_atomic_op): New.
8473 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
8475 2005-07-14 Eric Christopher <echristo@redhat.com>
8477 * config/mips/mips.c (mips_canonicalize_comparison): Cast
8478 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
8480 2005-07-14 Eric Christopher <echristo@redhat.com>
8482 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
8484 2005-07-14 Steven Bosscher <stevenb@suse.de>
8486 PR tree-optimization/22230
8487 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
8488 the computation of the four cross productions for "range op range".
8490 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
8491 Ulrich Weigand <uweigand@de.ibm.com>
8494 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
8497 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
8499 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
8501 2005-07-14 Steve Ellcey <sje@cup.hp.com>
8503 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
8505 2005-07-14 Richard Guenther <rguenther@suse.de>
8508 * config/i386/i386-protos.h (ix86_function_value): Change
8509 prototype to match new target hook.
8510 * config/i386/i386.c (ix86_value_regno): Change prototype
8511 to take extra type argument.
8512 (TARGET_FUNCTION_VALUE): Define.
8513 (ix86_function_ok_for_sibcall): Pass extra argument to
8514 ix86_value_regno, check return slot rtx for exact match.
8515 (ix86_function_value): Take extra parameter. Dispatch to
8516 ix86_value_regno with fndecl/fntype as provided.
8517 (ix86_value_regno): Handle extra type argument.
8518 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
8520 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
8521 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
8522 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
8523 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
8524 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
8526 2005-07-14 Richard Guenther <rguenther@suse.de>
8528 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
8529 * calls.c (expand_call): Pass fntype to hard_function_value.
8530 (emit_library_call_value_1): Likewise.
8531 * explow.c: Include target.h.
8532 (hard_function_value): Take extra argument, the fntype.
8533 Use new target hook for function_value.
8534 * expr.h (hard_function_value): Change prototype.
8535 * function.c (aggregate_value_p): Pass 0 as fntype to
8536 hard_function_value.
8537 (assign_parms): Use new target hook for function_value.
8538 Pass 0 as fntype to hard_function_value.
8539 (expand_function_end): Likewise.
8540 * reg-stack.c: Include target.h.
8541 (stack_result): Use new target hook for function_value.
8542 * target-def.h: New target hook function_value.
8543 * target.h: Likewise.
8544 * targhooks.c (default_function_value): New function.
8545 * targhooks.h (default_function_value): Declare.
8547 2005-07-13 Ian Lance Taylor <ian@airs.com>
8549 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8551 2005-07-14 Jan Hubicka <jh@suse.cz>
8553 * tree-dfa.c (dump_variable): Use default_def function.
8554 * tree-ssa-alias.c (dump_points_to_info): Likewise.
8555 * tree-ssa.c (verify_use): Likewise.
8556 * tree-ssanames.c (release_ssa_name): Likewise.
8557 * tree-tailcall.c (eliminate_tail_call): Likewise.
8558 (tree_optimize_tail_calls_1): Likewise.
8559 * tree-vrp.c (get_value_range): Likewise.
8561 2005-07-14 Ben Elliston <bje@au.ibm.com>
8563 * gcc.c (main): Compare language[0] with '*' when iterating over
8566 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
8568 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
8569 "s390_emit_compare". Add handling of CCZ1mode.
8570 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
8571 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
8573 (s390_branch_condition_mask): Add CCZ1mode handling.
8574 * config/s390/s390.md: ("seq", "*seq"): New pattern.
8575 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
8576 Use CCZ1mode instead of CCZmode.
8577 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
8579 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
8581 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
8583 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
8585 2005-07-13 Eric Christopher <echristo@redhat.com>
8587 * config/mips/mips.c (mips_canonicalize_comparison): New.
8588 (mips_emit_int_relational): Use.
8590 2005-07-13 Eric Christopher <echristo@redhat.com>
8592 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
8594 * config/s390/s390.md: Include tpf.md. Move tpf specific
8596 * config/s390/tpf.md: To here.
8597 * config/s390/s390.opt: Move tpf specific options...
8598 * config/s390/tpf.opt: to here. Add mmain option.
8599 * config/s390/tpf-unwind.h: Remove unnecessary defines.
8600 * config/s390/tpf.h: Rewrite.
8602 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
8604 * doc/tm.texi: Remove @xref{Cross-profiling}.
8606 2005-07-13 Jeff Law <law@redhat.com>
8608 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
8609 expressions, test their _DECL operands for pointer equality rather
8610 than using operand_equal_p.
8612 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
8614 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
8615 (TARGET_POSIX_IO): This.
8616 * config/darwin.h: Likewise.
8617 * config/freebsd.h: Likewise.
8618 * config/linux.h: Likewise.
8619 * config/lynx.h: Likewise.
8620 * config/netbsd.h: Likewise.
8621 * config/rs6000/linux64.h: Likewise.
8622 * config/rs6000/linux.h: Likewise.
8623 * config/s390/tpf.h: Likewise.
8624 * config/sh/embed-elf.h: Likewise.
8625 * config/sparc/linux64.h: Likewise.
8626 * config/sparc/linux.h: Likewise.
8627 * config/svr4.h: Likewise.
8628 * gcov-io.h: Likewise.
8630 * doc/tm.texi: Updated.
8632 * libgcov.c (create_file_directory): Defined only if
8633 TARGET_POSIX_IO is defined.
8634 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
8637 2005-07-13 Jan Hubicka <jh@suse.cz>
8639 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
8641 2005-07-13 David Edelsohn <edelsohn@gnu.org>
8643 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
8644 structure as argument.
8646 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
8648 PR tree-optimization/21921
8649 * tree-iterator.c (tsi_link_before): Support the case when
8650 tsi_end_p (tsi) == true.
8652 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
8654 PR tree-optimization/22442
8655 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
8658 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
8660 PR rtl-optimization/20376
8661 * toplev.c (process_options): Enable -fweb and -frename-registers when
8663 * doc/invoke.texi: Update the information about when -fweb and
8664 -frename-registers are enabled.
8666 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
8669 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
8670 if *rhs_p is not a SSA_NAME.
8672 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
8674 Fix PR tree-optimization/22422
8675 * tree-ssa-structalias.c (struct variable_info): Add flag for
8677 (get_varinfo): Now a static function.
8678 (new_varinfo): init has_union and is_special_var to false.
8679 (solution_set_add): Check has_union.
8680 (do_da_constraint): Move temporary variable so it gets reset
8682 Also check for special variable.
8683 (do_ds_constraint): Ditto.
8684 (do_sd_constraint): Ditto.
8685 (do_structure_copy): Check for special variable.
8686 (find_func_aliases): Ditto.
8687 (init_base_vars): Set special vars properly.
8689 2005-07-13 Jan Hubicka <jh@suse.cz>
8691 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
8694 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
8695 (get_expr_operands): Fix thinko wrt flags and subvars.
8697 PR tree-optimize/22379
8698 * tree-inline.c (expand_call_inline): Do not output sorry in early
8701 2005-07-12 Dale Johannesen <dalej@apple.com>
8703 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
8705 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
8708 * host-linux.h: Include limits.h.
8710 2005-07-12 Dale Johannesen <dalej@apple.com>
8712 * expr.c (compress_float_constant): Add cost check.
8713 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
8715 2005-07-12 Dale Johannesen <dalej@apple.com>
8717 * gcc.target/i386/compress-float-sse.c: New.
8718 * gcc.target/i386/compress-float-sse-pic.c: New.
8719 * gcc.target/i386/compress-float-387.c: New.
8720 * gcc.target/i386/compress-float-387-pic.c: New.
8721 * gcc.dg/compress-float-ppc.c: New.
8722 * gcc.dg/compress-float-ppc-pic.c: New.
8724 2005-07-12 Eric Christopher <echristo@redhat.com>
8726 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
8728 * config/s390/s390.md: Include tpf.md. Move tpf specific
8730 * config/s390/tpf.md: To here.
8731 * config/s390/s390.opt: Move tpf specific options...
8732 * config/s390/tpf.opt: to here. Add mmain option.
8733 * config/s390/tpf-unwind.h: Remove unnecessary defines.
8734 * config/s390/tpf.h: Rewrite.
8736 2005-07-12 Eric Christopher <echristo@redhat.com>
8738 * gcc.c (struct infile): Update comment for language.
8739 (main): Rewrite input file resetting code.
8741 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
8744 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
8745 requiring a cast in a non RHS of modify_expr. Add a cast when required.
8746 (lookup_avail_expr): Use constant_boolean_node instead
8747 of boolean_false_node/boolean_true_node.
8749 2005-07-12 Ben Elliston <bje@au.ibm.com>
8751 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
8752 and use it when printing num_edges.
8754 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
8756 * doc/extend.texi (Blackfin Built-in Functions): New section.
8757 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
8760 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
8762 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
8763 s/cmpstrsi/cmpstrnsi
8764 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
8766 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
8767 (init_optabs): Initialize cmpstrn_optab.
8768 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
8769 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
8770 * expr.c: (enum insn_code cmpstrn_optab): Declare.
8771 * config/i386/i386.md: s/cmpstr/cmpstrn
8772 * config/c4x/c4x.md: s/cmpstr/cmpstrn
8773 * doc/md.texi: Update documentation.
8775 2005-07-11 Richard Henderson <rth@redhat.com>
8777 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
8778 build_va_arg_indirect_ref.
8779 (alpha_gimplify_va_arg): Likewise.
8780 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8781 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
8782 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
8783 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8784 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
8785 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
8787 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8789 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
8791 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
8792 * passes.c (init_optimization_passes): Add pass_empty_loop.
8793 * tree-pass.h (pass_empty_loop): Declare.
8794 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
8795 try_remove_empty_loop, remove_empty_loops): New functions.
8796 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
8797 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
8799 2005-07-12 Peter Barada <peter@the-baradas.com>
8803 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
8804 in address registers.
8805 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
8806 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
8807 alternative of addsi3_5200.
8809 2005-07-11 Ian Lance Taylor <ian@airs.com>
8811 * config/mips/mips.md (ffs<mode>2): Remove.
8813 2005-07-11 Ian Lance Taylor <ian@airs.com>
8815 * doc/tree-ssa.texi (Cleanups): Improve description of
8817 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
8819 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
8821 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
8822 * tree.h (DECL_ARGUMENT_FLD): New macro.
8824 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
8826 Fix PR tree-optimization/22404
8828 * tree-ssa-structalias.c (create_variable_info_for): Use
8831 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
8833 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
8834 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
8835 for second comparison operand.
8836 * config/bfin/predicates.md (reg_or_const_int_operand): New.
8838 * config/bfin/bfin.md (define_attr "type"): Add "sync".
8839 (define_insn_reservation "alu"): Likewise.
8840 (csync, ssync): Now of type sync.
8841 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
8842 -mcsync-anomaly -mspecld-anomaly.
8843 * config/bfin/bfin.opt (mcsync): Remove.
8844 (mcsync-anomaly, mspecld-anomaly): Add.
8845 * config/bfin/bfin.c: Include "insn-codes.h".
8846 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
8847 (TARGET_DEFAULT_TARGET_FLAGS): New.
8848 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
8850 2005-07-11 Steven Bosscher <stevenb@suse.de>
8852 * basic-block.h: Give the BB flags enum a name, bb_flags.
8853 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
8854 * cfgcleanup.c (enum bb_flags): Remove here.
8855 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
8856 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
8857 (update_forwarder_flag): Likewise.
8858 (thread_jump): Likewise.
8859 (try_forward_edges): Likewise.
8860 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
8861 forwarder flags. Don't clear bb->aux for all basic blocks. Only
8862 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
8864 2005-07-11 Richard Guenther <rguenther@suse.de>
8866 * config/i386/i386.opt: New target option -msseregparm.
8867 * config/i386/i386.c (override_options): Error out for
8868 -msseregparm but no SSE support.
8869 (ix86_function_sseregparm): Check for global sseregparm.
8870 * doc/invoke.texi: Document -msseregparm.
8872 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8874 * config.gcc (m32r-*-linux*): Use the default extra_parts.
8875 (m32rle-*-linux*): Ditto.
8877 2005-07-11 Jakub Jelinek <jakub@redhat.com>
8879 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
8880 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
8883 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8887 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
8888 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
8890 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
8892 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
8893 (varmap): Heapify varmap.
8894 (constraints): Heapify constraints.
8895 (struct constraint_graph): Heapify succs and preds.
8896 (constraint_vec_find): Update for heapification.
8897 (constraint_set_union): Ditto.
8898 (insert_into_complex): Ditto.
8899 (constraint_edge_vec_find): Ditto.
8900 (erase_graph_self_edge): Ditto.
8901 (add_graph_edge): Ditto.
8902 (get_graph_weights): Ditto.
8903 (merge_graph_nodes): Ditto.
8904 (build_constraint_graph): Ditto.
8905 (topo_visit): Ditto.
8906 (solve_graph): Ditto.
8907 (create_variable_info_for): Ditto.
8908 (init_base_vars): Ditto.
8909 (delete_points_to_sets): Free graph, varmap, and complex constraints.
8910 (condese_varmap_nodes): Free complex vector.
8911 (clear_edges_for_node): Clear succs and preds vector.
8913 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
8915 * tree-ssa-structalias.c (update_alias_info): Change counting of
8916 references to not include vdefs.
8918 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
8920 * tree-ssa-alias.c (free_used_part_map): Add missing free.
8923 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8925 * pa.c (pa_commutative_p): Make PLUS commutative when
8926 TARGET_NO_SPACE_REGS is true.
8928 2005-07-09 Diego Novillo <dnovillo@redhat.com>
8930 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
8931 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
8932 * tree-dfa.c (dump_subvars_for): New.
8933 (debug_subvars_for): New.
8934 (dump_variable): Show subvariables if VAR has them.
8935 * tree-flow-inline.h (get_subvar_at): New.
8936 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
8937 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
8939 (struct subvar): Change fields offset and size to unsigned
8941 (dump_subvars_for): Declare.
8942 (debug_subvars_for): Declare.
8943 (get_subvar_at): Declare.
8944 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
8945 to unsigned HOST_WIDE_INT *.
8946 (overlap_subvar): Likewise.
8947 * tree-gimple.c (is_gimple_reg): Always return false for
8948 SFTs and memory tags.
8949 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
8951 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
8952 (compute_may_aliases): Call compute_points_to_sets.
8953 (collect_points_to_info_for): Remove.
8954 (compute_points_to_and_addr_escape): Remove.
8955 (delete_alias_info): Call delete_points_to_sets.
8956 (compute_flow_sensitive_aliasing): If the call to
8957 find_what_p_points_to returns false, call set_pt_anything.
8958 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
8959 (set_pt_anything): Clear pi->pt_vars.
8960 (set_pt_malloc): Remove.
8961 (merge_pointed_to_info): Remove.
8962 (add_pointed_to_expr): Remove.
8963 (add_pointed_to_var): Remove.
8964 (collect_points_to_info_r): Remove.
8965 (is_escape_site): Make extern.
8967 (create_overlap_variables_for): Call it.
8968 * tree-ssa-copy.c (merge_alias_info): Never merge
8969 flow-sensitive alias information.
8970 * tree-ssa-operands.c (get_expr_operands): Adjust variables
8971 offset and size to be unsigned HOST_WIDE_INT.
8972 (add_to_addressable_set): Rename from note_addressable.
8973 Set TREE_ADDRESSABLE as the variables are added to the set.
8975 (add_stmt_operand): Do not try to micro-optimize unmodifiable
8976 operands into VUSEs when adding V_MAY_DEFs for members in an
8978 * tree-ssa-operands.h (add_to_addressable_set): Declare.
8979 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
8980 (struct variable_info): Add bitfield is_heap_var.
8981 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
8982 (new_var_info): Initialize is_heap_var.
8983 (get_constraint_for): Add HEAP variables to the symbol table.
8984 Mark them with is_heap_var.
8985 (update_alias_info): New. Taken mostly from the old
8986 compute_points_to_and_addr_escape.
8987 (handle_ptr_arith): New.
8988 (find_func_aliases): Call update_alias_info.
8989 Call handle_ptr_info for tcc_binary expressions.
8990 Call mark_stmt_modified.
8991 (create_variable_info_for): If DECL has subvars, do not create
8992 variables for its subvars. Always add all the fields.
8993 (set_uids_in_ptset): If the solution includes ANYOFFSET and
8994 SFTs, then add all the SFTs of the structure.
8995 If VI->DECL is an aggregate with subvariables, add the SFT at
8997 (find_what_p_points_to): If VI is an artificial variable,
8998 translate to bitfields in SSA_NAME_PTR_INFO.
8999 If the solution is empty, set pi->pt_vars to NULL
9000 (init_base_vars): Create ANYOFFSET.
9001 (compute_points_to_sets): Rename from create_alias_vars.
9003 (pass_build_pta): Remove.
9004 (delete_points_to_sets): Rename from delete_alias_vars.
9005 (pass_del_pta): Remove.
9006 * tree-ssa-structalias.h (struct alias_info): Move from
9008 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
9009 NUM_REFERENCES_SET): Likewise.
9010 (compute_points_to_sets, delete_points_to_sets): Declare.
9012 2005-07-09 Richard Henderson <rth@redhat.com>
9014 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
9015 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
9016 alpha_split_lock_test_and_set_12): New functions.
9017 * config/alpha/alpha-protos.h: Update.
9018 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
9019 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
9020 * config/alpha/sync.md (I12MODE): New.
9021 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
9022 (sync_<fetchop_name><I48MODE>): Likewise.
9023 (sync_nand<I48MODE>): Likewise.
9024 (sync_old_<fetchop_name><I48MODE>): Likewise.
9025 (sync_new_<fetchop_name><I48MODE>): Likewise.
9026 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
9027 (sync_compare_and_swap<I48MODE>): Likewise.
9028 (sync_lock_test_and_set<I48MODE>): Likewise.
9029 (sync_compare_and_swap<I12MODE>): New.
9030 (sync_compare_and_swap<I12MODE>_1): New.
9031 (sync_lock_test_and_set<I12MODE>): New.
9032 (sync_lock_test_and_set<I12MODE>_1): New.
9034 2005-07-09 Diego Novillo <dnovillo@redhat.com>
9038 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
9040 2005-07-09 Jakub Jelinek <jakub@redhat.com>
9042 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
9043 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
9045 2005-07-09 Richard SAndiford <richard@codesourcery.com>
9048 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
9050 2005-07-08 David Edelsohn <edelsohn@gnu.org>
9052 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
9053 memory_operand constraint.
9054 (store_conditional_<mode>): Same.
9055 (sync_compare_and_swap<mode>): Same.
9056 (sync_lock_test_and_set<mode>): Same.
9058 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
9060 Rewrite PIC support to more closely model actual instructions.
9061 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
9062 (cris_symbol): Remove prototypes for removed functions.
9063 (cris_pic_symbol_type_of, cris_valid_pic_const)
9064 (cris_expand_pic_call_address): Prototypes for new functions.
9065 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
9067 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
9069 <case ':'>: Add case for new punctuation character.
9070 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
9071 emitting (extra) PIC modifier.
9072 <case UNSPEC>: Do not assert for PLT.
9073 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
9074 (cris_expand_prologue, cris_expand_epilogue): Check
9075 for pic_offset_table_rtx usage instead of taking
9076 current_function_uses_pic_offset_table as the final word.
9077 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
9078 Remove flag_pic difference.
9079 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
9080 the moral equivalents of...
9081 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
9083 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
9084 (cris_handle_option): Mark ARG as unused.
9085 (cris_expand_pic_call_address): New worker function for "call",
9087 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
9088 output PIC constructs here.
9089 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
9090 as symbol-specific modifers, not whole or part of operands.
9091 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
9092 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
9093 constants and flag_pic.
9094 (CONSTANT_INDEX_P): Adjust for new functions.
9095 (enum cris_pic_symbol_type): New helper type.
9096 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
9097 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
9098 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
9100 ("movsi"): Emit actual instructions for GOT and relative access.
9101 ("*movsi_got_load"): New pattern to set up the register holding
9103 ("*movsi_internal"): Operand 1 is not a plain general_operand.
9104 Adjust FIXME for 'S'.
9105 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
9106 Use "movs" for -fpic cases.
9107 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
9108 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
9109 ("call", "call_value"): Just call cris_expand_pic_call_address for
9111 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
9112 Remove special pattern.
9113 ("*expanded_call_side", "*expanded_call_value_side"): New
9115 (gotplt-to-plt, gotplt-to-plt-side-call)
9116 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
9118 * config/cris/cris/predicates.md
9119 ("cris_general_operand_or_gotless_symbol"): Remove unused
9121 ("cris_general_operand_or_symbol"): Adjust for new functions.
9123 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
9125 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
9127 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
9129 * Makefile.in (TREE_H): Add treestruct.def.
9130 (c-decl.o): Add pointer-set.h
9131 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
9132 visibility on regular DECL's.
9133 (merge_decls): Fix the copying of decl nodes of various types for
9134 the new structures. Don't update RTL, section name, weak status,
9135 etc, on DECL's without RTL.
9136 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
9137 Don't check volatile on non-variable types.
9138 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
9139 to check whether we have seen arguments.
9140 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
9141 flag is checked before field (flag is common, field is not).
9142 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
9143 TS_DECL_COMMON could have an origin.
9144 (add_location_or_const_value_attribute): Don't check section name
9145 on non-var/function decls.
9146 (dwarf2out_var_location): Reverse order of tests.
9147 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
9148 with DECL_WRTL_CHECK.
9149 * expmed.c (make_tree): rtl is now in decl_with_rtl.
9150 * fold-const.c (fold_binary): Don't check weakness on
9151 non-var/function decls.
9152 (tree_expr_nonzero_p): Ditto.
9153 (fold_checksum_tree): Use tree_decl_extra as sizeof
9155 * ggc-page.c (extra_order_size_table): Add sizes for
9156 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
9158 * gimplify.c (gimplify_bind_expr): Only set
9159 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
9160 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
9162 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
9163 * langhooks.h (init_ts). New langhook.
9164 * passes.c (rest_of_decl_compilation): Reverse order of tests.
9165 * print-tree.c (print_node): Update to only print fields that
9166 exist in the structures the passed decl has.
9167 * toplev.c (wrapup_global_declarations): Don't reset
9168 DECL_DEFER_OUTPUT on DECL's that don't contain it.
9169 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
9170 * tree-inline.c (remap_decl): Ditto.
9171 * tree-outof-ssa.c (create_temp): Reverse order of tests.
9172 * tree-pretty-print.c (print_declaration): Don't print
9173 DECL_REGISTER on things that don't contain it.
9174 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
9175 non-var/function decls.
9176 * tree.c (tree_contains_struct): New structure.
9177 (init_priority_for_decl): New hashtable.
9178 (tree_int_map): New structure.
9179 (tree_int_map_eq): New function.
9180 (tree_int_map_marked_p): Ditto.
9181 (tree_int_map_hash): Ditto.
9182 (tree_map): Move to tree.h.
9183 (tree_map_eq): Externalize.
9184 (tree_map_hash): Ditto.
9185 (tree_map_marked_p): Ditto.
9186 (init_ttree): Set up tree_contains_struct and call langhook.
9187 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
9188 (tree_code_size): Update for new structures.
9189 (tree_node_structure): Update for new structures.
9190 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
9192 (copy_node_stat): Copy init priority.
9193 (build_decl_stat): Ditto for visibility.
9194 (ts_enum_names): New.
9195 (tree_contains_struct_check_failed): New function.
9196 (decl_init_priority_lookup): Ditto.
9197 (decl_init_priority_insert): Ditto.
9198 * treestruct.def: New file.
9199 * tree.h (CODE_CONTAINS_STRUCT): New macro.
9200 (CONTAINS_STRUCT_CHECK): Ditto.
9201 (tree_contains_struct_check_failed): New prototype.
9202 (DECL_CHECK): Removed.
9203 (DECL_MINIMAL_CHECK): New.
9204 (DECL_COMMON_CHECK): Ditto.
9205 (DECL_WRTL_CHECK): Ditto.
9206 (DECL_NON_COMMON_CHECK): Ditto.
9207 (DECL_WITH_VIS_CHECK): Ditto.
9208 (VAR_OR_FUNCTION_DECL_P): Ditto
9209 (struct tree_decl_minimal): New structure.
9210 (struct tree_decl_common): Ditto.
9211 (struct tree_decl_with_rtl): Ditto.
9212 (struct tree_decl_with_vis): Ditto.
9213 (struct tree_decl_non_common): Ditto.
9214 (struct tree_field_decl): Ditto.
9215 (struct tree_parm_decl): Ditto.
9216 (struct tree_var_decl): Ditto.
9217 (struct tree_function_decl): Ditto.
9218 (struct tree_const_decl): Ditto.
9219 (struct tree_result_decl): Ditto.
9220 (union tree_node): Add new structures.
9221 * var-tracking.c (track_expr_p): Reverse order of tests.
9223 * doc/c-tree.texi: Add documentation on DECL node internal structure.
9225 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
9227 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
9228 * system.h: Poison FINALIZE_PIC.
9229 * doc/tm.texi (FINALIZE_PIC): Remove.
9231 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
9234 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
9235 to the correct type if we have a MODIFY_EXPR.
9237 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
9239 PR tree-optimization/22360
9240 * tree.c (upper_bound_in_type): Fix calculations for casting
9241 to a non-wider signed type and casting a signed value to a
9242 wider unsigned type.
9243 (lower_bound_in_type): Fix calculations for casting to a
9244 non-wider signed type.
9246 PR tree-optimization/20139
9247 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
9249 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
9250 fold_cond_expr_cond.
9251 * tree-ssanames.c (release_defs): Assert in_ssa_p.
9252 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
9254 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
9257 * tree-complex.c (expand_complex_libcall): Produce
9258 REALPART_EXPR/IMAGPART_EXPR with the correct type.
9260 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
9262 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9263 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
9264 b" assert and inserted fastpath code for this case.
9265 (bitmap_ior): Removed "a != b" assert.
9267 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9269 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
9270 (ENDFILE_SPEC): Likewise.
9271 * config/m32r/m32r.h (ASM_SPEC): Likewise.
9273 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
9274 a large stack frame at epilogue.
9276 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
9278 * final.c: Include sdbout.h when required.
9280 2005-07-07 Geoffrey Keating <geoffk@apple.com>
9282 * config.gcc (*-*-darwin*): Only one target-specific header file
9284 (powerpc-*-darwin*): Add version-specific header files.
9285 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
9286 * config.in: Regenerate.
9287 * configure: Regenerate.
9288 * gcc.c: Include xregex.h.
9289 (version_compare_spec_function): New.
9290 (spec_function): Add version-compare.
9291 (replace_outfile_spec_function): Reformat comment.
9292 (compare_version_strings): New.
9293 * config/darwin-c.c (version_as_macro): New.
9294 (builtin_define): New.
9295 (darwin_cpp_builtins): New.
9296 * config/darwin-protos.h (darwin_cpp_builtins): New.
9297 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
9298 (LIB_SPEC): Make unconditional, update comment.
9299 (TARGET_C99_FUNCTIONS): Define.
9300 * config/darwin.opt: Sort.
9301 (mmacosx-version-min=): New.
9302 * config/darwin7.h: Delete.
9303 * config/darwin8.h: Delete.
9304 * config/i386/darwin.h (): Call darwin_cpp_builtins.
9305 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
9306 (TARGET_C99_FUNCTIONS): Define.
9307 * config/rs6000/darwin7.h: New.
9308 * config/rs6000/darwin8.h: New.
9309 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
9310 (-mmacosx-version-min): Document.
9312 2005-07-07 Ian Lance Taylor <ian@airs.com>
9314 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
9316 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
9319 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
9321 2005-07-07 Khem Raj <kraj@mvista.com>
9323 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
9324 in bytes, not words.
9326 2005-07-07 Paul Brook <paul@codesourcery.com>
9328 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
9329 DEFAULT_FUNCTION_ARG_PADDING to upward.
9331 2005-07-07 Richard Henderson <rth@redhat.com>
9333 * function.c (locate_and_pad_parm): Record parameter alignment in
9334 stack_alignment_needed.
9336 2005-07-07 David Edelsohn <edelsohn@gnu.org>
9338 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
9339 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
9340 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
9341 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
9342 (define_attr "type"): Add isync, sync, load_l, store_c.
9343 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
9344 Create scratch volatile MEM.
9345 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
9347 (load_locked_<mode>): New.
9348 (store_conditional_<mode>): New.
9349 (sync_compare_and_swap<mode>): Replace with splitter.
9350 (sync_lock_test_and_set<mode>): Replace with splitter.
9351 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
9353 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
9354 is ics. Attribute isync.
9355 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
9357 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
9358 and UNSPECV_SYNC_OP.
9359 (emit_unlikely_jump): New.
9360 (emit_load_locked): New.
9361 (emit_store_conditional): New.
9362 (rs6000_split_compare_and_swap): New.
9363 (rs6000_split_lock_test_and_set): New.
9364 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
9365 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
9366 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
9367 rs6000_split_lock_test_and_set): Declare.
9368 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
9369 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
9370 store_c, isync, sync.
9372 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
9374 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
9375 filenames to gtyp-gen.h.
9376 (s-typ-gen): Use it in place of for loops.
9378 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
9380 * hooks.c (hook_bool_rtx_int_false): New function.
9381 * hooks.h (hook_bool_rtx_int_false): Declare.
9382 * target-def.h (TARGET_COMMUTATIVE_P): Define.
9383 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
9384 * target.h (struct gcc_target): Add commutative_p member.
9385 * targhooks.c (hook_bool_rtx_commutative_p): New function.
9386 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
9387 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
9388 (pa_commutative_p): New function.
9389 * jump.c (target.h): Include.
9390 (rtx_renumbered_equal_p): Use targetm.commutative_p.
9391 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
9393 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
9395 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
9396 (s390_expand_setmem): New.
9397 * config/s390/s390.c: Likewise.
9398 (print_shift_count_operand): Truncate to 12 bits instead of 6.
9400 * config/s390/s390.md: ("setmem<mode>"): Accept character as
9401 general_operand. Call new function "s390_expand_setmem".
9402 ("clrmem_long", "*clrmem_long"): Rewrite to ...
9403 ("setmem_long", "*setmem_long"): ... this.
9405 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
9407 * config/s390/s390.c: (optimization_options): Enable
9408 TARGET_MVCLE at -Os.
9409 * doc/invoke.texi: Document changes in default behaviour.
9410 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
9412 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
9414 * expr.c: (set_storage_via_setmem): Convert opchar to mode
9415 defined by back-end.
9417 2005-07-07 Jakub Jelinek <jakub@redhat.com>
9419 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
9420 all sets in the pattern.
9421 * config/rs6000/rs6000.md (stack_protect_testsi,
9422 stack_protect_testdi): Likewise.
9424 2005-07-06 Jeff Law <law@redhat.com>
9426 * tree-vrp.c (simplify_using_ranges): Kill.
9427 (vrp_finalize): Remove call to simplify_using_ranges.
9428 (simplify_stmt_using_ranges): New function extracted from
9429 simplify_using_ranges.
9430 (simplify_div_or_mod_using_ranges): Likewise.
9431 (simplify_abs_using_ranges): Likewise.
9432 (simplify_cond_using_ranges): New function.
9433 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
9434 * tree-ssa-propagate.c (substitute_and_fold): Call
9435 simplify_stmt_using_ranges if we have range information.
9437 2005-07-06 James E. Wilson <wilson@specifixinc.com>
9439 * config/ia64/ia64.c (ia64_reorg): Check optimize before
9440 ia64_flag_schedule_isns2.
9442 * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
9443 reading/writing general registers.
9444 (ia64_function_arg): Revert 2005-06-18 change.
9446 2005-07-06 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
9448 * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
9449 (legitimize_tls_address): Use gcc_unreachable instead of abort.
9451 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
9453 * function.c (expand_function_end): Revert part of 2005-06-27
9454 patch. Do sjlj_emit_function_exit_after after return_label.
9456 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
9458 * doc/install.texi (--disable-libssp): New.
9460 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
9462 * doc/invoke.texi: Update -fforce-mem documentation.
9463 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
9464 code for -fforce-mem.
9465 * expmed.c: (store_bit_field,store_fixed_bit_field,
9466 extract_bit_field): Ditto.
9467 * expr.c: (convert_move): Ditto.
9468 * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
9469 expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
9470 emit_conditional_add,expand_float,expand_fix): Ditto.
9471 * opts.c: (decode_options): Remove setting of flag_force_mem flag.
9472 (common_handle_option): Issue warning when -fforce-mem specified.
9474 2005-07-06 Paul Brook <paul@codesourcery.com>
9476 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
9478 * configure: Regenerate.
9480 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
9482 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
9484 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
9486 Fix PR tree-optimization/22319
9487 Fix PR tree-optimization/22140
9488 Fix PR tree-optimization/22310
9490 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
9491 variable sized types.
9492 Use correct type for intermediate structure on *a = *b structure
9495 2005-07-06 Jakub Jelinek <jakub@redhat.com>
9497 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
9499 (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
9500 (machine_function): Move typedef to...
9501 * config/rs6000/rs6000.c (machine_function): ... here. Add
9502 varargs_save_offset field.
9503 (rs6000_stack_t): Remove varargs_size field.
9504 (setup_incoming_varargs): Allocate varargs save area using
9505 assign_stack_local, try to make it as small as possible.
9506 Save offset from virtual_stack_vars_rtx to the save area
9507 in cfun->machine->varargs_save_offset. Use UNITS_PER_FP_WORD
9508 instead of magic 8 when fp word byte size is used.
9509 (rs6000_va_start): Use cfun->machine->varargs_save_offset
9510 instead of -RS6000_VARARGS_SIZE.
9511 (rs6000_stack_info, debug_stack_info,
9512 rs6000_initial_elimination_offset): Remove all traces of
9514 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
9515 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
9516 RS6000_VARARGS_AREA.
9518 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
9520 PR tree-optimization/21963
9521 * tree-ssa-loop-ivopts.c (get_computation_aff): Use
9522 constant_multiple_of in the same way get_computation_cost_at does.
9524 2005-07-06 Jakub Jelinek <jakub@redhat.com>
9526 * config/sparc/sparc.h (sparc_compare_emitted): New extern.
9527 * config/sparc/sparc.c (sparc_compare_emitted): New variable.
9528 (gen_compare_reg): If sparc_compare_emitted is set, clear it
9529 and return its previous value.
9530 (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
9531 * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
9533 (stack_protect_set, stack_protect_test): New expanders.
9534 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
9535 stack_protect_testdi): New insns.
9536 * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
9537 * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
9539 2005-07-06 Jeff Law <law@redhat.com>
9541 * tree-ssa-dce.c (cfg_altered): New global.
9542 (tree_dce_init): Initialize cfg_altered.
9543 (remove_dead_stmt): If we remove an edge in the CFG, then set
9545 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
9548 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
9550 * Makefile.in (stamp-collect-ld): Use
9551 $(ORIGINAL_LD_FOR_TARGET) instead of $<. Don't remove
9552 ./collect-ld if it already exists.
9553 (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
9554 Don't remove ./nm if it already exists.
9556 2005-07-05 Devang Patel <dpatel@apple.com>
9558 * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
9559 (LOOP_VINFO_LOC, LOOP_LOC): Remove.
9560 * tree-vectorizer.c (vect_loop_location): New.
9561 (vect_print_dump_info): Use vect_loop_location.
9562 (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
9563 (vectorize_loops): Set vect_loop_location.
9564 * tree-vect-analyze.c (vect_analyze_offset_expr,
9565 vect_determin_vectorization_factor, vect_analyze_operations,
9566 vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
9567 vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
9568 vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
9569 vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
9570 vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
9571 vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
9572 vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
9573 vect_analyze_loop): Adjust vect_print_dump_info API.
9574 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
9575 vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
9576 vect_finish_stmt_generation, vectorizable_assignment,
9577 vectorizable_operation, vectorizable_store, vectorizable_load,
9578 vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
9579 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
9580 vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
9581 vect_transform_loop): Same.
9582 * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
9583 vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
9586 2005-07-05 Randolph Chung <tausq@debian.org>
9588 * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
9589 * configure: Regenerate.
9590 * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
9591 (pa_tls_referenced_p): Declare.
9592 * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
9593 (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
9594 (legitimize_tls_address): New.
9595 (hppa_legitimize_address): Handle TLS addresses.
9596 (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
9597 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9598 (emit_move_sequence): Handle TLS addresses.
9599 (pa_encode_section_info): Call default handler to handle common
9601 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
9602 (CONSTANT_ADDRESS_P): Reject TLS operands.
9603 (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
9604 * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
9605 (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
9606 (UNSPEC_TLSLE): Define new constants.
9607 (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
9608 * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
9609 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
9610 (tie_symbolic_operand, tle_symbolic_operand): New
9612 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
9614 * aclocal.m4: Update macros for autoconf 2.59 style.
9615 * configure.ac: Likewise.
9617 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9619 * pa.c (function_value): Handle small aggregates on 32-bit targets.
9620 (function_arg): Pass small aggregates in general registers on 32-bit
9622 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
9624 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
9626 * Makefile.in (final.o): Fix dependencies.
9628 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
9632 * langhooks.h (struct lang_hooks): Add expr_to_decl.
9633 * langhooks.c (lhd_expr_to_decl): New.
9634 * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
9636 (LANG_HOOKS_INITIALIZER): Update.
9637 * tree.c (recompute_tree_invarant_for_addr_expr): Call
9638 expr_to_decl langhook.
9639 * c-tree.h (c_expr_to_decl): Declare.
9640 * c-typeck.c (c_expr_to_decl): New.
9641 (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
9643 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
9645 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
9648 * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
9649 C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
9651 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
9653 * Makefile.in: Adjust dependencies.
9654 * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
9655 * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
9656 * alias.c (rest_of_handle_cfg, pass_cfg): New.
9657 * bb-reorder.c (duplicate_computed_gotos): Make it static.
9658 * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
9659 rest_of_compilation.
9661 * bb-reorder.c (gate_duplicate_computed_gotos,
9662 pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
9663 rest_of_handle_reorder_blocks, pass_reorder_blocks,
9664 gate_handle_partition_blocks, rest_of_handle_partition_blocks,
9665 pass_partition_blocks): New.
9666 * bt-load.c (gate_handle_branch_target_load_optimize,
9667 rest_of_handle_branch_target_load_optimize,
9668 pass_branch_target_load_optimize): New.
9669 * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
9671 * cfglayout.c (pass_insn_locators_initialize): New.
9672 * cfgrtl.c (pass_free_cfg): New.
9673 * combine.c (gate_handle_combine, rest_of_handle_combine,
9675 * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
9676 gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
9677 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
9678 * except.c (pass_set_nothrow_function_flags,
9679 pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
9681 * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
9682 rest_of_handle_shorten_branches, pass_shorten_branches,
9683 rest_of_clean_state, pass_clean_state): New.
9684 * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
9685 rest_of_handle_remove_death_notes, pass_remove_death_notes,
9686 rest_of_handle_life, pass_life, rest_of_handle_flow2,
9688 * function.c (pass_instantiate_virtual_regs, pass_init_function,
9689 rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
9690 * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
9691 pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
9693 * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
9694 * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
9695 pass_rtl_ifcvt, gate_handle_if_after_combine,
9696 rest_of_handle_if_after_combine, pass_if_after_combine,
9697 gate_handle_if_after_reload, rest_of_handle_if_after_reload,
9698 pass_if_after_reload): New.
9699 * integrate.c (pass_initial_value_sets): New.
9700 * jump.c (pass_cleanup_barriers, purge_line_number_notes,
9701 pass_purge_lineno_notes): New.
9702 * mode-switching.c (rest_of_handle_mode_switching,
9703 pass_mode_switching): New.
9704 * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
9705 * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
9707 * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
9708 pass_loop_optimize): New.
9709 * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
9711 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
9713 * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
9714 pass_postreload_cse): New.
9715 * profile.c (gate_handle_profiling, pass_profiling,
9716 rest_of_handle_branch_prob, pass_branch_prob): New.
9717 * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
9718 pass_split_before_regstack, gate_handle_split_before_regstack,
9719 gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
9720 rest_of_handle_split_all_insns, pass_split_all_insns): New.
9721 * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
9722 pass_stack_regs): New.
9723 * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
9724 gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
9725 pass_stack_adjustments): New.
9726 * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
9727 pass_regrename): New.
9728 * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
9729 pass_delay_slots, gate_handle_machine_reorg,
9730 rest_of_handle_machine_reorg, pass_machine_reorg): New.
9731 * rtl.h (extern void purge_line_number_notes): New.
9732 * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
9733 gate_handle_sched2, rest_of_handle_sched2, pass_sched,
9735 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
9737 * value-prof.c (gate_handle_value_profile_transformations,
9738 rest_of_handle_value_profile_transformations,
9739 pass_value_profile_transformations): New.
9740 * var-tracking.c (gate_handle_var_tracking,
9741 pass_variable_tracking): New.
9742 * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
9744 * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
9745 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
9746 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
9747 rest_of_handle_old_regalloc, rest_of_handle_regrename,
9748 rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
9749 rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
9750 rest_of_handle_gcse2, rest_of_handle_regmove,
9751 rest_of_handle_tracer, rest_of_handle_if_conversion,
9752 rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
9753 rest_of_handle_web, rest_of_handle_branch_prob,
9754 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
9755 rest_of_handle_jump_bypass, rest_of_handle_combine,
9756 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
9757 rest_of_handle_gcse, rest_of_handle_loop_optimize,
9758 rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
9759 rest_of_handle_mode_switching, rest_of_handle_jump,
9760 rest_of_handle_eh, rest_of_handle_stack_adjustments,
9761 rest_of_handle_flow2, rest_of_handle_jump2,
9762 rest_of_handle_peephole2, rest_of_handle_postreload,
9763 rest_of_handle_shorten_branches, rest_of_clean_state,
9764 rest_of_compilation): Remove.
9766 * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
9767 * passes.c (dump_flags, in_gimple_form, all_passes,
9768 all_ipa_passes, all_lowering_passes, register_one_dump_file,
9769 register_dump_files, next_pass_1, last_verified, execute_todo,
9770 execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
9771 from tree-optimize.c.
9772 (init_optimization_passes): Moved from tree-optimize.c,
9773 adding the RTL optimizations.
9774 * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
9775 * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
9776 all_ipa_passes, all_lowering_passes, register_one_dump_file,
9777 register_dump_files, next_pass_1, last_verified, execute_todo,
9778 execute_one_pass, execute_pass_list, execute_ipa_pass_list,
9779 init_tree_optimization_passes, ipa_passes): Delete.
9780 * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
9782 (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
9783 dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
9785 (ipa_passes): Remove.
9786 (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
9787 * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
9788 dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
9789 dump_switch_p, dump_flag_name): Moved to tree-pass.h.
9790 (dump_info_p, dump_flag): Moved to tree-dump.h.
9792 * Makefile.in: Adjust dependencies for tree-pretty-print.c,
9794 * passes.c (finish_optimization_passes): Use dump_begin
9795 and dump_end, TDI_end.
9796 (gate_rest_of_compilation): New.
9797 (pass_rest_of_compilation): Use it.
9798 (gate_postreload, pass_postreload): New.
9799 * toplev.c (general_init): Rename init_tree_optimization_passes.
9800 * toplev.h (init_tree_optimization_passes): Rename to
9801 init_optimizations_passes.
9802 * tree-dump.c (dump_flag): Make static.
9803 (dump_files): Remove RTL dumps.
9804 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
9805 pass_cleanup_cfg, pass_free_cfg_annotations,
9806 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
9807 pass_init_datastructures, pass_fixup_cfg): Make non-static.
9808 * tree-pretty-print.c: Include tree-pass.h.
9809 * cgraph.c: Include tree-dump.h.
9811 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
9813 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
9814 Only fall back to saying it points to readonly memory if
9817 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9819 * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
9820 * config/m32r/m32r.c (m32r_compute_frame_size,
9821 m32r_expand_prologue): Take current_function_profile into
9822 account whenever we reference
9823 current_function_uses_pic_offset_table.
9824 (m32r_finalize_pic): Remove.
9825 * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
9827 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
9829 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
9830 instead of $<. Don't remove ./as if it already exists.
9832 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9835 * pa.md: Remove fcpy alternative from movhi and movqi patterns.
9836 * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
9837 for complex modes when generating code for PA 1.0.
9838 (VALID_FP_MODE_P): New macro.
9839 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
9840 sets for all general and floating point modes. Align wide floating
9841 point modes to even register boundaries to comply with architectural
9843 (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
9844 * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
9845 (VALID_FP_MODE_P): New macro.
9846 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
9847 sets for all general and floating point modes. Align wide floating
9848 point modes to even register boundaries to comply with architectural
9851 2005-07-04 Diego Novillo <dnovillo@redhat.com>
9853 * tree-dump.c (dump_files): Initialize dump number for .cgraph
9856 2005-07-04 Diego Novillo <dnovillo@redhat.com>
9858 * tree-ssa-structalias.c: Don't include expr.h.
9860 2005-07-04 Diego Novillo <dnovillo@redhat.com>
9862 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
9865 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
9867 Fix PR tree-optimization/22279
9869 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
9872 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
9874 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
9876 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
9878 * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
9879 cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
9880 config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
9881 config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
9882 config/stormy16/stormy16.c, config/v850/v850.c,
9883 config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
9884 except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
9885 Avoid "." or "\n" at end of diagnostics and capital letters at
9886 start of diagnostics.
9887 * combine.c, cse.c: Don't translate dump file output.
9888 * toplev.c (print_version): Only translate output if going to
9891 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
9893 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
9894 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
9897 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9899 * pa.c (fix_range): Fix typo in comment.
9901 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
9903 * tree-vrp.c (extract_range_from_assert): Replace
9904 fold (build (...)) with fold_build2.
9906 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9908 * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
9909 gcc_gfc_char_table, init_dynamic_gfc_info): New.
9910 (format_types_orig, handle_format_attribute): Add support for
9913 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9915 * varasm.c (assemble_variable): Fix format specifier thinko.
9917 2005-07-03 Ira Rosen <irar@il.ibm.com>
9919 PR tree-optimization/22029 (and 22135)
9920 * tree-pretty-print.c (dump_generic_node): Check that the node is not
9921 a phi node before calling dump_vops.
9923 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
9925 * tree-dump.h (dump_string_field): Declare.
9926 * tree-dump.c: Use it instead of dump_string.
9927 (dump_string_field): Make non-static.
9929 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
9931 * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
9932 up the minimal CFG stuff always when optimize > 0. Call
9933 split_all_insns_noflow in PIC case if needed.
9935 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
9936 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
9939 * c-decl.c (c_write_global_declarations): Dump contents of
9941 * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
9942 <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
9943 <GOTO_EXPR>, <SWITCH_EXPR>: Add.
9944 (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
9947 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
9949 * c-common.h (GCC_DIAG_STYLE): Define.
9950 * c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
9951 version for format checking to 4.1.
9952 * c-format.c: Include toplev.h after c-common.h.
9953 (enum format_type): Add gcc_tdiag_format_type.
9954 (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
9955 gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
9956 (format_types_orig): Add gcc_tdiag.
9957 (init_dynamic_diag_info): Support gcc_tdiag formats.
9958 (handle_format_attribute): Likewise.
9959 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
9960 (GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
9961 version for format checking to 4.1.
9962 (warning0, warning, error, pedwarn, sorry): Use
9964 * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
9965 (finish_aliases_1): Do not use %qE.
9966 * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
9967 config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
9968 Correct format bugs.
9969 * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
9970 parameter to unsigned HOST_WIDE_INT.
9971 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
9973 2005-07-02 David Edelsohn <edelsohn@gnu.org>
9976 * expr.c (write_complex_part): Use adjust_address for MEM.
9977 (read_complex_part): Same.
9979 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
9981 Fix PR tree-optimization/22280
9983 * tree-sra.c (generate_element_init): Remove useless loop.
9985 2005-07-02 Richard Henderson <rth@redhat.com>
9987 * config/alpha/alpha.c (alpha_legitimize_address): Check for
9989 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
9991 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
9994 * fold-const.c (fold_binary): Handle the return value of
9995 fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
9996 Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
9998 2005-07-02 Jeff Law <law@redhat.com>
10000 * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
10001 a eliminate type conversion which feeds an equality comparison
10002 if the original type or either operand in the comparison is a
10005 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
10007 * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
10008 config/rs6000/rs6000.opt, params.def: Remove "." from end of help
10010 * config/avr/avr.c: Do not use '`' as left quote.
10011 * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
10012 Remove "." from end of diagnostics. Make diagnostics start with
10015 2005-07-02 Zack Weinberg <zack@codesourcery.com>
10016 Joseph S. Myers <joseph@codesourcery.com>
10018 * toplev.c (default_tree_printer): Handle setting location with
10020 * c-objc.common.c (c_tree_printer): Likewise.
10021 * c-format.c (gcc_diag_flag_specs): Add '+'.
10022 (gcc_cdiag_char_table): Allow '+' flag for tree formats.
10023 (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
10025 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
10026 config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
10027 config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
10028 config/v850/v850.c, function.c, stor-layout.c, toplev.c,
10029 tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
10030 instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
10031 of diagnostics. Use %q+D not %s for a decl. Do not pass excess
10032 format arguments where %J is used without %D.
10034 2005-07-02 Jakub Jelinek <jakub@redhat.com>
10036 * gcc.c (LINK_SSP_SPEC): Define.
10037 (link_ssp_spec): New variable.
10038 (LINK_COMMAND_SPEC): Add %(link_ssp).
10039 (static_specs): Add link_ssp_spec.
10040 * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
10041 * configure: Rebuilt.
10042 * config.in: Rebuilt.
10044 * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
10045 * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
10046 * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
10047 * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
10048 * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
10049 If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
10050 -0x7008(2) instead of reading __stack_chk_guard variable.
10051 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
10053 (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
10054 (stack_protect_set, stack_protect_test): Use *_tls* patterns
10055 if TARGET_THREAD_SSP_OFFSET is defined.
10056 (stack_tls_protect_set_si, stack_tls_protect_set_di,
10057 stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
10060 2005-06-27 Richard Henderson <rth@redhat.com>
10061 * libgcc-std.ver (GCC_4.1.0): New.
10062 * libgcc.h (__stack_chk_guard): Declare.
10063 (__stack_chk_fail, __stack_chk_fail_local): Declare.
10064 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
10065 * mklibgcc.in (lib2funcs): Add them.
10067 2005-07-01 Richard Henderson <rth@redhat.com>
10069 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
10070 void * before struct sigcontext *.
10071 (x86_fallback_frame_state): Likewise.
10073 2005-07-01 James E. Wilson <wilson@specifixinc.com>
10075 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
10077 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
10080 * tree-ssa-reassoc.c (should_transpose): Fix which operand
10081 we check for SSA_NAME for.
10083 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
10085 Fix PR tree-optimization/22071
10087 * tree-ssa-structalias.c (offset_overlaps_with_access): New
10089 (get_constraint_for_component_ref): Use it.
10091 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
10094 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
10095 print out the last new line.
10097 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
10099 * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
10100 Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
10101 * config/cris/cris.c (cris_conditional_register_usage): Adjust
10102 reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
10103 (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
10104 (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
10105 * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
10106 (enum reg_class): New member CC0_REGS.
10107 (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
10108 (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
10109 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
10110 (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10111 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
10112 Adjust for register now described.
10114 2005-07-01 Jakub Jelinek <jakub@redhat.com>
10117 * config/i386/i386.md (stack_protect_test_si,
10118 stack_protect_test_di): Add earlyclobber for scratch 3.
10119 * config/rs6000/rs6000.md (stack_protect_testsi,
10120 stack_protect_testdi): Add earlyclobber for scratch 3,
10121 remove earlyclobber from scratch 4.
10123 Older entries for 2005 can be found in ChangeLog-2005.