From: Richard Biener Date: Tue, 28 Feb 2017 12:38:57 +0000 (+0000) Subject: re PR middle-end/79732 (ICE in set_ssa_default_def, at tree-dfa.c:327) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd3f45609c0e668b5f6382a17605cdf3aa394dd3;p=gcc.git re PR middle-end/79732 (ICE in set_ssa_default_def, at tree-dfa.c:327) 2017-02-28 Richard Biener PR tree-optimization/79732 * tree-inline.c (expand_call_inline): Do not shadow var. * gcc.dg/torture/pr79732.c: New testcase. From-SVN: r245773 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a98a08e2fb4..96e150896df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-02-28 Richard Biener + + PR tree-optimization/79732 + * tree-inline.c (expand_call_inline): Do not shadow var. + 2017-02-28 Richard Biener PR tree-optimization/79723 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8c0514c7996..b616b8a1738 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-02-28 Richard Biener + + PR tree-optimization/79732 + * gcc.dg/torture/pr79732.c: New testcase. + 2017-02-28 Richard Biener PR tree-optimization/79723 diff --git a/gcc/testsuite/gcc.dg/torture/pr79732.c b/gcc/testsuite/gcc.dg/torture/pr79732.c new file mode 100644 index 00000000000..7231ba4f139 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr79732.c @@ -0,0 +1,5 @@ +/* { dg-do link } */ + +int bar () __attribute__ ((alias ("foo"))); +void foo () { } +int main () { return bar(); } diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 138b992552e..bd4b48e8623 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4782,7 +4782,7 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id) { if (!var) { - tree var = create_tmp_reg_fn (cfun, TREE_TYPE (name), NULL); + var = create_tmp_reg_fn (cfun, TREE_TYPE (name), NULL); SET_SSA_NAME_VAR_OR_IDENTIFIER (name, var); } /* Otherwise make this variable undefined. */