This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]