Commit e6b18eaa by H.J. Lu Committed by H.J. Lu

re PR target/38952 (EH does not work.)

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
parent 5efb79fc
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> 2009-01-26 Danny Smith <dannysmith@users.sourceforge.net>
PR testsuite/38949 PR testsuite/38949
......
...@@ -34,7 +34,7 @@ extern void foo(void); ...@@ -34,7 +34,7 @@ extern void foo(void);
);\ );\
} }
#ifdef __PIC__ #if defined __PIC__ || defined __USING_SJLJ_EXCEPTIONS__
int int
main () main ()
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
void __attribute__ ((noinline)) foo() void __attribute__ ((noinline)) foo()
{ {
ALTER_REGS(); ALTER_REGS();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
/* Test situation 1: Stack really realign without DRAP */ /* Test situation 1: Stack really realign without DRAP */
void __attribute__ ((noinline)) void __attribute__ ((noinline))
foo () foo ()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
/* Test situation 2: stack really realign with DRAP reg CX */ /* Test situation 2: stack really realign with DRAP reg CX */
void __attribute__ ((noinline)) void __attribute__ ((noinline))
foo () foo ()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
/* Test situation 3: Stack realign really happen with DRAP reg DI */ /* Test situation 3: Stack realign really happen with DRAP reg DI */
void __attribute__ ((noinline)) __attribute__ ((regparm(3))) void __attribute__ ((noinline)) __attribute__ ((regparm(3)))
bar (int arg1, int arg2, int arg3) bar (int arg1, int arg2, int arg3)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
volatile int __attribute__ ((aligned(32))) g_a=1; volatile int __attribute__ ((aligned(32))) g_a=1;
/* Test situation 4: no Drap and stack realign doesn't really happen */ /* Test situation 4: no Drap and stack realign doesn't really happen */
void __attribute__ ((noinline)) void __attribute__ ((noinline))
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
double g_f=1.0; double g_f=1.0;
/* Test situation 5: Stack realign dosn't really happen with DRAP reg CX */ /* Test situation 5: Stack realign dosn't really happen with DRAP reg CX */
void __attribute__ ((noinline)) __attribute__ ((regparm(2))) void __attribute__ ((noinline)) __attribute__ ((regparm(2)))
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "test-unwind.h" #include "test-unwind.h"
#ifndef __PIC__ #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
double g_f=1.0; double g_f=1.0;
/* Test situation 6: Stack realign dosn't really happen with DRAP reg DI */ /* Test situation 6: Stack realign dosn't really happen with DRAP reg DI */
void __attribute__ ((noinline)) __attribute__ ((regparm(3))) void __attribute__ ((noinline)) __attribute__ ((regparm(3)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment