From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 987663858D28 for ; Mon, 11 Sep 2023 13:02:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 987663858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy05.your-server.de ([78.46.172.2]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfgYT-000Ls8-JH; Mon, 11 Sep 2023 15:02:17 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qfgYT-00075g-FZ; Mon, 11 Sep 2023 15:02:17 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 1B3B1480061; Mon, 11 Sep 2023 15:02:17 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavis, port 10032) with ESMTP id 96i_Ia8NYj8a; Mon, 11 Sep 2023 15:02:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id C1D644801BF; Mon, 11 Sep 2023 15:02:16 +0200 (CEST) X-Virus-Scanned: amavis at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavis, port 10026) with ESMTP id iuI2A62Ty3Mu; Mon, 11 Sep 2023 15:02:16 +0200 (CEST) Received: from [10.10.171.34] (unknown [10.10.171.34]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 75D4C480061; Mon, 11 Sep 2023 15:02:16 +0200 (CEST) Message-ID: <6414a813-72a3-4be3-a03b-759b6dbd09a6@embedded-brains.de> Date: Mon, 11 Sep 2023 15:02:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] libatomic: Provide gthr.h default implementation Content-Language: en-US To: Richard Biener , Jakub Jelinek , Jan Hubicka Cc: gcc-patches@gcc.gnu.org References: <20221219160245.55745-1-sebastian.huber@embedded-brains.de> <9894ac2c-f3b8-fac7-197d-2042fb946240@embedded-brains.de> <1316c42f-a69d-ab56-296e-f617942d4759@embedded-brains.de> <0e95b057-ea2f-91c8-e51b-97b3d018cb31@embedded-brains.de> From: Sebastian Huber In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldi-networks.de X-Virus-Scanned: Clear (ClamAV 0.103.8/27028/Mon Sep 11 09:37:06 2023) X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 31.05.23 09:27, Richard Biener wrote: > On Wed, May 31, 2023 at 7:31=E2=80=AFAM Sebastian Huber > wrote: >> >> On 30.05.23 13:17, Richard Biener wrote: >>> The alternative would be to provide the required subset of atomic >>> library functions from libgcov.a and emit calls to that directly? >>> The locked data isn't part of any ABI so no compatibility guarantee >>> needs to be maintained? >> >> So, if atomic operations are not available in hardware, then I should >> emit calls to libgcov.a which would use gthr.h to implement them? I >> guess that I can to this, but it needs a bit of time. >=20 > Before doing that it would be nice to get buy-in from others - maybe > my ABI concern for libatomic isn't shared by others. I would be nice if I could add the multi-threaded gcov support for=20 targets lacking atomic operations in GCC 14 (for example 32-bit RISC-V).=20 I need a direction how to implement this. Should it be done through a=20 generic libatomic implementation based on gthr.h or through a special=20 function provided by libgcov? >=20 >> Should I add the libgcov functions to builtin_decl_explicit()? >=20 > No, they shouldn't be any different from other libgcov functions. Ok. --=20 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=C3=BCnchen Registernummer: HRB 157899 Vertretungsberechtigte Gesch=C3=A4ftsf=C3=BChrer: Peter Rasmussen, Thomas= D=C3=B6rfler Unsere Datenschutzerkl=C3=A4rung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/