diff mbox

[arm-embedded,GCC/ARM] Add multilib mapping for Cortex-M23 & Cortex-M33

Message ID c0eda825-31bf-18c0-dbe7-6411087d0c89@foss.arm.com
State New
Headers show

Commit Message

Thomas Preudhomme Dec. 1, 2016, 10:10 a.m. UTC
Hi,

We have decided to backport this patch to add multilib support for ARM 
Cortex-M23 and Cortex-M33 to our embedded-6-branch.


*** gcc/ChangeLog ***

2016-11-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>

         * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.


Best regards,

Thomas
Hi,

With ARM Cortex-M23 and Cortex-M33 and the support for RM profile multilib added 
recently, it's time to add the corresponding CPU to architecture mappings in 
config/arm/t-rmprofile. Note that Cortex-M33 is mapped to ARMv8-M Mainline 
because there is no transitive closure of mappings and the multilib for ARMv8-M 
Mainline with DSP extensions is ARMv8-M Mainline.

ChangeLog entry is as follows:


*** gcc/ChangeLog ***

2016-11-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>

         * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.


Testing: Linking fails before this patch when targeting one of these two cores 
and using rmprofile multilib but succeeds with the patch.

Is this ok for stage3?

Best regards,

Thomas
diff mbox

Patch

diff --git a/gcc/config/arm/t-rmprofile b/gcc/config/arm/t-rmprofile
index c8b5c9cbd03694eea69855e20372afa3e97d6b4c..93aa909b4d942ad9875a95e0d4397ff17b317905 100644
--- a/gcc/config/arm/t-rmprofile
+++ b/gcc/config/arm/t-rmprofile
@@ -102,6 +102,8 @@  MULTILIB_MATCHES       += march?armv6s-m=mcpu?cortex-m1.small-multiply
 MULTILIB_MATCHES       += march?armv7-m=mcpu?cortex-m3
 MULTILIB_MATCHES       += march?armv7e-m=mcpu?cortex-m4
 MULTILIB_MATCHES       += march?armv7e-m=mcpu?cortex-m7
+MULTILIB_MATCHES       += march?armv8-m.base=mcpu?cortex-m23
+MULTILIB_MATCHES       += march?armv8-m.main=mcpu?cortex-m33
 MULTILIB_MATCHES       += march?armv7=mcpu?cortex-r4
 MULTILIB_MATCHES       += march?armv7=mcpu?cortex-r4f
 MULTILIB_MATCHES       += march?armv7=mcpu?cortex-r5