comparison gcc/config/frv/t-frv @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 # Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. 1 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
2 # 2 #
3 # This file is part of GCC. 3 # This file is part of GCC.
4 # 4 #
5 # GCC is free software; you can redistribute it and/or modify 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 6 # it under the terms of the GNU General Public License as published by
13 # GNU General Public License for more details. 13 # GNU General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see 16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>. 17 # <http://www.gnu.org/licenses/>.
18
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.
22 #
23 # Alternatively if assembler functions *are* needed then define the
24 # entries below:
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
29
30 # We want fine grained libraries, so use the new code to build the
31 # floating point emulation libraries.
32 FPBIT = fp-bit.c
33 DPBIT = dp-bit.c
34
35 # If any special flags are necessary when building libgcc2 put them here.
36 TARGET_LIBGCC2_CFLAGS =
37
38 fp-bit.c: $(srcdir)/config/fp-bit.c
39 echo '#define FLOAT' > fp-bit.c
40 echo '#include "config/frv/frv-abi.h"' >> fp-bit.c
41 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
42
43 dp-bit.c: $(srcdir)/config/fp-bit.c
44 echo '#include "config/frv/frv-abi.h"' > dp-bit.c
45 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
46
47 cmovh.c: $(srcdir)/config/frv/cmovh.c
48 $(LN_S) $(srcdir)/config/frv/cmovh.c .
49
50 cmovw.c: $(srcdir)/config/frv/cmovw.c
51 $(LN_S) $(srcdir)/config/frv/cmovw.c .
52
53 cmovd.c: $(srcdir)/config/frv/cmovd.c
54 $(LN_S) $(srcdir)/config/frv/cmovd.c .
55
56 modi.c: $(srcdir)/config/frv/modi.c
57 $(LN_S) $(srcdir)/config/frv/modi.c .
58
59 umodi.c: $(srcdir)/config/frv/umodi.c
60 $(LN_S) $(srcdir)/config/frv/umodi.c .
61
62 uitof.c: $(srcdir)/config/frv/uitof.c
63 $(LN_S) $(srcdir)/config/frv/uitof.c .
64
65 uitod.c: $(srcdir)/config/frv/uitod.c
66 $(LN_S) $(srcdir)/config/frv/uitod.c .
67
68 ulltof.c: $(srcdir)/config/frv/ulltof.c
69 $(LN_S) $(srcdir)/config/frv/ulltof.c .
70
71 ulltod.c: $(srcdir)/config/frv/ulltod.c
72 $(LN_S) $(srcdir)/config/frv/ulltod.c .
73
74 # Build frvbegin.o and frvend.o
75 EXTRA_MULTILIB_PARTS=frvbegin.o frvend.o
76
77 # Compile two additional files that are linked with every program
78 # linked using GCC on systems using COFF or ELF, for the sake of C++
79 # constructors.
80
81 FRVSTUFF_CFLAGS = $(TARGET_LIBGCC2_CFLAGS)
82
83 $(T)frvbegin$(objext): $(srcdir)/config/frv/frvbegin.c $(GCC_PASSES) \
84 $(CONFIG_H) defaults.h unwind-dw2-fde.h gbl-ctors.h
85 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) $(FRVSTUFF_CFLAGS) \
86 -c $(srcdir)/config/frv/frvbegin.c -o $(T)frvbegin$(objext)
87
88 $(T)frvend$(objext): $(srcdir)/config/frv/frvend.c $(GCC_PASSES) \
89 $(CONFIG_H) defaults.h unwind-dw2-fde.h gbl-ctors.h
90 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) $(FRVSTUFF_CFLAGS) \
91 -c $(srcdir)/config/frv/frvend.c -o $(T)frvend$(objext)
92 18
93 # Enable the following if multilibs are needed. 19 # Enable the following if multilibs are needed.
94 # See gcc/genmultilib, gcc/gcc.texi and gcc/tm.texi for a 20 # See gcc/genmultilib, gcc/gcc.texi and gcc/tm.texi for a
95 # description of the options and their values. 21 # description of the options and their values.
96 # 22 #
105 MULTILIB_MATCHES = mcpu?simple=mcpu?fr300 \ 31 MULTILIB_MATCHES = mcpu?simple=mcpu?fr300 \
106 mlibrary-pic=multilib-library-pic \ 32 mlibrary-pic=multilib-library-pic \
107 mcpu?fr400=mcpu?fr405 mcpu?fr400=mcpu?fr450 33 mcpu?fr400=mcpu?fr405 mcpu?fr400=mcpu?fr450
108 MULTILIB_EXCEPTIONS = mcpu=frv/mno-pack* mcpu=simple/mno-pack* 34 MULTILIB_EXCEPTIONS = mcpu=frv/mno-pack* mcpu=simple/mno-pack*
109 35
110 LIBGCC = stmp-multilib
111 INSTALL_LIBGCC = install-multilib
112
113 EXTRA_HEADERS = $(srcdir)/config/frv/frv-asm.h 36 EXTRA_HEADERS = $(srcdir)/config/frv/frv-asm.h