From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 7F520385B516 for ; Thu, 19 Jan 2023 21:53:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F520385B516 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.97,230,1669104000"; d="scan'208";a="95056899" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 19 Jan 2023 13:53:34 -0800 IronPort-SDR: gqedjThTbMSgCsyEN9E5tOK2sutu7w+ycdaHz9iohcMX18NvOikrXV3SLHUElVwBViyJ5gkiuy FsLgtbAAmO6tuselmllbZnEFeRRGSkP7nSrpE3GENYTeAgqgcMH0YqPsjF6vr2JG5jDxVXtiOP y1+0xehTGpD16eO3uQY/kFzJtErBslhNiUYJ+jyN0DD5oi7K/qXQ3KVuzJyVTYwefWnchRNl90 nLy2IVQJ0qhPjDVMRD/52p/0jYGGtoe6swQCeBbcayjGOKwaeRApGWIQ5FdhQVfYW6+9Xh9P/H SkM= From: Thomas Schwinge To: CC: , , Thomas Schwinge Subject: [PATCH 2/2] nvptx: Remove newlib ELIX level 1 restriction Date: Thu, 19 Jan 2023 22:53:17 +0100 Message-ID: <20230119215317.2001873-2-thomas@codesourcery.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119215317.2001873-1-thomas@codesourcery.com> References: <20230119215317.2001873-1-thomas@codesourcery.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,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 List-Id: Such a hard-coded ELIX level restriction is only being applied for nvptx newlib -- but we'd actually like higher levels' functions available there, too. (Users continue to be able to override this via newlib 'configure', as for every other newlib target.) This already enables GCC test cases that currently FAIL due to 'unresolved symbol strndup' ('gcc.dg/builtin-dynamic-object-size-0.c'), or 'unresolved symbol mempcpy' ('gcc.dg/torture/pr45636.c'), for example. Co-authored-by: Andrew Stubbs --- newlib/NEWS | 1 + newlib/configure.host | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/newlib/NEWS b/newlib/NEWS index 9aa82920d..ee456f9b8 100644 --- a/newlib/NEWS +++ b/newlib/NEWS @@ -13,6 +13,7 @@ - use global stdio streams for all configurations - use global atexit data for all configurations - vectorized math routines added for amdgcn platform +- nvptx: remove newlib ELIX level 1 restriction *** Major changes in newlib version 4.2.0: diff --git a/newlib/configure.host b/newlib/configure.host index 7157877ff..0a1ba282a 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -938,11 +938,6 @@ fi # Target-specific defaults case "${host_cpu}" in nvptx*) - if [ "x${newlib_elix_level}" =3D "x0" ]; then - newlib_elix_level=3D1; - elif [ "x${newlib_elix_level}" !=3D "x1" ]; then - newlib_msg_warn=3D"nvptx does not support elix level > 1"; - fi if [[ -z ${newlib_global_stdio_streams} ]]; then newlib_global_stdio_streams=3D"yes"; fi -- 2.25.1 ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=DFe 201, 8= 0634 M=FCnchen; Gesellschaft mit beschr=E4nkter Haftung; Gesch=E4ftsf=FChre= r: Thomas Heurung, Frank Th=FCrauf; Sitz der Gesellschaft: M=FCnchen; Regis= tergericht M=FCnchen, HRB 106955