summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture
Commit message (Collapse)AuthorAgeFilesLines
* * gcc.c-torture/execute/bcp-1.c: Make ready for -fuse-linker-pluginhubicka2010-12-011-6/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167353 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/46637jakub2010-11-251-0/+11
| | | | | | | | | | | * combine.c (try_combine): When substing i2dest for i2src, pass 1 as last argument even if i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src. * gcc.c-torture/compile/pr46637.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167148 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-22 Ian Bolton <ian.bolton@arm.com>ibolton2010-11-221-0/+2
| | | | | | | | | | * testsuite/c-c++-common/pr44832.c: Use -fno-short-enums option for "target short_enums". * testsuite/gcc.c-torture/compile/pr39845.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167036 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/45830jakub2010-11-191-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | * stmt.c (expand_switch_using_bit_tests_p): New function. (expand_case): Use it. * tree.h (expand_switch_using_bit_tests_p): New prototype. * tree-switch-conversion.c (struct switch_conv_info): Add bit_test_uniq, bit_test_count and bit_test_bb fields. (check_range): Fix a comment. (check_process_case): Compute bit_test_uniq and bit_test_count. (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one allocation. (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging. (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT. (array_value_type): New function. (build_one_array): Use it, if it returned different type, fold_convert all constructor fields and convert back to the wider type in the generated code. (process_switch): Initialize bit_test_uniq, bit_test_count and bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p returned true. * gcc.target/i386/pr45830.c: New test. * gcc.c-torture/execute/pr45830.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166966 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/46547jsm282010-11-191-0/+6
| | | | | | | | | | | | | | | | | * c-tree.h (in_late_binary_op): Move to c-family/c-common.h. * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c. c-family: * c-common.c (in_late_binary_op): Define. (c_common_truthvalue_conversion): Check in_late_binary_op before calling c_save_expr. * c-common.h (in_late_binary_op): Declare. testsuite: * gcc.c-torture/compile/pr46547-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166951 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/46534jakub2010-11-181-0/+17
| | | | | | | | | | | * builtins.c (fold_builtin_printf): Don't copy and modify string before build_string_literal, instead modify what build_string_literal returned. * gcc.c-torture/compile/pr46534.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166918 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/46461jakub2010-11-151-0/+8
| | | | | | | | | | * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is a gimple val. * gcc.c-torture/compile/pr46461.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166776 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/46388jakub2010-11-111-0/+14
| | | | | | | | | | | * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use BLKmode mode for it. (expand_expr_real_1): Similarly for op0. * gcc.c-torture/compile/pr46388.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166603 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/46360jakub2010-11-091-0/+13
| | | | | | | | | | * tree-ssa-propagate.c (update_call_from_tree): Fix for use not in SSA mode. * gcc.c-torture/compile/pr46360.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166482 138bc75d-0d04-0410-961f-82ee72b054a4
* fix changelog error davidxl2010-11-091-0/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166472 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:ro2010-11-087-119/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message. gcc/testsuite: * gcc.dg/pr35442.c: Adapt warning. PR target/46280 * g++.dg/eh/simd-2.C: Add -msse to dg-options, add dg-require-effective-target sse_runtime for for i?86-*-*, x86_64-*-*. * g++.dg/torture/pr36444.C: Add dg-options -msse for i?86-*-* x86_64-*-*. * g++.dg/torture/pr36445.C: Likewise. * gcc.c-torture/compile/pr34856.c: Likewise. * gcc.c-torture/compile/pr39928-1.c: Likewise. * gcc.c-torture/compile/vector-1.c: Likewise. * gcc.c-torture/compile/vector-2.c: Likewise. * gcc.dg/pr32912-1.c: Likewise. * gcc.c-torture/execute/va-arg-25.c: Move ... * gcc.dg/torture/va-arg-25.c: ... here. Add dg-do run. Add dg-options -msse, dg-require-effective-target sse_runtime for for i?86-*-*, x86_64-*-*. * gcc.c-torture/execute/vector-1.c: Likewise. * gcc.c-torture/execute/vector-2.c: Likewise. * gcc.dg/tree-ssa/forwprop-5.c: Add -msse to dg-options for i?86-*-*, x86_64-*-*. * gcc.dg/tree-ssa/fre-vce-1.c: Likewise. * gcc.dg/tree-ssa/sra-4.c: Likewise. * gcc.dg/tree-ssa/vector-1.c: Likewise. * gcc.dg/tree-ssa/vector-2.c: Likewise. * gcc.target/i386/vect-args.c: Add -Wno-psabi to dg-options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166444 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-05 Steve Ellcey <sje@cup.hp.com>sje2010-11-051-75/+0
| | | | | | | | | | * lib/target-supports.exp (check_function_available): Use -fno-builtin. * (check_effective_target_mempcpy): New. * gcc.c-torture/execute/pr45636.c: Move this... * gcc.dg/torture/pr45636.c: to here. Add add dg- directives. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166378 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/46107jakub2010-11-031-0/+16
| | | | | | | | | | * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags if cfg_hook_duplicate_loop_to_header_edge failed. * gcc.c-torture/compile/pr46107.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166234 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/46034jakub2010-11-032-0/+46
| | | | | | | | | | | | | | | | PR rtl-optimization/46212 PR rtl-optimization/46248 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src before i0dest -> i0src substitution and pass 1 instead of 0 as last argument to subst on i2pat. * gcc.c-torture/compile/pr46034.c: New test. * gcc.c-torture/compile/pr46248.c: New test. * gcc.dg/pr46212.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166231 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/compile/20080625-1.c: Skip if pdp11.pkoning2010-11-017-4/+7
| | | | | | | | | | | * gcc.c-torture/compile/20020604-1.c: Ditto. * gcc.c-torture/compile/20001226-1.c: Ditto. * gcc.c-torture/compile/20010327-1.c: Ditto. * gcc.c-torture/compile/limits-stringlit.c: Ditto. * gcc.c-torture/compile/pr43191.c: Ditto. * gcc.c-torture/compile/pr41181.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166135 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/rsandifo2010-10-311-0/+6
| | | | | | | | * gcc.c-torture/execute/20101011-1.c: Skip for MIPS unless running the Linux kernel. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166107 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>rguenth2010-10-293-0/+124
| | | | | | | | | | | | | | | | | | | | | | Andrew Pinski <pinskia@gmail.com> * tree.h (build_vector_from_val): Declare. * tree.c (build_vector_from_val): New function. * c-typeck.c (build_binary_op): Handle vector shifting. * doc/extend.texi: Description of the vector shifting operation. testsuite/ * gcc.c-torture/execute/vector-shift.c: New testcase. * gcc.c-torture/execute/vector-shift1.c: Likewise. * gcc.c-torture/execute/vector-shift2.c: Likewise. * gcc.dg/vector-shift.c: Likewise. * gcc.dg/vector-shift1.c: Likewise. * gcc.dg/torture/vector-shift2.c: Likewise. * gcc.dg/vector-shift3.c: Likewise. * gcc.dg/simd-1b.c: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166061 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/execute/20101011-1.c: Skip on SH.kkojima2010-10-291-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166056 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/execute/20101011-1.c: Fix #ifdef.pthaugen2010-10-281-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166049 138bc75d-0d04-0410-961f-82ee72b054a4
* Properly align parameters on stack for x86.hjl2010-10-263-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ 2010-10-26 H.J. Lu <hongjiu.lu@intel.com> PR target/44948 * config/i386/i386.c (ix86_old_function_arg_boundary): New. (ix86_function_arg_boundary): Always align parameters on stack in 64bit and align parameters with alignment >= 16byte on stack in 32bit. Warn alignment change. gcc/testsuite/ 2010-10-26 H.J. Lu <hongjiu.lu@intel.com> PR target/44948 * g++.dg/abi/param2.C: Add -Wno-psabi for ilp32 x86. * g++.dg/vect/pr33860a.cc: Likewise. * gcc.c-torture/compile/20070522-1.c: Likewise. * gcc.dg/compat/struct-align-1_x.c: Likewise. * gcc.dg/compat/struct-align-1_y.c: Likewise. * gcc.dg/compat/struct-align-2_x.c: Likewise. * gcc.dg/compat/struct-align-2_y.c: Likewise. * gcc.dg/pr44136.c: Likewise. * gcc.c-torture/compile/pr33617.c: Add -Wno-psabi for x86. * gcc.dg/compat/vector-1_x.c: Likewise. * gcc.dg/compat/vector-1_y.c: Likewise. * gcc.dg/compat/vector-2_x.c: Likewise. * gcc.dg/compat/vector-2_y.c: Likewise. * gcc.dg/pr43300.c: Likewise. * gcc.dg/compat/vector-1a_x.c: Add -Wno-psabi. * gcc.dg/compat/vector-1a_y.c: Likewise. * gcc.dg/compat/vector-1b_x.c: Likewise. * gcc.dg/compat/vector-1b_y.c: Likewise. * gcc.dg/compat/vector-2a_x.c: Likewise. * gcc.dg/compat/vector-2a_y.c: Likewise. * gcc.dg/compat/vector-2b_x.c: Likewise. * gcc.dg/compat/vector-2b_y.c: Likewise. * gcc.target/i386/pr39162.c: Likewise. * gcc.target/i386/pr40906-2.c: Likewise. * gcc.target/i386/sse-5.c: Likewise. * gcc.dg/pr35442.c: Prune ABI change warnings. * gcc.c-torture/execute/pr38151.x: New. * gcc.target/i386/pr44948-1a.c: Likewise. * gcc.target/i386/pr44948-1b.c: Likewise. * gcc.target/i386/pr44948-2a.c: Likewise. * gcc.target/i386/pr44948-2b.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165965 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/:ian2010-10-261-0/+30
| | | | | | | | | | | PR middle-end/45687 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF offset. gcc/testsuite: * gcc.c-torture/execute/20101025-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165964 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/:ian2010-10-232-0/+47
| | | | | | | | | | | | * tree-vrp.c (extract_range_from_binary_expr): If flag_non_call_exceptions don't eliminate division by zero. * simplify-rtx.c (simplify_binary_operation_1): Likewise. gcc/testsuite/: * gcc.c-torture/execute/20101011-1.c: New test. * gcc.c-torture/execute/20101011-1.x: New test driver. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165884 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>rguenth2010-10-223-0/+153
| | | | | | | | | | | | | | | | | | | | | | | Andrew Pinski <pinskia@gmail.com> * c-typeck.c (build_array_ref): Handle subscripting of vectors. * doc/extend.texi: New paragraph c-family/ * c-common.h (c_common_mark_addressable_vec): Declare. * c-common.c (c_common_mark_addressable_vec): New function. testsuite/ * gcc.c-torture/execute/vector-subscript-1.c: Likewise. * gcc.c-torture/execute/vector-subscript-2.c: Likewise. * gcc.c-torture/execute/vector-subscript-3.c: New testcase. * gcc.dg/vector-subscript-1.c: Likewise. * gcc.dg/vector-subscript-2.c: Likewise. * gcc.dg/vector-subscript-3.c: New testcase. * gcc.dg/array-8.c: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165861 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/45919jakub2010-10-201-0/+9
| | | | | | | | | | * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible array members. * gcc.c-torture/compile/pr45919.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165740 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-18 Steve Ellcey <sje@cup.hp.com>sje2010-10-181-19/+0
| | | | | | | * gcc.c-torture/compile/920625-1.c: Remove dg-prune-output lines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165665 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/46019jakub2010-10-181-0/+14
| | | | | | | | | | * fold-const.c (fold_binary_loc): If integer_pow2p has TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH. * gcc.c-torture/execute/pr46019.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165610 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/45969jsm282010-10-141-0/+6
| | | | | | | | | | | * c-typeck.c (build_binary_op): Don't try to compute a semantic type with excess precision for boolean operations. testsuite: * gcc.c-torture/compile/pr45969-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165472 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/45912ebotcazou2010-10-131-0/+36
| | | | | | | | * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the regno of registers instead of their index to compute the alignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165437 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 45856eager2010-10-132-79/+79
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165410 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/45636jakub2010-10-121-0/+75
| | | | | | | | | | | | | * tree-ssa-forwprop.c: Include expr.h. (constant_pointer_difference, simplify_builtin_call): New functions. (tree_ssa_forward_propagate_single_use_vars): Call simplify_builtin_call on builtin calls. * gcc.c-torture/execute/pr45636.c: New test. * gfortran.dg/pr45636.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165401 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/compile/pr44197.c: Require visibility support.nickc2010-10-111-1/+11
| | | | | | | Allow for a user label prefix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165315 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc.c-torture/execute/cmpsi-2.c : Unsigned comparisons should use hariharans2010-10-061-4/+4
| | | | | | | | | unsigned values. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165016 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/45876jakub2010-10-041-0/+9
| | | | | | | | | | | * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use arg0's type or its unsigned counterpart as utype. Convert arg1 to utype unconditionally. * gcc.c-torture/compile/pr45876.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164943 138bc75d-0d04-0410-961f-82ee72b054a4
* Replace FLOAT_MIN, FLOAT_MAX to __FLT_MIN__, __FLT_MAX__.eager2010-09-301-10/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164816 138bc75d-0d04-0410-961f-82ee72b054a4
* Check in support for Xilinx MicroBlaze processor. eager2010-09-302-0/+368
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164756 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/45738hubicka2010-09-241-0/+7
| | | | | | | | | | | | | | PR tree-optimization/45741 * expr.c (string_constant): Allow CONST_DECL too; check that DECL_INITIAL is set. * varpool.c (const_value_known_p): Only look into VAR_DECL and CONST_DECL. * gcc.c-torture/compile/pr45741.c: New. * gfortran.fortran-torture/compile/pr45738.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164602 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/45728jakub2010-09-201-0/+17
| | | | | | | | | | | * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try gen_lowpart_common first and if that fails, force_reg first before calling gen_lowpart. * gcc.c-torture/compile/pr45728.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164456 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/45695jakub2010-09-201-0/+32
| | | | | | | | | | | * combine.c (try_combine): When splitting a two set pattern, make sure the pattern which will be put into i2 doesn't use REGs or MEMs set by insns in between i2 and i3. * gcc.c-torture/execute/pr45695.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164431 138bc75d-0d04-0410-961f-82ee72b054a4
* PR lto/44246hubicka2010-09-191-0/+5
| | | | | | | | | * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid processing same node twice. * gcc.c-torture/compile/pr44246.c:New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164425 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/45593ebotcazou2010-09-151-0/+82
| | | | | | | | * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit insns that were in delay slots as stand-alone insns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164318 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>vmakarov2010-09-092-0/+101
| | | | | | | | | | | | | | | | PR middle-end/40386 * ira.c (pseudo_for_reload_consideration_p): Don't use flag_ira_share_spill_slots. 2010-09-09 Vladimir Makarov <vmakarov@redhat.com> PR middle-end/40386 * gcc.c-torture/execute/{pr40386.c,pr40386.x}: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164100 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:ro2010-09-081-0/+1
| | | | | | | | | | | | | | * doc/sourcebuild.texi (Effective-Target Keywords): Document run_expensive_tests. gcc/testsuite: * lib/target-supports.exp (check_effective_target_run_expensive_tests): New proc. * gcc.c-torture/compile/limits-fnargs.c: Use dg-require-effective-target run_expensive_tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164012 138bc75d-0d04-0410-961f-82ee72b054a4
* * gimple.c (maybe_fold_reference): Verify that operand ishubicka2010-09-071-0/+9
| | | | | | | | gimple_min_invariant. * gcc.c-torture/compile/20100907.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163948 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-05 Richard Guenther <rguenther@suse.de>rguenth2010-09-051-0/+38
| | | | | | | | | | | | | PR tree-optimization/45535 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before dereferencing it. (indirect_refs_may_alias_p): Likewise. * gcc.c-torture/compile/pr45535.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163877 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-02 Richard Guenther <rguenther@suse.de>rguenth2010-09-022-0/+52
| | | | | | | | | | | | | PR tree-optimization/44937 PR tree-optimization/45412 * ipa-split.c (split_function): Properly remove PHI nodes. * g++.dg/opt/pr45412.C: New testcase. * gcc.c-torture/compile/pr45412.c: Likewise. * gcc.c-torture/compile/pr44937.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163775 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-01 Richard Guenther <rguenther@suse.de>rguenth2010-09-011-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | * tree-vrp.c (adjust_range_with_scev): Use number of iteration estimate. (vrp_visit_phi_node): Delay using SCEV till we balloon the range. (execute_vrp): Compute number of iteration estimates. * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype. * tree-flow.h (estimate_numbers_of_iterations): Likewise. * tree-data-ref.c (estimated_loop_iterations): Adjust. * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Infer loop bounds from undefined behavior based on a new parameter. (estimate_numbers_of_iterations): Likewise. (scev_probably_wraps_p): Adjust. * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise. * gcc.dg/vect/vect-outer-fir.c: Adjust. * gcc.dg/tree-ssa/vrp54.c: New testcase. * gcc.c-torture/execute/20100827-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163724 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/44858jakub2010-08-251-0/+28
| | | | | | | | | | * combine.c (try_combine): If recog_for_combine added CLOBBERs to newi2pat, make sure they don't affect newpat. * gcc.c-torture/execute/pr44858.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163552 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/45059jakub2010-08-251-0/+23
| | | | | | | | | | | * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless type conversions from newop{1,2}. Assert t is a comparison and newop{1,2} after the stripping are gimple vals. * gcc.c-torture/compile/pr45059.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163539 138bc75d-0d04-0410-961f-82ee72b054a4
* For Ian Bolton <ian.bolton@arm.com>ramana2010-08-191-0/+52
| | | | | | | | | | | | 2010-08-19 Ian Bolton <ian.bolton@arm.com> PR target/45070 * gcc.c-torture/execute/pr45070.c: New. * config/arm/arm.c (arm_output_epilogue): Ensure that return value of size 1-3 is handled correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163367 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/45262jakub2010-08-121-0/+33
| | | | | | | | | | * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if -a overflows. Normalize the range. * gcc.c-torture/execute/pr45262.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163193 138bc75d-0d04-0410-961f-82ee72b054a4