This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add -enable-threads=gnat
- From: Laurent Guerby <guerby at acm dot org>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: rth at redhat dot com, celier at gnat dot com, charlet at gnat dot com,gcc-patches at gcc dot gnu dot org
- Date: 23 Apr 2003 08:41:40 +0200
- Subject: Re: Add -enable-threads=gnat
- Organization:
- References: <10304230138.AA11448@vlsi1.ultra.nyu.edu>
On Wed, 2003-04-23 at 03:38, Richard Kenner wrote:
> 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.
I needed to add gthr-gnat.[ch] because s-tasini.adb unconditionally
import and call __gnat_install_locks, otherwise all
tasking programs were failing the link. No idea
on why the three other symbols are there.
--
Laurent Guerby <guerby at acm dot org>