From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ECECF158020 for ; Tue, 20 Dec 2022 23:46:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14F7CE0940; Tue, 20 Dec 2022 23:46:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB64FE0940 for ; Tue, 20 Dec 2022 23:46:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF32034162C for ; Tue, 20 Dec 2022 23:46:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22179703 for ; Tue, 20 Dec 2022 23:46:55 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1671579997.ef7ca111bcbd847596c782a2ea742d37b9769c4b.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang-common/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/clang-common/clang-common-15.0.5.ebuild sys-devel/clang-common/clang-common-15.0.6.9999.ebuild sys-devel/clang-common/clang-common-15.0.6.ebuild sys-devel/clang-common/clang-common-16.0.0.9999.ebuild sys-devel/clang-common/clang-common-16.0.0_pre20221210.ebuild sys-devel/clang-common/clang-common-16.0.0_pre20221217.ebuild sys-devel/clang-common/metadata.xml X-VCS-Directories: sys-devel/clang-common/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: ef7ca111bcbd847596c782a2ea742d37b9769c4b X-VCS-Branch: master Date: Tue, 20 Dec 2022 23:46:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aee89ef1-8da0-4572-8d7d-186e8779f503 X-Archives-Hash: c109603e09d51dac9a9b9b889fc86b8c commit: ef7ca111bcbd847596c782a2ea742d37b9769c4b Author: Georgy Yakovlev gentoo org> AuthorDate: Mon Dec 5 21:13:18 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Dec 20 23:46:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef7ca111 sys-devel/clang-common: add USE=ieee-long-double Bug: https://bugs.gentoo.org/882815 Bug: https://bugs.gentoo.org/884395 Signed-off-by: Georgy Yakovlev gentoo.org> sys-devel/clang-common/clang-common-15.0.5.ebuild | 15 ++++++++++++++- sys-devel/clang-common/clang-common-15.0.6.9999.ebuild | 15 ++++++++++++++- sys-devel/clang-common/clang-common-15.0.6.ebuild | 15 ++++++++++++++- sys-devel/clang-common/clang-common-16.0.0.9999.ebuild | 15 ++++++++++++++- .../clang-common/clang-common-16.0.0_pre20221210.ebuild | 15 ++++++++++++++- .../clang-common/clang-common-16.0.0_pre20221217.ebuild | 15 ++++++++++++++- sys-devel/clang-common/metadata.xml | 1 + 7 files changed, 85 insertions(+), 6 deletions(-) diff --git a/sys-devel/clang-common/clang-common-15.0.5.ebuild b/sys-devel/clang-common/clang-common-15.0.5.ebuild index 2fdf615be818..ee4c708e9f3c 100644 --- a/sys-devel/clang-common/clang-common-15.0.5.ebuild +++ b/sys-devel/clang-common/clang-common-15.0.5.ebuild @@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~ppc-macos ~x64-macos" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind + default-compiler-rt default-libcxx default-lld ieee-long-double llvm-libunwind stricter " @@ -88,6 +88,19 @@ src_install() { @gentoo-gcc-install.cfg EOF + # needed until https://reviews.llvm.org/D117181#3266224 is done. + # silently drop support on musl even if enabled, it does not support it. + if use ppc64 && use ieee-long-double && ! use elibc_musl; then + newins - gentoo-ppc64le-ieeelongdouble.cfg <<-EOF + # This file forces 128bit long double on ppc64le systems. + -mabi=ieeelongdouble + EOF + + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + @gentoo-ppc64le-ieeelongdouble.cfg + EOF + fi + if use stricter; then newins - gentoo-stricter.cfg <<-EOF # This file increases the strictness of older clang versions diff --git a/sys-devel/clang-common/clang-common-15.0.6.9999.ebuild b/sys-devel/clang-common/clang-common-15.0.6.9999.ebuild index 3e43f51a0aab..748263e37efa 100644 --- a/sys-devel/clang-common/clang-common-15.0.6.9999.ebuild +++ b/sys-devel/clang-common/clang-common-15.0.6.9999.ebuild @@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind + default-compiler-rt default-libcxx default-lld ieee-long-double llvm-libunwind stricter " @@ -88,6 +88,19 @@ src_install() { @gentoo-gcc-install.cfg EOF + # needed until https://reviews.llvm.org/D117181#3266224 is done. + # silently drop support on musl even if enabled, it does not support it. + if use ppc64 && use ieee-long-double && ! use elibc_musl; then + newins - gentoo-ppc64le-ieeelongdouble.cfg <<-EOF + # This file forces 128bit long double on ppc64le systems. + -mabi=ieeelongdouble + EOF + + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + @gentoo-ppc64le-ieeelongdouble.cfg + EOF + fi + if use stricter; then newins - gentoo-stricter.cfg <<-EOF # This file increases the strictness of older clang versions diff --git a/sys-devel/clang-common/clang-common-15.0.6.ebuild b/sys-devel/clang-common/clang-common-15.0.6.ebuild index e681aa13cd6d..ed38534ff289 100644 --- a/sys-devel/clang-common/clang-common-15.0.6.ebuild +++ b/sys-devel/clang-common/clang-common-15.0.6.ebuild @@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind + default-compiler-rt default-libcxx default-lld ieee-long-double llvm-libunwind stricter " @@ -88,6 +88,19 @@ src_install() { @gentoo-gcc-install.cfg EOF + # needed until https://reviews.llvm.org/D117181#3266224 is done. + # silently drop support on musl even if enabled, it does not support it. + if use ppc64 && use ieee-long-double && ! use elibc_musl; then + newins - gentoo-ppc64le-ieeelongdouble.cfg <<-EOF + # This file forces 128bit long double on ppc64le systems. + -mabi=ieeelongdouble + EOF + + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + @gentoo-ppc64le-ieeelongdouble.cfg + EOF + fi + if use stricter; then newins - gentoo-stricter.cfg <<-EOF # This file increases the strictness of older clang versions diff --git a/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild index e9669ee1adcc..efd64f57046c 100644 --- a/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild +++ b/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild @@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind + default-compiler-rt default-libcxx default-lld ieee-long-double llvm-libunwind stricter " @@ -88,6 +88,19 @@ src_install() { @gentoo-gcc-install.cfg EOF + # needed until https://reviews.llvm.org/D117181#3266224 is done. + # silently drop support on musl even if enabled, it does not support it. + if use ppc64 && use ieee-long-double && ! use elibc_musl; then + newins - gentoo-ppc64le-ieeelongdouble.cfg <<-EOF + # This file forces 128bit long double on ppc64le systems. + -mabi=ieeelongdouble + EOF + + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + @gentoo-ppc64le-ieeelongdouble.cfg + EOF + fi + if use stricter; then newins - gentoo-stricter.cfg <<-EOF # This file increases the strictness of older clang versions diff --git a/sys-devel/clang-common/clang-common-16.0.0_pre20221210.ebuild b/sys-devel/clang-common/clang-common-16.0.0_pre20221210.ebuild index 0df5a88a9a09..e8dbca1bdc0f 100644 --- a/sys-devel/clang-common/clang-common-16.0.0_pre20221210.ebuild +++ b/sys-devel/clang-common/clang-common-16.0.0_pre20221210.ebuild @@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="~loong" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind + default-compiler-rt default-libcxx default-lld ieee-long-double llvm-libunwind stricter " @@ -88,6 +88,19 @@ src_install() { @gentoo-gcc-install.cfg EOF + # needed until https://reviews.llvm.org/D117181#3266224 is done. + # silently drop support on musl even if enabled, it does not support it. + if use ppc64 && use ieee-long-double && ! use elibc_musl; then + newins - gentoo-ppc64le-ieeelongdouble.cfg <<-EOF + # This file forces 128bit long double on ppc64le systems. + -mabi=ieeelongdouble + EOF + + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + @gentoo-ppc64le-ieeelongdouble.cfg + EOF + fi + if use stricter; then newins - gentoo-stricter.cfg <<-EOF # This file increases the strictness of older clang versions diff --git a/sys-devel/clang-common/clang-common-16.0.0_pre20221217.ebuild b/sys-devel/clang-common/clang-common-16.0.0_pre20221217.ebuild index 0df5a88a9a09..e8dbca1bdc0f 100644 --- a/sys-devel/clang-common/clang-common-16.0.0_pre20221217.ebuild +++ b/sys-devel/clang-common/clang-common-16.0.0_pre20221217.ebuild @@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="~loong" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind + default-compiler-rt default-libcxx default-lld ieee-long-double llvm-libunwind stricter " @@ -88,6 +88,19 @@ src_install() { @gentoo-gcc-install.cfg EOF + # needed until https://reviews.llvm.org/D117181#3266224 is done. + # silently drop support on musl even if enabled, it does not support it. + if use ppc64 && use ieee-long-double && ! use elibc_musl; then + newins - gentoo-ppc64le-ieeelongdouble.cfg <<-EOF + # This file forces 128bit long double on ppc64le systems. + -mabi=ieeelongdouble + EOF + + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + @gentoo-ppc64le-ieeelongdouble.cfg + EOF + fi + if use stricter; then newins - gentoo-stricter.cfg <<-EOF # This file increases the strictness of older clang versions diff --git a/sys-devel/clang-common/metadata.xml b/sys-devel/clang-common/metadata.xml index 7ea033c083c9..8eb8b3420e8e 100644 --- a/sys-devel/clang-common/metadata.xml +++ b/sys-devel/clang-common/metadata.xml @@ -11,6 +11,7 @@ Use compiler-rt + libunwind instead of libgcc as the default rtlib for clang Use libc++ instead of libstdc++ as the default stdlib for clang Use lld as the default linker for clang + Use accelerated 128-bit IEEE long double ABI (ppc64le only) Default to stricter behavior known from newer clang versions, turning more warnings into errors