xref: /netbsd-src/external/gpl3/gcc/dist/libgcc/config/mmix/t-mmix (revision 48fb7bfab72acd4281a53bbee5ccf3f809019e75)
1HOST_LIBGCC2_CFLAGS += -mlibfuncs -O2
2
3# We need to turn off some assumptions on normality for code in crtstuff.c
4# and crt{i,n}.S, specifically about execution not continuing past the
5# end of the section in the file being compiled.  Thus we must stop the
6# assembler from generating stubbable PUSHJ relocs, because that will add
7# stubs at the end of the current section when necessary.
8CRTSTUFF_T_CFLAGS = -Wa,--no-stubs
9
10# Don't use global registers in libraries.
11# FIXME: Not applied at "root" level, so disabled at the moment to stop
12# incorrect comparisons with -mabi=gnu.
13#MULTILIB_EXTRA_OPTS = mno-base-addresses
14
15# Cannot use default rules due to $(CRTSTUFF_T_CFLAGS).
16CUSTOM_CRTIN = yes
17
18crti.o: $(srcdir)/config/mmix/crti.S
19	$(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $<
20
21crtn.o: $(srcdir)/config/mmix/crtn.S
22	$(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $<
23