program foo implicit none common /mycom/ arr(2) !$omp threadprivate (/mycom/) integer i real*8 arr do i=1,2 write(*,*) i arr(i)=0.0d0 enddo end program
compiled with -S -O2 -fopenmp with gcc 4.1/4.2 generates invalid: movabsq [EMAIL PROTECTED], %rbp @TPOFF should be used for 32-bit signed immediate though, e.g. movq [EMAIL PROTECTED], %rbp is correct. -- Summary: Invalid movabsq [EMAIL PROTECTED], %rbp for TLS Product: gcc Version: 4.2.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org GCC target triplet: x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36189