[llvm-commits] [llvm-gcc-4.2] r80987 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
Sandeep Patel
deeppatel1987 at gmail.com
Thu Sep 3 22:21:44 PDT 2009
Author: sandeep
Date: Fri Sep 4 00:21:44 2009
New Revision: 80987
URL: http://llvm.org/viewvc/llvm-project?rev=80987&view=rev
Log:
Only default to Thumb-2 on Darwin. Approved by Evan Cheng.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.c?rev=80987&r1=80986&r2=80987&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.c Fri Sep 4 00:21:44 2009
@@ -1467,7 +1467,9 @@
/* APPLE LOCAL begin 6150882 use thumb2 by default for v7 */
/* If we're compiling for v7, we should default to using thumb2
codegen. */
+ /* LLVM LOCAL only default to thumb2 on Darwin to match FSF GCC */
if ((insn_flags & FL_FOR_ARCH7A) == FL_FOR_ARCH7A
+ && TARGET_MACHO
&& thumb_option < 0)
thumb_option = 1;
/* APPLE LOCAL end 6150882 use thumb2 by default for v7 */
More information about the llvm-commits
mailing list