Hi,
An internal user reported that -march=armv8-a+crc wasn't allowing the
driver to pick up the right multilib for an arm-none-eabi toolchain
configured with --with-multilib-list=aprofile.
Without this patch on arm-none-eabi with
--with-multilib-list=aprofile prints.
$)./xgcc -S -O2 -march=armv8-a+crc -mfpu=neon -mfloat-abi=softfp
-print-multi-directory /tmp/tst.c
.
$) with this patch
$>./xgcc -S -O2 -march=armv8-a+crc -mfpu=neon -mfloat-abi=softfp
-print-multi-directory /tmp/tst.c
v7-a/simdv1/softfp
Applied to trunk after simple cross build and test on arm-none-eabi. I
intend to backport the same to the 4.9 branch as the issue exists there
too and this is just in the configury and build of the baremetal toolchain.
regards
Ramana
2014-11-28 Ramana Radhakrishnan <ramana.radhakrish...@arm.com>
* config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
-march=armv8-a+crc.
diff --git a/gcc/config/arm/t-aprofile b/gcc/config/arm/t-aprofile
index ff9e2e1..86741e6 100644
--- a/gcc/config/arm/t-aprofile
+++ b/gcc/config/arm/t-aprofile
@@ -88,6 +88,9 @@ MULTILIB_MATCHES += march?armv8-a=mcpu?cortex-a53
MULTILIB_MATCHES += march?armv8-a=mcpu?cortex-a57
MULTILIB_MATCHES += march?armv8-a=mcpu?cortex-a57.cortex-a53
+# Arch Matches
+MULTILIB_MATCHES += march?armv8-a=march?armv8-a+crc
+
# FPU matches
MULTILIB_MATCHES += mfpu?vfpv3-d16=mfpu?vfpv3
MULTILIB_MATCHES += mfpu?vfpv3-d16=mfpu?vfpv3-fp16