From nobody Sat Apr 25 14:20:03 2026 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 4g2sRR6qvLz6bZMk for ; Sat, 25 Apr 2026 14:20:03 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g2sRR36YDz3Hny for ; Sat, 25 Apr 2026 14:20:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777126803; 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=qS4OAxn6vqLBgAjCVltqSAU1c0UH1Snr52uONDpFpyc=; b=KDobVckIBuBnCSCTmQ2b/AdKQLuCTaDh03SyChImBAc5xiGsVfRBLdlw46rAnmNQBUcQMq Zaxghw9hBoWCeVIiWCV/hD8cfbd9AS7WNkI/kON0UGfsIbis5bCO8bO5QbS4gxqj9FE2jS BbBgiII2EJgpVKBsFb96hC5f6djw4l8YmqpHdyk3GPr3w/XRaFop92Z+lq8CYHSj+JuXBu 4/d6WnbAZPL/5wenmcuDF/pCDGUUdzEKWDl054jYhsKC2l6XbqqR1XYY4/Oo44wLaiGKPu aLNW2/FQnKFrbJHuWciywjJZkrcCDolf10ufW44t3hvRRDsUejnJVR/fDNFD4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777126803; a=rsa-sha256; cv=none; b=sy8oa1GHXdVOIucYw8V+ON0FegcuRIUfaiH5m3e9bytHP6Bg7YhtoFfBb05cj4YMDSXCFx V896tThBPcP8jc+TLOd5U356TdeiHEPsm/Nridqc53snl9nwaOIPWU28qj9kHyiqGEFdWr No6nWTES0k3FnKa8KAQ/8LDJpIX5NhllmvXtY0uom92N52hrqp4CvRC876RmizjEk82ab8 sTAsAGpS2RDTAaviS3UI6LzOcI7RMk2r+i14UX4UY3gUgavD/x6jHolx2Nj7N7aYzFe2ae P9eHhqS+LO7rf+oIJKqXN30MJxEzw4YDN0OWlmvSF7GtNs7Wf+r4Sb5xq0J1rg== 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=1777126803; 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=qS4OAxn6vqLBgAjCVltqSAU1c0UH1Snr52uONDpFpyc=; b=kChC99tAO8b0I6wQkrUy7qmeG74AgExSwGlIYESeZhEHeThc7MX1V71SKf6ymD9amB6/Ec SvKWGgN7T0rrWjHGk6EAG7XjakRHFlzA5HHMx7U5yWybhQlhxIwDs2FDbu+Bca3jVCW6hP mVwJwtFLqF4SXmS8ZtPC7zQ/SIZ7Ty28mwwBfmc1eipjdK1OkehbzDnKxOwBY6AdltwZT+ s5/Zbwd3gLEIoPl9saKb1JoK3lrqQMcrtQM+7iCNc583/5AA8RPSm7XLeg4HVp6LvyzCnN T3SbYquutja/HntFntwZcirKx/HFrYZey+LVuYgHXWGrinqYcmh7R92ja4gETw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g2sRR2jh0zdQm for ; Sat, 25 Apr 2026 14:20:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37ac5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 25 Apr 2026 14:20:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 718e5874be03 - main - llvm-libc-macros: work around gcc defining LDBL_MANT_DIG as 53 on i386 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 718e5874be0306ea302fd2b8e1d97fc79682abbe Auto-Submitted: auto-generated Date: Sat, 25 Apr 2026 14:20:03 +0000 Message-Id: <69eccd93.37ac5.26148e96@gitrepo.freebsd.org> The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=718e5874be0306ea302fd2b8e1d97fc79682abbe commit 718e5874be0306ea302fd2b8e1d97fc79682abbe Author: Dimitry Andric AuthorDate: 2026-01-02 20:32:05 +0000 Commit: Dimitry Andric CommitDate: 2026-04-25 14:14:11 +0000 llvm-libc-macros: work around gcc defining LDBL_MANT_DIG as 53 on i386 Otherwise, gcc will not be able to compile parts of libc++ 21 in -m32 mode, resulting in errors similar to: In file included from /usr/src/contrib/llvm-project/libc/shared/str_to_float.h:13, from /usr/src/contrib/llvm-project/libcxx/src/include/from_chars_floating_point.h:14, from /usr/src/contrib/llvm-project/libcxx/src/charconv.cpp:12: /usr/src/contrib/llvm-project/libc/src/__support/str_to_float.h: In function 'void __llvm_libc::internal::set_implicit_bit(__llvm_libc::fputil::FPBits&) [with T = long double]': /usr/src/contrib/llvm-project/libc/src/__support/str_to_float.h:77:10: error: 'struct __llvm_libc::fputil::FPBits' has no member named 'set_implicit_bit' 77 | result.set_implicit_bit(result.get_biased_exponent() != 0); | ^~~~~~~~~~~~~~~~ PR: 292067 MFC after: 1 month --- contrib/llvm-project/libc/include/llvm-libc-macros/float-macros.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/llvm-project/libc/include/llvm-libc-macros/float-macros.h b/contrib/llvm-project/libc/include/llvm-libc-macros/float-macros.h index a25ef60a293d..3bf92bc7b6c9 100644 --- a/contrib/llvm-project/libc/include/llvm-libc-macros/float-macros.h +++ b/contrib/llvm-project/libc/include/llvm-libc-macros/float-macros.h @@ -61,6 +61,11 @@ #define DBL_MANT_DIG __DBL_MANT_DIG__ #endif // DBL_MANT_DIG +// Kludge for gcc defining LDBL_MANT_DIG as 53 on i386 +#if defined(LDBL_MANT_DIG) && defined(__GNUC__) && !defined(__clang__) && defined(__i386__) +#undef LDBL_MANT_DIG +#endif + #ifndef LDBL_MANT_DIG #define LDBL_MANT_DIG __LDBL_MANT_DIG__ #endif // LDBL_MANT_DIG