invoke.texi (SPARC options): Add -mflat.
[gcc.git] / gcc / config / sparc / t-leon
1 # Copyright (C) 2010 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 LIB1ASMSRC = sparc/lb1spc.asm
20 LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3
21
22 # We want fine grained libraries, so use the new code to build the
23 # floating point emulation libraries.
24 FPBIT = fp-bit.c
25 DPBIT = dp-bit.c
26
27 dp-bit.c: $(srcdir)/config/fp-bit.c
28 cat $(srcdir)/config/fp-bit.c > dp-bit.c
29
30 fp-bit.c: $(srcdir)/config/fp-bit.c
31 echo '#define FLOAT' > fp-bit.c
32 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
33
34 # Multilibs for LEON
35 # LEON is a SPARC-V8, but the AT697 implementation has a bug in the
36 # V8-specific instructions.
37 MULTILIB_OPTIONS = mcpu=v7 msoft-float mflat
38 MULTILIB_DIRNAMES = v7 soft flat
39 MULTILIB_MATCHES = mcpu?v7=mv7 msoft-float=mno-fpu
40
41 LIBGCC = stmp-multilib
42 INSTALL_LIBGCC = install-multilib