[llvm-commits] [llvm-gcc-4.2] r64506 - in /llvm-gcc-4.2/trunk/gcc/config: arm/arm.h i386/i386.h rs6000/rs6000.h
Evan Cheng
evan.cheng at apple.com
Fri Feb 13 15:35:33 PST 2009
Author: evancheng
Date: Fri Feb 13 17:35:33 2009
New Revision: 64506
URL: http://llvm.org/viewvc/llvm-project?rev=64506&view=rev
Log:
Translate -msoft-float to -soft-float.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.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=64506&r1=64505&r2=64506&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.h Fri Feb 13 17:35:33 2009
@@ -2922,6 +2922,10 @@
#define LLVM_OVERRIDE_TARGET_ARCH() \
(TARGET_THUMB ? "thumb" : "")
+#define LLVM_SET_MACHINE_OPTIONS(argvec) \
+ if (TARGET_SOFT_FLAT) \
+ argvec.push_back("-soft-float");
+
/* Doing struct copy by partial-word loads and stores is not a good idea on ARM. */
#define TARGET_LLVM_MIN_BYTES_COPY_BY_MEMCPY 4
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.h?rev=64506&r1=64505&r2=64506&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.h Fri Feb 13 17:35:33 2009
@@ -3892,6 +3892,10 @@
if (TARGET_3DNOW) F.AddFeature("3dnow"); \
if (TARGET_3DNOW_A) F.AddFeature("3dnowa"); \
}
+
+#define LLVM_SET_MACHINE_OPTIONS(argvec) \
+ if (!TARGET_80387) \
+ argvec.push_back("-soft-float");
/* LLVM ABI definition macros. */
Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.h?rev=64506&r1=64505&r2=64506&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.h Fri Feb 13 17:35:33 2009
@@ -3463,6 +3463,10 @@
F.AddFeature("64bit", TARGET_POWERPC64); \
}
+#define LLVM_SET_MACHINE_OPTIONS(argvec) \
+ if (TARGET_SOFT_FLAT) \
+ argvec.push_back("-soft-float");
+
/* When -m64 is specified, set the architecture to powerpc64-os-blah even if the
* compiler was configured for powerpc-os-blah.
*/
More information about the llvm-commits
mailing list