This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add -enable-threads=gnat
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: celier at gnat dot com, charlet at gnat dot com, gcc-patches at gcc dot gnu dot org, guerby at acm dot org
- Date: Tue, 22 Apr 03 21:38:45 EDT
- Subject: Re: Add -enable-threads=gnat
Hum. I'm surprised that GNAT uses its own thread library,
rather than the system library. The later will be more
efficient on any reasonable target.
First of all, you may have a system which has more than one "system
library", so this will force the use of the same one that Ada chose.
Also, there are many systems where the supplied thread library has bugs that
the precise semantics of Ada expose (specifically Annex D), in which case
an alternate library has to be used.
But I'll leave the details to the experts here, since I don't know that much
about this area. I do know this was done as a bugfix. I also remember
Laurent Guerby saying about a week ago that he needed this change in
order to get something to work, so perhaps he can say more too.