1 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
3 * arm.md (movqi): On thumb when optimizing, handle loading from
4 memory by describing this as taking a subreg of a zero-extended load
5 into an SImode register.
8 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
10 * reload1.c (merge_assigned_reloads): Do not change any
11 RELOAD_FOR_OUTPUT_ADDRESS reloads.
13 2005-09-30 Geoffrey Keating <geoffk@apple.com>
15 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
16 before creating new ones. Do symlinks before creating the actual
19 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
20 to work out which multilibs are actually being built.
22 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
24 * tree-vect-transform.c, config/ms1/ms1.md,
25 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
26 Follow spelling conventions.
27 * doc/invoke.texi, doc/md.texi: Fix typos.
29 2005-09-30 Andrew Macleod <amacleod@redat.com>
31 PR tree-optimization/21430
32 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
33 use operands, and set stmt pointer if need be.
34 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
35 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
38 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
43 2005-09-29 Mark Mitchell <mark@codesourcery.com>
45 * optabs.c (expand_binop): Initialize first_pass_p.
47 2005-09-29 Jakub Jelinek <jakub@redhat.com>
50 * c-decl.c (c_write_global_declarations_1): If any
51 wrapup_global_declaration_2 call returned true, restart the loop.
53 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
55 Fix PR tree-optimization/24117
56 * tree-ssa-structalias.c (find_func_aliases): Strip nops
57 before considering whether to use anyoffset.
59 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
63 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
65 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
67 (swap_commutative_operands_with_target): New.
69 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
72 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
75 2005-09-29 Steven Bosscher <stevenb@suse.de>
77 PR tree-optimization/23911
78 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
79 and IMAGPART_EXPR too.
81 2005-09-28 Mark Mitchell <mark@codesourcery.com>
84 * expmed.c (expand_shift): Move logic to reverse rotation
85 direction when rotating by constants ...
86 * optabs.c (expand_binop): ... here.
87 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
88 (ix86_rotrdi3): New pattern.
89 (rotldi3): Handle 32-bit mode.
90 (ix86_rotldi3): New pattern.
92 2005-09-29 Alan Modra <amodra@bigpond.net.au>
95 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
96 check for numbers that need no bit twiddle.
98 2005-09-28 Geoffrey Keating <geoffk@apple.com>
100 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
101 multilib to be built.
103 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
104 (stage1-start): Delete old libgcc and libunwind before moving
105 anything into the stage directory.
106 (stage2-start): Likewise.
107 (stage3-start): Likewise.
108 (stage4-start): Likewise.
109 (stageprofile-start): Likewise.
110 (stagefeedback-start): Likewise.
111 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
112 header in tm_file and CPU-specific t-darwin in tmake_file.
113 (i[34567]86-*-darwin*): Don't change tm_file.
114 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
115 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
116 shared library stub for target OS version.
117 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
118 (SHLIB_LINK): Don't make SHLIB_SOLINK.
119 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
120 (libgcc_s.%.dylib): New.
122 (install-darwin-libgcc-stubs): New.
123 (INSTALL_LIBGCC): New append.
124 * config/i386/darwin-libgcc.10.4.ver: New.
125 * config/i386/darwin-libgcc.10.5.ver: New.
126 * config/i386/t-darwin: New.
127 * config/rs6000/darwin-libgcc.10.4.ver: New.
128 * config/rs6000/darwin-libgcc.10.5.ver: New.
129 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
130 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
132 2005-09-28 Paul Brook <paul@codesourcery.com>
134 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
137 2005-09-28 Richard Guenther <rguenther@suse.de>
139 PR tree-optimization/23853
140 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
141 host_integerp to verify misalignment value.
143 2005-09-28 Richard Henderson <rth@redhat.com>
145 * builtins.c (get_builtin_sync_mode): New.
146 (expand_builtin_sync_operation): Pass in mode argument.
147 (expand_builtin_compare_and_swap): Likewise.
148 (expand_builtin_lock_test_and_set): Likewise.
149 (expand_builtin_lock_release): Likewise.
150 (expand_builtin): Update to match.
152 2005-09-28 Nick Clifton <nickc@redhat.com>
154 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
155 formatting. Add check to PLUS case to ensure that the offset is
156 within an acceptable range.
158 * config/v850/v850.md (casesi): Disable the generation of the
159 switch pattern as it is not being handled properly at the moment.
161 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
162 for when the high words are identical.
164 2005-09-27 Richard Henderson <rth@redhat.com>
166 * pretty-print.c (pp_base_format): Fix typo for %>.
168 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
169 Devang Patel <dpatel@apple.com>
171 PR tree-optimization/23625
172 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
173 LABEL_EXPR, assertion check.
175 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
177 * optabs.c (no_conflict_move_test): Check if a result of a
178 to-be-moved insn would be clobbered by an originally
181 2005-09-27 Jeff Law <law@redhat.com>
183 * passes.c (init_optimization_passes): Replace copy propagation
184 passes immediately after DOM with phi-only copy propagation
185 pases. Add phi-only copy propagation pass after first DOM pass.
186 * tree-pass.h (pass_phi_only_copy_prop): Declare.
187 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
188 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
189 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
190 to init_copy_prop. Callers updated.
191 (do_phi_only_copy_prop): New function.
192 (pass_phi_only_copy_prop): New pass descriptor.
194 2005-09-27 Nick Clifton <nickc@redhat.com>
196 * libgcc2.c (__popcount_tab): Remove redundant prototype.
198 2005-09-26 Jason Merrill <jason@redhat.com>
201 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
203 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
205 2005-09-26 James E Wilson <wilson@specifix.com>
207 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
208 copyright. Add gcc copyright plus libgcc exception.
209 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
211 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
213 2005-09-26 Jeff Law <law@redhat.com>
215 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
216 about when to iterate.
218 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
221 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
222 for __complex__ double in -mcpu=G5 mode.
224 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
226 PR tree-optimization/23942
227 * Makefile.in (SCEV_H): Depends on PARAMS_H.
228 * tree-scalar-evolution.c: Include params.h.
230 (follow_ssa_edge, follow_ssa_edge_in_rhs,
231 follow_ssa_edge_in_condition_phi_branch,
232 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
233 Change return type to t_bool. Use a parameter to limit the size of
234 trees that are walked before stopping
235 (analyze_evolution_in_loop): Initialize the limit to 0.
236 (follow_ssa_edge): Give up by returning t_dont_know if the limit
237 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
239 2005-09-26 Uros Bizjak <uros@kss-loka.si>
242 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
243 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
245 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
247 * combine.c (make_extraction): Check for valid use of subreg.
249 2005-09-26 Uros Bizjak <uros@kss-loka.si>
252 * config/i386/i386.md ("*fistdi2_1"): New pattern.
253 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
254 ("fist<mode>2_with_temp"): Use only register operands.
256 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
258 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
259 CALL_INSN_FUNCTION_USAGE.
261 2005-09-26 Richard Guenther <rguenther@suse.de>
264 * gcse.c: Include hashtab.h, define ldst entry hashtable.
265 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
266 (ldst_entry): Use the hashtable instead of list-walking.
267 (find_rtx_in_ldst): Likewise.
268 (free_ldst_entry): Free the hashtable.
269 (compute_ld_motion_mems): Create the hashtable.
270 (trim_ld_motion_mems): Remove entry from hashtable if
271 removing it from list.
272 (compute_store_table): Likewise^2.
273 (store_motion): Free hashtable in case we did not see
276 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
278 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
279 and arg1 if we are passing them to fold_build2.
281 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
284 * config/i386/i386.c (ix86_function_regparm): Fix the test for
287 2005-09-25 Richard Henderson <rth@redhat.com>
289 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
290 SYMBOL_REF_TLS_MODEL to be correct.
292 2005-09-24 Richard Henderson <rth@redhat.com>
294 * ipa-type-escape.c (discover_unique_type): Remove dead code at
295 end of function. Reindent.
297 2005-09-24 Ian Lance Taylor <ian@airs.com>
299 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
300 NEGATE_EXPR/BIT_NOT_EXPR case.
302 2005-09-24 Richard Henderson <rth@redhat.com>
304 * c-common.c (handle_mode_attribute): When not modifying in place,
305 create subtypes for enumerations.
306 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
307 * gimplify.c (create_tmp_from_val): Likewise.
309 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
311 * config/i386/i386.md (*tls_global_dynamic_64,
312 *tls_local_dynamic_base_64): Add missing mode to call.
313 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
315 2005-09-24 Jan Hubicka <jh@suse.cz>
317 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
318 (cgraph_clone_node): Likewise.
319 * cgraph.h (cgraph_clone_edge): Update prototype.
320 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
321 duplicated prototypes; add updating argument.
322 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
323 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
325 (cgraph_mark_inline_edge): Likewise.
326 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
327 (cgraph_flatten_node): Likewise.
328 (cgraph_decide_recursive_inlining): Likewise.
329 (cgraph_decide_inlining_of_small_function): Likewise.
330 * tree-optimize.c (tree_rest_of_compilation): Likewise.
332 2005-09-23 David Edelsohn <edelsohn@gnu.org>
333 Pete Steinmetz <steinmtz@us.ibm.com>
335 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
336 (rldic.): Set type to "compare".
338 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
339 mfjmpr for MFCTR/MFLR.
340 (movdf_hardfloat64): Same.
341 (movdf_softfloat64): Same. Correct order of store and move types.
342 (movti_string): Set type to store_ux/load_ux.
343 (load_multiple): Set type to load_ux.
344 (store_multiple): Set type to store_ux.
345 (movmemsi): Set type to store_ux.
346 (output_cbranch direct_return): Set type to jmpreg.
347 (stmw): Set type to store_ux.
348 (lmw): Set type to load_ux.
349 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
350 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
351 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
352 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
353 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
354 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
355 (rios1-fpstore): Increase latency to 3.
356 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
357 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
359 2005-09-23 David Edelsohn <edelsohn@gnu.org>
360 Andrew Pinski <pinskia@physics.uc.edu>
362 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
363 operand2 constraint to "b".
364 (sync_<fetchop_name>di_internal): Same.
365 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
367 (sync_old_<fetchop_name>di_internal): Same.
368 (sync_new_<fetchop_name>si_internal): Same.
369 (sync_new_<fetchop_name>di_internal): Same.
371 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
374 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
375 case, define as macros.
377 PR rtl-optimization/23837
378 * optabs.c (no_conflict_move_test): Don't set must_stay for a
379 clobber / clobber match between dest and p->first.
381 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
382 (no_conflict_move_test): Update comments.
384 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
386 * doc/install.texi: Update URL for Jacks.
387 * doc/sourcebuild.texi: Likewise.
389 2005-09-22 David Edelsohn <edelsohn@gnu.org>
392 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
393 registers when choosing register preferences.
394 (movdf_hardfloat64): Same.
396 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
398 * expmed.c (expand_shift): Don't use the target of the rotate as
399 target for the first expanded shift insn.
400 * testsuite/gcc.dg/20050922-1.c: Testcase added.
402 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
404 PR tree-optimization/22438
405 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
406 preserved iv rhs rewriting specially.
408 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
410 * tree-data-ref.c (analyze_array_indexes): Only estimate when
411 estimate_only is true.
412 * tree-flow.h (ref_contains_indirect_ref): New prototype.
413 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
414 tree-ssa-structalias.c
415 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
416 ref_contains_indirect_ref.
417 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
419 2005-09-21 DJ Delorie <dj@redhat.com>
421 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
423 (mn10300_return_in_memory): Support variable size types also.
424 (mn10300_pass_by_reference): Likewise.
425 (mn10300_function_value): New.
426 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
427 (FUNCTION_OUTGOING_VALUE): Likewise.
428 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
429 * doc/invoke.texi: Document it.
431 2005-09-21 Uros Bizjak <uros@kss-loka.si>
434 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
435 force integer op1 into register for XFmode compares.
437 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
440 * expmed.c (alg_code): Add alg_impossible.
441 (alg_hash_entry): Add cost.
442 (synth_mult): Record alg_impossible in the hash table if
443 multiplication by a given integer is impossble within the
444 limit. Speed up using alg_impossible.
446 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
448 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
449 argument. Allow and set any offset if needs_anyoffset is passed
451 (get_constraint_for): Add argument here too.
453 (do_structure_copy): Pass NULL to get_constraint_for.
454 (handle_ptr_arith): Ditto.
455 (find_func_aliases): Ditto.
457 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
459 PR rtl-optimization/23898
460 * output.h (get_attr_min_length): Declare.
461 * final.c (get_attr_length_1): New function, broken out of:
463 (get_attr_min_length): New function.
464 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
465 (duplicate_computed_gotos): Likewise.
466 * genattr.c (insn_min_length): Generate declaration.
467 * genattrtab.c (min_fn, min_attr_value): New functions.
468 (make_length_attrs): Generate insn_min_length.
470 2005-09-20 Steve Ellcey <sje@cup.hp.com>
472 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
474 2005-09-20 Richard Henderson <rth@redhat.com>
476 PR tree-optimization/24059
477 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
480 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
482 * c.opt (fextended-identifiers): New.
483 * c-opts.c (c_common_handle_option): Handle
484 -fextended-identifiers.
485 * doc/cpp.texi: Update documentation of extended identifiers.
486 * doc/cppopts.texi (-fextended-identifiers): Document.
488 2005-09-20 Jakub Jelinek <jakub@redhat.com>
490 PR tree-optimization/23929
491 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
494 PR tree-optimization/23818
495 * tree-stdarg.c (execute_optimize_stdarg): Call
496 calculate_dominance_info.
498 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
500 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
501 (analyze_siv_subscript_cst_affine): Add weak SIV test.
502 (compute_overlap_steps_for_affine_1_2): Use
503 get_number_of_iters_for_loop.
504 (analyze_subscript_affine_affine): Check whether difference is
506 Use get_number_of_iters_for_loop.
507 Check whether overlap occurs outside of bounds.
508 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
510 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
512 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
513 base register if possible.
515 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
517 PR tree-optimization/18463
518 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
519 converting it directly is not possible.
520 (chrec_convert_aggressive): New function.
521 * tree-chrec.h (chrec_convert_aggressive): Declare.
522 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
523 Fold chrec conversions aggressively if asked to.
524 (instantiate_parameters): Modified because of changes in
525 instantiate_parameters_1.
527 2005-09-19 Richard Henderson <rth@redhat.com>
529 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
530 (reduc_splus_v2df): New.
532 2005-09-19 Richard Sandiford <richard@codesourcery.com>
534 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
535 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
537 2005-09-19 Richard Henderson <rth@redhat.com>
539 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
542 2005-09-19 Richard Henderson <rth@redhat.com>
544 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
545 (ia64_expand_dot_prod_v8qi): New.
546 * config/ia64/ia64-protos.h: Update.
547 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
548 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
549 sdot_prodv8qi, sdot_prodv4hi): New.
550 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
552 2005-09-19 Richard Henderson <rth@redhat.com>
555 * real.c (exact_real_truncate): Return false if the format cannot
556 represent the number as a normal.
558 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
561 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
563 * tree-ssa-operands.c (swap_tree_operands): Export.
564 * tree.h (swap_tree_operands): Declare.
565 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
566 Call swap_tree_operands.
568 2005-09-19 Richard Henderson <rth@redhat.com>
570 * tree-flow.h (merge_alias_info): Declare.
571 * tree-ssa-copy.c (merge_alias_info): Export.
572 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
573 (vect_create_data_ref_ptr): Use create_iv directly.
574 (vectorizable_load): Use correct types for integer constants.
575 (vect_generate_tmps_on_preheader): Likewise.
576 (vect_gen_niters_for_prolog_loop): Likewise.
578 2005-09-19 Steven Bosscher <stevenb@suse.de>
580 PR rtl-optimization/23943
581 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
583 2005-09-18 Jan Hubicka <jh@suse.cz>
585 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
587 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
589 * varasm.c (output_constant): Do not abort on conversions to union
590 types between different sizes.
592 2005-09-18 Richard Guenther <rguenther@suse.de>
595 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
598 2005-09-18 Paul Brook <paul@codesourcery.com>
600 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
602 2005-09-17 Richard Henderson <rth@redhat.com>
604 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
605 * tree-ssa-loop.c (pass_vect_dce): Remove.
606 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
609 2005-09-17 Richard Henderson <rth@redhat.com>
611 * tree-pass.h (pass_vect_dce): Declare.
612 * passes.c (init_optimization_passes): Add it.
613 * tree-flow.h (tree_ssa_dce): Declare.
614 * tree-ssa-dce.c (tree_ssa_dce): Export.
615 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
616 (gate_tree_vectorize): ... here.
617 (pass_vect_dce): New.
619 2005-09-17 Jan Hubicka <jh@suse.cz>
621 * except.c (struct eh_status): Turn region_array into vec.
622 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
623 convert_from_eh_region_ranges, find_exception_handler_labels,
624 current_function_has_exception_handlers, assign_filter_values,
625 build_post_landing_pads, dw2_build_landing_pads,
626 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
627 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
628 foreach_reachable_handler, can_throw_internal_1,
629 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
631 (duplicate_eh_region_1): Update region_array.
632 (duplicate_eh_regions): Resize region_array and avoid recomputing.
634 2005-09-17 David Edelsohn <edelsohn@gnu.org>
637 * expmed.c (expand_mult): Substitute simple register for op0 when
640 2005-09-17 Richard Henderson <rth@redhat.com>
642 * expr.c (emit_move_via_integer): Add force argument, pass it on
643 to emit_move_change_mode. Update callers.
644 (emit_move_complex): Pass true to new force argument.
645 * function.c (expand_function_end): Move expand_eh_return call
646 earlier. Merge sub-word complex values into a pseudo before
647 copying to the return hard register.
649 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
651 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
652 between different sizes.
654 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
658 * passes.c (init_optimization_passes): Register dump files for
661 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
663 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
664 * config/s390/s390.c (s390_overlap_p): New function.
665 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
666 peephole2, "*xc" peephole2): Added overlap check to the peephole2
669 2005-09-16 Richard Guenther <rguenther@suse.de>
671 * ipa-pure-const.c (static_execute): Free auxiliar information.
672 * ipa-type-escape.c (discover_unique_type): Free temporary key.
673 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
675 2005-09-15 DJ Delorie <dj@redhat.com>
677 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
679 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
681 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
683 (swap_commutative_operands_with_target): New.
685 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
687 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
690 (estimate_iters_using_array): New function.
691 * tree-data-ref.h (estimate_iters_using_array): Prototype
692 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
693 Use estimate_iters_using_array instead of analyze_array.
695 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
697 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
700 2005-09-15 Michael Matz <matz@suse.de>
702 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
704 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
706 PR tree-optimization/23835
707 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
708 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
710 2005-09-14 Richard Henderson <rth@redhat.com>
712 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
713 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
715 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
717 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
718 in the ARRAY_TYPE case.
720 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
722 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
724 2005-09-14 Uros Bizjak <uros@kss-loka.si>
727 * tree-vect-transform.c (vectorizable_operation): Return false for
728 scalar shift operations and for vector shift operations with
729 non-invariant shift arguments. Use scalar tree operand op1 as
730 a shift operand when vector shift insn pattern uses scalar shift
732 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
734 2005-09-14 Olivier Hainque <hainque@adacore.com>
736 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
737 value if it has side-effects.
739 2005-09-14 David Edelsohn <edelsohn@gnu.org>
742 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
744 2005-09-14 Alan Modra <amodra@bigpond.net.au>
746 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
747 passed as NAME as if it were label at start of function code.
749 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
751 * config/sh/sh.md (*movv4sf_i): Add general register cases to
754 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
756 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
757 as early clobber. Rewrite so the PIC register is not implicitly used.
759 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
761 * tree.c (annotate_with_file_line): Compare line numbers before
764 2005-09-13 Uros Bizjak <uros@kss-loka.si>
767 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
768 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
770 2005-09-13 Ian Lance Taylor <ian@airs.com>
772 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
773 than a HOST_WIDEST_INT to gen_doloop_begin.
775 2005-09-13 Diego Novillo <dnovillo@redhat.com>
777 * tree-dfa.c (dump_variable): Guard against NULL annotations.
779 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
781 PR tree-optimize/23817
782 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
784 2005-09-13 Alan Modra <amodra@bigpond.net.au>
787 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
788 word before changing the stack pointer. Use gen_frame_mem for MEMs.
789 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
790 (restore_stack_nonlocal): Likewise.
791 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
793 2005-09-12 Ian Lance Taylor <ian@airs.com>
796 * c.opt (ffriend-injection): New C++ option.
797 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
798 (C++ Dialect Options): Document -ffriend-injection.
800 2005-09-12 Josh Conner <jconner@apple.com>
803 * ipa-reference.c (static_execute): Don't mark variables in
804 named sections TREE_READONLY.
806 2005-09-12 Alan Modra <amodra@bigpond.net.au>
808 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
811 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
813 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
814 V_MUST_DEF instead of just the first_use_p.
815 Don't mark the virtual variables for renaming on the statement which
817 (pass_dse): Remove TODO_update_ssa.
819 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
822 * stor-layout.c (compute_record_mode): For records with a single
823 field, actually check the field's mode size against the type size.
825 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
826 registers for TARGET_SHMEDIA.
827 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
828 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
829 of GENERAL_REGS and FP_REGS.
831 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
833 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
835 2005-09-12 Alan Modra <amodra@bigpond.net.au>
837 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
838 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
839 are omitted. Exclude stack_tie insn too.
841 2005-09-11 David Edelsohn <edelsohn@gnu.org>
843 PR rtl-optimization/23098
844 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
846 * config/rs6000/rs6000.md (movdf splitter): Use
847 const_double_operand predicate for TARGET_POWERPC64.
848 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
849 SYMBOL_REF method to ABI_V4.
851 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
852 replace_equiv_address.
853 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
854 rs6000_sr_alias_set and MEM_NOTRAP.
855 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
857 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
859 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
860 handle CALL_EXPR again.
862 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
864 * arm/predicates.md (alignable_memory_operand): Delete.
866 2005-09-10 Richard Henderson <rth@redhat.com>
869 * dbxout.c (dbxout_expand_expr): New.
870 (dbxout_symbol): Use it.
872 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
874 * arm.c (arm_gen_rotated_half_load): Delete.
875 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
876 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
877 (thumb_set_return_address): Likewise.
878 (thumb_load_double_from_address): Use adjust_address.
879 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
880 (extendhsisi2_mem, movhi_bytes): Use change_address.
881 (movhi): Use widen_memory_access.
882 (reload_out_df): Use replace_equiv_address.
883 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
885 2005-09-09 Richard Henderson <rth@redhat.com>
888 * dbxout.c: Include expr.h.
889 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
890 (dbxout_symbol): Handle DECL_VALUE_EXPR.
891 * Makefile.in (dbxout.o): Add EXPR_H.
893 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
895 PR tree-optimization/23509
896 * tree-cfg.c (replace_uses_by): Use replace_exp.
897 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
898 pointers have name_mem_tag or type_mem_tag set.
900 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
902 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
903 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
904 of wrongly accessing operands.
906 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
908 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
909 * tree-chrec.c: Include tree-scalar-evolution.h.
910 (chrec_convert): Instantiate the base and step before calling
911 scev_probably_wraps_p that would fail on parametric evolutions.
912 Collect all the fails into a single section failed_to_convert,
913 print a diagnostic, and return chrec_dont_know instead of calling
915 * tree-scalar-evolution.c (loop_closed_phi_def): New.
916 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
918 (scev_const_prop): Don't replace the definition of a loop closed ssa
919 phi node by itself, or by another loop closed ssa phi node.
920 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
921 that base and step are defined.
923 2005-09-09 Richard Guenther <rguenther@suse.de>
926 * fold-const.c (fold_ternary): Check truth_value_p before
927 calling invert_truthvalue.
929 2005-09-09 Nick Clifton <nickc@redhat.com>
931 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
932 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
933 dimension of these arrays.
934 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
936 * longlong.h: Only provide a prototype for the __clz_tab[] array
937 if this header has not been included from libgcc2.h.
938 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
940 Provide prototypes for exported functions.
941 Use the __clz_tab[] and __popcount_tab[] arrays provided by
944 2005-09-08 Josh Conner <jconner@apple.com>
948 * expr.c (expand_expr_addr_expr_1): Don't invoke
949 expand_simple_binop for EXPAND_INITIALIZER.
951 2005-09-08 Richard Henderson <rth@redhat.com>
954 * toplev.c (wrapup_global_declaration_1): Split out ...
955 (wrapup_global_declaration_2): ... from ...
956 (wrapup_global_declarations): ... here. Return bool.
957 (check_global_declaration_1): Split out ...
958 (check_global_declarations): from here.
959 (emit_debug_global_declarations): New.
960 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
961 check_global_declaration_1, emit_debug_global_declarations): Declare.
962 * c-decl.c (c_write_global_declarations_1): Don't create a vector
963 of decls. Call wrapup_global_declaration_1,
964 wrapup_global_declaration_2, check_global_declaration_1 directly.
965 (c_write_global_declarations_2): New.
967 (c_write_global_declarations): Call c_write_global_declarations_2.
968 * langhooks.c (write_global_declarations): Call
969 emit_debug_global_declarations.
971 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
972 remove decls that have DECL_RTL_SET_P.
973 * passes.c (rest_of_decl_compilation): Invoke
974 cgraph_varpool_finalize_decl for all but functions.
976 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
978 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
979 the result of a conversion if the new min and max cannot be compared.
981 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
983 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
984 (override_options): Setting s390_sr_alias_set removed.
985 (save_fpr, save_gprs): Set alias set to vararg or frame.
986 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
987 s390_sr_alias_set with get_frame_alias_set ().
988 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
989 get_varargs_alias_set ().
991 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
995 * c-parser.c (c_parser_objc_method_definition): If the next
996 token is not "{", error out and don't start the function.
998 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
1000 * tree-vrp.c (extract_range_from_expr): Move the check for non
1001 nullness after the check for gimple invariant.
1003 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1005 * tree.c (host_integerp, tree_low_cst): Correct function comment.
1007 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1010 * config/m32r.md (movmemsi_internal): Canonicalize order of
1011 operands in PLUS component of template.
1013 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
1015 * reload1.c (fixup_eh_region_note): Remove assertion.
1016 (fixup_abnormal_edges): Reverted removal of call to
1017 find_many_sub_basic_blocks made on 2005-08-31.
1019 2005-09-07 Richard Henderson <rth@redhat.com>
1021 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
1022 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
1023 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
1024 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
1025 rearrange for better packing.
1026 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
1027 (lookup_cfa_1): Remove inline marker.
1028 (cfa_equal_p): Split out of ...
1029 (def_cfa_1): ... here. Use INVALID_REGNUM.
1030 (build_cfa_loc): Handle !cfa->indirect.
1031 (frame_pointer_cfa_offset): New.
1032 (dbx_reg_number): Assert register elimination performed; do
1033 leaf register remapping.
1034 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
1035 (eliminate_reg_to_offset): New.
1036 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
1037 for verifiably local stack frame addresses; re-base to CFA.
1038 (mem_loc_descriptor): Remove can_use_fbreg argument.
1039 (concat_loc_descriptor, loc_descriptor): Likewise.
1040 (containing_function_has_frame_base): Remove.
1041 (rtl_for_decl_location): Don't do register elimination or
1042 leaf register remapping here.
1043 (secname_for_decl): Split out from ..
1044 (add_location_or_const_value_attribute): ... here.
1045 (convert_cfa_to_loc_list): New.
1046 (compute_frame_pointer_to_cfa_displacement): New.
1047 (gen_subprogram_die): Use them.
1048 * tree.h (frame_base_decl): Remove.
1049 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
1050 (prologue_stack_adjust): Remove.
1051 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
1052 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
1053 (set_frame_base_location): Remove.
1054 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
1055 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
1056 (vt_add_function_parameters): Don't eliminate_regs.
1057 (vt_initialize): Don't create frame_base_decl.
1059 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1061 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
1062 version of GNU binutils for 4.x and later.
1064 2005-09-06 Mark Mitchell <mark@codesourcery.com>
1066 * ggc-page.c (ggc_push_context): Remove.
1067 (ggc_pop_context): Likewise.
1068 * ggc.h (ggc_push_context): Remove.
1069 (ggc_pop_context): Likewise.
1071 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
1074 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
1075 returning from an interrupt handler.
1077 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
1080 * config/arc/arc.c (output_shift): Add check for loop count when
1083 2005-09-06 Steven Bosscher <stevenb@suse.de>
1085 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
1087 (abs_replacement): Likewise.
1088 (pass_phiopt): Remove TODO_update_ssa.
1090 2005-09-06 Jakub Jelinek <jakub@redhat.com>
1093 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
1094 if "return with no value, in function returning non-void" warning
1096 * tree-cfg.c (execute_warn_function_return): Don't look at
1097 RETURN_EXPRs with TREE_NO_WARNING set.
1100 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
1101 for internal functions doesn't use registers used by global registers
1102 variables. Use fewer register parameters if there are global register
1105 2005-09-06 Olivier Hainque <hainque@adacore.com>
1106 Eric Botcazou <ebotcazou@adacore.com>
1109 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
1110 when we would be extracting outside its bit span (bitpos+bitsize
1111 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
1112 Ada unchecked conversions.
1114 2005-09-06 Steven Bosscher <stevenb@suse.de>
1116 * tree-ssa-pre.c (try_look_through_load): New function.
1117 (compute_avail): Use it to try to look through loads for some
1118 more useful expressions.
1120 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
1122 * simplify-rtx.c (simplify_binary_operation_1): Correct the
1123 condition for detecting cases like (a&a) and (a^a).
1125 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
1127 * common.opt: Add option ftree-vect-loop-version.
1128 * params.def: Add --param vect-max-version-checks.
1129 * doc/invoke.texi: Document ftree-vect-loop-version and
1130 --param vect-max-version-checks.
1131 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
1132 may_misalign_stmts and defines for accessors.
1133 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
1134 LOOP_VINFO_MAY_MISALIGN_STMTS.
1135 (destroy_loop_vec_info): VEC_free for
1136 LOOP_VINFO_MAY_MISALIGN_STMTS.
1137 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
1138 Update documentation.
1139 (vect_update_misalignment_for_peel): New.
1140 (vect_enhance_data_refs_alignment): Update to choose loop
1141 peeling or loop versioning if appropriate for the (potentially)
1142 unaligned data references in the loop.
1143 (vect_analyze_data_refs_alignment): Remove call to
1144 vect_enhance_data_refs_alignment so the checks can be done
1146 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
1147 and move up call to vect_analyze_data_refs_alignment.
1148 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
1149 (vect_transform_loop): Add call to loop_version.
1151 2005-09-06 Jakub Jelinek <jakub@redhat.com>
1153 PR rtl-optimization/23098
1154 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
1155 * simplify-rtx.c (constant_pool_reference_p): New function.
1156 * rtl.h (constant_pool_reference_p): New prototype.
1157 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
1158 constant_pool_reference_p in condition and
1159 avoid_constant_pool_reference in preparation statements.
1161 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
1163 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
1164 STRICT_LOW_PART SETs.
1166 2005-09-06 Alan Modra <amodra@bigpond.net.au>
1169 * except.c (sjlj_emit_function_enter): Find the function begin
1170 note even when it's not in first basic block.
1172 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
1174 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
1175 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
1176 * aclocal.m4: Regenerate.
1178 2005-09-05 DJ Delorie <dj@redhat.com>
1180 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
1183 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
1185 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
1186 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
1187 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
1188 Follow spelling conventions.
1189 * doc/invoke.texi: Follow spelling conventions.
1191 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
1193 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
1194 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
1195 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
1197 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
1200 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
1201 (output_stack_adjust): Use gen_tmp_stack_mem.
1202 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
1203 (sh_set_return_address, sh_allocate_initial_value): Likewise.
1204 (sh_get_pr_initial_val): Likewise.
1205 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
1206 (sh_initialize_trampoline): Likewise. Also use adjust_address.
1207 * sh.md (divsi_inv_m0): Use gen_const_mem.
1208 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
1209 (movdf_i4+1): Use gen_tmp_stack_mem.
1210 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
1211 (fpu_switch+2): Likewise.
1212 (movv4sf_i, movv16sf_i): Use adjust_address.
1213 (symGOT_load): Set MEM_NOTRAP_P bit.
1215 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1218 * pa.c (emit_move_sequence): Fix typo in last change.
1220 2005-09-03 Jakub Jelinek <jakub@redhat.com>
1222 PR rtl-optimization/23454
1223 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
1226 2005-09-03 Richard Henderson <rth@redhat.com>
1227 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1230 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
1233 2005-09-02 Nicolas Pitre <nico@cam.org>
1235 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
1236 to bit_count to 32 bits.
1238 2005-08-31 Mark Mitchell <mark@codesourcery.com>
1241 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
1242 generating synthetic loads from volatile lvalues.
1244 005-09-02 Nick Clifton <nickc@redhat.com>
1246 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
1247 __ctzhi2, __clzhi2): New functions.
1249 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
1252 * tree-nested.c (struct var_map_elt): Mark with GTY.
1253 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
1255 (lookup_field_for_decl): Allocate new element in GC memory.
1256 (lookup_tramp_for_decl): Likewise.
1257 (convert_nl_goto_reference): Likewise
1258 (create_nesting_tree): Allocate info in GC memory. Likewise for
1260 (free_nesting_tree): Free with ggc_free instead of free.
1261 (root): New static variable.
1262 (lower_nested_functions): Remove root as local variable. And zero out
1263 root at the end of the function.
1265 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
1267 PR rtl-optimization/20365
1268 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
1269 to short. New member ix.
1270 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
1271 (simplify_plus_minus): Initialize ix members before calling qsort.
1273 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
1275 PR tree-optimization/23626
1276 * tree-cfg.c (replace_uses_by): Clean up eh info.
1278 2005-09-01 DJ Delorie <dj@redhat.com>
1280 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
1283 2005-09-01 David Edelsohn <edelsohn@gnu.org>
1285 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
1286 (rs6000_split_multireg_move): Use replace_equiv_address instead of
1289 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
1291 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
1292 do not issue warning for a variable definition following
1295 2005-09-01 Richard Henderson <rth@redhat.com>
1298 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
1299 conversion to CONST_VECTOR.
1301 2005-09-01 Richard Henderson <rth@redhat.com>
1304 * reload1.c (reload_as_needed): Check !CALL_P before calling
1305 fixup_eh_region_note.
1306 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
1308 2005-09-01 DJ Delorie <dj@redhat.com>
1310 * varasm.c (output_constant): Let the target resolve
1311 conversions of addresses to non-default pointer sizes.
1313 2005-09-01 Nicolas Pitre <nico@cam.org>
1315 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
1316 to alow matching ARM pre-indexed addressing mode.
1317 (arm_override_options): Remove now irrelevant comment.
1319 2005-09-01 Phil Edwards <phil@codesourcery.com>
1321 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
1322 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
1323 * config/i386/vxworks.h: Likewise.
1324 * config/i386/t-vxworksae: New file, for VxWorks AE.
1325 * config/i386/vxworksae.h: Likewise.
1327 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
1329 PR tree-optimization/23410
1330 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
1331 sequence is not wrapping during the first step.
1333 2005-09-01 Jakub Jelinek <jakub@redhat.com>
1336 * dwarf2out.c (base_type_die): Compare char_type_node with
1337 TYPE_MAIN_VARIANT (type), not type.
1339 2005-09-01 Richard Guenther <rguenther@suse.de>
1341 PR tree-optimization/15366
1342 * common.opt: Add -finline-functions-called-once.
1343 Put -fearly-inlining in alphabetically ordered place.
1344 * doc/invoke.texi: Document new option.
1345 * ipa-inline.c (cgraph_decide_inlining): Honour
1346 flag_inline_functions_called_once.
1348 2005-09-01 Jakub Jelinek <jakub@redhat.com>
1350 PR rtl-optimization/23478
1351 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
1352 (alloc_qty): Initialize it.
1353 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
1354 (combine_regs): Combine also n_throwing_calls_crossed fields.
1355 (find_free_reg): Don't attempt to caller-save pseudos crossing
1356 calls that might throw.
1357 * global.c (struct allocno): Add throwing_calls_crossed field.
1358 (global_alloc): Revert 2005-08-22 change. Initialize
1359 throwing_calls_crossed.
1360 (find_reg): Don't attempt to caller-save pseudos crossing calls that
1363 2005-09-01 Alan Modra <amodra@bigpond.net.au>
1366 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
1367 (mask64_operand): Reinstate code prior to 2005-06-11 change.
1368 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
1369 (and64_2_operand): Tweak to use predicate.
1370 (and_operand): Adjust for mask_operand changes.
1371 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
1372 (print_operand): Likewise.
1373 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
1374 (mask64_1or2_operand): Delete.
1375 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
1376 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
1377 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
1378 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
1379 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
1380 (rotldi3_internal4): Likewise.
1381 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
1382 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
1383 (ashldi3_internal7): Likewise.
1384 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
1385 (ashldi3_internal, ashldi3_internal9 split): Likewise.
1386 (anddi3 split): Don't match mask64_operand.
1387 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
1388 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
1389 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
1390 't' splitter predicate.
1391 (movdi_internal64 + 2): Revert 2005-06-11 change.
1393 2005-08-31 DJ Delorie <dj@redhat.com>
1395 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
1396 (m32c_asm_integer): Add support for 32 bit pointers.
1398 2005-08-31 Richard Henderson <rth@redhat.com>
1400 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
1401 component-like references for setting MEM_NOTRAP_P.
1403 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
1404 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1406 2005-08-31 Richard Henderson <rth@redhat.com>
1408 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
1409 into a pseudo before applying gen_lowpart.
1411 2005-08-31 Geoffrey Keating <geoffk@apple.com>
1413 * doc/install.texi (Specific): Update cctools version required
1414 for full functionality.
1415 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
1416 linkers as -macosx_version_min.
1418 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
1421 * sh.c (print_operand, %R and %S): Add handling of floating point
1422 registers, memory, constants and invalid operands.
1424 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
1426 * ipa-pure-const.c: Change dump name.
1428 2005-08-31 Uros Bizjak <uros@kss-loka.si>
1431 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
1432 to "reg_or_0_operand".
1433 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
1435 2005-08-31 Dale Johannesen <dalej@apple.com>
1437 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
1438 loops that count down.
1440 2005-08-31 Richard Henderson <rth@redhat.com>
1443 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
1444 (fixup_eh_region_note): New.
1445 (reload_as_needed): Call it.
1446 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
1447 don't call find_many_sub_basic_blocks; call verify_flow_info.
1448 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
1449 (keep_stack_depressed): Likewise.
1450 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
1452 2005-08-31 Richard Henderson <rth@redhat.com>
1454 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
1457 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
1459 * expr.c (expand_expr_real_1): Compare size of address
1460 mode to target's address mode size in deciding expansion of
1461 the constant address.
1463 2005-08-31 Richard Guenther <rguenther@suse.de>
1466 * expr.c (all_zeros_p): New function.
1467 (expand_expr_real_1): Handle the case of an all-zero
1468 non-addressable constructor separately.
1470 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
1472 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
1473 arguments, adjust all callers.
1474 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
1476 2005-08-30 Richard Henderson <rth@redhat.com>
1479 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
1480 whenever the mode sizes match.
1482 2005-08-31 Alan Modra <amodra@bigpond.net.au>
1484 * calls.c (load_register_parameters): Fix comment typo.
1485 * expr.c (emit_push_insn): Comment formatting.
1487 2005-08-30 Ian Lance Taylor <ian@airs.com>
1489 * config/i386/x-cygwin (host-cygwin): Change dependency from
1490 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
1492 2005-08-29 Geoffrey Keating <geoffk@apple.com>
1494 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
1497 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
1500 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
1501 call to ggc_collect.
1503 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
1506 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
1507 beginning. Remove $(INCLUDES) from all the rules, if following
1508 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
1510 2005-08-29 Jakub Jelinek <jakub@redhat.com>
1513 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
1514 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
1515 not constant, but maxlen is, don't set len to maxlen, rather
1516 set maxlen to len if len is a constant.
1518 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
1520 PR tree-optimization/23475
1521 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
1524 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
1526 Fix PR middle-end/22455
1528 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
1529 Checksum only the parts of the tree that exist for the tree code.
1531 2005-08-28 Dale Johannesen <dalej@apple.com>
1533 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
1535 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
1537 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
1539 2005-08-28 Richard Henderson <rth@redhat.com>
1541 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
1542 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
1545 2005-08-28 Jakub Jelinek <jakub@redhat.com>
1548 * builtins.c (get_memory_rtx): Don't strip nops
1549 in between COMPONENT_REFs.
1551 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
1554 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
1556 (gimplify_modify_expr): Check for zero sized types and gimplify the
1557 rhs and lhs as statements.
1559 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
1562 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
1563 state for return address column of signal frames.
1565 2005-08-27 David Edelsohn <edelsohn@gnu.org>
1568 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
1569 bytes >= 2 not bytes == 2.
1570 (expand_block_move): Same.
1572 2005-08-27 Richard Guenther <rguenther@suse.de>
1575 * config/i386/sse.md (sse2_movsd): Add missing closing
1578 2005-08-27 Paul Brook <paul@codesourcery.com>
1580 * genrecog.c (enum decision_type): Add DT_num_insns.
1581 (struct decision_test): Add u.num_insns.
1582 (add_to_sequence): Add DT_num_insns test.
1583 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
1584 (write_cond, debug_decision_2): Ditto.
1585 (change_state): Assume peep2_next_insn never fails.
1586 Remove "afterward" argument.
1587 (write afterward, write_tree): Update to match.
1588 * recog.c (peep2_current_count): New variable.
1589 (peep2_next_insn): Check it.
1590 (peephole2_optimize): Set peep2_current_count.
1591 * recog.h (peep2_current_count): Declare.
1593 2005-08-26 Josh Conner <jconner@apple.com>
1596 * ipa-pure-const.c (check_tree): Check for volatile-ness
1597 when considering a dereference.
1599 2005-08-27 Jakub Jelinek <jakub@redhat.com>
1601 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
1603 2005-08-26 Jakub Jelinek <jakub@redhat.com>
1605 PR rtl-optimization/23561
1606 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
1607 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
1608 at most LEN bytes long memory fits into the field.
1609 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
1610 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
1611 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
1613 2005-08-26 Richard Henderson <rth@redhat.com>
1616 * loop.c (biased_biv_may_wrap_p): New.
1617 (maybe_eliminate_biv_1): Use it to suppress non-equality
1618 comparison transformations. Delete disabled code.
1620 2005-08-26 Ian Lance Taylor <ian@airs.com>
1622 * combine.c (make_extraction): Avoid reference outside object.
1624 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
1626 * stor-layout.c (finalize_type_size): Restore behaviour for
1627 non-aggregate types to the status quo ante of the patch for
1628 pr 23467. Document why it matters.
1630 2005-08-26 Jakub Jelinek <jakub@redhat.com>
1633 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
1634 array by one element, initialize the BT_LAST element with NULL.
1636 2005-08-26 David Edelsohn <edelsohn@gnu.org>
1638 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
1639 optimizing for size.
1641 (compare_plus_eqsi): Same.
1642 (plus_eqsi_compare): Same.
1643 (neg_eq0<mode>): Same.
1644 (neg_eq<mode>): Same.
1646 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
1649 2005-08-26 Nick Clifton <nickc@redhat.com>
1651 * config/v850/v850.c (ep_memory_operand): Return FALSE if
1652 TARGET_EP is not defined.
1653 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
1654 TARGET_EP is enabled.
1655 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
1656 * config/v850/v850.md (save_all_interrupt): Only use the EP
1657 register if TARGET_EP is defined.
1658 (restore_all_interrupt): Likewise.
1659 * config/v850/lib1funcs.asm: Update functions so that the EP
1660 register is only used if __EP__ is defined.
1662 2005-08-26 David Ung <davidu@mips.com>
1664 * config/mips/mips.c (mips_expand_prologue): Handle case when
1665 generating for MIPS16 and the outgoing argument area is more than
1666 SMALL_OPERAND. Use the frame pointer as temporary to generate the
1669 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
1671 * config/crx/crx.md: Make doloop_end pattern usage controllable
1672 via mloop-nesting=<max-nesting> command line switch. Make sure
1673 the combiner cannot use doloop_end_<mode> in an illegal way.
1674 * config/crx/crx.c: Use regs up to r6 for argument passing.
1675 Refine crx_address_cost (non cst4 displacements are expensive).
1676 * config/crx/crx.opt: Add switch for mloop-nesting=.
1678 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
1680 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
1681 (UNSPEC_MVST): New constant.
1683 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1685 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
1686 Reject operands containing eliminable registers.
1687 * testsuite/gcc.dg/20050825-1.c: New testcase.
1689 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1690 Jan Hubicka <jh@suse.cz>
1692 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
1694 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1696 PR tree-optimization/23546
1697 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
1700 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
1702 * params.def (PARAM_MIN_SPEC_PROB): New.
1703 * sched-rgn.c (MIN_PROBABILITY): Delete.
1704 (compute_trg_info): Convert to PARAM_VALUE.
1705 * doc/invoke.texi (param): Document min-spec-prob.
1707 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
1709 * config/darwin.h: define __PIC__
1710 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
1711 TARGET_OS_CPP_BUILTINS macro.
1713 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1715 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
1718 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
1720 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
1722 * cfghooks.c (duplicate_block): Added position where to place
1723 new block as argument.
1724 * cfghooks.h (duplicate_block): Declaration changed.
1725 * cfglayout.c (copy_bbs): Add argument after. Pass it to
1727 * cfglayout.h (copy_bbs): Declaration changed.
1728 * cfgloop.h (loop_version): Declaration changed.
1729 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
1730 position to copy_bbs.
1731 (loop_version): Pass position to duplicate_loop_to_header_edge.
1732 Add place_after argument and position new blocks according to
1734 * modulo-sched.c (sms_schedule): Pass place_after argument
1736 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
1737 * tree-cfg.c (split_edge_bb_loc): New function.
1738 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
1739 to determine position of new blocks.
1740 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
1742 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
1743 argument to duplicate_block.
1744 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1745 Pass position to copy_bbs.
1747 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
1749 * fold-const.c (ptr_difference_const): Use
1750 cst_and_fits_in_hwi instead of host_integerp.
1752 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1754 * config/darwin.c (gen_pic_offset): New.
1755 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
1758 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
1760 PR tree-optimization/23486
1761 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
1763 2005-08-23 Phil Edwards <phil@codesourcery.com>
1765 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
1766 remove use_collect2.
1767 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
1769 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
1770 configuration files to override the default value.
1772 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
1773 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
1774 * config/vx-common.h: New file, split out from...
1775 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
1776 * config/vxworksae.h: New file, for VxWorks AE.
1777 * config/vxworks.opt: New file.
1778 * config/vxlib.c: Update for VxWorks 6.
1780 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
1781 other MULTILIB_* variables appropriately.
1782 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
1783 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
1784 * config/rs6000/vxworks.h: Update for VxWorks 6.
1785 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
1787 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
1790 * config/darwin.c (machopic_select_section): Remove the hack to
1791 mark "::operator new" and "::operator delete" for coalescing
1792 even though they are not weak.
1794 2005-08-24 Alan Modra <amodra@bigpond.net.au>
1796 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
1797 * configure: Regenerate.
1799 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
1802 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
1804 * convert.c (convert_to_integer, convert_to_vector): Likewise.
1805 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
1808 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
1810 * config/rs6000/predicates.md (equality_operator): New.
1811 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
1812 comparison with a large constant.
1814 2005-08-23 Mark Mitchell <mark@codesourcery.com>
1816 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
1818 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
1820 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
1821 registers is even, and we have a hardware double precision fp,
1823 (sh_gimplify_va_arg_expr): For floating point arguments, consider
1824 size of current argument when checking if argument was passed in
1827 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
1830 * stor-layout.c (finalize_type_size): Dont override
1831 existing alignment with a smaller alignment from the mode.
1833 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
1835 * lambda-code.c (lambda_vector_lexico_pos): Moved...
1836 * lambda.h (lambda_vector_lexico_pos): ... here.
1837 * tree-data-ref.c (build_classic_dist_vector): Return false when
1838 the distance vector is lexicographically negative.
1840 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
1842 PR tree-optimization/23511
1843 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
1844 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
1846 2005-08-23 Jakub Jelinek <jakub@redhat.com>
1848 PR tree-optimization/22043
1849 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
1850 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
1851 If ALLOW_FLEXARR, handle types ending with flexible array member.
1852 Pass false as second argument to recursive count_type_elements calls.
1853 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
1854 argument to count_type_elements call.
1855 * tree-sra.c (decide_block_copy): Likewise.
1856 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
1857 for a constant-sized object, set cleared as well. Pass true as
1858 second argument to count_type_elements call.
1860 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1863 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
1864 from legitimate_small_data_p, and make global. Update use.
1865 Remove forward declaration.
1866 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
1868 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
1870 2005-08-23 David Edelsohn <edelsohn@gnu.org>
1872 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
1873 of scratch intermediates.
1874 (eq<mode>_compare): Same.
1875 (neg_eq0<mode>): New.
1876 (neg_eq<mode>): Convert to define_insn_and_split.
1878 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1881 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
1882 stdarg functions, set/clear the fp marker even when no variable
1884 * config/rs6000/sysv4.opt (mprototype): Describe.
1886 2005-08-22 Jakub Jelinek <jakub@redhat.com>
1888 PR rtl-optimization/23478
1889 * regs.h (reg_info): Add throw_calls_crossed.
1890 (REG_N_THROWING_CALLS_CROSSED): Define.
1891 * flow.c (allocate_reg_life_data): Initialize
1892 REG_N_THROWING_CALLS_CROSSED.
1893 (propagate_one_insn, attempt_auto_inc): Update
1894 REG_N_THROWING_CALLS_CROSSED.
1895 * global.c (global_alloc): Don't allocate pseudos across
1896 calls that may throw.
1898 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
1901 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
1902 value is inbetween the range if we did not find an exact match.
1904 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
1906 * doc/invoke.texi (Option Summary): Add ms1 options.
1907 * doc/extend.texi: Document interrupt handler attribute for ms1.
1908 * doc/md.texi: Document ms1 constraints.
1909 * config.gcc: Add ms1-*-elf.
1910 * config/ms1/ms1.h: New.
1911 * config/ms1/ms1.c: New.
1912 * config/ms1/ms1.md: New.
1913 * config/ms1/ms1-protos.h: New.
1914 * config/ms1/ABI.txt: New.
1915 * config/ms1/crti.asm: New.
1916 * config/ms1/crtn.asm: New.
1917 * config/ms1/lib2extra-funcs.c: New.
1918 * config/ms1/t-ms1: New.
1919 * config/ms1/ms1.opt: New.
1921 2005-08-22 Ira Rosen <irar@il.ibm.com>
1923 * config/rs6000/altivec.md (xorv4sf3): New.
1924 (negv4sf2, neg<mode>2): Likewise.
1926 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
1929 * config/ia64/ia64.md (divsi3): Check divide by zero.
1930 (udivsi3): Likewise.
1932 (udivdi3): Likewise.
1934 2005-08-21 Jakub Jelinek <jakub@redhat.com>
1936 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
1937 up to elem_bitsize bits, not max_bitsize.
1939 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
1941 PR tree-optimization/23433
1942 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
1943 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
1945 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
1947 PR tree-optimization/23434
1948 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
1949 the iteration bound is not an INTEGER_CST.
1951 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
1953 * tree-vect-transform.c (get_initial_def_for_reduction): Set
1954 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
1955 NULL if need_epilog_adjust is false.
1956 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
1957 Case 3 always peels first itration, not just for PLUS case, and no need
1958 to use scalar_initial_def here. Create an epilog adjustment only if
1959 scalar_initial_def is not NULL.
1961 (vectorizable_reduction): Remove assert.
1963 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
1966 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
1967 (__moddi3): Likewise.
1968 (__udivdi3): Likewise.
1969 (__umoddi3): Likewise.
1970 (__divsi3): Likewise.
1971 (__modsi3): Likewise.
1972 (__udivsi3): Likewise.
1973 (__umodsi3): Likewise.
1975 2005-08-20 Jakub Jelinek <jakub@redhat.com>
1977 * tree-pass.h (TDF_GRAPH): Define.
1978 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
1979 * passes.c (finish_optimization_passes): Only call
1980 finish_graph_dump_file if TDF_GRAPH is set.
1981 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
1982 NULL. Set TDF_GRAPH bit.
1983 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
1985 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
1987 * arm.h (arm_stack_offsets): Add locals_base field.
1988 * arm.c (arm_get_frame_offsets): Compute it.
1989 (thumb_compute_initial_elimination offset): Make the Thumb frame
1990 pointer point to the base of the local variables.
1991 (thumb_expand_prologue): Update accordingly.
1992 (thumb_expand_epilogue): Likewise.
1994 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
1995 mode of clobbered scratch to DImode. Handle a case that's known to
1998 2005-08-19 David Edelsohn <edelsohn@gnu.org>
2000 * config/rs6000/rs6000.md (gt0<mode>): Delete.
2001 (gt0<mode>_compare): Delete.
2002 (neg_gt0<mode>): Delete.
2004 2005-08-19 Eric Christopher <echristo@apple.com>
2006 * optabs.h: Change CTI_ to COI_.
2009 2005-08-19 James E Wilson <wilson@specifix.com>
2011 * builtins.c (expand_builtin_return_addr): Set
2012 current_function_accesses_prior_frames when count != 0. Use
2013 frame_pointer_rtx when count == 0.
2014 * function.h (struct function): Add accesses_prior_frames field.
2015 (current_function_accesses_prior_frames): Define.
2016 * reload1.c (init_elim_table): Check
2017 current_function_accesses_prior_frames.
2018 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
2020 2005-08-19 Diego Novillo <dnovillo@redhat.com>
2022 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
2023 indicator. Return true if the flowgraph changed during
2026 2005-08-19 Diego Novillo <dnovillo@redhat.com>
2029 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
2030 conditional expression before testing its value.
2032 2005-08-19 Diego Novillo <dnovillo@redhat.com>
2034 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
2036 2005-08-19 Devang Patel <dpatel@apple.com>
2038 PR tree-optimization/23048
2039 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
2040 third parameter. Check whether latch is dominated by exit
2042 (if_convertible_loop_p): Supply exit block itself to
2043 if_convertible_bb_p.
2045 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
2048 * arm.md (arm_load_pic_register): Change argument to the mask of
2049 saved registers. Call thumb_find_work_register if we need a
2050 scratch register on Thumb.
2051 (arm_expand_prologue): Pass empty register set to
2052 arm_load_pic_register.
2053 (thumb_expand_prologue): Pass live_regs_mask directly to
2054 arm_load_pic_register.
2055 * arm-protos.h (arm_load_pic_register): Update prototype.
2057 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
2059 * sh.c (find_sole_member): New function.
2060 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
2061 if the record's alignment is larger than the size of its only member.
2063 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
2066 * arm.c (thumb_legitimize_reload_address): New function.
2067 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
2068 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
2070 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
2072 * config/crx/crx.c: Implement crx_decompose_address. Reject
2073 symbolic displacements since CRX register relative adressing
2074 mode can't handle unsigned 32-bit values as displacements.
2075 * config/crx/crx.h: Simplify definitions, remove redundant
2076 parenthesis and obsolete macros.
2077 * config/crx/crx.opt: Add new switch for debugging addresses.
2078 * config/crx/crx-protos.h: Add new declarations for above.
2080 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
2083 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
2086 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2088 * collect2.c (dup2): Delete.
2089 * configure.ac: Don't check for dup2.
2091 * config.in, configure: Regenerate.
2093 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
2095 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
2096 record with the type of its only member.
2098 2005-08-18 David Edelsohn <edelsohn@gnu.org>
2100 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
2101 define_insn_and_split.
2102 (plus_ltu<mode>_compare): Same.
2103 (gtu<mode>_compare): Same.
2104 (plus_gtu<mode>_compare): Same.
2106 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
2108 PR tree-optimization/22228
2109 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
2111 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
2112 are recorded in vect_vnames_to_rename for renaming.
2113 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
2114 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
2115 in vect_vnames_to_rename.
2116 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
2117 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
2119 2005-08-18 Jan Hubicka <jh@suse.cz>
2122 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
2123 info only for local statics, not for member variables.
2125 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2127 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
2129 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2131 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
2133 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
2136 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
2138 2005-08-17 James E Wilson <wilson@specifix.com>
2140 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2143 2005-08-17 David Edelsohn <edelsohn@gnu.org>
2145 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
2146 (leu<mode>_compare): Same.
2147 (plus_leu<mode>): Same.
2148 (neg_leu<mode>): Same.
2149 (and_neg_leu<mode): Same.
2150 (ltu<mode>_compare): Same.
2151 (plus_ltu<mode>): Same.
2153 (geu<mode>_compare): Same.
2154 (plus_geu<mode>): Same.
2155 (neg_geu<mode>): Same.
2156 (and_neg_geu<mode>): Same.
2157 (plus_gt<mode>): Same.
2158 (gtu<mode>_compare): Same.
2159 (plus_gtu<mode>): Same.
2161 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
2163 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
2164 Move call_table_data to end. Delete spurious .text.
2165 (callt_save_all_interrupt): Fix comment typo.
2167 2005-08-17 James E Wilson <wilson@specifix.com>
2168 Kevin Winchester <winchester@amirix.com>
2171 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
2173 2005-08-17 Uros Bizjak <uros@kss-loka.si>
2176 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
2177 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
2179 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
2181 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
2182 record with the type of its only member if the modes don't match.
2184 * varasm.c (decode_reg_name): Skip empty additional register names.
2186 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
2188 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
2189 lsm_tmp_name_length): New.
2190 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
2191 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
2193 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2194 Andreas Krebbel <krebbel1@de.ibm.com>
2196 * config.gcc: Added z9-109 switch.
2197 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
2198 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
2199 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
2200 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
2201 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
2202 for "z9_109" cpu attribute.
2203 * config/s390/s390.c (z9_109_cost): New processor cost structure.
2204 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
2205 (s390_handle_arch_option): Added z9-109 switch.
2206 (override_options): Set respective cost function for z9-109.
2207 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
2208 (legitimate_reload_constant_p): Accept extended immediates.
2209 (print_operand): Three new output modifiers added: k, m and o.
2210 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
2211 (s390_output_mi_thunk): Use extended immediate when possible.
2212 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
2213 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
2214 (CONSTRAINT_LEN): Added length of O constraint.
2215 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
2216 * config/s390/s390.md ("cpu"): New value z9_109 added.
2217 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
2218 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
2219 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
2220 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
2221 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
2222 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
2223 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
2224 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
2225 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
2226 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
2227 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
2228 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
2229 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
2230 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
2231 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
2233 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
2234 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
2235 insns for TARGET_EXTIMM.
2237 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
2239 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
2241 2005-08-17 Nick Clifton <nickc@redhat.com>
2243 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
2244 Call default_encode_section_info.
2246 2005-08-17 Steven Bosscher <stevenb@suse.de>
2248 PR tree-optimization/21574
2249 * tree-ssa-ccp.c (likely_value): If the right hand side is a
2250 constant, return CONSTANT.
2251 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
2252 (ccp_fold, visit_assignment): Likewise.
2253 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
2255 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
2257 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
2258 fold_buildN instead of buildN then fold_initializer or fold.
2259 (build_unary_op): Likewise.
2260 (build_binary_op): Likewise.
2261 * fold-const.c (fold_initializer): Remove.
2262 (fold_build1_initializer): New function.
2263 (fold_build2_initializer): New function.
2264 (fold_build3_initializer): New function.
2265 * tree.h (fold_initializer): Remove.
2266 (fold_build1_initializer): New function.
2267 (fold_build2_initializer): New function.
2268 (fold_build3_initializer): New function.
2270 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
2272 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
2273 (try_move_mult_to_index): Call fold_build2 instead of build2.
2274 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
2275 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
2276 fold_binary_to_constant.
2277 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
2279 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
2280 check if A == gcd (A, B). Remove TYPE argument.
2281 (analyze_offset) Use fold_build2 instead of fold (build.
2282 (create_data_ref): Likewise.
2283 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
2284 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
2287 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2289 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
2290 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
2292 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
2295 * gimplify.c (zero_sized_type): New function.
2296 (gimplify_modify_expr_rhs): If we have a zero sized type,
2297 replace the statement with an empty statement.
2299 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
2301 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
2304 2005-08-16 Ian Lance Taylor <ian@airs.com>
2306 * doc/tm.texi (Label Output): Correct typo.
2308 2005-08-16 Steven Bosscher <stevenb@suse.de>
2311 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
2312 force_operand will work later on using have_insn_for.
2314 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2316 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
2318 2005-08-16 Ian Lance Taylor <ian@airs.com>
2321 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
2322 vector type, don't try to construct it element by element. Add an
2323 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
2325 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2327 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
2329 2005-08-16 Geoffrey Keating <geoffk@apple.com>
2331 * doc/invoke.texi (Precompiled Headers): Document some more options
2332 which are known to be safe.
2334 2005-08-16 James E Wilson <wilson@specifix.com>
2336 PR tree-optimization/21105
2337 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2338 TREE_OVERFLOW check.
2340 2005-08-16 David Edelsohn <edelsohn@gnu.org>
2342 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
2343 (neg_ltu<mode>): Same.
2345 (neg_gtu<mode>): Same.
2347 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2349 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
2350 (fold_builtin_isdigit): Use fold_buildN.
2351 (build_function_call_expr): Likewise.
2352 * c-typeck.c (c_finish_loop): Likewise.
2354 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
2355 Richard Shann <rshann@superh.com>
2357 PR middle-end/20396:
2358 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
2360 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
2362 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
2364 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
2367 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
2368 arm_compure_save_reg0_reg12_mask to determine when the PIC register
2371 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2374 * fold-const.c (build_range_check): Disable optimization for function
2375 pointer expressions on targets that require function pointer
2378 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
2380 * simplify-rtx.c (simplify_const_relational_operation): When
2381 extracting arguments of a COMPARE, recompute the mode as well.
2383 2005-08-15 Ian Lance Taylor <ian@airs.com>
2385 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
2387 2005-08-15 DJ Delorie <dj@redhat.com>
2389 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
2391 (movsi_splittable): Allow, but split, moves to the stack.
2392 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
2395 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2397 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
2398 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
2399 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
2401 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
2402 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
2403 Delete HOST_PTR_PRINTF.
2405 * configure, config.in: Regenerate.
2407 2005-08-15 David Edelsohn <edelsohn@gnu.org>
2409 * config/rs6000/rs6000.md (QHSI): New mode macro.
2410 (wd): Extend mode attr for QImode and HImode
2411 (dbits): New mode attr.
2412 (zero_extend<mode>di2): Convert to mode macro.
2414 2005-08-15 Steve Ellcey <sje@cup.hp.com>
2417 * doc/invoke.texi (-mgnu-ld): Update description.
2420 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
2423 * Makefile.in (tree-chrec.o): Depends on real.h.
2424 * tree-chrec.c: Include real.h.
2425 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
2426 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
2427 * tree-scalar-evolution.c (add_to_evolution_1,
2428 interpret_rhs_modify_expr): Ditto.
2430 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
2433 * tree-data-ref.c (estimate_niter_from_size_of_data): When
2434 step is negative compute the estimation from init downwards to zero.
2436 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
2438 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
2440 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2442 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
2444 (legitimate_reload_constant_p): Fix handling of lliXX operands.
2445 Accept double-word constants that can be split.
2446 * config/s390/s390.md ("movti"): Use 'P' constraint.
2447 ("*movdi_31", "*movdf_31"): Likewise.
2449 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
2451 Fix PR tree-optimization/22615
2453 * tree-ssa-structalias.c (solution_set_add): Handle
2454 first_vi_for_offset returning NULL.
2455 (do_da_constraint): Ditto.
2456 (do_sd_constraint): Ditto.
2457 (do_ds_constraint): Ditto
2458 (find_func_aliases): Ditto.
2459 (build_constraint_graph): RHS is allowed be ANYTHING.
2460 (first_vi_for_offset): Return NULL if we couldn't find anything at
2463 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2465 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
2466 over memory as first operand.
2468 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
2471 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
2472 available for setting it.
2474 2005-08-14 Ira Rosen <irar@il.ibm.com>
2476 PR tree-optimization/23320
2477 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
2478 data-refs' types instead of base object nullness. Add check for
2479 pointer type data-refs before first location comparison. Remove
2482 2005-08-14 Andreas Schwab <schwab@suse.de>
2484 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
2486 2005-08-13 James E Wilson <wilson@specifix.com>
2488 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
2489 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
2490 -fstack-protector-all, --param ssp-buffer-size): Document.
2491 (-Wvariadic-macros): Alphabetize.
2492 (-fsched-stalled-insns-dep): Add missing 'f'.
2494 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
2497 2005-08-13 David Edelsohn <edelsohn@gnu.org>
2499 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
2500 or indirect address operand.
2501 (EXTRA_ADDRESS_CONSTRAINT): New.
2502 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
2504 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
2506 PR tree-optimization/22236
2507 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
2508 successors and predecessors.
2509 * tree-chrec.c (chrec_convert): Before converting, check that
2510 sequences don't wrap.
2511 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
2512 (analyze_array): Extern.
2513 (find_data_references_in_loop): Remove call to
2514 compute_estimated_nb_iterations.
2515 * tree-data-ref.h (analyze_array): Declared.
2516 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
2517 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
2518 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
2519 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
2521 * tree-ssa-loop-ivcanon.c: Fix documentation.
2522 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
2523 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
2524 (infer_loop_bounds_from_undefined): New.
2525 (estimate_numbers_of_iterations_loop): Use
2526 infer_loop_bounds_from_undefined.
2527 (used_in_pointer_arithmetic_p): New.
2528 (scev_probably_wraps_p): Pass an extra parameter. Call
2529 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
2530 (convert_step): Fix documentation.
2531 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
2532 Use initial_condition_in_loop_num and evolution_part_in_loop_num
2533 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
2534 scev_probably_wraps_p.
2536 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2538 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
2539 (s390_register_info): Ignore clobbered_regs information for fixed
2540 registers, and only fixed registers.
2541 (s390_init_frame_layout): Remove redundant call.
2543 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
2545 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
2546 description of -Wold-style-casts.
2548 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2549 Jakub Jelinek <jakub@redhat.com>
2551 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2552 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
2553 * config/s390/s390.c (print_operand): New output modifier 'G' added.
2554 (get_thread_pointer): Renamed to s390_get_thread_pointer.
2555 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
2556 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
2557 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
2558 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2559 ("stack_protect_set", "stack_protect_test"): New expanders.
2560 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
2561 "stack_protect_testdi"): New insn definitions.
2563 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2565 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
2567 2005-08-12 Paul Brook <paul@codesourcery.com>
2569 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
2571 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2573 * config/s390/predicates.md (setmem_operand): New predicate.
2574 (shift_count_operand): Accept ANDs with special constants as
2576 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
2577 with special constants.
2578 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
2579 shift_count_operand with setmem_operand.
2581 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2583 * config/s390/s390.c (s390_extract_part, s390_single_part):
2585 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
2586 (s390_output_mi_thunk): Don't use lg on 31 bit.
2587 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
2588 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
2590 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2592 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
2593 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
2594 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
2595 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
2596 with one of the new macros.
2598 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2600 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
2601 Don't set save_return_addr_p.
2602 (s390_register_info): Make clobbered_regs not depending on
2605 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
2607 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
2608 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
2610 2005-08-11 James E. Wilson <wilson@specifix.com>
2612 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
2614 2005-08-11 Jakub Jelinek <jakub@redhat.com>
2616 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
2617 locations gathered by var-tracking in single entry loc_list
2618 over loc_descriptor_from_tree.
2620 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
2621 pass it down to loc_descriptor.
2622 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
2623 (containing_function_has_frame_base): Move earlier in the file.
2624 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
2625 instead of always assuming fbreg can't be used.
2627 2005-08-11 David Edelsohn <edelsohn@gnu.org>
2629 * config/rs6000/altivec.md: Change constraint "m" to "Z".
2630 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2631 Accept address wrapped in AND for Altivec.
2632 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2633 Strip AND wrapping offset address for Altivec.
2635 2005-08-11 Richard Henderson <rth@redhat.com>
2638 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
2639 before using TYPE_IS_SIZETYPE.
2641 2005-08-11 Richard Henderson <rth@redhat.com>
2644 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
2645 insn types not present on ev4.
2646 (alphaev5_insn_pipe): Similarly.
2648 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
2651 * arm.c (arm_override_options): If the user has selected callee-super-
2652 interworking, then enable normal interworking.
2654 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2656 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
2659 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
2661 * doc/rtl.texi: Fix two typos.
2663 2005-08-11 Richard Guenther <rguenther@suse.de>
2666 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
2667 cases where we call to/from functions returning void.
2669 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
2672 * tree.c (build_pointer_type_for_mode): Robustify.
2674 2005-08-10 James E Wilson <wilson@specifix.com>
2676 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
2677 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
2679 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
2682 2005-08-10 Eric Christopher <echristo@apple.com>
2684 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
2685 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
2688 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
2691 * config/darwin.c (machopic_indirect_data_reference): Use a new register
2692 for the high part when generating dynamic-no-pic code.
2694 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
2696 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
2697 (x86_64-*-linux*): Likewise.
2699 * config/i386/crtfastmath.c: New file.
2700 * config/i386/t-crtfm: Likewise.
2702 * config/i386/linux.h (ENDFILE_SPEC): New.
2703 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
2705 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
2708 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
2710 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
2711 (vec_shl, vec_shr): Document new operations.
2712 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
2714 2005-08-10 David Edelsohn <edelsohn@gnu.org>
2716 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
2717 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
2718 change predicate to indexed_or_indirect_address.
2720 2005-08-10 Richard Sandiford <richard@codesourcery.com>
2722 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
2723 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
2724 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
2725 and __aeabi_uwrite8.
2726 * config/arm/unaligned-funcs.c: New file.
2727 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
2729 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
2731 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
2733 * cfglayout.c (pass_insn_locators_initialize): Add dump.
2734 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
2736 * except.c (pass_convert_to_eh_region_ranges): Add dump.
2737 * final.c (pass_shorten_branches): Add dump.
2738 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
2739 (pass_life): Rename dump.
2740 (rest_of_handle_flow2): Remove initial verify_flow_info.
2741 * function.c (pass_instantiate_virtual_regs): Add dump.
2742 * integrate.c (pass_initial_value_sets): Add dump.
2743 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
2744 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
2745 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
2746 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
2747 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
2748 gate_rtl_unrool_and_peel_loops): New.
2749 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
2750 rtl_doloop): Do not look at flags.
2751 * mode-switching.c (pass_mode_switching): Add dump.
2752 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
2753 pass_split_before_regstack): Add dump.
2754 * regmove.c (pass_stack_adjustments): Add dump.
2755 * tree-optimize.c (pass_fixup_cfg): Add dump.
2757 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2760 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
2761 deciding which instruction sequence to use.
2763 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
2765 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
2766 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
2768 2005-08-09 Richard Guenther <rguenther@suse.de>
2770 * c-common.c (builtin_function_2): Remove.
2771 (def_builtin_1): New function.
2772 (c_common_nodes_and_builtins): Use def_builtin_1 to
2773 build builtin functions.
2775 2005-08-09 Jie Zhang <jie.zhang@analog.com>
2777 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
2778 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2779 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
2782 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
2784 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
2785 fold_binary instead of fold_build2 since we don't care about the
2787 (loop_niter_by_eval): Likewise.
2788 (compare_trees): Likewise.
2789 (proved_non_wrapping_p): Likewise.
2791 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
2795 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
2796 if the if is really empty.
2798 2005-08-09 Steven Bosscher <stevenb@suse.de>
2800 PR tree-optimization/23234
2801 * tree-ssa-math-opts.c (place_reciprocal): New enum.
2802 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
2803 argument of the new enum.
2804 (execute_cse_reciprocals): Add reciprocals for function arguments
2805 on the unique successor edge of the entry block. Update other calls
2806 to execute_cse_reciprocals_1.
2808 2005-08-08 Richard Henderson <rth@redhat.com>
2811 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
2813 2005-08-08 Bob Wilson <bob.wilson@acm.org>
2815 * expr.c (write_complex_part): Return after handling MEM.
2817 2005-08-08 Josh Conner <jconner@apple.com>
2819 PR rtl-optimization/23241
2820 * combine.c (simplify_comparison): Fix error in determining
2821 whether to lift a subreg from comparison.
2823 2005-08-08 David Edelsohn <edelsohn@gnu.org>
2826 * config/rs6000/altivec.md (vec_init<mode>): New.
2827 (vec_set<mode>): New.
2828 (vec_extract<mode>): New.
2829 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
2830 (rs6000_expand_vector_set): New.
2831 (rs6000_expand_vector_extract): New.
2832 (rs6000_legitimate_offset_address_p): Offset addresses are valid
2833 for Altivec modes before reload.
2834 (altivec_expand_vec_init_builtin): New.
2835 (get_element_number): New.
2836 (altivec_expand_vec_set_builtin): New.
2837 (altivec_expand_vec_ext_builtin): New.
2838 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
2840 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
2842 * config/rs6000/rs6000.h (rs6000_builtins): Add
2843 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
2844 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
2845 * config/rs6000/rs6000-protos.h: Declare new functions.
2847 2005-08-08 Jan Hubicka <jh@suse.cz>
2849 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
2850 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
2851 * i386.md (movdi*): Use pic_32bit_operand.
2852 * predicates.md (pic_32bit_operand): New.
2854 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
2857 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
2859 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
2861 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
2862 (test_for_singularity): Use fold_build2.
2864 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2866 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
2868 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2870 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
2871 (COMMON_ASM_OP) Define.
2872 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
2873 (ix86_encode_section_info): Likewise.
2874 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
2875 SUBTARGET_ENCODE_SECTION_INFO.
2877 2005-08-06 Richard Henderson <rth@redhat.com>
2880 * tree-nested.c (convert_local_reference): Save and restore val_only
2881 around component_ref and friends. Clear walk_subtrees by default.
2883 2005-08-06 Peter O'Gorman <peter@pogma.com>
2886 * gcc.c (process_command): Check the argument to -b has a dash.
2887 * doc/invoke.texi: Update -b and -V docs.
2889 2005-08-06 James E Wilson <wilson@specifix.com>
2891 * config/mips/cross64.h, config/mips/t-cross64: Delete.
2893 2005-08-06 Michael Matz <matz@suse.de>
2895 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
2896 member only if only one insn is associated with the value.
2898 2005-08-06 Nick Clifton <nickc@redhat.com>
2900 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
2902 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2903 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
2904 Check symbol flags instead of symbol name mangling.
2905 (xstormy16_asm_output_aligned_common): Likewise. Also
2906 simplify code since the bss100_section cass is the only case
2907 where the below100 code will be triggered.
2908 (xstormy16_encode_section_info): Encode below100 attribute
2909 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
2911 (xstormy16_strip_name_encoding): Delete - this function is no
2913 (TARGET_STRIP_NAME_ENCODING): Undefine.
2914 * config/stormy16/stormy16-protos.h: Delete prototype for
2915 xstormy16_strip_name_encoding.
2917 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
2919 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
2920 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
2921 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
2922 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
2923 config/alpha/predicates.md, config/arc/arc.h,
2924 config/arm/arm.h, config/arm/ieee754-df.S,
2925 config/arm/ieee754-sf.S, config/bfin/bfin.c,
2926 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
2927 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
2928 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
2929 config/m68hc11/m68hc11.h, config/mips/mips.c,
2930 config/mips/mips.h, config/mips/openbsd.h,
2931 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
2932 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
2933 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2934 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
2935 config/sparc/linux.h, config/sparc/linux64.h,
2936 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
2937 doc/extend.texi, doc/gcov.texi, doc/install.texi,
2938 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
2939 typos. Follow spelling conventions.
2941 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
2944 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
2945 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
2946 specially. Check for side effects only for COND_EXPR.
2947 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
2948 return with TREE_NO_WARNING.
2950 2005-08-06 Richard Sandiford <richard@codesourcery.com>
2952 PR rtl-optimization/23233
2953 * loop.c (combine_movables): Require the modes to be the same.
2954 (move_movables): Remove handling of cases where the replacement
2955 had a different mode to the original.
2957 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
2959 PR tree-optimization/23128
2960 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
2961 subtraction wrap, and set TREE_OVERFLOW if they do.
2963 2005-08-05 Richard Henderson <rth@redhat.com>
2966 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
2967 FORCED_LABEL labels.
2969 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
2972 * reload.c (find_reloads_subreg_address): Pass down TYPE
2973 unchanged. Change all callers except find_reloads_toplev.
2975 2005-08-05 Michael Matz <matz@suse.de>
2977 * genattrtab.c (current_alternative_string): Remove.
2978 (SIMPLIFY_ALTERNATIVE): Ditto.
2979 (attr_alt_bit_p): Ditto.
2980 (alternative_name): Make const char *.
2981 (evaluate_eq_attr): Remove use of above things.
2982 (simplify_test_exp): Ditto.
2983 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
2984 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
2986 2005-08-04 James E Wilson <wilson@specifix.com>
2988 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
2989 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
2990 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
2991 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
2992 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
2994 2005-08-04 Richard Henderson <rth@redhat.com>
2997 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
2998 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
2999 * tree-sra.c (decide_block_copy): Use it. Disable element copy
3000 if we'd have to instantiate too many members.
3002 2005-08-04 Richard Henderson <rth@redhat.com>
3005 * tree-outof-ssa.c (coalesce_asm_operands): New.
3006 (coalesce_ssa_name): Use it. Split out ...
3007 (coalesce_phi_operands, coalesce_result_decls): ... these.
3009 2005-08-04 Paul Brook <paul@codesourcery.com>
3011 * read-rtl.c (read_quoted_string): Break if EOF.
3013 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
3015 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
3016 (fold_build2): Likewise.
3017 (fold_build3): Likewise.
3018 (fold_build1_stat): New function prototype.
3019 (fold_build2_stat): Likewise.
3020 (fold_build3_stat): Likewise.
3021 * fold-const.c (fold_build1): Rename to ..
3022 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
3023 through to build1_stat.
3024 (fold_build2): Rename to ..
3025 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
3026 through to build2_stat.
3027 (fold_build3): Rename to ..
3028 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
3029 through to build3_stat.
3031 2005-08-04 David Edelsohn <edelsohn@gnu.org>
3032 Ian Lance Taylor <ian@airs.com>
3034 * function.c (assign_stack_local_1): Do not correct stack slot
3035 address if allocation size is smaller than mode size.
3037 2005-08-04 Diego Novillo <dnovillo@redhat.com>
3040 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
3041 (tree_merge_blocks): Propagate anything allowed by
3043 Clarify documentation.
3044 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
3045 SSA form, schedule an update if necessary.
3047 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3049 * doc/install.texi (Binaries): Remove broken link to
3050 Sinix/Reliant Unix binaries.
3052 2005-08-03 Richard Henderson <rth@redhat.com>
3055 * function.c (stack_protect_epilogue): Export.
3056 * tree.h (stack_protect_epilogue): Declare.
3057 * calls.c (expand_call): Call it.
3059 2005-08-03 Eric Christopher <echristo@apple.com>
3061 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
3062 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
3065 2005-08-04 Jan Hubicka <jh@suse.cz>
3067 * profile.c (branch_prob): Split edges with goto locus on them
3068 to get proper line counts.
3069 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
3071 2005-08-03 Paul Brook <paul@codesourcery.com>
3073 * function.c (assign_parms): Round current_function_args_size
3074 to PARM_BOUNDARY, not STACK_BOUNDARY.
3076 2005-08-03 Geoffrey Keating <geoffk@apple.com>
3078 * config/i386/i386.c (x86_elf_aligned_common)
3079 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
3081 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
3083 PR tree-optimization/23157
3084 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
3085 before emitting them.
3087 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3089 PR tree-optimization/19899
3090 * Makefile.in (tree-scalar-evolution.o): Add real.h.
3091 * tree-scalar-evolution.c: Include real.h.
3092 (add_to_evolution): Build constant -1 of correct type.
3094 2005-08-03 Jan Hubicka <jh@suse.cz>
3096 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
3097 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
3098 profile updating for complette unrolling.
3099 * loop-unroll.c (peel_loop_completely): Use it.
3100 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3101 (tree_unroll_loops_completely): Disable code growing unrolling of cold
3104 2005-08-03 Paul Brook <paul@codesourcery.com>
3106 * combine.c (can_change_dest_mode): New function.
3107 (try_combine, simplify_set): Use it.
3109 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
3111 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
3114 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
3116 * doc/install.texi (Specific): Adjust link to openavr.org.
3117 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
3118 (Binaries): Adjust HP-UX Porting Center link.
3119 (Binaries): Adjust Free Software Foundation ordering link.
3121 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
3123 * convert.c (convert_to_integer): Use fold_build1 instead of
3124 build1 when converting an integer to an integer.
3126 2005-08-02 Richard Henderson <rth@redhat.com>
3128 * combine.c (combine_instructions): Don't use reg_equal/equiv
3129 results if the mode doesn't match.
3131 2005-08-02 Mark Mitchell <mark@codesourcery.com>
3133 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
3134 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
3136 2005-08-02 Richard Henderson <rth@redhat.com>
3139 * explow.c (memory_address): Remove special-case for
3140 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
3142 2005-08-02 Diego Novillo <dnovillo@redhat.com>
3145 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
3146 number of calls to cleanup_tree_cfg_1.
3148 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
3150 * doc/invoke.texi: document file extensions .F90 and .F95
3152 2005-08-02 Richard Guenther <rguenther@suse.de>
3154 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
3155 positive if its first argument is positive.
3157 2005-08-02 Richard Guenther <rguenther@suse.de>
3159 PR tree-optimization/23177
3160 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
3163 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
3165 PR tree-optimization/23129
3166 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
3167 varying for divisions with anti-ranges.
3169 2005-08-02 Jan Hubicka <jh@suse.cz>
3171 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
3172 * tree-ssa-threadupdate.c (thread_block): Add it here.
3174 2005-08-01 James E Wilson <wilson@specifix.com>
3176 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
3177 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
3178 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
3180 * config/mips/predicates.md (const_call_insn_operand): Add check for
3181 SYMBOL_REF_LONG_CALL_P.
3182 * doc/extend.texi (long_call): Document the new attribute.
3184 2005-08-01 Ian Lance Taylor <ian@airs.com>
3185 Richard Henderson <rth@redhat.com>
3187 * Makefile.in (RTL_BASE_H): Add real.h.
3188 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
3190 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
3192 * rtl.c (rtl_check_failed_code_mode): New.
3193 * rtl.h (struct rtx_def): Add u.rv.
3194 (XCMWINT, XCNMPRV): New.
3195 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
3196 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
3198 2005-08-01 Richard Henderson <rth@redhat.com>
3200 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
3201 with auto-inc codes.
3203 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
3205 2005-08-01 Jan Hubicka <jh@suse.cz>
3207 * i386-protos.h (asm_preferred_eh_data_format): Declare.
3208 * i386.c: Include dwarf2.h
3209 (asm_preferred_eh_data_format): New.
3210 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
3212 2005-08-01 Ian Lance Taylor <ian@airs.com>
3214 * config/host-linux.c (linux_gt_pch_get_address): Add new name
3215 randomize_va_space for virtual address randomization control.
3217 2005-08-01 Steven Bosscher <stevenb@suse.de>
3219 * common.opt (flag_ipa_cp): Put in right place to maintain
3222 2005-08-01 Jan Hubicka <jh@suse.cz>
3224 * profile.c (compute_value_histograms): Fix thinko.
3225 * value-prof.c: Include toplev.h
3226 (check_counter): New function.
3227 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3228 tree_mod_subtract_transform): Add sanity check.
3230 2005-08-01 Richard Guenther <rguenther@suse.de>
3232 PR tree-optimization/23133
3233 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
3234 current functions parameter decls to find defs to cse
3237 2005-08-01 Richard Guenther <rguenther@suse.de>
3239 PR tree-optimization/23109
3240 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
3241 If trapping math is in effect, use post-dominator information
3242 to check if we'd in any case reach a trapping point before
3243 doing the reciprocal insertion.
3244 (execute_cse_reciprocals): Compute post-dominators, if necessary.
3245 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
3246 expressions are invariant only if trapping math is not in effect.
3248 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
3250 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
3251 cgraph_function_versioning): New declarations.
3252 * cgraphunit.c: Add include to ipa-prop.h.
3253 (update_call_expr, cgraph_copy_node_for_versioning,
3254 cgraph_function_versioning): New functions.
3255 * integrate.c (copy_decl_for_inlining): Remove.
3256 * ipa-prop.h (ipa_replace_map): New struct.
3257 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
3258 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
3259 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
3260 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
3261 ipcp_iterate_stage, ipcp_method_scale_print,
3262 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
3263 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
3264 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
3265 ipcp_update_bb_counts, ipcp_update_profiling,
3266 ipcp_update_edges_counts): New functions.
3267 (ipcp_method_cval_init): Remove restriction regarding local methods.
3268 (ipcp_init_stage): Add ipcp_method_compute_scale.
3269 (ipcp_insert_stage): Add versioning.
3270 (ipcp_structures_print): Add ipcp_method_scale_print.
3271 (ipcp_driver): Dump profiling info.
3272 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
3273 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
3274 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
3275 (struct inline_data): Add versioning_p, ipa_info, new fields.
3276 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
3277 declare_return_variable): Replace calls to copy_decl_for_inlining with
3279 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
3281 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
3282 Add argument VERSIONING.
3283 (copy_arguments_for_versioning, copy_static_chain,
3284 function_versionable_p, tree_versionable_function_p,
3285 tree_function_versioning, replace_ref_tree): New functions.
3286 * tree-inline.h: Include varray.h.
3287 (tree_versionable_function_p, tree_function_versioning,
3288 tree copy_decl_for_dup): New declarations.
3290 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
3292 * ipa-cp.c: New file. Contains IPCP specific functionality.
3293 * ipa-prop.h: New file. Contains structures/definitions that can be
3294 used by several interprocedural data flow optimizations (and also IPCP).
3295 * ipa-prop.c: New file.
3296 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
3297 * common.opt: Add ipa-cp flag.
3298 * timevar.def: Add IPCP optimization.
3299 * tree-optimize.c (init_tree_optimization_passes): Schedule
3301 * tree-pass.h (pass_ipa_cp): Declare.
3303 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
3305 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
3306 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
3307 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
3308 config/i386/i386.c, config/mips/mips.h,
3309 config/rs6000/rs6000.h, config/sh/sh.c,
3310 config/stormy16/stormy16.c: Fix comment typos.
3312 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
3315 * c-typeck.c (build_binary_op): Use common_type wrapper on
3317 (common_type): Update comment.
3319 2005-07-31 Steven Bosscher <stevenb@suse.de>
3322 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
3323 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
3324 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
3326 2005-07-31 Jan Hubicka <jh@suse.cz>
3328 * pretty-print.h (pp_widest_integer): New macro.
3329 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
3332 2005-07-31 Jan Hubicka <jh@suse.cz>
3334 * output.h (enum section_category): Export from varasm.c
3335 (categorize_decl_for_section): Likewise.
3336 * varasm.c (enum section_category): Kill.
3337 (categorize_decl_for_section): Make global.
3338 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
3340 * i386.c (ix86_section_threshold): New static variable.
3341 (ix86_in_large_data_p, ix86_encode_section_info,
3342 x86_64_elf_unique_section,
3343 x86_64_elf_select_section): New functions.
3344 (TARGET_ENCODE_SECTION_INFO): Define
3345 (override_options): Enable medium model for PIC.
3346 (ix86_expand_prologue): Expand gen_set_got_rex64.
3347 (legitimate_constant_p): Handle new UNSPECs.
3348 (legitimate_pic_address_disp_p): Likewise.
3349 (legitimize_pic_address): Lower MEDIUM model addressing.
3350 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
3351 (enum cmodel): Add MEDIUM_PIC.
3352 (SYMBOL_REF_FAR_ADDR_P): New macro.
3353 (SYMBOL_FLAG_FAR_ADDR): New flag.
3354 * i386.md (movdi): Support medium model.
3355 (set_got_rex64): New pattern.
3356 * i386.opt (mlarge-data-threshold): New flag.
3357 * predicates.md (zext_operand/sext_operand): Deal with medium model.
3358 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
3359 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
3360 TARGET_ASM_UNIQUE_SECTION): New.
3362 * invoke.texi (-mlarge_data_threshold): Document
3364 2005-07-31 Jan Hubicka <jh@suse.cz>
3366 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
3367 (coalesce_vars): Likewise.
3368 * tree-ssa-live.c (coalesce_cost): New.
3369 (build_tree_conflict_graph): Use coalesce_cost.
3370 * tree-ssa-live.h (coalesce_cost): Declare.
3372 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
3374 * arm.md (all peepholes for post-increment operations): Delete.
3375 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
3376 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
3377 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
3378 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
3379 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
3381 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
3383 * fold-const.c (tree_expr_nonnegative_p): Always return true for
3386 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
3389 * doc/invoke.texi: Document -rdynamic.
3391 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
3394 * c-parser.c (c_parser_parms_list_declarator): Call
3395 mark_forward_parm_decls.
3396 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
3397 decls with visibility structure.
3399 2005-07-30 Paul Brook <paul@codesourcery.com>
3401 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
3403 2005-07-30 Paul Brook <paul@codesourcery.com>
3405 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3407 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
3409 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
3411 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3414 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
3415 nested function declarators.
3416 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
3417 (grokparms): Call warn_if_shadowing for parameters used within the
3419 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
3420 not used within the parameter list.
3421 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
3423 2005-07-30 Jan Hubicka <jh@suse.cz>
3425 * expr.c (expand_expr_real_1): Do not load mem targets into register.
3426 * i386.c (ix86_fixup_binary_operands): Likewise.
3427 (ix86_expand_unary_operator): Likewise.
3428 (ix86_expand_fp_absneg_operator): Likewise.
3429 * optabs.c (expand_vec_cond_expr): Validate dest.
3431 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3434 * real.c (real_from_string): Also set last bit if there is a
3435 nonzero hex digit beyond GCC's internal precision after ".".
3437 2005-07-29 David Edelsohn <edelsohn@gnu.org>
3439 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
3440 define_constants. Change duplicate values to unassigned numbers.
3441 Change UNSPEC_SUBS to UNSPEC_VSUBS.
3442 (*altivec_vspltsf): New.
3443 (altivec_vperm_v4sf): Delete.
3444 (altivec_vperm_<mode>): Use mode macro V.
3445 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
3446 (altivec_predicate_v4sf): Delete.
3447 (altivec_predicate_<mode>): Use mode macro V.
3448 (*altivec_lvesfx): New.
3449 (*altivec_stvesfx): New.
3450 (vec_realign_load_v4sf): Delete.
3451 (vec_realign_load_<mode>): Use mode macro V.
3452 * config/rs6000/rs6000.c (generate_set_vrsave): Use
3455 2005-07-29 Mark Mitchell <mark@codesourcery.com>
3458 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
3460 * configure: Regenerated.
3462 2005-07-29 Paul Brook <paul@codesourcery.com>
3464 * doc/install.texi: Add link to GFortran binaries wiki page.
3466 2005-07-29 David Ung <davidu@mips.com>
3468 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
3469 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
3470 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
3471 * config/mips/mips.md (cpu): Add 5kf name.
3472 (includes): Includes 5k.md.
3473 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
3474 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
3477 2005-07-29 Diego Novillo <dnovillo@redhat.com>
3480 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
3481 (cleanup_tree_cfg): ... here.
3482 Call cleanup_tree_cfg_1 until there are no more cleanups to
3485 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
3487 * tree-vrp.c (compare_range_with_value): Return true or false
3488 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
3489 EQ_EXPR respectively.
3491 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
3493 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
3496 2005-07-29 Diego Novillo <dnovillo@redhat.com>
3498 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
3499 (tree_ssa_dominator_optimize): Increment it.
3500 (dump_dominator_optimization_stats): Print it.
3502 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
3503 Steven Bosscher <stevenb@suse.de>