Why is there no libatomic default implementation using gthr.h?

LIU Hao lh_mouse@126.com
Mon Dec 19 12:56:13 GMT 2022


在 2022/12/19 20:45, Sebastian Huber 写道:
> On 19/12/2022 13:41, Jonathan Wakely wrote:
>>> 3. Use gthr as the default implementation of libatomic.
>> I have no objection to doing this, but I don't see why you need to
>> touch libstdc++ to do it. Just make libatomic create its own copy of
>> gthr.h (if a fallback gthreads-based implementation is actually
>> needed) and compile that locally in the libatomic build dir. That
>> shouldn't need changes to libgcc or libstdc++, should it?
> 
> Yes, this would also work. I can probably duplicate the gthr configure/Makefile stuff from libstdc++ 
> for this.
> 

Would you please do the same to libgomp too?

-- 
Best regards,
LIU Hao

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20221219/1bb15ee6/attachment.sig>


More information about the Gcc mailing list