1 # lib1funcs.asm is currently empty.
4 # These are really part of libgcc1, but this will cause them to be
5 # built correctly, so...
7 LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
9 # Turn off the SDA while compiling libgcc2. There are no headers for it
10 # and we want maximal upward compatibility here.
12 TARGET_LIBGCC2_CFLAGS = -G 0
14 fp-bit.c: $(srcdir)/config/fp-bit.c
15 echo '#define FLOAT' > fp-bit.c
16 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
18 dp-bit.c: $(srcdir)/config/fp-bit.c
19 cat $(srcdir)/config/fp-bit.c > dp-bit.c
21 # We need to use -fpic when we are using gcc to compile the routines in
22 # initfini.c. This is only really needed when we are going to use gcc/g++
23 # to produce a shared library, but since we don't know ahead of time when
24 # we will be doing that, we just always use -fpic when compiling the
25 # routines in initfini.c.
26 # -fpic currently isn't supported for the m32r.
30 # .init/.fini section routines
32 crtinit.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
33 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
34 -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
35 -g0 -c $(srcdir)/config/m32r/initfini.c -o crtinit.o
37 crtfini.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
38 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
39 -DCRT_FINI -finhibit-size-directive -fno-inline-functions \
40 -g0 -c $(srcdir)/config/m32r/initfini.c -o crtfini.o
42 # -mmodel={small,medium} requires separate libraries.
43 # We don't build libraries for the large model, instead we use the medium
44 # libraries. The only difference is that the large model can handle jumps
45 # more than 26 signed bits away.
47 MULTILIB_OPTIONS = mmodel=small/mmodel=medium
48 MULTILIB_DIRNAMES = small medium
49 MULTILIB_MATCHES = mmodel?medium=mmodel?large
51 # Set MULTILIB_EXTRA_OPTS so shipped libraries have small data in .sdata and
53 # This is important for objects referenced in system header files.
54 MULTILIB_EXTRA_OPTS = msdata=sdata
56 LIBGCC = stmp-multilib
57 INSTALL_LIBGCC = install-multilib