aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr55597.c
blob: 0ed7a3a2eac25f831990a432870f5f2d20d65c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fPIC -mx32 -maddress-mode=long" } */

struct initial_sp
{
  void *sp;
  int mask;
};

__thread struct initial_sp __morestack_initial_sp;

void foo (int *);

void __morestack_release_segments (void)
{
  foo (&__morestack_initial_sp.mask);
}