diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cleanup-11.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cleanup-11.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/cleanup-11.c b/gcc/testsuite/gcc.dg/cleanup-11.c index 9c47f6c..4ad131f 100644 --- a/gcc/testsuite/gcc.dg/cleanup-11.c +++ b/gcc/testsuite/gcc.dg/cleanup-11.c @@ -1,4 +1,4 @@ -/* { dg-do run { target i?86-*-linux* x86_64-*-linux* ia64-*-linux* alpha*-*-linux* powerpc*-*-linux* s390*-*-linux* sparc*-*-linux* mips*-*-linux* } } */ +/* { dg-do run { target *-*-linux* powerpc*-*-darwin* } } */ /* { dg-options "-fasynchronous-unwind-tables -fexceptions -O2" } */ /* Verify that cleanups work with exception handling through realtime signal frames on alternate stack. */ @@ -93,8 +93,9 @@ static int __attribute__((noinline)) fn1 () sigemptyset (&s.sa_mask); s.sa_sigaction = fn4; - s.sa_flags = SA_ONESHOT | SA_ONSTACK | SA_SIGINFO; + s.sa_flags = SA_RESETHAND | SA_ONSTACK | SA_SIGINFO; sigaction (SIGSEGV, &s, NULL); + sigaction (SIGBUS, &s, NULL); fn2 (); return 0; } |