This is the mail archive of the gcc-patches@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]

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.

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


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