[Bug libgomp/39176] -static and -fopenmp and io causes segfault

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Fri Feb 13 21:00:00 GMT 2009



------- Comment #7 from jv244 at cam dot ac dot uk  2009-02-13 21:00 -------
(In reply to comment #6)
> Not a gcc bug so closing as invalid.  

The gcc  'bug' is that -fopenmp -static should link to pthreads as 
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive, if that is required, or
error out if that is not possible. 

The current way of just adding -lpthread and hoping it is correct (even in the
presence of -static) is leading to wrong code.


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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



More information about the Gcc-bugs mailing list