From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id 3401838582B0 for ; Wed, 31 May 2023 07:30:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3401838582B0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f4d6aee530so5870799e87.2 for ; Wed, 31 May 2023 00:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685518206; x=1688110206; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=egRn3msNM+f4pNp26QXY/KvXGuxp7/ujw90/dty8Qz4=; b=n58MM8vkDp6CIYnZ6s/QHHKNofIM1gYkrg+5hfDIJAxcmd+V46oMxgNb+fzwwGpj/0 ot/NuUYZrn9HjGfeM4AX0irfjXgXdue6DJmsVNMXUwMXsgPY+aNbqxE7NHKOuxW+ITpk uCz5oyJy4Ng5zbT2DHvTVGcgysQFEJI2v/I5LT79MAOAlVvfhSNI404vbExLU/krBYQc hv2DlXMpyWALqoqZEqfPh/pGjLpkWo0mI9lsFCZBJUKAPnMxPoEh+6snKgY+AF0eVAQZ 1tQZRqYhtWasrynbYtnrySHqRCNoAmXqJ4WpDWIge5IG9aCiQ4TSeP87BJEXvG+5n4O8 X5Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685518206; x=1688110206; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=egRn3msNM+f4pNp26QXY/KvXGuxp7/ujw90/dty8Qz4=; b=W+KJIbPhgTbOrhjVwcWpNez4pX+XrnSW0Ixky8k2RSqgziDwoaZQKBEb3WEgyGBX9F S6au0ZB8gMTb94gjoAef6yTT3jbR2W17bGS4UE/kDuvTP9AFHgPMjiS7TX5etyqbIIcZ CbVmBmCogxqsGkKjWq36theU940MYXsYiu61MLhgkAm0iw/WT63tMttGPYOhGoPvmyhA /gKG0AHQkrr9pcy2vUEJklWKREhb/wHshOT8TndpEvu4+9c8QHQTg8DZBFWFgxUI5yFi fqe0XEskJzuT2E5NEdMAmHGEMz7l6U3d4L+FXj/qg2W9XWeNMHAA/IID72+PcW7MJVXk zMng== X-Gm-Message-State: AC+VfDxX8SOquc5JaTQxthaRnlbeD6ov9MAszZUIeXcToxVZvuduoJ6l Ik3o9RXRzBq1Y79LfjDW7getsWD8oBizlcKwPplbrxEf X-Google-Smtp-Source: ACHHUZ6UmDCs/sITwhxPL1eH8VFSqE17VwnThoVYNYUe84ql6M89OPxUEaHcAN35P+6wos8aFrpF/DF619eRmlMYgCc= X-Received: by 2002:a2e:9785:0:b0:2b0:5a04:a5bd with SMTP id y5-20020a2e9785000000b002b05a04a5bdmr2257339lji.42.1685518205539; Wed, 31 May 2023 00:30:05 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Richard Biener Date: Wed, 31 May 2023 09:27:52 +0200 Message-ID: Subject: Re: [PATCH] libatomic: Provide gthr.h default implementation To: Sebastian Huber , Jakub Jelinek , Jan Hubicka Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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 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. Before doing that it would be nice to get buy-in from others - maybe my ABI concern for libatomic isn't shared by others. > Should I add the libgcov functions to builtin_decl_explicit()? No, they shouldn't be any different from other libgcov functions. Richard. > > -- > 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/