sys-devel/gcc: add USE=mpx support for Intel MPX #578396
authorMike Frysinger <vapier@gentoo.org>
Wed, 11 May 2016 05:22:27 +0000 (01:22 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 11 May 2016 13:49:59 +0000 (09:49 -0400)
eclass/toolchain.eclass
profiles/arch/amd64/use.mask
profiles/arch/x86/use.mask
profiles/base/use.mask
profiles/desc/cpu_flags_x86.desc
sys-devel/gcc/metadata.xml

index 992074084d2b3b0c90e5dbeacbf86c1780da9ab7..08813a9e355ddf8f563eb6d7165491771f6260ee 100644 (file)
@@ -153,7 +153,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
        # 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 +vtv"
-       tc_version_is_at_least 5.0 && IUSE+=" jit"
+       tc_version_is_at_least 5.0 && IUSE+=" jit mpx"
        tc_version_is_at_least 6.0 && IUSE+=" pie +ssp"
 fi
 
@@ -1165,6 +1165,10 @@ toolchain_src_configure() {
                confgcc+=( $(use_enable cilk libcilkrts) )
        fi
 
+       if in_iuse mpx ; then
+               confgcc+=( $(use_enable mpx libmpx) )
+       fi
+
        if in_iuse vtv ; then
                confgcc+=(
                        $(use_enable vtv vtable-verify)
index 614d355a5c5240cbbd00953bdfc634cb9a5bc8cd..acdbc576c6fe55856b60d7465014143ae363a625 100644 (file)
 # SIMD assembler flags
 -mmx
 -mmxext
+-mpx
 -sse
 -sse2
 -sse3
 -cpu_flags_x86_fma4
 -cpu_flags_x86_mmx
 -cpu_flags_x86_mmxext
+-cpu_flags_x86_mpx
 -cpu_flags_x86_padlock
 -cpu_flags_x86_popcnt
 -cpu_flags_x86_sse
index 6b71e56ea27a87680b3deb417eb92a73840007a4..bb9bd5852a596ed4ebd4905c40fa81f75813bd21 100644 (file)
 -lilo
 -mmx
 -mmxext
+-mpx
 -sse
 -sse2
 -sse3
 -cpu_flags_x86_fma4
 -cpu_flags_x86_mmx
 -cpu_flags_x86_mmxext
+-cpu_flags_x86_mpx
 -cpu_flags_x86_padlock
 -cpu_flags_x86_popcnt
 -cpu_flags_x86_sse
index ecf733eeffe4c960644775ac88a6f69d63684316..f3ee0650c50cefb3c34842f821a903e316395148 100644 (file)
@@ -74,6 +74,7 @@ kqemu
 lilo
 mmx
 mmxext
+mpx
 sse
 sse2
 sse3
@@ -100,6 +101,7 @@ cpu_flags_x86_fma3
 cpu_flags_x86_fma4
 cpu_flags_x86_mmx
 cpu_flags_x86_mmxext
+cpu_flags_x86_mpx
 cpu_flags_x86_padlock
 cpu_flags_x86_popcnt
 cpu_flags_x86_sse
index 7aaab7ee1a69ac2b72b78d57a6479ea4814b5796..4a12cc6a952683f1e4fbd24aefd55d56771a8667 100644 (file)
@@ -15,6 +15,7 @@ fma3 - Use the Fused Multiply Add 3 instruction set ([fma] in cpuinfo)
 fma4 - Use the Fused Multiply Add 4 instruction set
 mmx - Use the MMX instruction set
 mmxext - Use the Extended MMX instruction set (a subset of SSE) ([mmxext] or [sse] in cpuinfo)
+mpx - Use Memory Protection Extensions (MPX)
 padlock - Use VIA padlock instructions ([phe] in cpuinfo)
 popcnt - Enable popcnt instruction support ([abm] or [popcnt] in cpuinfo)
 sse - Use the SSE instruction set
index 9e45459a24378d1be21459774436a0072cec6aca..7b6c493e9e5df8dc929dfcf632f4a8e03d327a2c 100644 (file)
@@ -19,6 +19,7 @@
       This will slow down the compiler a bit as it forces all of the toolchain to be shared libs.</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="mpx">Enable support for Intel Memory Protection Extensions (MPX)</flag>
     <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag>
     <flag name="multislot">Allow for multiple versions to be emerged at once for same CTARGET</flag>
     <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag>