This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/47375] GETLOG not threadsafe, causes warnings/wrong-code with static linking


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-20 13:30:11 UTC ---
You should certainly avoid getpwuid etc. if getpwuid_r is available, otherwise
you can't call reliably getlog etc. from !$omp parallel.

That said, the warning is correct, if users have illusion that if they link
-static the C library no dynamic linking will be used, they need to be told
they are wrong.  The simple fix is don't use -static.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]