Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / config / sparc / t-leon
blob6573f824e8ba79c67ae048430592ae7d46092cbf
1 # Copyright (C) 2010 Free Software Foundation, Inc.
3 # This file is part of GCC.
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.
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.
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/>.
19 LIB1ASMSRC = sparc/lb1spc.asm
20 LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3
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
27 dp-bit.c: $(srcdir)/config/fp-bit.c
28         cat $(srcdir)/config/fp-bit.c > dp-bit.c
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
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
38 MULTILIB_DIRNAMES = v7 soft
39 MULTILIB_MATCHES = mcpu?v7=mv7 msoft-float=mno-fpu
41 LIBGCC = stmp-multilib
42 INSTALL_LIBGCC = install-multilib