diff options
author | Andrey Belevantsev <abel@ispras.ru> | 2013-04-30 14:55:52 +0400 |
---|---|---|
committer | Andrey Belevantsev <abel@gcc.gnu.org> | 2013-04-30 14:55:52 +0400 |
commit | 54b8379a261d1b36958aecbca568ef6475a8e1ca (patch) | |
tree | 3d9c0e789beb68074f0dcebb9a4ca3f6bc4ca676 /gcc/testsuite | |
parent | abc27962b81152a9c68108b2e11e8a90129a46e9 (diff) | |
download | gcc-54b8379a261d1b36958aecbca568ef6475a8e1ca.zip gcc-54b8379a261d1b36958aecbca568ef6475a8e1ca.tar.gz gcc-54b8379a261d1b36958aecbca568ef6475a8e1ca.tar.bz2 |
re PR rtl-optimization/56957 (ICE in add_insn_after, at emit-rtl.c:3783)
PR rtl-optimization/56957
PR rtl-optimization/57105
* sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
variable. Use just INSN_UID for determining whether an insn
should be only disconnected from the insn stream.
* sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
* gcc.dg/pr57105.c: New test.
From-SVN: r198449
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr57105.c | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 77183fe..00576ee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-04-30 Andrey Belevantsev <abel@ispras.ru> + + PR rtl-optimization/57105 + * gcc.dg/pr57105.c: New test. + 2013-04-30 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/57104 diff --git a/gcc/testsuite/gcc.dg/pr57105.c b/gcc/testsuite/gcc.dg/pr57105.c new file mode 100644 index 0000000..a968f52 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr57105.c @@ -0,0 +1,18 @@ +/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ +/* { dg-options "-Os -fselective-scheduling2 -g" } */ +int bar (int); +int *baz (int *); + +void +foo (int a) +{ + while (bar (0)) + { + int *c = baz (0); + if (a) + { + int i = *baz (c); + } + bar (*baz (c)); + } +} |