From: Jakub Jelinek Date: Tue, 18 Nov 2014 22:13:16 +0000 (+0100) Subject: re PR tree-optimization/61042 (ICE on valid code at -O3 on x86_64-linux-gnu) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d236c8038dfe895644d47100f68b8ca198d42b57;p=gcc.git re PR tree-optimization/61042 (ICE on valid code at -O3 on x86_64-linux-gnu) PR tree-optimization/61042 * gcc.c-torture/compile/pr61042.c: New test. From-SVN: r217740 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5e889f7cfcc..ad651fa7830 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-18 Jakub Jelinek + + PR tree-optimization/61042 + * gcc.c-torture/compile/pr61042.c: New test. + 2014-11-18 Maciej W. Rozycki * gcc.dg/atomic/c11-atomic-exec-5.c (dg-timeout-factor): New diff --git a/gcc/testsuite/gcc.c-torture/compile/pr61042.c b/gcc/testsuite/gcc.c-torture/compile/pr61042.c new file mode 100644 index 00000000000..43a4319096a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr61042.c @@ -0,0 +1,10 @@ +/* PR tree-optimization/61042 */ + +int a, b, c[1], d, f; + +void +foo () +{ + for (; b; b++) + c[0] = c[f] && (d = a); +}