Message ID | 5f54ef144f3f55d94728cbea8ea696bcb2d170c9.camel@espressif.com |
---|---|
State | New |
Headers |
Return-Path: <newlib-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5189A3858C52 for <patchwork@sourceware.org>; Mon, 29 Jul 2024 12:40:18 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2115.outbound.protection.outlook.com [40.107.215.115]) by sourceware.org (Postfix) with ESMTPS id C6ACF3858D37 for <newlib@sourceware.org>; Mon, 29 Jul 2024 12:39:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C6ACF3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=espressif.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=espressif.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C6ACF3858D37 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.215.115 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722256801; cv=pass; b=aSMVV34b5ETISBccBfO5GkjLh4FRoWBJw6SGtG7TnvtvT5bqJiTCwUfI8fth38U0dEaW0zHTuiqxEDbycfKJMAwBxMEImw1QA94SPbd2Hoc8NYuLZdsS4U7EOp3/qr4TGGLbBmzMRXslTGetCgPLE5Z7SjYy3XtSOD7tIzIiczg= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722256801; c=relaxed/simple; bh=Bq7QERVD9z7n3pPTNckOUdhEjNaheWO83TZ75mx1ItI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=G+esMoUyPRE5mkcKy7yM1p8eW7Iw2+Y7g53d6FTwfqT2k3CXJzUo1rOiTv/rmqUpdKVV2HcKCdZvB9pnCQyKpaJIL6ytxYvcJiFmHuyBNBNbnH9QatRLnxfh7+pNFnl1/NLZ8UOpS7m4Vx10b+TJom58kLNAUN6F/K9VqEwjHHo= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Vq6CFs+YdHBddN7ojEC+DZzD1mCCrTIrpGyLP59YxlNN2U0spnKYRHbKdRCkvxM0YFysBTxfkvDA815hFAOQc6aUBuYNJAl7UmBY0BKMDAQ3NSCfhW/6IFHEImSG2cSmAjAjGq4bcWtZnTyNeCILSUsN3PPeHpqKIX3xcpFZahF8QTEmiRtOK2DY9EpxC4bQq3uh+Q5x8x3v4lAd5HH3f2W6HzzARJu/k4WZDtZGy8KPFxC35rpythboLE4j5hgtatLQpvbKIteVm6lm9++kagueZd4VPeFm8jR0WEta6k+GEJ8L8pVkK3lMbHEIWZSYSg3ohp4MNrUv+z/ItQnbWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Bq7QERVD9z7n3pPTNckOUdhEjNaheWO83TZ75mx1ItI=; b=nKzzB9jmSl0ycRhs0HF2O4fCjG9vfO1K1eAFHPFQQB5Ez0O2RIpOw5Lec7oEKmWsySK5GOQKQ60sCh5udSOoCqNkZvK4kdEmHfdMiQTJqlsL5yIsouIVVjZF1cxNu2DqKK8phIPTVoD96oUxaCRDeD+JQqExwqXTQWlpXvzlqOFK13PB4TOkZ6TdoxWIj1wEablCcqhFuNIQnATiTMgGJ6aNNywGnXL8lf6dVXv2EjICB9odYL8D6a0c3B7GQ9aIVsHQwz8gAK6kGmcG7NVmw20kBFSxSw8rczp94OXCIlYqEwfhRs9PEI4yF7kHjg2L47y6nuRsDWLzn1W5dj+MbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=espressif.com; dmarc=pass action=none header.from=espressif.com; dkim=pass header.d=espressif.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=espressifsystems.onmicrosoft.com; s=selector1-espressifsystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Bq7QERVD9z7n3pPTNckOUdhEjNaheWO83TZ75mx1ItI=; b=h9rugHiVaiFWVFx9LYZHz9B99sLAM/CVpwBkPgi6iaFXF8H8JOP06yUxu7zQzmOE004YHXNc/FHFTGoG9DEGtDLT7asKEbMb8RUeg1MeINNMdbZAMPSDsNm0s1V1FbufsPAOwkrf6n5bUBZ1STI02xOSHiXxd4u53YBgo87WttI= Received: from TYZPR04MB5736.apcprd04.prod.outlook.com (2603:1096:400:1fa::7) by SI6PR04MB7871.apcprd04.prod.outlook.com (2603:1096:4:247::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.18; Mon, 29 Jul 2024 12:39:52 +0000 Received: from TYZPR04MB5736.apcprd04.prod.outlook.com ([fe80::6d6:9923:c880:a521]) by TYZPR04MB5736.apcprd04.prod.outlook.com ([fe80::6d6:9923:c880:a521%4]) with mapi id 15.20.7828.016; Mon, 29 Jul 2024 12:39:51 +0000 From: Alexey Lapshin <alexey.lapshin@espressif.com> To: "newlib@sourceware.org" <newlib@sourceware.org>, "sebastian.huber@embedded-brains.de" <sebastian.huber@embedded-brains.de> Subject: [PATCHv2] stdatomic: make atomics compatible with GCC-14 Thread-Topic: [PATCHv2] stdatomic: make atomics compatible with GCC-14 Thread-Index: AQHa4bRn+SYFV3xstEyMCWacZjKtzA== Date: Mon, 29 Jul 2024 12:39:50 +0000 Message-ID: <5f54ef144f3f55d94728cbea8ea696bcb2d170c9.camel@espressif.com> References: <6fb0cc60744e112cd396dc6ca15d8adc9ade39cf.camel@espressif.com> <213631302.10372.1720505666200.JavaMail.zimbra@embedded-brains.de> <cee4f8b2af50c88c66f52b59e1cc89d980710e38.camel@espressif.com> <Zo0TJ8rvj3PuBA4n@calimero.vinschen.de> In-Reply-To: <Zo0TJ8rvj3PuBA4n@calimero.vinschen.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=espressif.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYZPR04MB5736:EE_|SI6PR04MB7871:EE_ x-ms-office365-filtering-correlation-id: 88d25062-1d8f-498d-98f7-08dcafcb89f8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?q?oQ3EZNL5LufNaBPcwnicdeTJ0VrVfy+?= =?utf-8?q?J1fLInOj2AkURMTLRBpr2FgDNvXpZC7d9qjHvijN2mezI4IikhhilKGiJR/JmAy9w?= =?utf-8?q?hTYlIfRn7hKnucI/9l3Al1ibsZfeRT4v++0C66ruabpVZAH1k+4HJA8WzJW8n4QxD?= =?utf-8?q?u2pL9qQDvauxpRI5flRpcw7KY7dfYPp/3j4Vfh7NzZNbPfe6Zcu4UeyW+JRYVdkpw?= =?utf-8?q?i8KZfDSNxDcx/AsiXAkGQYWVEpVQnMKh0XBQNizMiUj3M4lag1lZLRr5u0XBTBWPI?= =?utf-8?q?H4AqB82HEaLdgN3Ee54MB5oaTvFwtrxq8SfcPHFIhAxkF0+WmGysVQOCj5wIUdFWR?= =?utf-8?q?z1cA4cUa7l0if9Y9XsAAhEwBCbbU/miiY1vamZp+28yGY7WIMDW9eFDpgYAuyiS3r?= =?utf-8?q?QCzlBjxyAozFsoT6oOmM0k/hoy3we2W52iXznP5mqj19Lrv2FMMyOmzcbl+GVGswI?= =?utf-8?q?KzhKT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255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB5736.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?svwCwOz8ElSRgTJVbRFdKvH890ny?= =?utf-8?q?tjObX6iuofkKkOPgtHauC52AqK3Eqs0pHqmHAveasdXAMCle8cWof51ago3y22BwR?= =?utf-8?q?OtLlmq1esiyvnc4FZSpnyXJHiaCqr0qREG5WTlCb6xCXijnKV3l0/4XHg8jQ/zvCI?= =?utf-8?q?vpp/Uo6QW6NTWpJB9yGKZSO3T0WGLhgWjeX/ABitsGoTyHMeLLuKI49gBYtCvfQwW?= =?utf-8?q?Jw0VGkVDW1wDIAb/HdFtfenqYFIrbQpsNRQch76sAkf6pXPuEIa/fJXLmK8IXJa0X?= =?utf-8?q?cIRupv7Yeb60UldGBUm0RpD7Z7LB13tu1ChVpk9Eb7KqEEV/UgxafaHHjpKK0aQv9?= =?utf-8?q?pQy5Jss2iTy58XqiVyBEva+ueRHTVPCq3tgyYiOV0yE1CeVgWY6Q8Qy5YeDa3dSsm?= =?utf-8?q?RIMam7cCX/s/FJavi+fdDIOIDuCSrJGNMJ+PfULKCWDtTilPBzqIeUSrKX2s8f3zi?= =?utf-8?q?FMVl/LoMFCbnxTQN8VsRlHKzldeVGlhtciOuBu5dbJB7dAp3SSmLgxpZsQ5aM213P?= =?utf-8?q?qaYyhSi4NSCygH8Rg7ArPgPFppnkO0H2w91UEYnk+t00YmklJQnFKbDBMnmR2rueV?= =?utf-8?q?+UC8QxYbOOCWXYgf/B4S8l8Sns+b1UGdhZ1Z8oV01xHBARhpaUWyikUEIq2GCRQWl?= =?utf-8?q?h1s8vPU9sMoHp05PJWkQbZo5ZlIvGRskc+ngclxBCLzKxpilc0JSvb3+8LsuWCMDc?= =?utf-8?q?9zimLpXF2UZn+W5wPsmAvems2U1mkX81QHEQxlF9DMuLN4LKBd7TgmdRGQ3N/nUdp?= =?utf-8?q?866kHs4qXGjHFld/GpuxF84GPTmBmaF2COaqN81PSWJZ8CEdJ+YKiuNKoncqt7ETN?= =?utf-8?q?QuuNWU/cli0znn5kghbIO3LBoArmpUnObRvwOrcXU6qYUcwxP5NO5/7ubYYCj4n6a?= =?utf-8?q?26jSr/XEKtC+5zMdEMrgXJGqWQPLxI19I/th91P+bbWSiQrUgmlkCu4BRpmUbPym0?= =?utf-8?q?XmPAIYWwzqg2b90+z9lO1y/QsjS7vXYs2LotHIt+yQrub8le6kgD6LiQH3P7Dk4ea?= =?utf-8?q?35i4w/yK5htSRiDaQU9tNnnpU+Y3QnhHX4GNzOJbAlUNOhfZO0/t3r6boJjinYoux?= =?utf-8?q?doafBTM7dqiK5CBFvXAOTXoQ9uWC9WT1bTfEOn7ENnEqAIiHkiNwhhUdhATUTfs5u?= =?utf-8?q?lhyNW/NjrERaXf7TjIuC4VX6G2dsMuSPJaSQzjPPNB7piOMC0gH9SghjsG+gASU7b?= =?utf-8?q?9zFxMKhpgDpxzsQXX9yF9Grh/KCUbhPAfrvpMObNzrRq9ourgYiTTDYLZLy9iY9vq?= =?utf-8?q?9RdgMt5OZJ7BkMOYmRnDdbVqeK06ERyMtL8we7JHJcogZHl2OIML7QRNOYXjpCKk4?= =?utf-8?q?544jLmWobPiNpe9QrekJILfF6bzsmByJgoDQ+aJS/mt5c3eIQM4BA9+f+6MWWT6lJ?= =?utf-8?q?4nTcSX8s75oNSisapf0iPd0jQ8/zoT9U6EAY+sUf30O8fWFHjkpikIRQVv4JAJxYz?= =?utf-8?q?lqGz4az70p4IIB+D5h6S7Bgd3sLPG9z9G6S+2JYPZdjYtTXo3bCVS7Mr8CHDVFKta?= =?utf-8?q?K5jYIj03llkNbpqdLEuM3p4PyYdg4oB2kQ=3D=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <4FCE0C35FA71CD4E83F070ED1B51934A@apcprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: espressif.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB5736.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88d25062-1d8f-498d-98f7-08dcafcb89f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2024 12:39:50.7654 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5faf27fd-3557-4294-9545-8ea74a409f39 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: w9miTvZ2fn4E7E4I4nb+dSlN3xZZhoxVoFE1iIiY8QUbT7e+DRVtOaAZB75yw7KPYIYnbOyy84mDBCdMFsRhp29na3djvWEnCTQrHhHM6EQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI6PR04MB7871 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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 X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org |
Series |
[PATCHv2] stdatomic: make atomics compatible with GCC-14
|
|
Commit Message
Alexey Lapshin
July 29, 2024, 12:39 p.m. UTC
From f966d2c1eb6d91b6475862cbace4d773b7a8eb7c Mon Sep 17 00:00:00 2001
From: Alexey Lapshin <alexey.lapshin@espressif.com>
Date: Mon, 8 Jul 2024 14:24:55 +0700
Subject: [PATCH] stdatomic: make atomics compatible with GCC-14
https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631525.html
brings c_atomic and cxx_atomic definitions into GCC.
This patch makes atomics type detection correct for GCC.
https://github.com/freebsd/freebsd-src/commit/680f40f38343de118d5b973129683804e496faaf
---
newlib/libc/include/stdatomic.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
2.43.0
Comments
freebsd got the change https://github.com/freebsd/freebsd-src/commit/680f40f38343de118d5b973129683804e496faaf
On Jul 29 12:39, Alexey Lapshin wrote: > https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631525.html > brings c_atomic and cxx_atomic definitions into GCC. > This patch makes atomics type detection correct for GCC. > > https://github.com/freebsd/freebsd-src/commit/680f40f38343de118d5b973129683804e496faaf > --- > newlib/libc/include/stdatomic.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Pushed. Thanks, Corinna
diff --git a/newlib/libc/include/stdatomic.h b/newlib/libc/include/stdatomic.h index d58e795eb..af915145c 100644 --- a/newlib/libc/include/stdatomic.h +++ b/newlib/libc/include/stdatomic.h @@ -33,7 +33,8 @@ #include <sys/cdefs.h> #include <sys/_types.h> -#if __has_extension(c_atomic) || __has_extension(cxx_atomic) +#if (__has_extension(c_atomic) || __has_extension(cxx_atomic)) && \ + defined(__clang__) #define __CLANG_ATOMICS #elif __GNUC_PREREQ__(4, 7) #define __GNUC_ATOMICS