1 CROSS_LIBGCC1 = libgcc1-asm.a
2 LIB1ASMSRC = arm/lib1funcs.asm
3 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX
5 # We want fine grained libraries, so use the new code to build the
6 # floating point emulation libraries.
10 fp-bit.c: $(srcdir)/config/fp-bit.c
11 echo '#define FLOAT' > fp-bit.c
12 echo '#ifndef __ARMEB__' >> fp-bit.c
13 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
14 echo '#endif' >> fp-bit.c
15 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
17 dp-bit.c: $(srcdir)/config/fp-bit.c
18 echo '#ifndef __ARMEB__' > dp-bit.c
19 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
20 echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
21 echo '#endif' >> dp-bit.c
22 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
25 MULTILIB_OPTIONS = marm/mthumb
26 MULTILIB_DIRNAMES = arm thumb
29 # MULTILIB_OPTIONS = mlittle-endian/mbig-endian
30 # MULTILIB_DIRNAMES = le be
31 # MULTILIB_EXCEPTIONS =
32 # MULTILIB_MATCHES = mbig-endian=mbe mlittle-endian=mle
34 # MULTILIB_OPTIONS += mhard-float/msoft-float
35 # MULTILIB_DIRNAMES += fpu soft
37 # MULTILIB_OPTIONS += mapcs-32/mapcs-26
38 # MULTILIB_DIRNAMES += 32bit 26bit
40 # MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
41 # MULTILIB_DIRNAMES += normal interwork
42 # MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork*
44 # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore
45 # MULTILIB_DIRNAMES += elf under
47 # MULTILIB_OPTIONS += mcpu=arm7
48 # MULTILIB_DIRNAMES += nofmult
49 # MULTILIB_EXCEPTIONS += *mthumb-interwork*/*mcpu=arm7*
50 # # We have to match all the arm cpu variants which do not have the
51 # # multiply instruction and treat them as if the user had specified
52 # # -mcpu=arm7. Note that in the following the ? is interpreted as
53 # # an = for the purposes of matching command line options.
54 # # FIXME: There ought to be a better way to do this.
55 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7d
56 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7di
57 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm70
58 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700
59 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700i
60 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710
61 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710c
62 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7100
63 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500
64 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500fe
65 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm6
66 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm60
67 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm600
68 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm610
69 # MULTILIB_MATCHES += mcpu?arm7=mcpu?arm620
71 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
73 # If EXTRA_MULTILIB_PARTS is not defined above then define EXTRA_PARTS here
74 # EXTRA_PARTS = crtbegin.o crtend.o
76 LIBGCC = stmp-multilib
77 INSTALL_LIBGCC = install-multilib
79 # Currently there is a bug somewhere in GCC's alias analysis
80 # or scheduling code that is breaking _fpmul_parts in libgcc1.c.
81 # Disabling function inlining is a workaround for this problem.
82 TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -fno-inline