This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/25883] libgomp call pthread functions directly
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2006 08:50:18 -0000
- Subject: [Bug libgomp/25883] libgomp call pthread functions directly
- References: <bug-25883-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2006-01-24 08:50 -------
That's a bad idea. While in libstdc++, libgcc, libobjc and libgfortran
we want to support thread safety only optionally, depending whether libpthread
(or its system counterpart) is linked in or not, in libgomp thread support
is needed unconditionally (the library doesn't make any sense without it)
and we don't want to slow everything down by loading a GOT pointer before
every pthread_* function call.
For targets that don't have pthread_* functions, but still support threads
in a different way, simply add a different config/ directory and put the stuff
in it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25883