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 447b3986222..8330c2b4bbe 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 *-*-linux* powerpc*-*-darwin* } } */ +/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* } } */ /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */ /* Verify that cleanups work with exception handling through realtime signal frames on alternate stack. */ @@ -7,6 +7,7 @@ #include <stdlib.h> #include <signal.h> #include <unistd.h> +#include <string.h> static _Unwind_Reason_Code force_unwind_stop (int version, _Unwind_Action actions, @@ -23,7 +24,7 @@ force_unwind_stop (int version, _Unwind_Action actions, static void force_unwind () { struct _Unwind_Exception *exc = malloc (sizeof (*exc)); - exc->exception_class = 0; + memset (&exc->exception_class, 0, sizeof (exc->exception_class)); exc->exception_cleanup = 0; #ifndef __USING_SJLJ_EXCEPTIONS__ |