mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 22:11:30 +08:00
re PR tree-optimization/93054 (ICE in gimple_set_lhs, at gimple.c:1820)
2020-01-09 Richard Biener <rguenther@suse.de> PR middle-end/93054 * gimplify.c (gimplify_expr): Deal with NOP definitions. * gcc.dg/pr93054.c: New testcase. From-SVN: r280039
This commit is contained in:
parent
0f507a3657
commit
00294b189c
@ -1,3 +1,8 @@
|
||||
2020-01-09 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR middle-end/93054
|
||||
* gimplify.c (gimplify_expr): Deal with NOP definitions.
|
||||
|
||||
2020-01-09 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/93040
|
||||
|
@ -14622,7 +14622,8 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
|
||||
{
|
||||
/* Avoid the extra copy if possible. */
|
||||
*expr_p = create_tmp_reg (TREE_TYPE (name));
|
||||
gimple_set_lhs (SSA_NAME_DEF_STMT (name), *expr_p);
|
||||
if (!gimple_nop_p (SSA_NAME_DEF_STMT (name)))
|
||||
gimple_set_lhs (SSA_NAME_DEF_STMT (name), *expr_p);
|
||||
release_ssa_name (name);
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2020-01-09 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR middle-end/93054
|
||||
* gcc.dg/pr93054.c: New testcase.
|
||||
|
||||
2020-01-09 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/93040
|
||||
|
10
gcc/testsuite/gcc.dg/pr93054.c
Normal file
10
gcc/testsuite/gcc.dg/pr93054.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* { dg-do compile } */
|
||||
|
||||
__attribute__ ((returns_twice)) int
|
||||
bp (int);
|
||||
|
||||
__attribute__ ((noreturn)) int
|
||||
cb (void)
|
||||
{
|
||||
return bp (cb ()); /* { dg-warning "declared .noreturn." } */
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user