| Message ID | DB9PR83MB0923A4C79F18C02E48E95E049243A@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 D62B43852106
for <patchwork@sourceware.org>; Thu, 3 Jul 2025 19:00:04 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D62B43852106
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=aM9l9rB3
X-Original-To: newlib@sourceware.org
Delivered-To: newlib@sourceware.org
Received: from EUR05-DB8-obe.outbound.protection.outlook.com
(mail-db8eur05on20725.outbound.protection.outlook.com
[IPv6:2a01:111:f403:2614::725])
by sourceware.org (Postfix) with ESMTPS id E84D4385E825
for <newlib@sourceware.org>; Thu, 3 Jul 2025 18:59:35 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E84D4385E825
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 E84D4385E825
Authentication-Results: server2.sourceware.org;
arc=pass smtp.remote-ip=2a01:111:f403:2614::725
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1751569176; cv=pass;
b=anW3D3PZwij+jcy27ouCkoUYMa9x1V57YANXqugeN1InV9vhiwriREVpBFQUg7tyo7qkKPLEUQIygvWkPSgL4eiTIzplrrp/7ddB3npwPcNR3tGxBhDT2MxSwNUxv8LffiChQfe38MGOVIGThRw/sNPKQIfTQ1McMHLS752m7YA=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1751569176; c=relaxed/simple;
bh=NGA3ydyrDMxwH1JZkiFAZ0NF+juyOTsx0e+xhB8Gy6g=;
h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;
b=l0GAii//osHZY7HomqNS0ImruWoQAUuLEYOEqoioJ3No9v5lU3FCOJEaDdvz9rjxDBS7fCNOEOTl8q5PcCiSAsHnuitMYKmq6nAN4P/IUQcScMMxtSIZoyjKt3bPxJah9IOfBb7tzx3lTpFhv6F8N71cWUwW1IsZeHey7BU6a8E=
ARC-Authentication-Results: i=2; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E84D4385E825
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=wAOwjUsOVK6q8tn2rImWxCvz9MBwEAtytuYUtMjnfWBAn33jIh//FYEBZ3iU/SkUEYTnImMKhe8uZfyxyO4DACp7U01RuwxvU4RXAdzT/ovtw5uHz7MztCNsF1D3xHyDFOwtTlp7abg7PPw0gN52wU1Vy+LfIYETKuyWGDYG6isYCYK3rV39ADHbhTFMGDciQEXwx2nZQbzCH+RS7QWCCQ9D8Yr/kVjIBnG1RWuPObCd5OdN7PImoDeqcgxHT453S091WEtrICW5ZAyizq1PvKJGScWGxsGHU7/OLk9Y2UGJ1Fy34oHb3XsmEMNeVRtLmstIAneBPddch+IFLtMxfg==
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=lTnZ2HWXbvNxLrKGvjXDFjp06JTNLrjBQf+3PDvZTTA=;
b=imiirKLsIUjxYoNP5pbxkISWT3vy07mBF5qtDgRbzGslnpYJgMEaSuw3WpJH2EhMbudxVe8ImXCi5WlCAz2Mgy528499e89lU/pIopU7do4kzbeLTBrMnbH20y3T57Vdt1hzH55CacpBWZFZ01FMcPD0B9/TJPyL0Cox35jj+0xoxvdyAuAZWkb3lGn7Up47Jp1WmppjnFdjb6QoMnnt8C5D4aoDCOcCnXv0QJXJajJ8RNh9q3Id5SR6ozPmyhRFPu1ZOBOvKIv1n9ReLJ8w1W7A6ry3byWjBVzrhKq+n+8DrBzx+8co9VA6Emt5Rt1aywUR49+0DpRam5xcD2Yseg==
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=lTnZ2HWXbvNxLrKGvjXDFjp06JTNLrjBQf+3PDvZTTA=;
b=aM9l9rB3TrWwiasDEWXn/jRIhUql/7eja3qLr7pKdG4poJozqpmg7ZTv4V4tCgmcdp7/cUELnXQp9KgZgr43lXKstOMKJIWkZzGmisJE9RzDFyI6l/aHQpci6c696feUty2BZDUJBAKDRYGudmss0/pNIYbBNVyDNp1yT3A0P0o=
Received: from DB9PR83MB0923.EURPRD83.prod.outlook.com (2603:10a6:10:5ca::18)
by DU4PR83MB0819.EURPRD83.prod.outlook.com (2603:10a6:10:592::16)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8901.8; Thu, 3 Jul
2025 18:59:24 +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
18:59:23 +0000
From: Radek Barton <radek.barton@microsoft.com>
To: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>, Newlib
<newlib@sourceware.org>
Subject: [PATCH v2] newlib: change static to __fenv_static for
fe{enable,disable,get}except
Thread-Topic: [PATCH v2] newlib: change static to __fenv_static for
fe{enable,disable,get}except
Thread-Index: AQHb7EyX5ixibK3+CU6hXERT7u1QJQ==
Date: Thu, 3 Jul 2025 18:59:23 +0000
Message-ID:
<DB9PR83MB0923A4C79F18C02E48E95E049243A@DB9PR83MB0923.EURPRD83.prod.outlook.com>
References:
<DB9PR83MB0923514AAE8A36E896FBCBA99243A@DB9PR83MB0923.EURPRD83.prod.outlook.com>
<0ef84100-391b-42c8-aeec-4e3b901d9ebe@arm.com>
<DB9PR83MB0923A55669EED75914F9793B9243A@DB9PR83MB0923.EURPRD83.prod.outlook.com>
<5b6bfade-dfa0-40ee-ba8a-1fa0ab3f09e2@arm.com>
In-Reply-To: <5b6bfade-dfa0-40ee-ba8a-1fa0ab3f09e2@arm.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-03T18:59:22.224Z;
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_|DU4PR83MB0819:EE_
x-ms-office365-filtering-correlation-id: 0a3ea005-a22a-4f44-86d6-08ddba63b9b5
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
ARA:13230040|366016|376014|1800799024|4053099003|38070700018;
x-microsoft-antispam-message-info: =?iso-8859-2?q?5zG8q9Ll6U9d6HBKgiIiraF7BU?=
=?iso-8859-2?q?kuaD4DuUy7virDDiURfOGt4sZm++JRcLGIIDI3l4jS3OlkMtDHB9wvFkHxJj?=
=?iso-8859-2?q?4+KqRpZvbO4BByi8tL9lFTRPF957lvCLQEh3zAUWiaALnBGPypkNqMKdNaDw?=
=?iso-8859-2?q?wkJvaqgCmVKJclQiFwsn0UpK4QDdi+Hnw5cQ244iBlKuhMNevNrYz+VQLuj1?=
=?iso-8859-2?q?l/dzlTQOk39BTPq7hn9aJgY+ZSEhohgM36DqThVNNDBN8JMOXf0jzaskl5mt?=
=?iso-8859-2?q?SYLhjojlynj5On3TlkXRw1+uGr0yWeJvdlZlJHOGrOnY4vEkSWC8GIYd2m0t?=
=?iso-8859-2?q?pUsQSxIQMG+U2axongqXcQpQof+m7kxKnEMi4rJ8Lt1AeH9JrOs57iAvVCu+?=
=?iso-8859-2?q?DGrDKMLdQGVa+JfmCzjPWiOt6Z6vcUmtrEVwbY86z9ZOv05oBF1SqZ5iixVP?=
=?iso-8859-2?q?g2vXclTFvOBVGYZvQf5gDUYm2EDJrWYBS1Og3XNWS9WgswlZWt3L4SSrbsub?=
=?iso-8859-2?q?YHstnasF8UjcS07patU4Pl5xVotteLiP3aaaAiwmWoV0moBJJa+E1XmEuc7H?=
=?iso-8859-2?q?tkNqZ/mWmGQWp5JUUKNOgPGsXD0IT+nuBX+oxneDYZDeAvJ4CtG2oYmP3FXI?=
=?iso-8859-2?q?cmg/+LRHkgRGUIr76f+jFgFxwxHvLLOHfhTR4dcCeZa4L5Tm1mlPtRs6GHZr?=
=?iso-8859-2?q?hgNBz1KNlLaEM2ZwpWSLLDDfQ8skqcEZKsWnxIlKSU5hqdRE5q4uKSLYyeVp?=
=?iso-8859-2?q?h2da+VipQHPaMEk9UyZ5M4AZZ+BTsySALuJq3wuvQX3ouFw9sVPS1C0gN7EV?=
=?iso-8859-2?q?aXsPne7lQLTiTGQnx4uTmatrWPmwqye0gqx4F8iee8b/hliBlc9IWNNsWtwz?=
=?iso-8859-2?q?yIWPVYTbvK+rbjG6RagrQ0GTGQrYUhUgS7vTcPDsShx177lUTvRAztrr7MwG?=
=?iso-8859-2?q?JDeLABN4B5Zrtr7m7U+zaQ3WapYtaJ3/o6+L/lLssaHHYwNe+ytUpWXSotEI?=
=?iso-8859-2?q?XoU72ov0QWKE+EQRx4Q81ZE9Ri6JIGxrMOGprIT3zDpP/5z7WeuruGgjh/1M?=
=?iso-8859-2?q?XOd3YXctLwBdz1BrX2WzSnDhFanjW5f6+XRdDsihbxWg47d5Ir/nU1jRJtMv?=
=?iso-8859-2?q?LP7yRb04ZW5lHWK6eFkFU0YzeyRahHvLO+KFufRxUeWmXrHKWnenJQGkiHX0?=
=?iso-8859-2?q?pKnZD6sKalE2o1XFqcBjUEjMalqdaH1d017JBPTTIFWj+VfsVNIqu5/150MC?=
=?iso-8859-2?q?ZOsOj/iVFCklEdDZ4WvdsMqUijj2fCYGf8Cv6QbB88NIf91v4NQ71xu50S4H?=
=?iso-8859-2?q?RjXmXhRcCOP8oi266CMwHWMJCWF4LE6a00TMaXzvO2ct0ov5qyObYQG6g1jD?=
=?iso-8859-2?q?KNcKwwJ/OIFbqR8cnHbKpiVwCygo3v5VclIgPia3rRj/Th3b95WbLD1edK2+?=
=?iso-8859-2?q?QknMFkI9Ebitd6TPnjK0gR0yGSDnfQL9T+9LRgESGEOtY8zOHQ7wHxc7OVc/?=
=?iso-8859-2?q?oP5hTfRAEu09hTBnW3hTX3ZF8RNg=3D=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)(366016)(376014)(1800799024)(4053099003)(38070700018); DIR:OUT;
SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-2?q?pN7M03T5HdWic8aY03Y7wuG?=
=?iso-8859-2?q?fXFk09p0C261n5iT8UiuI+iDqchIuUZMz34ilkh1r66u1A3alJQTxhicvkSp?=
=?iso-8859-2?q?8xksco6yTq8CnsUJQbKDoHRZgOdXC1Lz6txOIF3Sb4aCIaI2XkYPPTI6weWZ?=
=?iso-8859-2?q?KcOL/wfnhtuM12erbeqkdFLEDqOqakKOSanDGr7ETq04n092PY1Pnj3Up4Qu?=
=?iso-8859-2?q?likNgB78COYEkALnXZURtdG+WctQ7VL4F5LPTGNA3pl00Qm78naQ0m4pkqhW?=
=?iso-8859-2?q?9KFgyhFNMeifaKLVw9K1UbxDpIdUY4UKJkN2dmEyN6EMxWZjpW09O4PMsO1s?=
=?iso-8859-2?q?cVqQwM1EwzcV/8erCNUnbIRIp4YvHZOO5lm+kMPhqVKHCSEwsYAM6UlA+w9S?=
=?iso-8859-2?q?0WRcEVdESj5WedbRO6hcIXd7h4U/LREnERuAGRJqEY09Du2vEsU1R7Av9osP?=
=?iso-8859-2?q?RR5dgehKVKyuoWK5GL/LYvzwh6bQvyo9TBOgcUwnmmYMyR32NYW0LlH8ZFY2?=
=?iso-8859-2?q?jqYcqhGnDdPilVK/LQ9OphXqzJ25x1+k7v3UpFgog1R1kbGKALvFH3AHgaxD?=
=?iso-8859-2?q?5gTe6pTE3qdWqSJl7PkL3iP/nMbMoNL6d2zGO3SXUHyORlv1tgMZuSFiAb8W?=
=?iso-8859-2?q?RBtp7kHKtIISBh3qs61SktNweYHL4IZiC1BTnDAuCy+Pi87I+oujVLZbVkKI?=
=?iso-8859-2?q?xwTTE3LjkoK07xwwDq32tVawF5dRA3wdxZ2j1cM8DXd5vdqD1FfosIW42xCf?=
=?iso-8859-2?q?2WQ3jBbHK77IniVO2Ur0QZFUBh6xkySZyRaf/Fq1vqL1oWeorPv53Eb1hvpY?=
=?iso-8859-2?q?lHMwEe87EFJkk6orxdjWABE7PJKDUU4CKWaH0gakdwyIkIf0BalpSWF2ZPcC?=
=?iso-8859-2?q?enkj5VydDqOyqOTNO2cLHAtLMP5fvBTUzVyyffg0dVVh3NEqQkvlWdlbdLkA?=
=?iso-8859-2?q?TN/y1vk2z/gQzWagM5O+/DYnau+qzb+CBJnf8aU4NOMK1t27I0Bli+Mf0nBO?=
=?iso-8859-2?q?zlOScT8gv9LEQyE3gwhcAo0xVtSRbFJe+R8F/41prDvEXXwjTujGR/yL4Ce0?=
=?iso-8859-2?q?RJZpRf7d577BRLXfeNzke1sz8s9eqTcCNNG/w6oGfc8Rb1zMSmiuy8iSixx4?=
=?iso-8859-2?q?6cEg4t1+EA19XdjHfJDpW67Qm6iFzrd3fDnOXwSSmebJSYOWmM2EchQtXIXz?=
=?iso-8859-2?q?hWR60i0rd/zGzheN7UAtIYxLS68t7lTYPWInDLrELVngFNFnJ8g9zYZYJRlS?=
=?iso-8859-2?q?hQaTdWReVl1Va6cgGRF1uXq55FDSH3pDMMrGy8ie2Y8s+E8WANXBmG7X7G03?=
=?iso-8859-2?q?09/YwCClSwJtsUi8Za2oyYxIhTGcxLGZFLL3l939gfXji0mjeAhEc3RN7637?=
=?iso-8859-2?q?rpV5fyFZXdeNMXrTwa6psUszXkInfovtziO4yNGOJZ8cqMqpC2DOl8YOhEBF?=
=?iso-8859-2?q?r4GInUOXGAimTH+yahjL7P1puTFCfNUNqFwYHfuBPk3nBB51M9Nc1E28eqPU?=
=?iso-8859-2?q?Ul3qc7TRmjBveEznh4pn3WfbtPOdmmjK07l7MC/vnbWXqHErrTGuX1pC4ppu?=
=?iso-8859-2?q?t/mfvnZBWg/9B?=
Content-Type: multipart/mixed;
boundary="_002_DB9PR83MB0923A4C79F18C02E48E95E049243ADB9PR83MB0923EURP_"
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:
0a3ea005-a22a-4f44-86d6-08ddba63b9b5
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2025 18:59:23.5492 (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:
V+gE7yTlRteSvUAEyt4+rHKqeQHdBnB2o3s2EtKDA1Rn8KjzYHHoo8wJISZhpmopk+f3Zm2BXjSsC4GnkCJihsIEJL6S3pBeMcCGSMRyFp0=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR83MB0819
X-Spam-Status: No, score=-11.5 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 |
[v2] newlib: change static to __fenv_static for fe{enable,disable,get}except
|
|
Commit Message
Radek Barton
July 3, 2025, 6:59 p.m. UTC
Hello. Sending the version with the __cygwin_fenv_static suggestion applied. Radek --- From 5c708ec741b4c4dd7676b7030451bc08607ce352 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 v2] 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 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-)
Comments
On 03/07/2025 19:59, Radek Barton wrote: > Hello. > > Sending the version with the __cygwin_fenv_static suggestion applied. > This looks OK to me. Corinna, is there anything you want to add? R. > Radek > > --- > From 5c708ec741b4c4dd7676b7030451bc08607ce352 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 v2] 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 | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h > index 6b0879269..1f97791a7 100644 > --- a/newlib/libc/machine/aarch64/sys/fenv.h > +++ b/newlib/libc/machine/aarch64/sys/fenv.h > @@ -80,9 +80,17 @@ extern const fenv_t *_fe_dfl_env; > > #if __BSD_VISIBLE > > -/* We currently provide no external definitions of the functions below. */ > +/* We currently provide no external definitions of the functions below > + except of for Cygwin where those functions are exported by > + winsup/cygwin/cygwin.din. */ > + > +#ifdef __CYGWIN__ > +#define __cygwin_fenv_static __fenv_static > +#else > +#define __cygwin_fenv_static static > +#endif > > -static inline int > +__cygwin_fenv_static inline int > feenableexcept(int __mask) > { > fenv_t __old_r, __new_r; > @@ -93,7 +101,7 @@ feenableexcept(int __mask) > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > } > > -static inline int > +__cygwin_fenv_static inline int > fedisableexcept(int __mask) > { > fenv_t __old_r, __new_r; > @@ -104,7 +112,7 @@ fedisableexcept(int __mask) > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > } > > -static inline int > +__cygwin_fenv_static inline int > fegetexcept(void) > { > fenv_t __r;
On Jul 4 10:37, Richard Earnshaw (lists) wrote: > On 03/07/2025 19:59, Radek Barton wrote: > > Hello. > > > > Sending the version with the __cygwin_fenv_static suggestion applied. > > > > This looks OK to me. Corinna, is there anything you want to add? Fine with me, please push. Thanks, Corinna > > R. > > > Radek > > > > --- > > From 5c708ec741b4c4dd7676b7030451bc08607ce352 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 v2] 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 | 16 ++++++++++++---- > > 1 file changed, 12 insertions(+), 4 deletions(-) > > > > diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h > > index 6b0879269..1f97791a7 100644 > > --- a/newlib/libc/machine/aarch64/sys/fenv.h > > +++ b/newlib/libc/machine/aarch64/sys/fenv.h > > @@ -80,9 +80,17 @@ extern const fenv_t *_fe_dfl_env; > > > > #if __BSD_VISIBLE > > > > -/* We currently provide no external definitions of the functions below. */ > > +/* We currently provide no external definitions of the functions below > > + except of for Cygwin where those functions are exported by > > + winsup/cygwin/cygwin.din. */ > > + > > +#ifdef __CYGWIN__ > > +#define __cygwin_fenv_static __fenv_static > > +#else > > +#define __cygwin_fenv_static static > > +#endif > > > > -static inline int > > +__cygwin_fenv_static inline int > > feenableexcept(int __mask) > > { > > fenv_t __old_r, __new_r; > > @@ -93,7 +101,7 @@ feenableexcept(int __mask) > > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > > } > > > > -static inline int > > +__cygwin_fenv_static inline int > > fedisableexcept(int __mask) > > { > > fenv_t __old_r, __new_r; > > @@ -104,7 +112,7 @@ fedisableexcept(int __mask) > > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > > } > > > > -static inline int > > +__cygwin_fenv_static inline int > > fegetexcept(void) > > { > > fenv_t __r;
I've tweaked the commit message and pushed this. Thanks R. On 03/07/2025 19:59, Radek Barton wrote: > Hello. > > Sending the version with the __cygwin_fenv_static suggestion applied. > > Radek > > --- > From 5c708ec741b4c4dd7676b7030451bc08607ce352 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 v2] 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 | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h > index 6b0879269..1f97791a7 100644 > --- a/newlib/libc/machine/aarch64/sys/fenv.h > +++ b/newlib/libc/machine/aarch64/sys/fenv.h > @@ -80,9 +80,17 @@ extern const fenv_t *_fe_dfl_env; > > #if __BSD_VISIBLE > > -/* We currently provide no external definitions of the functions below. */ > +/* We currently provide no external definitions of the functions below > + except of for Cygwin where those functions are exported by > + winsup/cygwin/cygwin.din. */ > + > +#ifdef __CYGWIN__ > +#define __cygwin_fenv_static __fenv_static > +#else > +#define __cygwin_fenv_static static > +#endif > > -static inline int > +__cygwin_fenv_static inline int > feenableexcept(int __mask) > { > fenv_t __old_r, __new_r; > @@ -93,7 +101,7 @@ feenableexcept(int __mask) > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > } > > -static inline int > +__cygwin_fenv_static inline int > fedisableexcept(int __mask) > { > fenv_t __old_r, __new_r; > @@ -104,7 +112,7 @@ fedisableexcept(int __mask) > return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); > } > > -static inline int > +__cygwin_fenv_static inline int > fegetexcept(void) > { > fenv_t __r;
diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h index 6b0879269..1f97791a7 100644 --- a/newlib/libc/machine/aarch64/sys/fenv.h +++ b/newlib/libc/machine/aarch64/sys/fenv.h @@ -80,9 +80,17 @@ extern const fenv_t *_fe_dfl_env; #if __BSD_VISIBLE -/* We currently provide no external definitions of the functions below. */ +/* We currently provide no external definitions of the functions below + except of for Cygwin where those functions are exported by + winsup/cygwin/cygwin.din. */ + +#ifdef __CYGWIN__ +#define __cygwin_fenv_static __fenv_static +#else +#define __cygwin_fenv_static static +#endif -static inline int +__cygwin_fenv_static inline int feenableexcept(int __mask) { fenv_t __old_r, __new_r; @@ -93,7 +101,7 @@ feenableexcept(int __mask) return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); } -static inline int +__cygwin_fenv_static inline int fedisableexcept(int __mask) { fenv_t __old_r, __new_r; @@ -104,7 +112,7 @@ fedisableexcept(int __mask) return ((__old_r >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); } -static inline int +__cygwin_fenv_static inline int fegetexcept(void) { fenv_t __r;