diff options
author | Marek Polacek <polacek@redhat.com> | 2015-12-02 10:22:23 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-12-02 10:22:23 +0000 |
commit | 1a99e748a310e31176736ed34aab012c7464efd0 (patch) | |
tree | 791255cdb205e53a6e0a4b115a60bb122c37fa6e /gcc | |
parent | 3810ff24db44fde0629e0fc1e6449a219aef94fb (diff) | |
download | gcc-1a99e748a310e31176736ed34aab012c7464efd0.zip gcc-1a99e748a310e31176736ed34aab012c7464efd0.tar.gz gcc-1a99e748a310e31176736ed34aab012c7464efd0.tar.bz2 |
re PR middle-end/68570 (ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu)
PR middle-end/68570
* gcc.dg/torture/pr68570.c: New test.
From-SVN: r231163
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr68570.c | 35 |
2 files changed, 40 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 81fcff1..d3ca274 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-12-02 Marek Polacek <polacek@redhat.com> + + PR middle-end/68570 + * gcc.dg/torture/pr68570.c: New test. + 2015-12-02 Richard Biener <rguenther@suse.de> PR tree-optimization/68625 diff --git a/gcc/testsuite/gcc.dg/torture/pr68570.c b/gcc/testsuite/gcc.dg/torture/pr68570.c new file mode 100644 index 0000000..a8f2843 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr68570.c @@ -0,0 +1,35 @@ +/* PR middle-end/68570 */ +/* { dg-do compile } */ + +int a, d, e, f, h, i, k; + +void +fn1 () +{ + char m; + for (;;) + { + for (;;) + { + e = f = 1; + if (i) + d = h = 0; + else + a = 0; + break; + } + k = 0; + if (f) + a = 3; + if (d) + f = 0; + if (a > (i < 1)) + { + if (e) + break; + } + else + i = m; + k = i ? a : i; + } +} |