1 # Copyright (C) 2002, 2003, 2004, 2011 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)
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 # Name of assembly file containing libgcc1 functions.
20 # This entry must be present, but it can be empty if the target does
21 # not need any assembler functions to support its code generation.
23 # Alternatively if assembler functions *are* needed then define the
25 CROSS_LIBGCC1 = libgcc1-asm.a
26 LIB1ASMSRC = frv/lib1funcs.asm
27 LIB1ASMFUNCS = _cmpll _cmpf _cmpd _addll _subll _andll _orll _xorll _notll _cmov
28 LIB2FUNCS_EXTRA = cmovh.c cmovw.c cmovd.c modi.c umodi.c uitof.c uitod.c ulltof.c ulltod.c
30 # If any special flags are necessary when building libgcc2 put them here.
31 TARGET_LIBGCC2_CFLAGS =
33 cmovh.c: $(srcdir)/config/frv/cmovh.c
34 $(LN_S) $(srcdir)/config/frv/cmovh.c .
36 cmovw.c: $(srcdir)/config/frv/cmovw.c
37 $(LN_S) $(srcdir)/config/frv/cmovw.c .
39 cmovd.c: $(srcdir)/config/frv/cmovd.c
40 $(LN_S) $(srcdir)/config/frv/cmovd.c .
42 modi.c: $(srcdir)/config/frv/modi.c
43 $(LN_S) $(srcdir)/config/frv/modi.c .
45 umodi.c: $(srcdir)/config/frv/umodi.c
46 $(LN_S) $(srcdir)/config/frv/umodi.c .
48 uitof.c: $(srcdir)/config/frv/uitof.c
49 $(LN_S) $(srcdir)/config/frv/uitof.c .
51 uitod.c: $(srcdir)/config/frv/uitod.c
52 $(LN_S) $(srcdir)/config/frv/uitod.c .
54 ulltof.c: $(srcdir)/config/frv/ulltof.c
55 $(LN_S) $(srcdir)/config/frv/ulltof.c .
57 ulltod.c: $(srcdir)/config/frv/ulltod.c
58 $(LN_S) $(srcdir)/config/frv/ulltod.c .
60 # Enable the following if multilibs are needed.
61 # See gcc/genmultilib, gcc/gcc.texi and gcc/tm.texi for a
62 # description of the options and their values.
64 #MULTILIB_OPTIONS = mcpu=fr500/mcpu=tomcat/mcpu=simple/mcpu=frv msoft-float mdword/mno-dword
65 #MULTILIB_DIRNAMES = fr500 tomcat simple frv nof dw no-dw
66 #MULTILIB_MATCHES = mcpu?simple=mcpu?fr300 mno-double=mcpu?fr500 mcpu?frv=mdouble
67 #MULTILIB_EXCEPTIONS = *mcpu=simple/*msoft-float* *mcpu=frv/*msoft-float*
68 #MULTILIB_EXTRA_OPTS = mlibrary-pic
70 MULTILIB_OPTIONS = mcpu=fr400/mcpu=fr550 mno-pack mlibrary-pic/mfdpic
71 MULTILIB_DIRNAMES = fr400 fr550 unpacked pic fdpic
72 MULTILIB_MATCHES = mcpu?simple=mcpu?fr300 \
73 mlibrary-pic=multilib-library-pic \
74 mcpu?fr400=mcpu?fr405 mcpu?fr400=mcpu?fr450
75 MULTILIB_EXCEPTIONS = mcpu=frv/mno-pack* mcpu=simple/mno-pack*
77 LIBGCC = stmp-multilib
78 INSTALL_LIBGCC = install-multilib
80 EXTRA_HEADERS = $(srcdir)/config/frv/frv-asm.h