]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/mmix/t-mmix
ABOUT-GCC-NLS, [...]: Add copyright and license notices.
[thirdparty/gcc.git] / gcc / config / mmix / t-mmix
1 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
2 #
3 # This file is part of GCC.
4 #
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
9 #
10 # GCC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
18
19 # See "Target Fragment" in GCC info. That same order is used here.
20
21 TARGET_LIBGCC2_CFLAGS = -mlibfuncs -O2
22
23 EXTRA_MULTILIB_PARTS = crti.o crtn.o crtbegin.o crtend.o
24
25 # We need to turn off some assumptions on normality for code in crtstuff.c
26 # and crt{i,n}.asm, specifically about execution not continuing past the
27 # end of the section in the file being compiled. Thus we must stop the
28 # assembler from generating stubbable PUSHJ relocs, because that will add
29 # stubs at the end of the current section when necessary.
30 CRTSTUFF_T_CFLAGS = -Wa,--no-stubs
31
32 MULTILIB_OPTIONS = mabi=gnu
33 MULTILIB_DIRNAMES = gnuabi
34
35 # Don't use global registers in libraries.
36 # FIXME: Not applied at "root" level, so disabled at the moment to stop
37 # incorrect comparisons with -mabi=gnu.
38 #MULTILIB_EXTRA_OPTS = mno-base-addresses
39
40 $(T)crti.o: $(srcdir)/config/mmix/crti.asm $(GCC_PASSES)
41 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
42 $(CRTSTUFF_T_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp \
43 $(srcdir)/config/mmix/crti.asm
44
45 $(T)crtn.o: $(srcdir)/config/mmix/crtn.asm $(GCC_PASSES)
46 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
47 $(CRTSTUFF_T_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp \
48 $(srcdir)/config/mmix/crtn.asm