PR target/38952
* g++.dg/torture/stackalign/test-unwind.h (main): Also return 0
if __USING_SJLJ_EXCEPTIONS__ is defined.
* g++.dg/torture/stackalign/unwind-0.C (foo): Don't define if
__USING_SJLJ_EXCEPTIONS__ is defined.
* g++.dg/torture/stackalign/unwind-1.C (foo): Likewise.
* g++.dg/torture/stackalign/unwind-2.C (foo): Likewise.
* g++.dg/torture/stackalign/unwind-3.C (foo): Likewise.
* g++.dg/torture/stackalign/unwind-4.C (foo): Likewise.
* g++.dg/torture/stackalign/unwind-5.C (foo): Likewise.
* g++.dg/torture/stackalign/unwind-6.C (foo): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143689
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-01-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/38952
+ * g++.dg/torture/stackalign/test-unwind.h (main): Also return 0
+ if __USING_SJLJ_EXCEPTIONS__ is defined.
+
+ * g++.dg/torture/stackalign/unwind-0.C (foo): Don't define if
+ __USING_SJLJ_EXCEPTIONS__ is defined.
+ * g++.dg/torture/stackalign/unwind-1.C (foo): Likewise.
+ * g++.dg/torture/stackalign/unwind-2.C (foo): Likewise.
+ * g++.dg/torture/stackalign/unwind-3.C (foo): Likewise.
+ * g++.dg/torture/stackalign/unwind-4.C (foo): Likewise.
+ * g++.dg/torture/stackalign/unwind-5.C (foo): Likewise.
+ * g++.dg/torture/stackalign/unwind-6.C (foo): Likewise.
+
2009-01-26 Danny Smith <dannysmith@users.sourceforge.net>
PR testsuite/38949
);\
}
-#ifdef __PIC__
+#if defined __PIC__ || defined __USING_SJLJ_EXCEPTIONS__
int
main ()
{
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
void __attribute__ ((noinline)) foo()
{
ALTER_REGS();
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
/* Test situation 1: Stack really realign without DRAP */
void __attribute__ ((noinline))
foo ()
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
/* Test situation 2: stack really realign with DRAP reg CX */
void __attribute__ ((noinline))
foo ()
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
/* Test situation 3: Stack realign really happen with DRAP reg DI */
void __attribute__ ((noinline)) __attribute__ ((regparm(3)))
bar (int arg1, int arg2, int arg3)
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
volatile int __attribute__ ((aligned(32))) g_a=1;
/* Test situation 4: no Drap and stack realign doesn't really happen */
void __attribute__ ((noinline))
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
double g_f=1.0;
/* Test situation 5: Stack realign dosn't really happen with DRAP reg CX */
void __attribute__ ((noinline)) __attribute__ ((regparm(2)))
#include "test-unwind.h"
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
double g_f=1.0;
/* Test situation 6: Stack realign dosn't really happen with DRAP reg DI */
void __attribute__ ((noinline)) __attribute__ ((regparm(3)))