re PR tree-optimization/44539 (ICE: verify_ssa failed: type mismatch between an SSA_NAME and its symbol)
PR tree-optimization/44539 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when the call doesn't have LHS, but has VDEF. * gcc.dg/pr44539.c: New test. From-SVN: r161374
This commit is contained in:
parent
47d660fbcc
commit
8ba0479ece
@ -1,3 +1,9 @@
|
||||
2010-06-25 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/44539
|
||||
* tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
|
||||
the call doesn't have LHS, but has VDEF.
|
||||
|
||||
2010-06-25 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2010-06-25 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/44539
|
||||
* gcc.dg/pr44539.c: New test.
|
||||
|
||||
2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
|
||||
|
||||
From Jim Wilson:
|
||||
|
29
gcc/testsuite/gcc.dg/pr44539.c
Normal file
29
gcc/testsuite/gcc.dg/pr44539.c
Normal file
@ -0,0 +1,29 @@
|
||||
/* PR tree-optimization/44539 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-ftracer -freorder-blocks -O2" } */
|
||||
|
||||
void bar (int file);
|
||||
extern int baz (void);
|
||||
|
||||
void noret1 ()
|
||||
{
|
||||
bar (0);
|
||||
__builtin_exit (0);
|
||||
}
|
||||
|
||||
void noret2 ()
|
||||
{
|
||||
__builtin_exit (0);
|
||||
}
|
||||
|
||||
void bar (int i)
|
||||
{
|
||||
if (baz ())
|
||||
noret1 (i);
|
||||
}
|
||||
|
||||
void foo (int i)
|
||||
{
|
||||
if (~i) bar (i);
|
||||
i ? noret1 () : noret2 ();
|
||||
}
|
@ -591,6 +591,9 @@ fixup_noreturn_call (gimple stmt)
|
||||
update_stmt (stmt);
|
||||
changed = true;
|
||||
}
|
||||
/* Similarly remove VDEF if there is any. */
|
||||
else if (gimple_vdef (stmt))
|
||||
update_stmt (stmt);
|
||||
return changed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user