This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30613] gfortran -fopenmp -static produces bad executable
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2007 17:33:47 -0000
- Subject: [Bug fortran/30613] gfortran -fopenmp -static produces bad executable
- References: <bug-30613-3791@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kargl at gcc dot gnu dot org 2007-01-27 17:33 -------
Works for me with both the 4.2 branch and trunk gfortran.
troutmask:sgk[235] gfc4x -o z -fopenmp -static t.f
troutmask:sgk[236] ./z
n,p= 0 0.000000
n,p= 0 0.000000
troutmask:sgk[237] gfc42 -o z -fopenmp -static t.f
troutmask:sgk[238] ./z
n,p= 0 0.000000
n,p= 0 0.000000
I recall seeing a similar bug report with OpenMP and -static.
The problem is that glibc does not support a static TLS.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30613