public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: 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 13:45:00 +0100	[thread overview]
Message-ID: <bf23cd69-981f-c48b-1b42-ebfcb6586ace@embedded-brains.de> (raw)
In-Reply-To: <CAH6eHdTqCFODJm9TEkitMx2H2KoE86VV4JdAnC2PRDgOZ+wXSA@mail.gmail.com>

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.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

  reply	other threads:[~2022-12-19 12:45 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 [this message]
2022-12-19 12:56     ` LIU Hao

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=bf23cd69-981f-c48b-1b42-ebfcb6586ace@embedded-brains.de \
    --to=sebastian.huber@embedded-brains.de \
    --cc=gcc@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    /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).