re PR target/70292 (ICE in verify_target_availability, at sel-sched.c:1584 with -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce -O1)

PR target/70292
        * gcc.c-torture/pr70292.c: New test.

From-SVN: r234627
This commit is contained in:
Andrey Belevantsev 2016-03-31 17:37:08 +03:00 committed by Andrey Belevantsev
parent 5fde6a45eb
commit b4c4967c97
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-03-31 Andrey Belevantsev <abel@ispras.ru>
PR target/70292
* gcc.c-torture/pr70292.c: New test.
2016-03-31 Marek Polacek <polacek@redhat.com>
PR c/70297

View File

@ -0,0 +1,12 @@
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
/* { dg-options "-O1 -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce" } */
void bar() {}
int t106_1mul(unsigned int x, unsigned int y) {
int r;
if (__builtin_mul_overflow(x, y, &r)) {
bar();
}
return r;
}