diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-03-07 00:26:42 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-03-07 00:26:42 +0100 |
commit | c1781047ab626bd67efc080b425d0c5a4a6cf58e (patch) | |
tree | dc064699f13597810e5113bc2892c042369397f5 /gcc/tree-tailcall.c | |
parent | 04414cc68753b7d8c26aeea6ea1c7f9d1068c774 (diff) | |
download | gcc-c1781047ab626bd67efc080b425d0c5a4a6cf58e.zip gcc-c1781047ab626bd67efc080b425d0c5a4a6cf58e.tar.gz gcc-c1781047ab626bd67efc080b425d0c5a4a6cf58e.tar.bz2 |
re PR tree-optimization/56539 (ICE: verify_ssa failed: caused by -foptimize-sibling-calls)
PR tree-optimization/56539
* tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
instead of GSI_CONTINUE_LINKING as last argument to
force_gimple_operand_gsi.
* gcc.c-torture/compile/pr56539.c: New test.
From-SVN: r196511
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r-- | gcc/tree-tailcall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 80c0521..c6581dc 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -599,8 +599,8 @@ add_successor_phi_arg (edge e, tree var, tree phi_arg) } /* Creates a GIMPLE statement which computes the operation specified by - CODE, OP0 and OP1 to a new variable with name LABEL and inserts the - statement in the position specified by GSI and UPDATE. Returns the + CODE, ACC and OP1 to a new variable with name LABEL and inserts the + statement in the position specified by GSI. Returns the tree node of the statement's result. */ static tree @@ -622,7 +622,7 @@ adjust_return_value_with_ops (enum tree_code code, const char *label, fold_convert (TREE_TYPE (op1), acc), op1)); rhs = force_gimple_operand_gsi (&gsi, rhs, - false, NULL, true, GSI_CONTINUE_LINKING); + false, NULL, true, GSI_SAME_STMT); stmt = gimple_build_assign (result, rhs); } |