aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/ia64/t-ia64
blob: d1ec3536db056349acef2d692b7f7ada399e33b6 (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
LIB1ASMSRC    = ia64/lib1funcs.S

# We use different names for the DImode div/mod files so that they won't
# conflict with libgcc2.c files.  We used to use __ia64 as a prefix, now
# we use __ as the prefix.  Note that L_divdi3 in libgcc2.c actually defines
# a TImode divide function, so there is no actual overlap here between
# libgcc2.c and lib1funcs.S.
LIB1ASMFUNCS  = __divxf3 __divdf3 __divsf3 \
	__divdi3 __moddi3 __udivdi3 __umoddi3 \
	__divsi3 __modsi3 __udivsi3 __umodsi3 __save_stack_nonlocal \
	__nonlocal_goto __restore_stack_nonlocal __trampoline \
	_fixtfdi _fixunstfdi _floatditf

# ??? Hack to get -P option used when compiling lib1funcs.S, because Intel
# assembler does not accept # line number as a comment.
# ??? This breaks C++ pragma interface/implementation, which is used in the
# C++ part of libgcc2, hence it had to be disabled.  Must find some other way
# to support the Intel assembler.
#LIBGCC2_DEBUG_CFLAGS = -g1 -P

CUSTOM_CRTSTUFF = yes

# Assemble startup files.
# FIXME: -I$(gcc_objdir) is necessary to find auto-host.h.  Really?
crtbegin.o: $(srcdir)/config/ia64/crtbegin.S
	$(CC) $(compile_deps) -I. -I$(gcc_objdir) -c -x assembler-with-cpp $<
crtend.o: $(srcdir)/config/ia64/crtend.S
	$(CC) $(compile_deps) -I. -I$(gcc_objdir) -c -x assembler-with-cpp $<
crtbeginS.o: $(srcdir)/config/ia64/crtbegin.S
	$(CC) $(compile_deps) -I. -I$(gcc_objdir) -c -x assembler-with-cpp \
		-o $@ -DSHARED $<
crtendS.o: $(srcdir)/config/ia64/crtend.S
	$(CC) $(compile_deps) -I. -I$(gcc_objdir) -c -x assembler-with-cpp \
		-o $@ -DSHARED $<

SHLIB_MAPFILES += $(srcdir)/config/ia64/libgcc-ia64.ver