| Message ID | DB9PR83MB0923514AAE8A36E896FBCBA99243A@DB9PR83MB0923.EURPRD83.prod.outlook.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 274213852FD4
for <patchwork@sourceware.org>; Thu, 3 Jul 2025 12:29:06 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 274213852FD4
Authentication-Results: sourceware.org;
dkim=fail reason="signature verification failed" (1024-bit key,
unprotected) header.d=microsoft.com header.i=@microsoft.com
header.a=rsa-sha256 header.s=selector2 header.b=ITMsbLvB
X-Original-To: newlib@sourceware.org
Delivered-To: newlib@sourceware.org
Received: from EUR05-DB8-obe.outbound.protection.outlook.com
(mail-db8eur05on2071f.outbound.protection.outlook.com
[IPv6:2a01:111:f403:2614::71f])
by sourceware.org (Postfix) with ESMTPS id 6F1C2385E825
for <newlib@sourceware.org>; Thu, 3 Jul 2025 12:28:38 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F1C2385E825
Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none)
header.from=microsoft.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=microsoft.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F1C2385E825
Authentication-Results: server2.sourceware.org;
arc=pass smtp.remote-ip=2a01:111:f403:2614::71f
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1751545718; cv=pass;
b=kmr/dlov0TOduLIkUPr3eelLI45YnWzse1yr8CLsrYSePfy3S0WDoFqkzKDt4eZz3lBgDrznvaSfDHggGkha4Umh5sYHm5qZK+WwzoI2bxg4o7W2Hicp8aZWpB+USI7W5/yqsOY3GUgQSLdUDBDoBNjMTVC48EXSsq0PKSPcy74=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1751545718; c=relaxed/simple;
bh=vXpaf5DTDuIEVf+gCTaF5YADftvRmvZ6lhCCR43W88E=;
h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;
b=Ua8RIhlwQS8GFrRNTe7wEPRqh+37V6VgpMKdvxUz9KxcZxvOpy1v2qz3CQZXVfqIKsZdNybWV8oryPYnWEyzgo5/osDx9v3PUB9vcSlvOTZ3bIOxBQ7cmAFcq9ITHCFQfhNKCF3Yt/bIiQgvORhhaf/LTExFAApWbQ4BDOL+zt8=
ARC-Authentication-Results: i=2; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F1C2385E825
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=A8Tu6Bd7lXRnFjIbVRxvaw4qXYTe0WUMlk9/yV1qygrtBysIj+zS7yu0MU2D7xq9Y6aCb8X4M6FVBnENvLg8blDmBgLwSN1ga8tJD+KDevQyNuKnLNp/kmNgGOGOEjaQsqeai6SW9WyBXG8Lg5QtpE04ZL48FBy35sEQhsa1ZFeFk6z5FNZlyUea6DOSYMfSJcgVu2GuiAiwFDHuv0NG+susOeKqyd2aZdqUBnl0MIxWTFvKojFyLWX5UjFFMu8lym6HTWgzl7evQVv2zr53zi2G7e4MSxvvXRvHdM+kgux29MPXwOQEmI1JVuhcDdIqdtPWFOJpES9MqNurrYV9Lw==
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=e06CcR0qZRn9m0WfWE+wYOMKp9tYSgX0p/KTjzEibOk=;
b=GUEXe+s1lBqe1FwDpnVeVlks125d/YpKjBDpL50VbeXG8Q0H5hP4XN+HjHad46nd0cXiKPlY8R8R2UlWxysBaCs1unh0fiHgA8DeXbRLEYJZVBF7Z746TV9PUZHt5gg/M1ZL8y3sYulWqM7rAckbRKF7PX2w94WrLzZngp/Dt2b5pfLpzpuQ+PnwlBGHVlJr2Hc4waPww+WEbN/ysny9nEn+h0rMJePPcDAEgDOMDxZuVvbsf+PhklU4WN9YUB+PwonPsxxs/50CZYpEgoDTRKpZ8OKTel7bd9sPGFBLPWbeOAdFRCyUMab0h9ivpRJn87a3fIGLe3Ud/JrvttlA/Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=microsoft.com; dmarc=pass action=none
header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=selector2;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=e06CcR0qZRn9m0WfWE+wYOMKp9tYSgX0p/KTjzEibOk=;
b=ITMsbLvB8ZFIleKHIbPiwANIwbQm/7qFLOQosSHEpJgWfxKcKdDHzM56TMJSkh2G2DfTZX3LyziedImTLt06aixRpF9VCjDZtmurTK+XcgEdiBoujlOkouTYfANnaTb37jSg4nBsxISQtWt/OmrLRQTD4tWUEENpvXAN1b4MPSY=
Received: from DB9PR83MB0923.EURPRD83.prod.outlook.com (2603:10a6:10:5ca::18)
by PA6PR83MB0597.EURPRD83.prod.outlook.com (2603:10a6:102:3d8::8)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8901.5; Thu, 3 Jul
2025 12:28:34 +0000
Received: from DB9PR83MB0923.EURPRD83.prod.outlook.com
([fe80::4407:2fff:68f4:1eea]) by DB9PR83MB0923.EURPRD83.prod.outlook.com
([fe80::4407:2fff:68f4:1eea%3]) with mapi id 15.20.8901.009; Thu, 3 Jul 2025
12:28:34 +0000
From: Radek Barton <radek.barton@microsoft.com>
To: Newlib <newlib@sourceware.org>
Subject: [PATCH] newlib: change static to __fenv_static for
fe{enable,disable,get}except
Thread-Topic: [PATCH] newlib: change static to __fenv_static for
fe{enable,disable,get}except
Thread-Index: AQHb7BWwR9A+8ooPYk2CC8jkPGoRVw==
Date: Thu, 3 Jul 2025 12:28:34 +0000
Message-ID:
<DB9PR83MB0923514AAE8A36E896FBCBA99243A@DB9PR83MB0923.EURPRD83.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;
MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;
MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2025-07-03T12:28:33.699Z;
MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General;
MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;
MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;
authentication-results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=microsoft.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DB9PR83MB0923:EE_|PA6PR83MB0597:EE_
x-ms-office365-filtering-correlation-id: 5f7b2a7f-c64a-4625-965a-08ddba2d210b
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
ARA:13230040|376014|366016|1800799024|4053099003|38070700018;
x-microsoft-antispam-message-info: =?iso-8859-2?q?mPeQ9A7qzIUKXBvSPDwbKOALIZ?=
=?iso-8859-2?q?HFYJsoq7Ogxk32BeH0xjf9Q9cYU61wz7ByXIXoSzGL73J1jAS8LaWl0bQtvf?=
=?iso-8859-2?q?wwmMDQAFJ31S+EMhH24FicT69iakd2po7TrJzwu6fboE8AZ4xYuMfpHB0THw?=
=?iso-8859-2?q?p3ckHhBJKrzQvK6k1Sr5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pZ46/gZB1x6Opo?=
=?iso-8859-2?q?jWY3kiqQcwEYURRaECo+GLMcHb1qrsprbu28ssc9f4kDe1AxR3VmGQV5Dh0Y?=
=?iso-8859-2?q?arvEWCUduG8+ogINZkkIug65KrMu3Ok3jeWKFez8ctCDgi9mqlYDdcMkGDuz?=
=?iso-8859-2?q?aEz5F7/y+3DcYd63X2nHxtE7yMEsZPjL2KEdW3A9hV/wWDvy3+7nHqQyqAu6?=
=?iso-8859-2?q?L6bz3kCxE8aCUs1UnrzEKVSES82AG0x3cuSRWtYxcEYqEoU2bKVTkFBO/+73?=
=?iso-8859-2?q?Z7IX15MSlHxPDKWdDCl/VwYtjRqgzDJEoR6fY5sX86JIrvw69of4l9nHNGU7?=
=?iso-8859-2?q?4FmTXUsMUyNbpCQas7g5ZyjGl5BaO1iUd5NcgTLrTzchYnji9zSvwuAMj1W9?=
=?iso-8859-2?q?uJ9FNfEsSL7sSxJ8bYsWVDcnGoY/GIEvHUfIL30E97ivqiAlCM4Q/fiN+kmz?=
=?iso-8859-2?q?3WaPzKW3++exe4rXLr0LxELGnT6k48MUIyxrduKp5X0gf+5hI=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DB9PR83MB0923.EURPRD83.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230040)(376014)(366016)(1800799024)(4053099003)(38070700018); DIR:OUT;
SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-2?q?B7JGITvNEqtHXux/KID2UD2?=
=?iso-8859-2?q?lKeEtlj5vJPF3HAo8hTcYF68Uk81vFuIDYNAyTScPlX+6D1xLI3+D+v0YPGS?=
=?iso-8859-2?q?LRomUhiLwyoyMlnID5gAnIwGzcY5lDmRQbTD0B3SItRvXGyDxJDa9F/spROT?=
=?iso-8859-2?q?da6Eemp9JoNay39WdSK18V8Nc3SVVrKYyvvvtHdU1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=
=?iso-8859-2?q?M87hVFcOxCkxHSc5Be+wRrprsJmllE4en+aqjHtOnPKbxIsYJP9BYVCUbVh/?=
=?iso-8859-2?q?/Gfzz2PJHaEOOS+hn5WKR6PJBNpzZs/XmH4Cke0w/Y98/Nd6sD7w3FZWRkAk?=
=?iso-8859-2?q?QBWlBSHWrMdIymFpyULvy8vexVy3IFafWXA4WlatvtBeOlEsVQEV7uyS4LmS?=
=?iso-8859-2?q?HbhTY66qUi4WNWFrrbLTAQJQIqtDfrKs0r5YfC4pD/djno9FVr7LttDfg/yN?=
=?iso-8859-2?q?CbSPmg7F6rJfzf6iS9ULvtqGF0VZbSCBEHXXxiiHCtSllNCFMr56dSvFuyNx?=
=?iso-8859-2?q?QPxPXpbTaXooPKAxukxRQzoRv6ocSEEJRvSi0/JQo5zbTknuyEHSxB8FauF+?=
=?iso-8859-2?q?d5xLxl5E363XerNVCpP2Qtoc8QzCmCxHFBb40d+uJO0inxmM26Mwbm4pHuQo?=
=?iso-8859-2?q?bgCVquxaJg4ioVY4A6DyopeQL+IJh7cRnz3MJGvPL2YGhQawDmoLbAOAyWPT?=
=?iso-8859-2?q?JIoXtAMs9BOqF?=
Content-Type: multipart/mixed;
boundary="_002_DB9PR83MB0923514AAE8A36E896FBCBA99243ADB9PR83MB0923EURP_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DB9PR83MB0923.EURPRD83.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
5f7b2a7f-c64a-4625-965a-08ddba2d210b
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2025 12:28:34.6205 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname:
xJzKXTrP8m7oDZyvKDG3g5REuHoqyC0xLdI79+wGBUBYmvEn3eZasyroIpRjRS2lYrap1W4dzbRHfKAhff7PZKez/1PqzO4KJghMPoZmhQM=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR83MB0597
X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO,
GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE,
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 |
newlib: change static to __fenv_static for fe{enable,disable,get}except
|
|
Commit Message
Radek Barton
July 3, 2025, 12:28 p.m. UTC
Hello. As a follow up of https://sourceware.org/pipermail/newlib/2025/021872.html, I am sending alternative approach how to fix the undefine references issue. Radek --- From 4218cbb3360fc45514569703ac9089f0cc2ad748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Barto=C5=88?= <radek.barton@microsoft.com> Date: Thu, 3 Jul 2025 12:00:22 +0200 Subject: [PATCH] newlib: change static to __fenv_static for fe{enable,disable,get}except MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes undefined references to those functions when building cygwin1.dll for AArch64. Signed-off-by: Radek Bartoň <radek.barton@microsoft.com> --- newlib/libc/machine/aarch64/sys/fenv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Comments
On 03/07/2025 13:28, Radek Barton wrote: > Hello. > > As a follow up of https://sourceware.org/pipermail/newlib/2025/021872.html, I am sending alternative approach how to fix the undefine references issue. > This is getting closer, but it still changes the behaviour on non-cygwin platforms. I think I'd introduce a new macro, perhaps something like #ifdef __CYGWIN__ #define __cygwin_fenv_static __fenv_static #else #define __cygwin_fenv_static static #endif then use __cygwin_fenv_static for the cases you want to change. This should then keep the existing behaviour on elf systems. > Radek > > --- > From 4218cbb3360fc45514569703ac9089f0cc2ad748 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?Radek=20Barto=C5=88?= <radek.barton@microsoft.com> > Date: Thu, 3 Jul 2025 12:00:22 +0200 > Subject: [PATCH] newlib: change static to __fenv_static for > fe{enable,disable,get}except > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > This fixes undefined references to those functions when building cygwin1.dll for AArch64. > > Signed-off-by: Radek Bartoň <radek.barton@microsoft.com> > --- > newlib/libc/machine/aarch64/sys/fenv.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h > index 6b0879269..212612725 100644 > --- a/newlib/libc/machine/aarch64/sys/fenv.h > +++ b/newlib/libc/machine/aarch64/sys/fenv.h > @@ -82,7 +82,7 @@ extern const fenv_t *_fe_dfl_env; > > /* We currently provide no external definitions of the functions below. */ This comment will need updating as well to describe the requirements for cygwin. > > -static inline int > +__fenv_static inline int > feenableexcept(int __mask) > { > fenv_t __old_r, __new_r; > @@ -93,7 +93,7 @@ feenableexcept(int __mask) > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > } > > -static inline int > +__fenv_static inline int > fedisableexcept(int __mask) > { > fenv_t __old_r, __new_r; > @@ -104,7 +104,7 @@ fedisableexcept(int __mask) > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > } > > -static inline int > +__fenv_static inline int > fegetexcept(void) > { > fenv_t __r; R.
Hello. Thank you for your suggestion. BTW, what is the current semantics and use case for the __fenv_static macro? Radek
On 03/07/2025 15:48, Radek Barton wrote: > Hello. > > Thank you for your suggestion. > > BTW, what is the current semantics and use case for the __fenv_static macro? > > Radek Outside of building newlib I think it's always expected to expand to 'static', so that users get a 'static inline' function (never creates a globally visible symbol, even if not inlined). When building newlib (specifically libm/machine/*/fenv.c) it's defined to be empty so the functions are marked simply 'inline'; the lines in that file like extern inline int feclearexcept(int __excepts); then cause a real function to be generated for export from the library. The functions your working on remain static so never get a real instance within the library, so on ELF based platforms they simply do not exist unless _BSD_SOURCE has been defined. R.
diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h index 6b0879269..212612725 100644 --- a/newlib/libc/machine/aarch64/sys/fenv.h +++ b/newlib/libc/machine/aarch64/sys/fenv.h @@ -82,7 +82,7 @@ extern const fenv_t *_fe_dfl_env; /* We currently provide no external definitions of the functions below. */ -static inline int +__fenv_static inline int feenableexcept(int __mask) { fenv_t __old_r, __new_r; @@ -93,7 +93,7 @@ feenableexcept(int __mask) return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); } -static inline int +__fenv_static inline int fedisableexcept(int __mask) { fenv_t __old_r, __new_r; @@ -104,7 +104,7 @@ fedisableexcept(int __mask) return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); } -static inline int +__fenv_static inline int fegetexcept(void) { fenv_t __r;