aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2011-12-16 23:11:37 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-12-16 23:11:37 +0000
commit8a76ce4e34c38b9825af59a58e260201a2e6518c (patch)
tree05d04c7666bd96de71b64b754f16d0fd17dd656d /gcc
parent10574a9f5cb4c431cba1af66d95000960ae97bfc (diff)
downloadgcc-8a76ce4e34c38b9825af59a58e260201a2e6518c.zip
gcc-8a76ce4e34c38b9825af59a58e260201a2e6518c.tar.gz
gcc-8a76ce4e34c38b9825af59a58e260201a2e6518c.tar.bz2
re PR middle-end/51592 (ICE with -fnon-call-exceptions)
PR middle-end/51592 * gcc.dg/20111216-1.c: New test. From-SVN: r182419
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/20111216-1.c17
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 37023d1..0a22ca9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-16 Ian Lance Taylor <iant@google.com>
+
+ PR middle-end/51592
+ * gcc.dg/20111216-1.c: New test.
+
2011-12-16 Jason Merrill <jason@redhat.com>
PR c++/51461
diff --git a/gcc/testsuite/gcc.dg/20111216-1.c b/gcc/testsuite/gcc.dg/20111216-1.c
new file mode 100644
index 0000000..cd82cf9
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20111216-1.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-O -fexceptions -fnon-call-exceptions" } */
+
+extern void f2 () __attribute__ ((noreturn));
+void
+f1 ()
+{
+ unsigned char a[8];
+ unsigned int i;
+
+ for (i = 0; i < 8; i++)
+ {
+ if (i > 8)
+ f2 ();
+ a[i] = i <= 8;
+ }
+}