Bootstrap / regtest running on x86_64-unknown-linux-gnu. Richard.
2017-02-28 Richard Biener <rguent...@suse.de> PR tree-optimization/79732 * tree-inline.c (expand_call_inline): Do not shadow var. * gcc.dg/torture/pr79732.c: New testcase. Index: gcc/tree-inline.c =================================================================== --- gcc/tree-inline.c (revision 245753) +++ gcc/tree-inline.c (working copy) @@ -4782,7 +4782,7 @@ expand_call_inline (basic_block bb, gimp { 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. */ Index: gcc/testsuite/gcc.dg/torture/pr79732.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr79732.c (nonexistent) +++ gcc/testsuite/gcc.dg/torture/pr79732.c (working copy) @@ -0,0 +1,5 @@ +/* { dg-do link } */ + +int bar () __attribute__ ((alias ("foo"))); +void foo () { } +int main () { return bar(); }