Patchwork [ARM] Add support for Cortex-A7 to GCC -mcpu=native option.

login
register
mail settings
Submitter Kyrylo Tkachov
Date Dec. 18, 2012, 1:38 p.m.
Message ID <002e01cddd24$e8d27440$ba775cc0$@tkachov@arm.com>
Download mbox | patch
Permalink /patch/207116/
State New
Headers show

Comments

Kyrylo Tkachov - Dec. 18, 2012, 1:38 p.m.
Hi all,
This one-line patch adds support for Cortex A-7 to the -mcpu=native option.

Ok for trunk?

No regressions on arm-none-eabi.

Thanks,
Kyrill

gcc/ChangeLog

2012-12-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/driver-arm.c (arm_cpu_table):
        Add Cortex-A7.
Richard Earnshaw - Dec. 18, 2012, 4:38 p.m.
On 18/12/12 13:38, Kyrylo Tkachov wrote:
> Hi all,
> This one-line patch adds support for Cortex A-7 to the -mcpu=native option.
>
> Ok for trunk?
>
> No regressions on arm-none-eabi.
>
> Thanks,
> Kyrill
>
> gcc/ChangeLog
>
> 2012-12-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
> 	* config/arm/driver-arm.c (arm_cpu_table):
>          Add Cortex-A7.
>

OK.

R.

Patch

diff --git a/gcc/config/arm/driver-arm.c b/gcc/config/arm/driver-arm.c
index 3e14b14..3a17e10 100644
--- a/gcc/config/arm/driver-arm.c
+++ b/gcc/config/arm/driver-arm.c
@@ -37,6 +37,7 @@  static struct vendor_cpu arm_cpu_table[] = {
     {"0xb56", "armv6t2", "arm1156t2-s"},
     {"0xb76", "armv6zk", "arm1176jz-s"},
     {"0xc05", "armv7-a", "cortex-a5"},
+    {"0xc07", "armv7-a", "cortex-a7"},
     {"0xc08", "armv7-a", "cortex-a8"},
     {"0xc09", "armv7-a", "cortex-a9"},
     {"0xc0f", "armv7-a", "cortex-a15"},