summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-08 21:57:57 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-08 22:15:23 -0400
commit0f4dd949d7671bd86610836d5ac270430be37a4c (patch)
tree2587867ec5085dbd62a5e1d949b7f788ebc61ef5 /eclass/toolchain.eclass
parentapp-misc/lcd4linux: update HOMEPAGE (diff)
downloadgentoo-0f4dd949d7671bd86610836d5ac270430be37a4c.tar.gz
gentoo-0f4dd949d7671bd86610836d5ac270430be37a4c.tar.bz2
gentoo-0f4dd949d7671bd86610836d5ac270430be37a4c.zip
sys-devel/gcc: add USE=vtv support for vtable verification #547040
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b875e198b367..992074084d2b 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -152,7 +152,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
# versions which we dropped. Since graphite was also experimental in
# the older versions, we don't want to bother supporting it. #448024
tc_version_is_at_least 4.8 && IUSE+=" graphite" IUSE_DEF+=( sanitize )
- tc_version_is_at_least 4.9 && IUSE+=" cilk"
+ tc_version_is_at_least 4.9 && IUSE+=" cilk +vtv"
tc_version_is_at_least 5.0 && IUSE+=" jit"
tc_version_is_at_least 6.0 && IUSE+=" pie +ssp"
fi
@@ -1165,6 +1165,13 @@ toolchain_src_configure() {
confgcc+=( $(use_enable cilk libcilkrts) )
fi
+ if in_iuse vtv ; then
+ confgcc+=(
+ $(use_enable vtv vtable-verify)
+ $(use_enable vtv libvtv)
+ )
+ fi
+
# newer gcc's come with libquadmath, but only fortran uses
# it, so auto punt it when we don't care
if tc_version_is_at_least 4.6 && ! is_fortran ; then