Maybe fix PR57050

Submitted by Richard Guenther on April 24, 2013, 8:20 a.m.

Details

Message ID alpine.LNX.2.00.1304241019450.7969@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Guenther April 24, 2013, 8:20 a.m.
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.

Patch hide | download patch | download mbox

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");