This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 V7E-M support for newlib and lib1funcs.asm


The attached patches add support for the ARM V7E-M architecture, considering the __ARM_ARCH_7EM__ macro that gcc already defines when the architecture option is specified.

I'm sending these patches in a single mail since they are closely related (my apologies if it shouldn't be this way).

In the case of newlib, please commit it for me if accepted since I don't have write access.

In the case of gcc, please let me know if OK to commit.

Thanks,
	Daniel.

newlib ChangeLog:
2010-02-08  Daniel Gutson  <dgutson@codesourcery.com>

	newlib/
	* libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__
	added to the preprocessor condition.

gcc ChangeLog:
2010-02-08  Daniel Gutson  <dgutson@codesourcery.com>
	gcc/
	* config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
	added to the preprocessor condition.

--
Daniel Gutson
CodeSourcery
www.codesourcery.com
? armv7em_newlib.patch
Index: newlib/libc/machine/arm/arm_asm.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/arm/arm_asm.h,v
retrieving revision 1.2
diff -u -p -r1.2 arm_asm.h
--- newlib/libc/machine/arm/arm_asm.h	10 Mar 2009 09:02:32 -0000	1.2
+++ newlib/libc/machine/arm/arm_asm.h	8 Feb 2010 20:02:53 -0000
@@ -51,7 +51,8 @@
 #define _ISA_ARM_4T
 #endif
 
-#if defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7__)
+#if defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7__) || \
+    defined (__ARM_ARCH_7EM__)
 #define _ISA_THUMB_2
 #endif
 
Index: gcc/config/arm/lib1funcs.asm
===================================================================
--- gcc/config/arm/lib1funcs.asm	(revision 156608)
+++ gcc/config/arm/lib1funcs.asm	(working copy)
@@ -95,7 +95,8 @@ see the files COPYING3 and COPYING.RUNTI
 #endif
 
 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
-	|| defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__)
+	|| defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
+	|| defined(__ARM_ARCH_7EM__)
 # define __ARM_ARCH__ 7
 #endif
 

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