This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Heads up: Several thousand g++ and libstdc++ test failures on sparc[64]
Organizatio n: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
Cc: toa@pop.agri.ch
Bcc: rittle
> Ah!?
>
> Certainly can I write a ChangeLog entry, if this IS the solution.
> But what do I write?
>
> Workaround for a solaris bug?
Andreas,
Not a Solaris bug; correction of a minor confusion of the use of the
gthr API. At the time the code was written, it was not known by the
author(s), that some environments might find the macro defined to 1,
yet the dynamic check returned 0...
Thank you for testing, adding a ChangeLog and committing.
A better fix might (a) update the gthr-single.h file to make it work
like all other implementations thus removing the need to check the
macro in this case and (b) update the other gthr-*.h files such that
the __gthread_once API did the right thing internally w.r.t. the
dynamic check; thus removing the need for multiple paths in the
caller. However, changing the gthr ABI/API is a lot more complex...
Regards,
Loren