This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Maybe fix PR57050
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Apr 2013 10:20:26 +0200 (CEST)
- Subject: [PATCH] Maybe fix PR57050
This avoids sigjmp_buf use which maybe fixes newlib targets.
Tested on x86_64-unknown-linux-gnu, applied.
Richard.
2013-04-24 Richard Biener <rguenther@suse.de>
PR testsuite/57050
* gcc.c-torture/execute/pr56982.c: Avoid sigjmp_buf use.
Index: gcc/testsuite/gcc.c-torture/execute/pr56982.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/pr56982.c (revision 198216)
+++ gcc/testsuite/gcc.c-torture/execute/pr56982.c (working copy)
@@ -1,8 +1,10 @@
-#include <stdlib.h>
#include <setjmp.h>
-static sigjmp_buf env;
-void *stderr;
+extern void abort (void);
+extern void exit (int);
+
+static jmp_buf env;
+
void baz (void)
{
__asm__ volatile ("" : : : "memory");