aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr58690.c
blob: 87a87cc9c907d4f3c3baceac2c424344fe0a5466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-require-effective-target maybe_x32 } */
/* { dg-options "-O2 -mx32 -maddress-mode=short" } */

struct gomp_thread
{
  char foo[41];
};
extern __thread struct gomp_thread gomp_tls_data;
void
foo (void)
{
  __builtin_memset (&gomp_tls_data, '\0', sizeof (gomp_tls_data));
}