This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/24704] __gnu_cxx::__exchange_and_add is called even for single threaded applications
- From: "bert dot hubert at netherlabs dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2006 05:20:06 -0000
- Subject: [Bug libstdc++/24704] __gnu_cxx::__exchange_and_add is called even for single threaded applications
- References: <bug-24704-7094@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from bert dot hubert at netherlabs dot nl 2006-05-22 05:20 -------
Subject: Re: __gnu_cxx::__exchange_and_add is called even for single threaded
applications
On Sun, May 21, 2006 at 08:28:45PM -0000, pcarlini at suse dot de wrote:
> ------- Comment #21 from pcarlini at suse dot de 2006-05-21 20:28 -------
> Yes, the audit trail doesn't say that in private mail with Loren we agreed that
> for now we only want to minimally take into account --enable-threads, that is
> exploit the __GTHREADS macro, consistently with other parts of the library
> (like the allocators). I'm going to implement that.
This would mean a non-enable-threads compiled libstdc++ would skip the calls
to __exchange_and_add?
And to clarify, there would be no other way to skip these calls except
making a separate non-threaded libstdc++?
It would work for me, but I'd like to know.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24704