Commit af905902 by H.J. Lu Committed by H.J. Lu

Add a test for PR middle-end/53249

	PR middle-end/53249
	* gcc.target/i386/pr53249.c: New.

From-SVN: r187331
parent e7ff4510
2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/53249
* gcc.target/i386/pr53249.c: New.
2012-05-09 Richard Guenther <rguenther@suse.de> 2012-05-09 Richard Guenther <rguenther@suse.de>
PR tree-optimization/18437 PR tree-optimization/18437
......
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O2 -mx32 -ftls-model=initial-exec -maddress-mode=short" } */
struct gomp_task
{
struct gomp_task *parent;
};
struct gomp_thread
{
int foo1;
struct gomp_task *task;
};
extern __thread struct gomp_thread gomp_tls_data;
void
__attribute__ ((noinline))
gomp_end_task (void)
{
struct gomp_thread *thr = &gomp_tls_data;
struct gomp_task *task = thr->task;
thr->task = task->parent;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment