[llvm-commits] [llvm] r141365 - in /llvm/trunk: lib/Target/ARM/ARMISelDAGToDAG.cpp lib/Target/ARM/ARMISelLowering.cpp lib/Target/ARM/ARMInstrInfo.td lib/Target/ARM/ARMInstrThumb2.td test/CodeGen/ARM/iabs.ll test/CodeGen/Thumb/iabs.ll

Anton Korobeynikov anton at korobeynikov.info
Fri Oct 7 14:47:50 PDT 2011


Hello Ana,

> This is command line I used:
> clang -c -ccc-host-triple armv6-none-linux-gnueabi -mfloat-abi=softfp
> -integrated-as -O3 -o floatsidf.o floatsidf.c
Do not use integrated-as here.

The full cmdline (thanks to Eric!) is:
/Volumes/Data/builds/build-llvm/Debug+Asserts/bin/clang
-no-integrated-as -ccc-install-dir
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ -arch armv6
-fvisibility=hidden -DVISIBILITY_HIDDEN -mkernel -DKERNEL_USE -Wall
-Werror -O3 -fomit-frame-pointer -miphoneos-version-min=1.0 -mthumb -c
-o /Volumes/Data/builds/build-llvm/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/floatsidf.o
/Volumes/Data/sources/llvm/projects/compiler-rt/lib/floatsidf.c -v

You should at least add -mthumb. For me it seems it tried to assemble
thumb-2 code in thumb-1 mode.

I will provide more info in 5 mins.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list