1 1.1.1.2 mrg ifeq (,$(findstring __symbian__,$(shell $(gcc_compile_bare) -dM -E - </dev/null))) 2 1.1.1.2 mrg 3 1.1.1.2 mrg ARM_ISA:=$(findstring __ARM_ARCH_ISA_ARM,$(shell $(gcc_compile_bare) -dM -E - </dev/null)) 4 1.1.1.2 mrg THUMB1_ISA:=$(findstring __ARM_ARCH_ISA_THUMB 1,$(shell $(gcc_compile_bare) -dM -E - </dev/null)) 5 1.1.1.2 mrg 6 1.1.1.2 mrg # The condition here must match the one in gcc/config/arm/elf.h and 7 1.1.1.2 mrg # libgcc/config/arm/lib1funcs.S. _arm_muldf3 and _arm_mulsf3 must be included 8 1.1.1.2 mrg # first so that the weak multiplication symbols in the corresponding files are 9 1.1.1.2 mrg # chosen over the global symbols that _arm_muldivdf3 and _arm_muldivsf3 10 1.1.1.2 mrg # inclusion create when only multiplication is used, thus avoiding pulling in 11 1.1.1.2 mrg # useless division code. 12 1.1.1.2 mrg ifneq (__ARM_ARCH_ISA_THUMB 1,$(ARM_ISA)$(THUMB1_ISA)) 13 1.1.1.2 mrg LIB1ASMFUNCS += _arm_muldf3 _arm_mulsf3 14 1.1.1.2 mrg endif 15 1.1.1.2 mrg endif # !__symbian__ 16 1.1.1.2 mrg 17 1.1 mrg # For most CPUs we have an assembly soft-float implementations. 18 1.1 mrg # However this is not true for ARMv6M. Here we want to use the soft-fp C 19 1.1 mrg # implementation. The soft-fp code is only build for ARMv6M. This pulls 20 1.1 mrg # in the asm implementation for other CPUs. 21 1.1 mrg LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \ 22 1.1 mrg _call_via_rX _interwork_call_via_rX \ 23 1.1 mrg _lshrdi3 _ashrdi3 _ashldi3 \ 24 1.1 mrg _arm_negdf2 _arm_addsubdf3 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \ 25 1.1 mrg _arm_fixdfsi _arm_fixunsdfsi \ 26 1.1 mrg _arm_truncdfsf2 _arm_negsf2 _arm_addsubsf3 _arm_muldivsf3 \ 27 1.1 mrg _arm_cmpsf2 _arm_unordsf2 _arm_fixsfsi _arm_fixunssfsi \ 28 1.1 mrg _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \ 29 1.1 mrg _clzsi2 _clzdi2 _ctzsi2 30 1.1 mrg 31 1.1 mrg # Currently there is a bug somewhere in GCC's alias analysis 32 1.1 mrg # or scheduling code that is breaking _fpmul_parts in fp-bit.c. 33 1.1 mrg # Disabling function inlining is a workaround for this problem. 34 1.1 mrg HOST_LIBGCC2_CFLAGS += -fno-inline 35