summaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-10 13:48:06 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-10 13:48:06 +0000
commitc86f4c75645cdd38254700ada0b489d1ee20856b (patch)
treee3cef0d637251bfd1b08fca99c3e0bf451588bd0 /libmudflap
parentad1c08ca13ac0f611cf5536581acde09eb2a9688 (diff)
downloadgcc-c86f4c75645cdd38254700ada0b489d1ee20856b.tar.gz
PR middle-end/35314
* tree-mudflap.c (mf_build_check_statement_for): Split then_block after __mf_check call if the call must end a bb. * testsuite/libmudflap.c/pass67-frag.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog5
-rw-r--r--libmudflap/testsuite/libmudflap.c/pass67-frag.c14
2 files changed, 19 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index 9214759b304..208ab8fb99b 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/35314
+ * testsuite/libmudflap.c/pass67-frag.c: New test.
+
2008-10-09 Jakub Jelinek <jakub@redhat.com>
PR c++/37568
diff --git a/libmudflap/testsuite/libmudflap.c/pass67-frag.c b/libmudflap/testsuite/libmudflap.c/pass67-frag.c
new file mode 100644
index 00000000000..0c2f81a1705
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c/pass67-frag.c
@@ -0,0 +1,14 @@
+/* PR middle-end/35314 */
+/* { dg-do compile } */
+/* { dg-options "-fmudflap" } */
+
+#include <setjmp.h>
+
+jmp_buf buf;
+
+void
+foo (volatile char *p)
+{
+ if (__builtin_setjmp (buf))
+ *p;
+}