blob: 7a59a705c8308dcd2e887190c7d723a4f020982c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
LIB1ASMSRC = ip2k/libgcc.S
LIB1ASMFUNCS = \
_indcall \
_mulhi3 \
_mulsi3 \
_muldi3 \
_udivmodhi4 \
_divmodhi4 \
_udivmodsi4 \
_divmodsi4 \
_udivmoddi4 \
_divmoddi4 \
_cmpqi2 \
_cmphi2 \
_cmpsi2 \
_cmpdi2 \
_cmpdi2_dp \
_fp_pop_args_ret \
_pop2_args_ret \
_leaf_fp_pop_args_ret \
_movstrhi_countqi \
_movstrhi_counthi \
abort \
_exit
# libgcc2.h thinks that nobody would have SI mode when
# MIN_UNITS_PER_WORD == 1, so lie to keep from major compiler errors.
TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -DDF=SF -g -DMIN_UNITS_PER_WORD=2
fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/ip2k/t-ip2k crt0.o
echo '#define FLOAT' > fp-bit.c
echo '#define FLOAT_ONLY' >> fp-bit.c
echo '#define DF SF' >> fp-bit.c
echo '#define DI SI' >> fp-bit.c
echo '#define CMPtype QItype' >> fp-bit.c
echo '#define SMALL_MACHINE' >> fp-bit.c
echo 'typedef int QItype __attribute__ ((mode (QI)));' >> fp-bit.c
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
FPBIT = fp-bit.c
# Our crt0 is written in assembler and we don't really support profiling.
CRT0_S = $(srcdir)/config/ip2k/crt0.S
MCRT0_S = $(CRT0_S)
|