]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/38952 (EH does not work.)
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 26 Jan 2009 23:39:02 +0000 (23:39 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 26 Jan 2009 23:39:02 +0000 (15:39 -0800)
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.

From-SVN: r143689

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 57c8c33d518df21638c1f9c2b6fefcf9cc527dd4..89c32e50df64f01dbb20e4198381b3d8362de325 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 8267384e079f5dfb88333f9dabed9a8f89477f1d..b07b27c21fb7be98414b3f7079f65b9347b70600 100644 (file)
@@ -34,7 +34,7 @@ extern void foo(void);
         );\
   }
 
-#ifdef __PIC__
+#if defined __PIC__ || defined __USING_SJLJ_EXCEPTIONS__
 int
 main ()
 {
index 546123bdd0e98301914f8f142849091d988b8fdc..f8166eb9548717b33f96a1cc090c74b18fd68b9e 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 3b809642ab73824c58090ac3fbcaa8919589a2c5..70dce748567987c808a9bcd8c05a40dd6096a723 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 1569ed84b7d1b42924fa260bbe82dd6dd99a4526..791eeb55106b461cab2b531db1e98da4e9a17fd2 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 48eddaf5565e8f9a0ec8bcbedc1feae10bb57b47..29dee2d5a7b74a64918d93f26193e0db70809181 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 dacbd3dede98b6a974fcfbae57ac7a383ce4ac13..a896176ae04a60a9eff1252dcf265e9980e764b8 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 fde430bfb72a55e57101e55bb426486df0684fdf..514e4e77a56d6ef686c7c1d88a02649f4bd8470d 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 7c9dee13338199fb72dca62346b6b77c5dbfe5e7..a888ca1b5f9877f8cb39ceb24d4a49f5e3ff65d6 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)))