t-xscale-coff revision 256281
1653SjoehwLIB1ASMSRC = arm/lib1funcs.asm
2653SjoehwLIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX
3653Sjoehw
4742Sdarcy# We want fine grained libraries, so use the new code to build the
5742Sdarcy# floating point emulation libraries.
6742SdarcyFPBIT = fp-bit.c
7742SdarcyDPBIT = dp-bit.c
8742Sdarcy
9742Sdarcyfp-bit.c: $(srcdir)/config/fp-bit.c
10742Sdarcy	echo '#define FLOAT' > fp-bit.c
11742Sdarcy	echo '#ifndef __ARMEB__' >> fp-bit.c
12742Sdarcy	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
13742Sdarcy	echo '#endif' >> fp-bit.c
14672Sjoehw	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
15682Sjoehw
16672Sjoehwdp-bit.c: $(srcdir)/config/fp-bit.c
17968Sfyuan	echo '#ifndef __ARMEB__' > dp-bit.c
18968Sfyuan	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
19968Sfyuan	echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
20968Sfyuan	echo '#endif' >> dp-bit.c
21968Sfyuan	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
22682Sjoehw
23961SdarcyMULTILIB_OPTIONS     = mbig-endian
24742SdarcyMULTILIB_DIRNAMES    = be
25742SdarcyMULTILIB_EXCEPTIONS  = 
261108SalanbMULTILIB_MATCHES     = mbig-endian=mbe mlittle-endian=mle
27971Smchung
28971Smchung# Note XScale does not support hard FP
29971Smchung
301114SjlahodaMULTILIB_OPTIONS    += mthumb-interwork
311114SjlahodaMULTILIB_DIRNAMES   += interwork
321114Sjlahoda
33MULTILIB_OPTIONS    += mthumb
34MULTILIB_DIRNAMES   += thumb
35MULTILIB_EXCEPTIONS += *mhard-float/*mthumb*
36
37MULTILIB_REDUNDANT_DIRS = interwork/thumb=thumb
38
39LIBGCC               = stmp-multilib
40INSTALL_LIBGCC       = install-multilib
41
42# Currently there is a bug somewhere in GCC's alias analysis
43# or scheduling code that is breaking _fpmul_parts in fp-bit.c.
44# Disabling function inlining is a workaround for this problem.
45TARGET_LIBGCC2_CFLAGS = -fno-inline
46