1# Just for these, we omit the frame pointer since it makes such a big
2# difference.  It is then pointless adding debugging.
3TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer
4LIBGCC2_DEBUG_CFLAGS = -g0
5
6LIB1ASMSRC = arm/lib1funcs.asm
7LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX _interwork_call_via_rX
8
9# We want fine grained libraries, so use the new code to build the
10# floating point emulation libraries.
11FPBIT = fp-bit.c
12DPBIT = dp-bit.c
13
14fp-bit.c: $(srcdir)/config/fp-bit.c
15	echo '#ifdef __SOFTFP__' > fp-bit.c
16	echo '#define FLOAT' >> fp-bit.c
17	echo '#ifndef __ARMEB__' >> fp-bit.c
18	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
19	echo '#endif' >> fp-bit.c
20	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
21	echo '#endif' >> fp-bit.c
22
23dp-bit.c: $(srcdir)/config/fp-bit.c
24	echo '#ifdef __SOFTFP__' > dp-bit.c
25	echo '#ifndef __ARMEB__' >> dp-bit.c
26	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
27	echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
28	echo '#endif' >> dp-bit.c
29	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
30	echo '#endif' >> dp-bit.c
31
32MULTILIB_OPTIONS = msoft-float mbig-endian mwords-little-endian
33MULTILIB_DIRNAMES = soft big wlittle
34MULTILIB_EXCEPTIONS = mwords-little-endian msoft-float/mwords-little-endian
35
36LIBGCC = stmp-multilib
37INSTALL_LIBGCC = install-multilib
38