]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgcc/config/avr/t-avr
re PR target/49868 (Implement named address space to place/access data in flash memory)
[thirdparty/gcc.git] / libgcc / config / avr / t-avr
1 LIB1ASMSRC = avr/lib1funcs.S
2 LIB1ASMFUNCS = \
3 _mulqi3 \
4 _mulhi3 \
5 _mulhisi3 \
6 _umulhisi3 \
7 _usmulhisi3 \
8 _muluhisi3 \
9 _mulshisi3 \
10 _mulsi3 \
11 _udivmodqi4 \
12 _divmodqi4 \
13 _udivmodhi4 \
14 _divmodhi4 \
15 _divmodpsi4 _udivmodpsi4 \
16 _udivmodsi4 \
17 _divmodsi4 \
18 _prologue \
19 _epilogue \
20 _exit \
21 _cleanup \
22 _tablejump \
23 _tablejump_elpm \
24 _load_3 _load_4 \
25 _copy_data \
26 _clear_bss \
27 _ctors \
28 _dtors \
29 _ffssi2 \
30 _ffshi2 \
31 _loop_ffsqi2 \
32 _ctzsi2 \
33 _ctzhi2 \
34 _clzdi2 \
35 _clzsi2 \
36 _clzhi2 \
37 _paritydi2 \
38 _paritysi2 \
39 _parityhi2 \
40 _popcounthi2 \
41 _popcountsi2 \
42 _popcountdi2 \
43 _popcountqi2 \
44 _bswapsi2 \
45 _bswapdi2 \
46 _ashldi3 \
47 _ashrdi3 \
48 _lshrdi3 \
49 _fmul _fmuls _fmulsu
50
51 LIB2FUNCS_EXCLUDE = \
52 _clz
53
54 # We do not have the DF type.
55 # Most of the C functions in libgcc2 use almost all registers,
56 # so use -mcall-prologues for smaller code size.
57 HOST_LIBGCC2_CFLAGS += -DDF=SF -Dinhibit_libc -mcall-prologues -Os
58
59 # Extra 16-bit integer functions.
60 intfuncs16 = _absvXX2 _addvXX3 _subvXX3 _mulvXX3 _negvXX2 _clrsbXX2
61
62 hiintfuncs16 = $(subst XX,hi,$(intfuncs16))
63 siintfuncs16 = $(subst XX,si,$(intfuncs16))
64
65 iter-items := $(hiintfuncs16)
66 iter-labels := $(siintfuncs16)
67 iter-sizes := $(patsubst %,2,$(siintfuncs16)) $(patsubst %,2,$(hiintfuncs16))
68
69
70 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/siditi-object.mk,$(iter-items))
71 libgcc-objects += $(patsubst %,%$(objext),$(hiintfuncs16))
72
73 ifeq ($(enable_shared),yes)
74 libgcc-s-objects += $(patsubst %,%_s$(objext),$(hiintfuncs16))
75 endif