summaryrefslogtreecommitdiff
path: root/libgcc/config/picochip/t-picochip
blob: 4de5dbbdcd3462d0736cdea8a5033cb40e675f4f (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
# Prevent some of the more complicated libgcc functions from being
# compiled.  This is because they are generally too big to fit into an
# AE anyway, so there is no point in having them.  Also, some don't
# compile properly so we'll ignore them for the moment.
LIB1ASMSRC = picochip/lib1funcs.S
LIB1ASMFUNCS = _mulsc3 _divsc3

# Compile the extra library functions.
LIB2ADD = \
	$(srcdir)/config/picochip/ashrsi3.S 		\
	$(srcdir)/config/picochip/ashlsi3.S		\
	$(srcdir)/config/picochip/divmodhi4.S 		\
	$(srcdir)/config/picochip/udivmodhi4.S 		\
	$(srcdir)/config/picochip/divmodsi4.S 		\
	$(srcdir)/config/picochip/udivmodsi4.S 		\
	$(srcdir)/config/picochip/divmod15.S 		\
	$(srcdir)/config/picochip/ucmpsi2.S 		\
	$(srcdir)/config/picochip/cmpsi2.S 		\
	$(srcdir)/config/picochip/clzsi2.S			\
	$(srcdir)/config/picochip/adddi3.S			\
	$(srcdir)/config/picochip/subdi3.S			\
	$(srcdir)/config/picochip/lshrsi3.S		\
	$(srcdir)/config/picochip/parityhi2.S		\
	$(srcdir)/config/picochip/popcounthi2.S

# Special libgcc setup. Make single/double floating point the same,
# and use our own include files.
HOST_LIBGCC2_CFLAGS += -DDF=SF -I../../includes/

# Switch off all debugging for the embedded libraries.
# (embedded processors need small libraries by default).
# NOTE: If the debug level is increased, turn off instruction scheduling.
LIBGCC2_DEBUG_CFLAGS = -g0

# Turn off the building of exception handling libraries.
LIB2ADDEH =

# Turn off ranlib on target libraries.
RANLIB_FOR_TARGET = cat