aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/nvptx/t-nvptx
blob: 5e2e27898fd61afcb64a7f6ea2436d4133ec6282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
LIB2ADD=$(srcdir)/config/nvptx/reduction.c \
	$(srcdir)/config/nvptx/mgomp.c \
	$(srcdir)/config/nvptx/atomic.c \
	$(srcdir)/config/nvptx/unwind-nvptx.c \
	$(srcdir)/config/nvptx/alloca.c

LIB2ADDEH=
LIB2FUNCS_EXCLUDE=

# Wrapping of 'main'.
LIB2FUNCS_EXCLUDE += __main
crt0.o: $(srcdir)/config/nvptx/crt0.c
	$(crt_compile) -c $<

# Prevent building "advanced" stuff (for example, gcov support).  We don't
# support it, and it may cause the build to fail, because of alloca usage, for
# example.
INHIBIT_LIBC_CFLAGS = -Dinhibit_libc

# Support for global constructors/destructors is implemented via the
# nvptx-tools 'ld' and the following helpers.
LIB2ADD += $(srcdir)/config/nvptx/gbl-ctors.c
LIB2FUNCS_EXCLUDE += _ctors