t-xscale-coff revision 169689
10Sstevel@tonic-gateLIB1ASMSRC = arm/lib1funcs.asm
20Sstevel@tonic-gateLIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX
30Sstevel@tonic-gate
40Sstevel@tonic-gate# We want fine grained libraries, so use the new code to build the
50Sstevel@tonic-gate# floating point emulation libraries.
60Sstevel@tonic-gateFPBIT = fp-bit.c
70Sstevel@tonic-gateDPBIT = dp-bit.c
80Sstevel@tonic-gate
90Sstevel@tonic-gatefp-bit.c: $(srcdir)/config/fp-bit.c
100Sstevel@tonic-gate	echo '#define FLOAT' > fp-bit.c
110Sstevel@tonic-gate	echo '#ifndef __ARMEB__' >> fp-bit.c
120Sstevel@tonic-gate	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
130Sstevel@tonic-gate	echo '#endif' >> fp-bit.c
140Sstevel@tonic-gate	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
150Sstevel@tonic-gate
160Sstevel@tonic-gatedp-bit.c: $(srcdir)/config/fp-bit.c
170Sstevel@tonic-gate	echo '#ifndef __ARMEB__' > dp-bit.c
180Sstevel@tonic-gate	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
190Sstevel@tonic-gate	echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
200Sstevel@tonic-gate	echo '#endif' >> dp-bit.c
210Sstevel@tonic-gate	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
220Sstevel@tonic-gate
230Sstevel@tonic-gateMULTILIB_OPTIONS     = mbig-endian
240Sstevel@tonic-gateMULTILIB_DIRNAMES    = be
250Sstevel@tonic-gateMULTILIB_EXCEPTIONS  = 
260Sstevel@tonic-gateMULTILIB_MATCHES     = mbig-endian=mbe mlittle-endian=mle
270Sstevel@tonic-gate
280Sstevel@tonic-gate# Note XScale does not support hard FP
290Sstevel@tonic-gate
300Sstevel@tonic-gateMULTILIB_OPTIONS    += mthumb-interwork
310Sstevel@tonic-gateMULTILIB_DIRNAMES   += interwork
320Sstevel@tonic-gate
330Sstevel@tonic-gateMULTILIB_OPTIONS    += mthumb
340Sstevel@tonic-gateMULTILIB_DIRNAMES   += thumb
350Sstevel@tonic-gateMULTILIB_EXCEPTIONS += *mhard-float/*mthumb*
360Sstevel@tonic-gate
370Sstevel@tonic-gateMULTILIB_REDUNDANT_DIRS = interwork/thumb=thumb
380Sstevel@tonic-gate
390Sstevel@tonic-gateLIBGCC               = stmp-multilib
400Sstevel@tonic-gateINSTALL_LIBGCC       = install-multilib
410Sstevel@tonic-gate
420Sstevel@tonic-gate# Currently there is a bug somewhere in GCC's alias analysis
430Sstevel@tonic-gate# or scheduling code that is breaking _fpmul_parts in fp-bit.c.
440Sstevel@tonic-gate# Disabling function inlining is a workaround for this problem.
450Sstevel@tonic-gateTARGET_LIBGCC2_CFLAGS = -fno-inline
460Sstevel@tonic-gate