[llvm-commits] [llvm-gcc-4.2] r66438 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Evan Cheng
evan.cheng at apple.com
Mon Mar 9 13:26:59 PDT 2009
Author: evancheng
Date: Mon Mar 9 15:26:59 2009
New Revision: 66438
URL: http://llvm.org/viewvc/llvm-project?rev=66438&view=rev
Log:
Encode arm arch version in thumb triplets as well.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.h?rev=66438&r1=66437&r2=66438&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.h Mon Mar 9 15:26:59 2009
@@ -2949,8 +2949,22 @@
} \
}
-#define LLVM_OVERRIDE_TARGET_ARCH() \
- (TARGET_THUMB ? "thumb" : "")
+/* Encode arm / thumb modes and arm subversion number in the triplet. e.g.
+ * armv6-apple-darwin, thumbv5-apple-darwin. FIXME: Replace thumb triplets
+ * with function notes.
+ */
+#define LLVM_OVERRIDE_TARGET_ARCH() \
+ (TARGET_THUMB \
+ ? (arm_arch6 \
+ ? "thumbv6" : (arm_arch5e \
+ ? "thumbv5e" : (arm_arch5 \
+ ? "thumbv5" : (arm_arch4t \
+ ? "thumbv4t" : "")))) \
+ : (arm_arch6 \
+ ? "armv6" : (arm_arch5e \
+ ? "armv5e" : (arm_arch5 \
+ ? "armv5" : (arm_arch4t \
+ ? "armv4t" : "")))))
#define LLVM_SET_MACHINE_OPTIONS(argvec) \
if (TARGET_SOFT_FLOAT) \
More information about the llvm-commits
mailing list