Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr53249.c
blob7386fb534b5d1c2cb18f2e1a3ac898ae04a12d0f
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-require-effective-target maybe_x32 } */
3 /* { dg-options "-O2 -mx32 -ftls-model=initial-exec -maddress-mode=short" } */
5 struct gomp_task
7 struct gomp_task *parent;
8 };
10 struct gomp_thread
12 int foo1;
13 struct gomp_task *task;
16 extern __thread struct gomp_thread gomp_tls_data;
18 void
19 __attribute__ ((noinline))
20 gomp_end_task (void)
22 struct gomp_thread *thr = &gomp_tls_data;
23 struct gomp_task *task = thr->task;
25 thr->task = task->parent;