From: Richard Biener Date: Mon, 28 Jul 2014 07:54:08 +0000 (+0000) Subject: re PR rtl-optimization/61801 (sched2 miscompiles syscall sequence with -g) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9a7442316d8a025c6adf1d14a8b491f3b044337;p=gcc.git re PR rtl-optimization/61801 (sched2 miscompiles syscall sequence with -g) 2014-07-28 Richard Biener PR rtl-optimization/61801 * gcc.target/i386/pr61801.c: New testcase. From-SVN: r213111 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 48717fc3e8c..581aedf236e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-07-28 Richard Biener + + PR rtl-optimization/61801 + * gcc.target/i386/pr61801.c: New testcase. + 2014-07-27 Marek Polacek PR c/61861 diff --git a/gcc/testsuite/gcc.target/i386/pr61801.c b/gcc/testsuite/gcc.target/i386/pr61801.c new file mode 100644 index 00000000000..32cebde1c3e --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr61801.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-Os -fcompare-debug" } */ + +int a, b, c; +void fn1 () +{ + int d; + if (fn2 () && !0) + { + b = ( + { + int e; + fn3 (); + switch (0) + default: + asm volatile("" : "=a"(e) : "0"(a), ""(0)); + e; + }); + d = b; + } + c = d; +}