Try to compile libgomp/testsuite/libgomp.c/copyin-1.c at -O0: [EMAIL PROTECTED]:~/build/gcc/native> gcc/xgcc -Bgcc -c copyin-1.c -I ~/build/gcc/native/x86_64-suse-linux/libgomp -fopenmp /tmp/ccB3EieP.s: Assembler messages: /tmp/ccB3EieP.s:278: Error: Accessing `thr' as thread-local object /tmp/ccB3EieP.s:278: Error: Accessing `thr' as thread-local object /tmp/ccB3EieP.s:278: Error: Accessing `thr' as thread-local object /tmp/ccB3EieP.s:278: Error: Accessing `thr' as thread-local object /tmp/ccB3EieP.s:278: Error: Accessing `thr' as thread-local object /tmp/ccB3EieP.s:278: Error: Accessing `thr' as thread-local object
[EMAIL PROTECTED]:~/build/gcc/native> gcc/xgcc -Bgcc -c copyin-1.c -I ~/build/gcc/native/x86_64-suse-linux/libgomp -fopenmp -funit-at-a-time [EMAIL PROTECTED]:~/build/gcc/native> gcc/xgcc -Bgcc -c copyin-1.c -I ~/build/gcc/native/x86_64-suse-linux/libgomp -fopenmp -O -fno-unit-at-a-time /tmp/ccTYpCzg.s: Assembler messages: /tmp/ccTYpCzg.s:220: Error: Accessing `thr' as thread-local object /tmp/ccTYpCzg.s:220: Error: Accessing `thr' as thread-local object /tmp/ccTYpCzg.s:220: Error: Accessing `thr' as thread-local object /tmp/ccTYpCzg.s:220: Error: Accessing `thr' as thread-local object /tmp/ccTYpCzg.s:220: Error: Accessing `thr' as thread-local object /tmp/ccTYpCzg.s:220: Error: Accessing `thr' as thread-local object -- Summary: #pragma omp threadprivate requires -funit-at-at-time Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ebotcazou at gcc dot gnu dot org GCC build triplet: *-*-* GCC host triplet: *-*-* GCC target triplet: *-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26171