1LIB1ASMSRC = arm/lib1funcs.asm 2LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX 3 4# We want fine grained libraries, so use the new code to build the 5# floating point emulation libraries. 6FPBIT = fp-bit.c 7DPBIT = dp-bit.c 8 9fp-bit.c: $(srcdir)/config/fp-bit.c 10 echo '#define FLOAT' > fp-bit.c 11 echo '#ifndef __ARMEB__' >> fp-bit.c 12 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c 13 echo '#endif' >> fp-bit.c 14 cat $(srcdir)/config/fp-bit.c >> fp-bit.c 15 16dp-bit.c: $(srcdir)/config/fp-bit.c 17 echo '#ifndef __ARMEB__' > dp-bit.c 18 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c 19 echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c 20 echo '#endif' >> dp-bit.c 21 cat $(srcdir)/config/fp-bit.c >> dp-bit.c 22 23MULTILIB_OPTIONS = mlittle-endian/mbig-endian 24MULTILIB_DIRNAMES = le be 25MULTILIB_EXCEPTIONS = 26MULTILIB_MATCHES = mbig-endian=mbe mlittle-endian=mle 27 28# Note XScale does not support 26 bit APCS. 29# Note XScale does not support hard FP 30 31MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork 32MULTILIB_DIRNAMES += normal interwork 33 34MULTILIB_OPTIONS += marm/mthumb 35MULTILIB_DIRNAMES += arm thumb 36MULTILIB_EXCEPTIONS += *mhard-float/*mthumb* 37 38MULTILIB_REDUNDANT_DIRS = interwork/thumb=thumb 39 40EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o 41 42LIBGCC = stmp-multilib 43INSTALL_LIBGCC = install-multilib 44 45# Currently there is a bug somewhere in GCC's alias analysis 46# or scheduling code that is breaking _fpmul_parts in fp-bit.c. 47# Disabling function inlining is a workaround for this problem. 48TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -fno-inline 49 50# Assemble startup files. 51$(T)crti.o: $(srcdir)/config/arm/crti.asm $(GCC_PASSES) 52 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ 53 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/arm/crti.asm 54 55$(T)crtn.o: $(srcdir)/config/arm/crtn.asm $(GCC_PASSES) 56 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ 57 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/arm/crtn.asm 58