Four tests in libgomp.fortran (omp_parse3.f90, pr25162.f, and
threadprivate[23].f90 started failing with this patch:

  http://gcc.gnu.org/viewcvs?view=rev&rev=133801
  r133801 | george | 2008-04-01 17:23:36 -0400 (Tue, 01 Apr 2008)

This small testcase fails in the same way when compiled with "-m64 -g
-fopenmp":

      program test
      call foo
      end
      subroutine foo
      real testvar
      common /testcom/ testvar
c$omp threadprivate(/testcom/)
      testvar = 1.0
      return
      end

Output:

elm3b145% /opt/gcc-nightly/trunk-20080406/bin/gfortran -g -m64 -fopenmp tls1.f
-lgomp
/opt/gcc-nightly/binutils-2.18/bin/ld: /tmp/cc0dFrjq.o(.debug_info+0x74):
R_PPC64_ADDR64 used with TLS symbol testcom_

I'll attach the .s files for revisions 133800 and 133801 for the same source
but without the first three lines.


-- 
           Summary: gfortran TLS symbols broken with debug info
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35896

Reply via email to