diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/cleanup-10.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cleanup-11.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cleanup-5.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cleanup-8.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cleanup-9.c | 3 |
5 files changed, 10 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/cleanup-10.c b/gcc/testsuite/gcc.dg/cleanup-10.c index 35936ea..e8ae3bc 100644 --- a/gcc/testsuite/gcc.dg/cleanup-10.c +++ b/gcc/testsuite/gcc.dg/cleanup-10.c @@ -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__ diff --git a/gcc/testsuite/gcc.dg/cleanup-11.c b/gcc/testsuite/gcc.dg/cleanup-11.c index 447b398..ff315f7 100644 --- a/gcc/testsuite/gcc.dg/cleanup-11.c +++ b/gcc/testsuite/gcc.dg/cleanup-11.c @@ -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__ diff --git a/gcc/testsuite/gcc.dg/cleanup-5.c b/gcc/testsuite/gcc.dg/cleanup-5.c index 497ab0b..c335c1e 100644 --- a/gcc/testsuite/gcc.dg/cleanup-5.c +++ b/gcc/testsuite/gcc.dg/cleanup-5.c @@ -6,6 +6,7 @@ #include <unwind.h> #include <stdlib.h> +#include <string.h> static _Unwind_Reason_Code force_unwind_stop (int version, _Unwind_Action actions, @@ -22,7 +23,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__ diff --git a/gcc/testsuite/gcc.dg/cleanup-8.c b/gcc/testsuite/gcc.dg/cleanup-8.c index 25bc305..321e1f0 100644 --- a/gcc/testsuite/gcc.dg/cleanup-8.c +++ b/gcc/testsuite/gcc.dg/cleanup-8.c @@ -6,6 +6,7 @@ #include <unwind.h> #include <stdlib.h> #include <signal.h> +#include <string.h> static _Unwind_Reason_Code force_unwind_stop (int version, _Unwind_Action actions, @@ -22,7 +23,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__ diff --git a/gcc/testsuite/gcc.dg/cleanup-9.c b/gcc/testsuite/gcc.dg/cleanup-9.c index 4cf4a41..c3ac5fb 100644 --- a/gcc/testsuite/gcc.dg/cleanup-9.c +++ b/gcc/testsuite/gcc.dg/cleanup-9.c @@ -6,6 +6,7 @@ #include <unwind.h> #include <stdlib.h> #include <signal.h> +#include <string.h> static _Unwind_Reason_Code force_unwind_stop (int version, _Unwind_Action actions, @@ -22,7 +23,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__ |