From nobody Tue Apr 16 21:14:47 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VJxd4105Hz5H5pW; Tue, 16 Apr 2024 21:14:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJxd36BrWz4R8s; Tue, 16 Apr 2024 21:14:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713302087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zk4bsw8rEUt8XCP3PrOScCI9B/GnOZTvWU+R6vya6BA=; b=dxq2STCARHN+FtrjRZwXk2euhRBxQU+hToqJGMt8baDeVZv98UF6h5GUlGc2+vAMgIurHD aWyExnCnFZR/4byxp3a0+2TNS+7wiKzvjfzPUUSUYTcw34CNJIMWswA/da7mNtUS728aam oJCxlkOPIqoVK9CFnEj7BYGBubwYS1hfkol42zx9JWAE5Hq9Jvvqj0MxQuFy8+e4q/xrYZ k9zbRFdR072aGmnaAFG3BEC7+Van5yYwkzQ7qhnU5JRUT3lDpk0/tShLWE5OjS7RbVGTXY xkpkQsvJjGL2VP1zeRTO9NvJKD3NpIkL66O64MyxWMPdvjFvS1Y/LOi3N6WncQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713302087; a=rsa-sha256; cv=none; b=iGZlUr80Nk/24bZQxu4+L6wlEFGiqc/Fhw9EkUpw8Y3/30VmP2E/GAlXQY7wuO0g7Q+Xj+ be/QUHnUBquziklBK/so6lXvECAQ+CZn/q9Td5YufDWkbI6y9G2Gz5LETeMD3iV8vN1ijX iR/nns8x2v9f6/JWXUi+R0F3LOXUDIpKOAA1aoHf0csjBkXDOdYReAPKYZJdR3mzlXxSGG xeAjqWGSkICXdavVdRMFcLCL9jMJ40kUGQqt9fYhBJQM2nnLiKaTtE2FqXipMeWs4C4GfL EQyRQlasVjEn0XnHBLkMvsLK/+k8CvvK97ODuNzBFNK151pFOCq8E3PCqADyQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713302087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zk4bsw8rEUt8XCP3PrOScCI9B/GnOZTvWU+R6vya6BA=; b=shoYrT7gvkjyjPgJhpJoeChzxQAv/l852tWizWYFyWcWtniN8fc/ZKycpgSEKeb1jZVBbq m8WCyakgorPt6A0Q304qo2MMgmWlojaHSqJPGqATV4ctUdZlLW6/tlypbQ16dEnl89VW/I zXJt4wnBnJh88vcNTx/vMVzuN0+UcYhvaTOWTYLVQjHciX4PNimR9R9emiDpR4aHt+NapE qN2r7pIklu8CyPUXcgFibLEZTTBotqlZt12d+1PFUxOVhYLrfqIDk8MHGJluf5BjDz9ak/ aQ55vSYbSfssvLzvADteEJRwgdE5JEUoi3TCeVjJig3nfsozxlCXI1XlWtRiBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VJxd35pGVzysj; Tue, 16 Apr 2024 21:14:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43GLElst043933; Tue, 16 Apr 2024 21:14:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43GLEl9r043930; Tue, 16 Apr 2024 21:14:47 GMT (envelope-from git) Date: Tue, 16 Apr 2024 21:14:47 GMT Message-Id: <202404162114.43GLEl9r043930@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 3f82d8345b17 - main - libgcc_s: only export 128-bit int APIs when available List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3f82d8345b17eb1c5a7ae40f3c71e9f42f2ea487 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=3f82d8345b17eb1c5a7ae40f3c71e9f42f2ea487 commit 3f82d8345b17eb1c5a7ae40f3c71e9f42f2ea487 Author: Brooks Davis AuthorDate: 2024-04-16 17:03:21 +0000 Commit: Brooks Davis CommitDate: 2024-04-16 21:14:21 +0000 libgcc_s: only export 128-bit int APIs when available These interfaces are only compiled when the platform supports 128-bit ints. Use a CRT_HAS_128BIT guard similar to the one used in the compiler_rt sources. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D44323 --- lib/libgcc_s/Symbol.map | 67 ++++++++++++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/lib/libgcc_s/Symbol.map b/lib/libgcc_s/Symbol.map index de19c766fbba..39cfa1809740 100644 --- a/lib/libgcc_s/Symbol.map +++ b/lib/libgcc_s/Symbol.map @@ -1,56 +1,42 @@ /* */ +#if defined(__LP64__) || defined(__SIZEOF_INT128__) +#define CRT_HAS_128BIT +#endif + GCC_3.0 { __absvdi2; __absvsi2; __addvdi3; __addvsi3; __ashldi3; - __ashlti3; __ashrdi3; - __ashrti3; __clear_cache; __cmpdi2; - __cmpti2; __deregister_frame; __deregister_frame_info; __deregister_frame_info_bases; __divdi3; - __divti3; __ffsdi2; - __ffsti2; __fixdfdi; - __fixdfti; __fixsfdi; - __fixsfti; __fixunsdfdi; __fixunsdfsi; - __fixunsdfti; __fixunssfdi; __fixunssfsi; - __fixunssfti; __fixunsxfdi; __fixunsxfsi; - __fixunsxfti; __fixxfdi; - __fixxfti; __floatdidf; __floatdisf; __floatdixf; - __floattidf; - __floattisf; - __floattixf; __lshrdi3; - __lshrti3; __moddi3; - __modti3; __muldi3; - __multi3; __mulvdi3; __mulvsi3; __negdi2; - __negti2; __negvdi2; __negvsi2; __register_frame; @@ -62,13 +48,9 @@ GCC_3.0 { __subvdi3; __subvsi3; __ucmpdi2; - __ucmpti2; __udivdi3; __udivmoddi4; - __udivmodti4; - __udivti3; __umoddi3; - __umodti3; _Unwind_DeleteException; _Unwind_Find_FDE; _Unwind_ForcedUnwind; @@ -82,6 +64,31 @@ GCC_3.0 { _Unwind_Resume; _Unwind_SetGR; _Unwind_SetIP; + +#ifdef CRT_HAS_128BIT + __ashlti3; + __ashrti3; + __cmpti2; + __divti3; + __ffsti2; + __fixdfti; + __fixsfti; + __fixunsdfti; + __fixunssfti; + __fixunsxfti; + __fixxfti; + __floattidf; + __floattisf; + __floattixf; + __lshrti3; + __modti3; + __multi3; + __negti2; + __ucmpti2; + __udivmodti4; + __udivti3; + __umodti3; +#endif }; GCC_3.3 { @@ -97,16 +104,19 @@ GCC_3.3.1 { GCC_3.4 { __clzdi2; __clzsi2; - __clzti2; __ctzdi2; __ctzsi2; - __ctzti2; __paritydi2; __paritysi2; - __parityti2; __popcountdi2; __popcountsi2; + +#ifdef CRT_HAS_128BIT + __clzti2; + __ctzti2; + __parityti2; __popcountti2; +#endif }; GCC_3.4.2 { @@ -114,11 +124,13 @@ GCC_3.4.2 { }; GCC_3.4.4 { +#ifdef CRT_HAS_128BIT __absvti2; __addvti3; __mulvti3; __negvti2; __subvti3; +#endif }; GCC_4.0.0 { @@ -137,10 +149,13 @@ GCC_4.2.0 { __floatundidf; __floatundisf; __floatundixf; + _Unwind_GetIPInfo; + +#ifdef CRT_HAS_128BIT __floatuntidf; __floatuntisf; __floatuntixf; - _Unwind_GetIPInfo; +#endif }; GCC_4.3.0 {