OSDN Git Service

2009-01-26 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2009 23:39:02 +0000 (23:39 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2009 23:39:02 +0000 (23:39 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/stackalign/test-unwind.h
gcc/testsuite/g++.dg/torture/stackalign/unwind-0.C
gcc/testsuite/g++.dg/torture/stackalign/unwind-1.C
gcc/testsuite/g++.dg/torture/stackalign/unwind-2.C
gcc/testsuite/g++.dg/torture/stackalign/unwind-3.C
gcc/testsuite/g++.dg/torture/stackalign/unwind-4.C
gcc/testsuite/g++.dg/torture/stackalign/unwind-5.C
gcc/testsuite/g++.dg/torture/stackalign/unwind-6.C

index 57c8c33..89c32e5 100644 (file)
@@ -1,3 +1,18 @@
+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
index 8267384..b07b27c 100644 (file)
@@ -34,7 +34,7 @@ extern void foo(void);
         );\
   }
 
-#ifdef __PIC__
+#if defined __PIC__ || defined __USING_SJLJ_EXCEPTIONS__
 int
 main ()
 {
index 546123b..f8166eb 100644 (file)
@@ -2,7 +2,7 @@
 
 #include "test-unwind.h"
 
-#ifndef __PIC__
+#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
 void __attribute__ ((noinline)) foo()
 {
         ALTER_REGS();
index 3b80964..70dce74 100644 (file)
@@ -2,7 +2,7 @@
 
 #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 ()
index 1569ed8..791eeb5 100644 (file)
@@ -2,7 +2,7 @@
 
 #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 ()
index 48eddaf..29dee2d 100644 (file)
@@ -2,7 +2,7 @@
 
 #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)
index dacbd3d..a896176 100644 (file)
@@ -2,7 +2,7 @@
 
 #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))
index fde430b..514e4e7 100644 (file)
@@ -2,7 +2,7 @@
 
 #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))) 
index 7c9dee1..a888ca1 100644 (file)
@@ -2,7 +2,7 @@
 
 #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)))