]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/mips/t-r3900
configure.in (mips*-*-*): Add a test to see if MIPS libgloss linker scripts use START...
[thirdparty/gcc.git] / gcc / config / mips / t-r3900
CommitLineData
09e4daf5
GK
1CONFIG2_H = $(srcdir)/config/mips/ecoff.h
2
09e4daf5
GK
3LIB1ASMSRC = mips/mips16.S
4LIB1ASMFUNCS = _m16addsf3 _m16subsf3 _m16mulsf3 _m16divsf3 \
5 _m16eqsf2 _m16nesf2 _m16gtsf2 _m16gesf2 _m16lesf2 _m16ltsf2 \
6 _m16fltsisf _m16fixsfsi \
7 _m16adddf3 _m16subdf3 _m16muldf3 _m16divdf3 \
8 _m16extsfdf2 _m16trdfsf2 \
9 _m16eqdf2 _m16nedf2 _m16gtdf2 _m16gedf2 _m16ledf2 _m16ltdf2 \
10 _m16fltsidf _m16fixdfsi \
11 _m16retsf _m16retdf \
12 _m16stub1 _m16stub2 _m16stub5 _m16stub6 _m16stub9 _m16stub10 \
13 _m16stubsf0 _m16stubsf1 _m16stubsf2 _m16stubsf5 _m16stubsf6 \
14 _m16stubsf9 _m16stubsf10 \
15 _m16stubdf0 _m16stubdf1 _m16stubdf2 _m16stubdf5 _m16stubdf6 \
16 _m16stubdf9 _m16stubdf10
17
18# We must build libgcc2.a with -G 0, in case the user wants to link
19# without the $gp register.
20TARGET_LIBGCC2_CFLAGS = -G 0
21
c91fba50
JL
22# We want fine grained libraries, so use the new code to build the
23# floating point emulation libraries.
24FPBIT = fp-bit.c
25DPBIT = dp-bit.c
09e4daf5
GK
26
27dp-bit.c: $(srcdir)/config/fp-bit.c
28 echo '#ifdef __MIPSEL__' > dp-bit.c
29 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
30 echo '#endif' >> dp-bit.c
31 echo '#define US_SOFTWARE_GOFAST' >> dp-bit.c
32 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
33
34fp-bit.c: $(srcdir)/config/fp-bit.c
35 echo '#define FLOAT' > fp-bit.c
36 echo '#ifdef __MIPSEL__' >> fp-bit.c
37 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
38 echo '#endif' >> fp-bit.c
39 echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
40 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
41
d8265d29
CM
42EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
43# Don't let CTOR_LIST end up in sdata section.
44CRTSTUFF_T_CFLAGS = -G 0
45
09e4daf5
GK
46# Build the libraries for both hard and soft floating point
47
48MULTILIB_OPTIONS = msoft-float/msingle-float EL/EB
49MULTILIB_DIRNAMES = soft-float single el eb
50
51LIBGCC = stmp-multilib
52INSTALL_LIBGCC = install-multilib
53
54# Add additional dependencies to recompile selected modules whenever the
55# tm.h file changes. The files compiled are:
56#
57# gcc.c (*_SPEC changes)
58# toplev.c (new switches + assembly output changes)
59# sdbout.c (debug format changes)
60# dbxout.c (debug format changes)
61# dwarfout.c (debug format changes)
62# final.c (assembly output changes)
63# varasm.c (assembly output changes)
64# cse.c (cost functions)
65# insn-output.c (possible ifdef changes in tm.h)
66# regclass.c (fixed/call used register changes)
09e4daf5
GK
67# explow.c (GO_IF_LEGITIMATE_ADDRESS)
68# recog.c (GO_IF_LEGITIMATE_ADDRESS)
69# reload.c (GO_IF_LEGITIMATE_ADDRESS)
70
71gcc.o: $(CONFIG2_H)
72toplev.o: $(CONFIG2_H)
73sdbout.o: $(CONFIG2_H)
74dbxout.o: $(CONFIG2_H)
75dwarfout.o: $(CONFIG2_H)
76final.o: $(CONFIG2_H)
77varasm.o: $(CONFIG2_H)
78cse.o: $(CONFIG2_H)
79insn-output.o: $(CONFIG2_H)
80regclass.o: $(CONFIG2_H)
09e4daf5
GK
81explow.o: $(CONFIG2_H)
82recog.o: $(CONFIG2_H)
83reload.o: $(CONFIG2_H)