aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mn10200/t-mn10200
blob: 9486837cd9ae89501ca7d81094c03862a05fc16d (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
50
LIBGCC1=libgcc1.null
CROSS_LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = mn10200/lib1funcs.asm
LIB1ASMFUNCS    = _divhi3 \
		  _modhi3 \
		  _addsi3 \
		  _subsi3 \
		  _mulsi3 \
		  _ashlsi3 \
		  _lshrsi3 \
		  _ashrsi3 \
		  _negsi2_d0 \
		  _negsi2_d2 \
		  _zero_extendpsisi2_d0 \
		  _zero_extendpsisi2_d2 \
		  _sign_extendpsisi2_d0 \
		  _sign_extendpsisi2_d2 \
		  _truncsipsi2_d0_d0 \
		  _truncsipsi2_d0_d1 \
		  _truncsipsi2_d0_d2 \
		  _truncsipsi2_d0_d3 \
		  _truncsipsi2_d2_d0 \
		  _truncsipsi2_d2_d1 \
		  _truncsipsi2_d2_d2 \
		  _truncsipsi2_d2_d3 \
		  _cmpsi2 \
		  _ucmpsi2 \
		  _prologue \
		  _epilogue_a0 \
		  _epilogue_d0 \
		  _epilogue_noreturn


# These are really part of libgcc1, but this will cause them to be
# built correctly, so...

# We do not have DF or DI types, so fake out the libgcc2 compilation.
TARGET_LIBGCC2_CFLAGS=-DDF=SF -DDI=SI
LIB2FUNCS_EXTRA = fp-bit.c $(srcdir)/config/mn10200/udivmodsi4.c \
	$(srcdir)/config/mn10200/divmod.c $(srcdir)/config/mn10200/udivmod.c

fp-bit.c: $(srcdir)/config/fp-bit.c
	echo '#define FLOAT' > fp-bit.c
	echo '#define FLOAT_ONLY' >> fp-bit.c
	echo '#define SMALL_MACHINE' >> fp-bit.c
	echo '#define CMPtype HItype' >> fp-bit.c
	echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
	echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
	echo '#endif' 		>> fp-bit.c
	cat $(srcdir)/config/fp-bit.c >> fp-bit.c