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 libgomp/25883] libgomp call pthread functions directly



------- 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


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