This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add -enable-threads=gnat
- From: Arnaud Charlet <charlet at ACT-Europe dot FR>
- To: Richard Henderson <rth at redhat dot com>,Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, celier at gnat dot com,charlet at gnat dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 28 Apr 2003 01:54:35 +0200
- Subject: Re: Add -enable-threads=gnat
- References: <10304230118.AA11257@vlsi1.ultra.nyu.edu> <20030423011937.GK21459@redhat.com>
> 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.
In addition to what Richard said (availability of several system thread
libraries, e.g. 3 under Solaris, and need of other libraries in some cases),
the other important addition is that
this configuration does not force the systematic use of a thread library.
Instead, we use pointer to functions and set them to different values whether
a program uses tasking (=threads) or not.
Deciding whether a thread library should be linked with a program should
be a per program decision, not a gcc configure time decision. This patch
achieves this effect in the context of gnat.
Arno