Hi Joey,

Attached patch is a backport to support cortex-r7 in gcc command line.
Tested and it works.

Is it OK to commit?

BR,
Terry

2013-08-05  Terry Guo  <terry....@arm.com>

        Backport from mainline r197153
        2013-03-27  Terry Guo  <terry....@arm.com>

        * config/arm/arm-cores.def: Added core cortex-r7.
        * config/arm/arm-tune.md: Regenerated.
        * config/arm/arm-tables.opt: Regenerated.
        * doc/invoke.texi: Added entry for core cortex-r7.
Index: gcc/config/arm/arm-tables.opt
===================================================================
--- gcc/config/arm/arm-tables.opt       (revision 201479)
+++ gcc/config/arm/arm-tables.opt       (working copy)
@@ -259,6 +259,9 @@
 Enum(processor_type) String(cortex-r5) Value(cortexr5)
 
 EnumValue
+Enum(processor_type) String(cortex-r7) Value(cortexr7)
+
+EnumValue
 Enum(processor_type) String(cortex-m4) Value(cortexm4)
 
 EnumValue
Index: gcc/config/arm/arm-cores.def
===================================================================
--- gcc/config/arm/arm-cores.def        (revision 201479)
+++ gcc/config/arm/arm-cores.def        (working copy)
@@ -132,6 +132,7 @@
 ARM_CORE("cortex-r4",    cortexr4,     7R,                              
FL_LDSCHED, cortex)
 ARM_CORE("cortex-r4f",   cortexr4f,    7R,                              
FL_LDSCHED, cortex)
 ARM_CORE("cortex-r5",    cortexr5,     7R,                              
FL_LDSCHED | FL_ARM_DIV, cortex)
+ARM_CORE("cortex-r7",    cortexr7,     7R,                              
FL_LDSCHED | FL_ARM_DIV, cortex)
 ARM_CORE("cortex-m4",    cortexm4,     7EM,                             
FL_LDSCHED, cortex)
 ARM_CORE("cortex-m3",    cortexm3,     7M,                              
FL_LDSCHED, cortex)
 ARM_CORE("cortex-m1",    cortexm1,     6M,                              
FL_LDSCHED, v6m)
Index: gcc/config/arm/arm-tune.md
===================================================================
--- gcc/config/arm/arm-tune.md  (revision 201479)
+++ gcc/config/arm/arm-tune.md  (working copy)
@@ -1,5 +1,5 @@
 ;; -*- buffer-read-only: t -*-
 ;; Generated automatically by gentune.sh from arm-cores.def
 (define_attr "tune"
-       
"arm2,arm250,arm3,arm6,arm60,arm600,arm610,arm620,arm7,arm7d,arm7di,arm70,arm700,arm700i,arm710,arm720,arm710c,arm7100,arm7500,arm7500fe,arm7m,arm7dm,arm7dmi,arm8,arm810,strongarm,strongarm110,strongarm1100,strongarm1110,fa526,fa626,arm7tdmi,arm7tdmis,arm710t,arm720t,arm740t,arm9,arm9tdmi,arm920,arm920t,arm922t,arm940t,ep9312,arm10tdmi,arm1020t,arm9e,arm946es,arm966es,arm968es,arm10e,arm1020e,arm1022e,xscale,iwmmxt,iwmmxt2,fa606te,fa626te,fmp626,fa726te,arm926ejs,arm1026ejs,arm1136js,arm1136jfs,arm1176jzs,arm1176jzfs,mpcorenovfp,mpcore,arm1156t2s,arm1156t2fs,genericv7a,cortexa5,cortexa7,cortexa8,cortexa9,cortexa15,cortexr4,cortexr4f,cortexr5,cortexm4,cortexm3,cortexm1,cortexm0,cortexm0plus,marvell_pj4"
+       
"arm2,arm250,arm3,arm6,arm60,arm600,arm610,arm620,arm7,arm7d,arm7di,arm70,arm700,arm700i,arm710,arm720,arm710c,arm7100,arm7500,arm7500fe,arm7m,arm7dm,arm7dmi,arm8,arm810,strongarm,strongarm110,strongarm1100,strongarm1110,fa526,fa626,arm7tdmi,arm7tdmis,arm710t,arm720t,arm740t,arm9,arm9tdmi,arm920,arm920t,arm922t,arm940t,ep9312,arm10tdmi,arm1020t,arm9e,arm946es,arm966es,arm968es,arm10e,arm1020e,arm1022e,xscale,iwmmxt,iwmmxt2,fa606te,fa626te,fmp626,fa726te,arm926ejs,arm1026ejs,arm1136js,arm1136jfs,arm1176jzs,arm1176jzfs,mpcorenovfp,mpcore,arm1156t2s,arm1156t2fs,genericv7a,cortexa5,cortexa7,cortexa8,cortexa9,cortexa15,cortexr4,cortexr4f,cortexr5,cortexr7,cortexm4,cortexm3,cortexm1,cortexm0,cortexm0plus,marvell_pj4"
        (const (symbol_ref "((enum attr_tune) arm_tune)")))
Index: gcc/ChangeLog.arm
===================================================================
--- gcc/ChangeLog.arm   (revision 201479)
+++ gcc/ChangeLog.arm   (working copy)
@@ -1,3 +1,13 @@
+2013-08-05  Terry Guo  <terry....@arm.com>
+
+       Backport from mainline r197153
+       2013-03-27  Terry Guo  <terry....@arm.com>
+
+       * config/arm/arm-cores.def: Added core cortex-r7.
+       * config/arm/arm-tune.md: Regenerated.
+       * config/arm/arm-tables.opt: Regenerated.
+       * doc/invoke.texi: Added entry for core cortex-r7.
+
 2013-07-24  Terry Guo  <terry....@arm.com>
 
        * configure.ac (with_multilib_list): Export its value.
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi (revision 201479)
+++ gcc/doc/invoke.texi (working copy)
@@ -11264,7 +11264,7 @@
 @samp{arm1156t2-s}, @samp{arm1156t2f-s}, @samp{arm1176jz-s}, 
@samp{arm1176jzf-s},
 @samp{cortex-a5}, @samp{cortex-a7}, @samp{cortex-a8}, @samp{cortex-a9}, 
 @samp{cortex-a15}, @samp{cortex-r4}, @samp{cortex-r4f}, @samp{cortex-r5},
-@samp{cortex-m4}, @samp{cortex-m3},
+@samp{cortex-r7}, @samp{cortex-m4}, @samp{cortex-m3},
 @samp{cortex-m1},
 @samp{cortex-m0},
 @samp{cortex-m0plus},

Reply via email to