PR middle-end/53249
* gcc.target/i386/pr53249.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187331
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
PR tree-optimization/18437
--- /dev/null
+/* { 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;
+}