public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: LIU Hao <lh_mouse@126.com>
To: Sebastian Huber <sebastian.huber@embedded-brains.de>,
	Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: GCC Development <gcc@gcc.gnu.org>
Subject: Re: Why is there no libatomic default implementation using gthr.h?
Date: Mon, 19 Dec 2022 20:56:13 +0800	[thread overview]
Message-ID: <717d7560-6556-b9aa-b932-c032960becfc@126.com> (raw)
In-Reply-To: <bf23cd69-981f-c48b-1b42-ebfcb6586ace@embedded-brains.de>


[-- Attachment #1.1: Type: text/plain, Size: 706 bytes --]

在 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

      reply	other threads:[~2022-12-19 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19  9:03 Sebastian Huber
2022-12-19 12:41 ` Jonathan Wakely
2022-12-19 12:45   ` Sebastian Huber
2022-12-19 12:56     ` LIU Hao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=717d7560-6556-b9aa-b932-c032960becfc@126.com \
    --to=lh_mouse@126.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    --cc=sebastian.huber@embedded-brains.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).