From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/, eclass/
Date: Tue, 19 Nov 2024 09:23:34 +0000 (UTC) [thread overview]
Message-ID: <1732008198.b923a4c0d1a330e40f0a05f3bc94bb4f32ce1cbb.sam@gentoo> (raw)
commit: b923a4c0d1a330e40f0a05f3bc94bb4f32ce1cbb
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 19 09:22:16 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 19 09:23:18 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b923a4c0
toolchain.eclass: wire up libdiagonstics
See https://gcc.gnu.org/wiki/libdiagnostics. New shared library for
diagnostics in GCC. Also provides the 'sarif-replay' tool.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 8 ++++++--
sys-devel/gcc/metadata.xml | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index f131da7dbd68..edff7254c905 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -333,6 +333,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
# it was disabled in 13.
tc_version_is_at_least 14.0.0_pre20230423 ${PV} && IUSE+=" rust" TC_FEATURES+=( rust )
tc_version_is_at_least 14.2.1_p20241026 ${PV} && IUSE+=" time64"
+ tc_version_is_at_least 15.0.0_pre20241124 ${PV} && IUSE+=" libdiagnostics"
fi
if tc_version_is_at_least 10; then
@@ -1732,8 +1733,8 @@ toolchain_src_configure() {
gcc_shell="${BROOT}"/bin/sh
fi
- if is_jit ; then
- einfo "Configuring JIT gcc"
+ if is_jit || _tc_use_if_iuse libdiagnostics ; then
+ einfo "Configuring shared gcc for JIT/libdiagnostics"
local confgcc_jit=(
"${confgcc[@]}"
@@ -1757,8 +1758,11 @@ toolchain_src_configure() {
--disable-nls
--disable-objc-gc
--disable-systemtap
+
--enable-host-shared
--enable-languages=jit
+ $(use_enable libdiagnostics)
+
# Might be used for the just-built GCC. Easier to just
# respect USE=graphite here in case the user passes some
# graphite flags rather than try strip them out.
diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml
index 853d96579504..eeb3aa4d7aa0 100644
--- a/sys-devel/gcc/metadata.xml
+++ b/sys-devel/gcc/metadata.xml
@@ -77,6 +77,7 @@
<flag name="graphite">Add support for the framework for loop optimizations based on a polyhedral intermediate representation</flag>
<flag name="ieee-long-double">Use accelerated 128-bit IEEE long double ABI (ppc64le only)</flag>
<flag name="jit">Enable libgccjit so other applications can embed gcc for Just-In-Time compilation.</flag>
+ <flag name="libdiagnostics">Provide libdiagnostics (https://gcc.gnu.org/wiki/libdiagnostics). This also installs the 'sarif-replay' tool.</flag>
<flag name="libssp">Build SSP support into a dedicated library rather than use the code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag>
<flag name="lto">
Build using Link Time Optimizations (LTO).
next reply other threads:[~2024-11-19 9:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-19 9:23 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-23 15:42 [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/, eclass/ Sam James
2022-05-22 18:41 Sam James
2022-04-21 12:27 Sam James
2021-11-20 23:15 Andreas K. Hüttel
2020-07-06 16:39 Sergei Trofimovich
2018-05-16 22:02 Sergei Trofimovich
2015-12-19 23:29 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1732008198.b923a4c0d1a330e40f0a05f3bc94bb4f32ce1cbb.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox