Patchwork Maybe fix PR57050

login
register
mail settings
Submitter Richard Guenther
Date April 24, 2013, 8:20 a.m.
Message ID <alpine.LNX.2.00.1304241019450.7969@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/239078/
State New
Headers show

Comments

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

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