diff options
| author | Sam James <sam@gentoo.org> | 2025-12-03 14:53:56 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-12-03 14:54:28 +0000 |
| commit | d8c55bb85be9923213168c69a054a154c077cfb8 (patch) | |
| tree | 93fa51fca6a6105dd57e5767c7b6ab879abdf33c | |
| parent | 5b32d2649361c1c4200473991fa8b6dce4d336d4 (diff) | |
| download | gentoo-d8c55bb85be9923213168c69a054a154c077cfb8.tar.gz gentoo-d8c55bb85be9923213168c69a054a154c077cfb8.tar.bz2 gentoo-d8c55bb85be9923213168c69a054a154c077cfb8.zip | |
toolchain.eclass: wire up Valgrind annotations patch
In gcc-patches.git:
commit 33349526fd69a6c54790b53ca443693c80769242 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
AuthorDate: Wed Dec 3 14:48:04 2025 +0000
Commit: Sam James <sam@gentoo.org>
CommitDate: Wed Dec 3 14:48:04 2025 +0000
16.0.0: add ispras's Valgrind lifetime annotations patch
C++ lifetime issues come up every so often (this time w/ openjph2) and
they're always really hard to debug. Let's give this a go.
From https://inbox.sourceware.org/gcc-patches/20231222141038.6657-1-amonakov@ispras.ru/.
Bug: https://gcc.gnu.org/PR66487
[...]
Signed-off-by: Sam James <sam@gentoo.org>
| -rw-r--r-- | eclass/toolchain.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index e50067e40c0f..2afa6df1295a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1797,6 +1797,12 @@ toolchain_src_configure() { if in_iuse valgrind ; then confgcc+=( $(use_enable valgrind valgrind-annotations) ) + + # We patch this in w/ PR66487-object-lifetime-instrumentation-for-Valgrind.patch, + # so it may not always be available. + if grep -q -- '--enable-valgrind-interop' "${S}"/libgcc/configure.ac ; then + confgcc+=( $(use_enable valgrind valgrind-interop) ) + fi fi if in_iuse vtv ; then |
