gcc/testsuite/gcc.target/i386/pr58690.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-require-effective-target maybe_x32 } */ |
| 3 | /* { dg-options "-O2 -mx32 -maddress-mode=short" } */ |
| 4 | |
| 5 | struct gomp_thread |
| 6 | { |
| 7 | char foo[41]; |
| 8 | }; |
| 9 | extern __thread struct gomp_thread gomp_tls_data; |
| 10 | void |
| 11 | foo (void) |
| 12 | { |
| 13 | __builtin_memset (&gomp_tls_data, '\0', sizeof (gomp_tls_data)); |
| 14 | } |