From nobody Fri Jun 21 02:41:25 2024 X-Original-To: dev-commits-src-main@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 4W51ny4k0Xz5PHJR; Fri, 21 Jun 2024 02:41:26 +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 4W51nx5Z8wz4cB0; Fri, 21 Jun 2024 02:41:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718937685; 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=a9fqWQCl9eQ2V1B7uhTNwl5w9ME2HMgLLavMIuMEeEk=; b=OKdMLdH+2NJhzXM16nRagvNwg+nUBo6jNd/fgDrYad+vNWNKm2wxTgFJQeN6gStWD6luII 6sMINS3fBY0NlCZHaq6WsLls6dVdg+gjGOiar3dN9HA5M/CZJFPOtGAB5j4ObN3mi0skE4 rgp7nk0ydIBijbwY2KUCaIh087DgRGRMsNytiwTO5xb61cwTkmReOaZGFx/D1T7Y/5dR1O ELXmZPvKgTPPC8MsDDdsCAN/qjP32ENZLjRBvCgsRSIIJ1Ba5VV3FR5ckUmUWuWqdvGBft oo2XVvE78+HYDDiR8RBomytLbyOQhb1kJiA6bKtwog7s+KuiXDJ58vLCb7EyvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718937685; a=rsa-sha256; cv=none; b=LGclJK0JHMgnj9VUuXi7N9B133sVJaaAVlqBsSVj6lr+7jBcoa9gcnU5b5sx3SgZIQ3T8b aiKa//ukng0iXBwo7CaIwE/IoYrEc0AhEPYznzNPUL2liU2Vs+qMlC6I75hoBcR1X6096m kzHkK2juh9OZwTV0mdSSpiUkaurFywWBbKUrl3VVJ6/vE2TOrGFYKdJXVTyvWOpDg+oR+/ pyVAy4Kn/f1sV0Egqtu80fVo60JFlLRc1QXqHW5QE4/h+Ugql2BkchW63cOC+hFwwuGFOX ImuHp0YRm3a5kTCYtt046OY3E4AUZRef1+f8nPmcEeOmncAAhOO2b1OIKMgkfw== 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=1718937685; 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=a9fqWQCl9eQ2V1B7uhTNwl5w9ME2HMgLLavMIuMEeEk=; b=o33fPPCstLSYXX8XjCNplJ+FAZ3xPwENi7hNBKMzKbJ/JDzHQw0T63T7nN4mYkCdN0jr3h 5nKsK5CJ0xjeDbFQXientDCa2dbKiKBnH9jL4cBfIHr3R/hL6kboIPwHl63YKA6i0utfM2 67kLldS/95LqLRNdkFnYnyfFJQT4dDhIeQRyXjuB3Om4+3dUwgOZQyOEUTLqOpmgDIZTHD tthFCUKnRtDv3/DdKWuY/xi2bphye5ymDeJSMilTIq1fvsjeLQCmZuTaXFUt4FUX8VBTxS 6KNyyzyqIYp5tfW9coeZk0MuuNVwpSaf4/BaELfC2rFCgLA54ohIMjlQqWAbhg== 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 4W51nx59rdzqYN; Fri, 21 Jun 2024 02:41:25 +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 45L2fP1u057068; Fri, 21 Jun 2024 02:41:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45L2fPXD057065; Fri, 21 Jun 2024 02:41:25 GMT (envelope-from git) Date: Fri, 21 Jun 2024 02:41:25 GMT Message-Id: <202406210241.45L2fPXD057065@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: fa1e8538d1ce - main - math.h: Remove support for old gcc versions List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fa1e8538d1cec1d741a5071ad0376aea05ae6ddc Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=fa1e8538d1cec1d741a5071ad0376aea05ae6ddc commit fa1e8538d1cec1d741a5071ad0376aea05ae6ddc Author: Warner Losh AuthorDate: 2024-06-20 23:03:05 +0000 Commit: Warner Losh CommitDate: 2024-06-21 02:41:09 +0000 math.h: Remove support for old gcc versions Remove support for old gcc versions by unconditionally defining __MATH_BUILTIN_RELOPS and __MATH_BUILTIN_CONSTANTS. Per kib's request, don't #undef those so it's easier to understand what the builtins are doing. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D45655 Sponsored by: Netflix --- lib/msun/src/math.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 0abf4b605fb8..be7b86144738 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -31,13 +31,8 @@ extern const union __nan_un { float __uf; } __nan; -#if __GNUC_PREREQ__(3, 3) #define __MATH_BUILTIN_CONSTANTS -#endif - -#if __GNUC_PREREQ__(3, 0) #define __MATH_BUILTIN_RELOPS -#endif #ifdef __MATH_BUILTIN_CONSTANTS #define HUGE_VAL __builtin_huge_val() @@ -79,7 +74,7 @@ extern const union __nan_un { float: f, \ double: d, \ long double: ld)(x) -#elif __GNUC_PREREQ__(3, 1) && !defined(__cplusplus) +#elif !defined(__cplusplus) #define __fp_type_select(x, f, d, ld) __builtin_choose_expr( \ __builtin_types_compatible_p(__typeof(x), long double), ld(x), \ __builtin_choose_expr( \