This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, ARM] Add -mcpu=cortex-m4f


This patch adds -mcpu=cortex-m4f to GAS. It also documents -mcpu=cortex-m4, which is missing. OK?


-- Jie Zhang CodeSourcery
	* config/tc-arm.c (arm_cpus[]): Add cortex-m4f.
	* doc/c-arm.texi: Document -mcpu=cortex-m4 and
	-mcpu=cortex-m4f.

Index: config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.458
diff -u -p -r1.458 tc-arm.c
--- config/tc-arm.c	9 Sep 2010 12:08:12 -0000	1.458
+++ config/tc-arm.c	10 Sep 2010 19:07:44 -0000
@@ -22336,6 +22336,8 @@ static const struct arm_cpu_option_table
   {"cortex-r4",		ARM_ARCH_V7R,	 FPU_NONE,	  NULL},
   {"cortex-r4f",	ARM_ARCH_V7R,	 FPU_ARCH_VFP_V3D16,	  NULL},
   {"cortex-m4",		ARM_ARCH_V7EM,	 FPU_NONE,	  NULL},
+  {"cortex-m4f",	ARM_ARCH_V7EM,	 FPU_ARCH_VFP_V4_SP_D16,
+							  NULL},
   {"cortex-m3",		ARM_ARCH_V7M,	 FPU_NONE,	  NULL},
   {"cortex-m1",		ARM_ARCH_V6M,	 FPU_NONE,	  NULL},
   {"cortex-m0",		ARM_ARCH_V6M,	 FPU_NONE,	  NULL},
Index: doc/c-arm.texi
===================================================================
RCS file: /cvs/src/src/gas/doc/c-arm.texi,v
retrieving revision 1.74
diff -u -p -r1.74 c-arm.texi
--- doc/c-arm.texi	9 Sep 2010 12:08:13 -0000	1.74
+++ doc/c-arm.texi	10 Sep 2010 19:07:44 -0000
@@ -118,6 +118,8 @@ recognized: 
 @code{cortex-a15},
 @code{cortex-r4},
 @code{cortex-r4f},
+@code{cortex-m4},
+@code{cortex-m4f},
 @code{cortex-m3},
 @code{cortex-m1},
 @code{cortex-m0},

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]