xref: /openbsd/gnu/gcc/gcc/config/mmix/t-mmix (revision 404b540a)
1*404b540aSrobert# See "Target Fragment" in GCC info.  That same order is used here.
2*404b540aSrobert
3*404b540aSrobertTARGET_LIBGCC2_CFLAGS = -mlibfuncs -O2
4*404b540aSrobert
5*404b540aSrobertEXTRA_MULTILIB_PARTS = crti.o crtn.o crtbegin.o crtend.o
6*404b540aSrobert
7*404b540aSrobert# We need to turn off some assumptions on normality for code in crtstuff.c
8*404b540aSrobert# and crt{i,n}.asm, specifically about execution not continuing past the
9*404b540aSrobert# end of the section in the file being compiled.  Thus we must stop the
10*404b540aSrobert# assembler from generating stubbable PUSHJ relocs, because that will add
11*404b540aSrobert# stubs at the end of the current section when necessary.
12*404b540aSrobertCRTSTUFF_T_CFLAGS = -Wa,--no-stubs
13*404b540aSrobert
14*404b540aSrobertMULTILIB_OPTIONS = mabi=gnu
15*404b540aSrobertMULTILIB_DIRNAMES = gnuabi
16*404b540aSrobert
17*404b540aSrobert# Don't use global registers in libraries.
18*404b540aSrobert# FIXME: Not applied at "root" level, so disabled at the moment to stop
19*404b540aSrobert# incorrect comparisons with -mabi=gnu.
20*404b540aSrobert#MULTILIB_EXTRA_OPTS = mno-base-addresses
21*404b540aSrobert
22*404b540aSrobert$(T)crti.o: $(srcdir)/config/mmix/crti.asm $(GCC_PASSES)
23*404b540aSrobert	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
24*404b540aSrobert	$(CRTSTUFF_T_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp \
25*404b540aSrobert	$(srcdir)/config/mmix/crti.asm
26*404b540aSrobert
27*404b540aSrobert$(T)crtn.o: $(srcdir)/config/mmix/crtn.asm $(GCC_PASSES)
28*404b540aSrobert	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
29*404b540aSrobert	$(CRTSTUFF_T_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp \
30*404b540aSrobert	$(srcdir)/config/mmix/crtn.asm
31