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
This commit is contained in:
parent
5efb79fcab
commit
e6b18eaa6d
9 changed files with 23 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -34,7 +34,7 @@ extern void foo(void);
|
|||
);\
|
||||
}
|
||||
|
||||
#ifdef __PIC__
|
||||
#if defined __PIC__ || defined __USING_SJLJ_EXCEPTIONS__
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "test-unwind.h"
|
||||
|
||||
#ifndef __PIC__
|
||||
#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
|
||||
void __attribute__ ((noinline)) foo()
|
||||
{
|
||||
ALTER_REGS();
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue