OSDN Git Service

PR rtl-optimization/40924
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / stackalign / unwind-4.C
1 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
2
3 #include "test-unwind.h"
4
5 #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
6 volatile int __attribute__ ((aligned(32))) g_a=1;
7 /* Test situation 4: no Drap and stack realign doesn't really happen */
8 void __attribute__ ((noinline))
9 foo()
10 {
11         int i;
12         ALTER_REGS();
13         for (i=0; i < 10; i++)
14                 g_a++;
15         throw g_a;
16 }
17 #endif