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] Fix portability issue in gcc.dg/pr57287-2.c


I should have changed the testcase to use setjmp.  Done now,
tested on x86_64-unknown-linux-gnu, applied.

Richard.

2013-09-03  Richard Biener  <rguenther@suse.de>

	PR middle-end/57287
	* gcc.dg/pr57287-2.c: Use setjmp, not __sigsetjmp.

Index: gcc/testsuite/gcc.dg/pr57287-2.c
===================================================================
--- gcc/testsuite/gcc.dg/pr57287-2.c	(revision 202170)
+++ gcc/testsuite/gcc.dg/pr57287-2.c	(working copy)
@@ -12,7 +12,7 @@ struct node
 struct node *list;
 struct node *head (void);
 
-sigjmp_buf *bar (void);
+jmp_buf *bar (void);
 
 int baz (void)
 {
@@ -25,8 +25,8 @@ int baz (void)
       if (!varseen)
 	varseen = 1;
 
-      sigjmp_buf *buf = bar ();  /* { dg-bogus "may be used uninitialized" "" } */
-      __sigsetjmp (*buf, 1);
+      jmp_buf *buf = bar ();  /* { dg-bogus "may be used uninitialized" "" } */
+      setjmp (*buf);
     }
 
   if (!varseen)


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