annotate libgcc/Makefile.in @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 84e7813d76e9
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # Makefile.in
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 # Copyright (C) 2005-2018 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 # This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 # GCC is free software; you can redistribute it and/or modify it under the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 # terms of the GNU Library General Public License as published by the Free
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 # Software Foundation; either version 3 of the License, or (at your option)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 # any later version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 # GCC is distributed in the hope that it will be useful, but WITHOUT ANY
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 # more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License along
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 # with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 # <http://www.gnu.org/licenses/>.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 libgcc_topdir = @libgcc_topdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 host_subdir = @host_subdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 gcc_objdir = $(MULTIBUILDTOP)../../$(host_subdir)/gcc
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 srcdir = @srcdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 prefix = @prefix@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 exec_prefix = @exec_prefix@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 libdir = @libdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 shlib_slibdir = @slibdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 SHELL = @SHELL@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
111
kono
parents: 67
diff changeset
37 cpu_type = @cpu_type@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 enable_shared = @enable_shared@
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
39 enable_gcov = @enable_gcov@
111
kono
parents: 67
diff changeset
40 double_type_size = @double_type_size@
kono
parents: 67
diff changeset
41 long_double_type_size = @long_double_type_size@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 decimal_float = @decimal_float@
111
kono
parents: 67
diff changeset
43 enable_vtable_verify = @enable_vtable_verify@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 enable_decimal_float = @enable_decimal_float@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 fixed_point = @fixed_point@
111
kono
parents: 67
diff changeset
46 with_aix_soname = @with_aix_soname@
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
47 solaris_ld_v2_maps = @solaris_ld_v2_maps@
111
kono
parents: 67
diff changeset
48 enable_execute_stack = @enable_execute_stack@
kono
parents: 67
diff changeset
49 unwind_header = @unwind_header@
kono
parents: 67
diff changeset
50 md_unwind_header = @md_unwind_header@
kono
parents: 67
diff changeset
51 sfp_machine_header = @sfp_machine_header@
kono
parents: 67
diff changeset
52 thread_header = @thread_header@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 host_noncanonical = @host_noncanonical@
111
kono
parents: 67
diff changeset
55 real_host_noncanonical = @real_host_noncanonical@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
56 target_noncanonical = @target_noncanonical@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 # List of extra object files that should be compiled for this target machine.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 # The rules for compiling them should be in the t-* file for the machine.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 EXTRA_PARTS = @extra_parts@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61
111
kono
parents: 67
diff changeset
62 FORCE_EXPLICIT_EH_REGISTRY = @force_explicit_eh_registry@
kono
parents: 67
diff changeset
63
kono
parents: 67
diff changeset
64 extra-parts = libgcc-extra-parts
kono
parents: 67
diff changeset
65
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 # Multilib support variables.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 MULTISRCTOP =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 MULTIBUILDTOP =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 MULTIDIRS =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 MULTISUBDIR =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 MULTIDO = true
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 MULTICLEAN = true
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 INSTALL = @INSTALL@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 INSTALL_PROGRAM = @INSTALL_PROGRAM@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 INSTALL_DATA = @INSTALL_DATA@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 mkinstalldirs = $(SHELL) $(libgcc_topdir)/mkinstalldirs
111
kono
parents: 67
diff changeset
78 INSTALL_PARTS = $(EXTRA_PARTS)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 objext = .o
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 AR = @AR@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 AR_FLAGS = rc
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 CC = @CC@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 CFLAGS = @CFLAGS@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 RANLIB = @RANLIB@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 LN_S = @LN_S@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 PWD_COMMAND = $${PWDCMD-pwd}
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 # Flags to pass to a recursive make.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 FLAGS_TO_PASS = \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 "AR=$(AR)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 "AR_FLAGS=$(AR_FLAGS)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 "CC=$(CC)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 "CFLAGS=$(CFLAGS)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 "DESTDIR=$(DESTDIR)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 "EXTRA_OFILES=$(EXTRA_OFILES)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 "HDEFINES=$(HDEFINES)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 "INSTALL=$(INSTALL)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 "INSTALL_DATA=$(INSTALL_DATA)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 "LDFLAGS=$(LDFLAGS)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 "LOADLIBES=$(LOADLIBES)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 "RANLIB=$(RANLIB)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 "SHELL=$(SHELL)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 "prefix=$(prefix)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 "exec_prefix=$(exec_prefix)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 "libdir=$(libdir)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 "libsubdir=$(libsubdir)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 "tooldir=$(tooldir)"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 # Dependencies for "all" are set later in the file.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 all: all-multi
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 # Now that we have built all the objects, we need to copy
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 # them back to the GCC directory. Too many things (other
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 # in-tree libraries, and DejaGNU) know about the layout
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 # of the build tree, for now.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
120 $(MAKE) install-leaf DESTDIR=$(gcc_objdir) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 slibdir= libsubdir= MULTIOSDIR=$(MULTIDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
122
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 .PHONY: all-multi
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
124 all-multi:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 # If this is the top-level multilib, build all the other
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
126 # multilibs.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
128
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129 .PHONY: check installcheck
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
130 check:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 installcheck:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
132
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 .PHONY: all clean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
134
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
135 clean:
111
kono
parents: 67
diff changeset
136 -rm -f libgcc_tm.h libgcc.map
kono
parents: 67
diff changeset
137 -rm -f libgcc_tm.stamp stmp-ldirs
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
138 -rm -f *$(objext)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
139 -rm -f *.dep
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
140 -rm -f *.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 -rm -f libunwind$(SHLIB_EXT)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
142 -rm -f libgcc_s*
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 @$(MULTICLEAN) multi-clean DO=clean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 distclean: clean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
145 @$(MULTICLEAN) multi-clean DO=distclean
111
kono
parents: 67
diff changeset
146 -rm -f auto-target.h
kono
parents: 67
diff changeset
147 -rm -f stamp-h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 -rm -f *~ Makefile config.cache config.status multilib.out
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 -rm -f config.log
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 maintainer-clean realclean: distclean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
151
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 Makefile: $(srcdir)/Makefile.in config.status
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 # Depending on Makefile makes sure that config.status has been re-run
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 # if needed. This prevents problems with parallel builds.
111
kono
parents: 67
diff changeset
157 auto-target.h: stamp-h ; @true
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 stamp-h: $(srcdir)/config.in config.status Makefile
111
kono
parents: 67
diff changeset
159 CONFIG_FILES= CONFIG_HEADERS=auto-target.h:$(srcdir)/config.in $(SHELL) ./config.status
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
161 config.status: $(srcdir)/configure $(srcdir)/config.host
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 $(SHELL) ./config.status --recheck
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
164 AUTOCONF = autoconf
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
165 configure_deps = \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
166 $(srcdir)/../config/enable.m4 \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
167 $(srcdir)/../config/tls.m4 \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
168 $(srcdir)/../config/acx.m4 \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
169 $(srcdir)/../config/no-executables.m4 \
111
kono
parents: 67
diff changeset
170 $(srcdir)/../config/lib-ld.m4 \
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
171 $(srcdir)/../config/override.m4 \
111
kono
parents: 67
diff changeset
172 $(srcdir)/../config/picflag.m4 \
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
173 $(srcdir)/../config/dfp.m4 \
111
kono
parents: 67
diff changeset
174 $(srcdir)/../config/unwind_ipinfo.m4 \
kono
parents: 67
diff changeset
175 $(srcdir)/../config/gthr.m4 \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
176 $(srcdir)/../config/sjlj.m4 \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
177 $(srcdir)/../config/cet.m4
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
178
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
179 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
180 cd $(srcdir) && $(AUTOCONF)
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
181
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182 include $(gcc_objdir)/libgcc.mvars
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
183
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 # Flags to pass to recursive makes.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
185
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 AR_FOR_TARGET = $(AR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 AR_FLAGS_FOR_TARGET =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 AWK = @AWK@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 GCC_FOR_TARGET = $(CC)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 LIPO = @LIPO@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 LIPO_FOR_TARGET = $(LIPO)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 MACHMODE_H = machmode.h mode-classes.def insn-modes.h
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 NM = @NM@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 NM_FOR_TARGET = $(NM)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 RANLIB_FOR_TARGET = $(RANLIB)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 STRIP = @STRIP@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 STRIP_FOR_TARGET = $(STRIP)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 # Directory in which the compiler finds libraries etc.
111
kono
parents: 67
diff changeset
202 libsubdir = $(libdir)/gcc/$(real_host_noncanonical)/$(version)@accel_dir_suffix@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 # Used to install the shared libgcc.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
204 slibdir = @slibdir@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
205 # Maybe used for DLLs on Windows targets.
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
206 toolexecdir = @toolexecdir@
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
207 toolexeclibdir = @toolexeclibdir@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
209 export AR_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 export AR_CREATE_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 export AR_FLAGS_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 export AR_EXTRACT_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 export AWK
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 export DESTDIR
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 export GCC_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 export INCLUDES
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217 export INSTALL_DATA
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 export LIB1ASMSRC
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 export LIBGCC2_CFLAGS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 export LIPO_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 export MACHMODE_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 export NM_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 export STRIP_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
224 export RANLIB_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 export libsubdir
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
226 export slibdir
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
227 export toolexecdir
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
228 export toolexeclibdir
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
229
111
kono
parents: 67
diff changeset
230 version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
232 ifeq ($(decimal_float),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234 DECNUMINC = -I$(srcdir)/config/libbid -DENABLE_DECIMAL_BID_FORMAT
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
235 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
236 DECNUMINC = -I$(srcdir)/../libdecnumber/$(enable_decimal_float) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 -I$(srcdir)/../libdecnumber
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
239 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240 DECNUMINC =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242
111
kono
parents: 67
diff changeset
243 # Options to use when compiling libgcc2.a.
kono
parents: 67
diff changeset
244 #
kono
parents: 67
diff changeset
245 LIBGCC2_DEBUG_CFLAGS = -g
kono
parents: 67
diff changeset
246 LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
kono
parents: 67
diff changeset
247 $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
kono
parents: 67
diff changeset
248 -fbuilding-libgcc -fno-stack-protector \
kono
parents: 67
diff changeset
249 $(INHIBIT_LIBC_CFLAGS)
kono
parents: 67
diff changeset
250
kono
parents: 67
diff changeset
251 # Additional options to use when compiling libgcc2.a.
kono
parents: 67
diff changeset
252 # Some targets override this to -isystem include
kono
parents: 67
diff changeset
253 LIBGCC2_INCLUDES =
kono
parents: 67
diff changeset
254
kono
parents: 67
diff changeset
255 # Additional target-dependent options for compiling libgcc2.a.
kono
parents: 67
diff changeset
256 HOST_LIBGCC2_CFLAGS =
kono
parents: 67
diff changeset
257
kono
parents: 67
diff changeset
258 PICFLAG = @PICFLAG@
kono
parents: 67
diff changeset
259
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
260 CET_FLAGS = @CET_FLAGS@
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
261
111
kono
parents: 67
diff changeset
262 # Defined in libgcc2.c, included only in the static library.
kono
parents: 67
diff changeset
263 LIB2FUNCS_ST = _eprintf __gcc_bcmp
kono
parents: 67
diff changeset
264
kono
parents: 67
diff changeset
265 # List of functions not to build from libgcc2.c.
kono
parents: 67
diff changeset
266 LIB2FUNCS_EXCLUDE =
kono
parents: 67
diff changeset
267
kono
parents: 67
diff changeset
268 # List of extra C and assembler files to add to static and shared libgcc2.
kono
parents: 67
diff changeset
269 # Assembler files should have names ending in `.S'.
kono
parents: 67
diff changeset
270 LIB2ADD =
kono
parents: 67
diff changeset
271
kono
parents: 67
diff changeset
272 # List of extra C and assembler files to add to static libgcc2.
kono
parents: 67
diff changeset
273 # Assembler files should have names ending in `.S'.
kono
parents: 67
diff changeset
274 LIB2ADD_ST =
kono
parents: 67
diff changeset
275
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 # Specify the directories to be searched for header files.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 # Both . and srcdir are used, in that order,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 # so that *config.h will be found in the compilation
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 # subdirectory rather than in the source directory.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
280 # -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 # currently being compiled, in both source trees, to be examined as well.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
282 INCLUDES = -I. -I$(@D) -I$(gcc_objdir) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 -I$(srcdir) -I$(srcdir)/$(@D) -I$(srcdir)/../gcc \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
284 -I$(srcdir)/../include $(DECNUMINC)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 # Forcibly remove any profiling-related flags. There is no point
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287 # in supporting profiled bootstrap in this library.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
288 override CFLAGS := $(filter-out -fprofile-generate -fprofile-use,$(CFLAGS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
289
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
290 # CFLAGS first is not perfect; normally setting CFLAGS should override any
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
291 # options in LIBGCC2_CFLAGS. But LIBGCC2_CFLAGS may contain -g0, and CFLAGS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
292 # will usually contain -g, so for the moment CFLAGS goes first. We must
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
293 # include CFLAGS - that's where multilib options live.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
294 INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
295 $(INCLUDES) @set_have_cc_tls@ @set_use_emutls@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
296
111
kono
parents: 67
diff changeset
297 # Options to use when compiling crtbegin/end.
kono
parents: 67
diff changeset
298 CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
kono
parents: 67
diff changeset
299 $(NO_PIE_CFLAGS) -finhibit-size-directive -fno-inline -fno-exceptions \
kono
parents: 67
diff changeset
300 -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
kono
parents: 67
diff changeset
301 -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \
kono
parents: 67
diff changeset
302 $(INHIBIT_LIBC_CFLAGS)
kono
parents: 67
diff changeset
303
kono
parents: 67
diff changeset
304 # Extra flags to use when compiling crt{begin,end}.o.
kono
parents: 67
diff changeset
305 CRTSTUFF_T_CFLAGS =
kono
parents: 67
diff changeset
306
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
307 MULTIDIR := $(shell $(CC) $(CFLAGS) -print-multi-directory)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
308 MULTIOSDIR := $(shell $(CC) $(CFLAGS) -print-multi-os-directory)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
309
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
310 MULTIOSSUBDIR := $(shell if test $(MULTIOSDIR) != .; then echo /$(MULTIOSDIR); fi)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
311 inst_libdir = $(libsubdir)$(MULTISUBDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
312 inst_slibdir = $(slibdir)$(MULTIOSSUBDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
313
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
314 gcc_compile_bare = $(CC) $(INTERNAL_CFLAGS)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
315 compile_deps = -MT $@ -MD -MP -MF $(basename $@).dep
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
316 gcc_compile = $(gcc_compile_bare) -o $@ $(compile_deps)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
317 gcc_s_compile = $(gcc_compile) -DSHARED
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
318
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
319 objects = $(filter %$(objext),$^)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
320
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
321 # Collect any host-specific information from Makefile fragments.
111
kono
parents: 67
diff changeset
322
kono
parents: 67
diff changeset
323 LIBGCC_VER_GNU_PREFIX = __
kono
parents: 67
diff changeset
324 LIBGCC_VER_FIXEDPOINT_GNU_PREFIX = __
kono
parents: 67
diff changeset
325 LIBGCC_VER_SYMBOLS_PREFIX =
kono
parents: 67
diff changeset
326
kono
parents: 67
diff changeset
327 FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \
kono
parents: 67
diff changeset
328 _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
kono
parents: 67
diff changeset
329 _lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \
kono
parents: 67
diff changeset
330 _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi _usi_to_sf
kono
parents: 67
diff changeset
331
kono
parents: 67
diff changeset
332 DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \
kono
parents: 67
diff changeset
333 _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \
kono
parents: 67
diff changeset
334 _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \
kono
parents: 67
diff changeset
335 _df_to_sf _df_to_tf _thenan_df _df_to_usi _usi_to_df
kono
parents: 67
diff changeset
336
kono
parents: 67
diff changeset
337 TPBIT_FUNCS = _pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf \
kono
parents: 67
diff changeset
338 _fpcmp_parts_tf _compare_tf _eq_tf _ne_tf _gt_tf _ge_tf \
kono
parents: 67
diff changeset
339 _lt_tf _le_tf _unord_tf _si_to_tf _tf_to_si _negate_tf _make_tf \
kono
parents: 67
diff changeset
340 _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi _usi_to_tf
kono
parents: 67
diff changeset
341
kono
parents: 67
diff changeset
342 # Additional sources to handle exceptions; overridden by targets as needed.
kono
parents: 67
diff changeset
343 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
kono
parents: 67
diff changeset
344 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
kono
parents: 67
diff changeset
345 LIB2ADDEHSTATIC = $(LIB2ADDEH)
kono
parents: 67
diff changeset
346 LIB2ADDEHSHARED = $(LIB2ADDEH)
kono
parents: 67
diff changeset
347
kono
parents: 67
diff changeset
348 # nm flags to list global symbols in libgcc object files.
kono
parents: 67
diff changeset
349 SHLIB_NM_FLAGS = -pg
kono
parents: 67
diff changeset
350
kono
parents: 67
diff changeset
351 # Don't build libunwind by default.
kono
parents: 67
diff changeset
352 LIBUNWIND =
kono
parents: 67
diff changeset
353 SHLIBUNWIND_LINK =
kono
parents: 67
diff changeset
354 SHLIBUNWIND_INSTALL =
kono
parents: 67
diff changeset
355
kono
parents: 67
diff changeset
356
kono
parents: 67
diff changeset
357 # Create links to files specified in config.host.
kono
parents: 67
diff changeset
358 LIBGCC_LINKS = enable-execute-stack.c unwind.h md-unwind-support.h \
kono
parents: 67
diff changeset
359 sfp-machine.h gthr-default.h
kono
parents: 67
diff changeset
360
kono
parents: 67
diff changeset
361 enable-execute-stack.c: $(srcdir)/$(enable_execute_stack)
kono
parents: 67
diff changeset
362 -$(LN_S) $< $@
kono
parents: 67
diff changeset
363 unwind.h: $(srcdir)/$(unwind_header)
kono
parents: 67
diff changeset
364 -$(LN_S) $< $@
kono
parents: 67
diff changeset
365 md-unwind-support.h: $(srcdir)/config/$(md_unwind_header)
kono
parents: 67
diff changeset
366 -$(LN_S) $< $@
kono
parents: 67
diff changeset
367 sfp-machine.h: $(srcdir)/config/$(sfp_machine_header)
kono
parents: 67
diff changeset
368 -$(LN_S) $< $@
kono
parents: 67
diff changeset
369 gthr-default.h: $(srcdir)/$(thread_header)
kono
parents: 67
diff changeset
370 -$(LN_S) $< $@
kono
parents: 67
diff changeset
371
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
372 tmake_file = @tmake_file@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
373 include $(srcdir)/empty.mk $(tmake_file)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
374
111
kono
parents: 67
diff changeset
375 # Collect target defines and headers from config.host.
kono
parents: 67
diff changeset
376 libgcc_tm_defines = @tm_defines@
kono
parents: 67
diff changeset
377 libgcc_tm_file = @tm_file@
kono
parents: 67
diff changeset
378 libgcc_tm.h: libgcc_tm.stamp; @true
kono
parents: 67
diff changeset
379 libgcc_tm.stamp:
kono
parents: 67
diff changeset
380 DEFINES='$(libgcc_tm_defines)' HEADERS='$(libgcc_tm_file)' \
kono
parents: 67
diff changeset
381 $(srcdir)/mkheader.sh > tmp-libgcc_tm.h
kono
parents: 67
diff changeset
382 $(SHELL) $(srcdir)/../move-if-change tmp-libgcc_tm.h libgcc_tm.h
kono
parents: 67
diff changeset
383 echo timestamp > $@
kono
parents: 67
diff changeset
384
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
385 # Only handle shared libraries if both:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
386 # - the user requested them
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 # - we know how to build them
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
388 ifeq ($(SHLIB_LINK),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
389 enable_shared := no
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
390 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
391
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
392 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
393 iterator = $(srcdir)/empty.mk $(patsubst %,$(srcdir)/shared-object.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
394
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
395 install-shared = install-shared
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
396
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
397 ifneq ($(LIBUNWIND),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
398 install-libunwind = install-libunwind
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
399 endif
111
kono
parents: 67
diff changeset
400 endif
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
401
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
402 # For -fvisibility=hidden. We need both a -fvisibility=hidden on
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
403 # the command line, and a #define to prevent libgcc2.h etc from
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
404 # overriding that with #pragmas.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
405 vis_hide = @vis_hide@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
406
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
407 ifneq (,$(vis_hide))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
408
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
409 # If we have -fvisibility=hidden, then we need to generate hide
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
410 # lists for object files implemented in assembly.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
411 ASM_HIDDEN_OP = @asm_hidden_op@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
412
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
413 define gen-hide-list
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
414 $(NM) -pg $< | \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
415 $(AWK) 'NF == 3 && $$2 !~ /^[UN]$$/ && $$3 !~ /.*_compat/ \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
416 && $$3 !~ /.*@.*/ \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
417 { print "\t$(ASM_HIDDEN_OP)", $$3 }' > $@T
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
418 mv -f $@T $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
419 endef
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
420 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
421 gen-hide-list = echo > $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
422 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
423
111
kono
parents: 67
diff changeset
424 ifneq ($(enable_shared),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
425 iterator = $(srcdir)/empty.mk $(patsubst %,$(srcdir)/static-object.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
426 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
427
111
kono
parents: 67
diff changeset
428 LIB2ADD += enable-execute-stack.c
kono
parents: 67
diff changeset
429
kono
parents: 67
diff changeset
430 # While emutls.c has nothing to do with EH, it is in LIB2ADDEH*
kono
parents: 67
diff changeset
431 # instead of LIB2ADD because that's the way to be sure on some targets
kono
parents: 67
diff changeset
432 # (e.g. *-*-darwin*) only one copy of it is linked.
kono
parents: 67
diff changeset
433 LIB2ADDEH += $(srcdir)/emutls.c
kono
parents: 67
diff changeset
434 LIB2ADDEHSTATIC += $(srcdir)/emutls.c
kono
parents: 67
diff changeset
435 LIB2ADDEHSHARED += $(srcdir)/emutls.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
436
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
437 # Library members defined in libgcc2.c.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
438 lib2funcs = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _cmpdi2 _ucmpdi2 \
111
kono
parents: 67
diff changeset
439 _clear_cache _trampoline __main _absvsi2 \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
440 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
441 _negvsi2 _negvdi2 _ctors _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
442 _ctzsi2 _ctzdi2 _popcount_tab _popcountsi2 _popcountdi2 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
443 _paritysi2 _paritydi2 _powisf2 _powidf2 _powixf2 _powitf2 \
111
kono
parents: 67
diff changeset
444 _mulhc3 _mulsc3 _muldc3 _mulxc3 _multc3 _divhc3 _divsc3 \
kono
parents: 67
diff changeset
445 _divdc3 _divxc3 _divtc3 _bswapsi2 _bswapdi2 _clrsbsi2 \
kono
parents: 67
diff changeset
446 _clrsbdi2
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
447
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
448 # The floating-point conversion routines that involve a single-word integer.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
449 # XX stands for the integer mode.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
450 swfloatfuncs = $(patsubst %,_fixuns%XX,sf df xf)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
451
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
452 # Likewise double-word routines.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
453 dwfloatfuncs = $(patsubst %,_fix%XX,sf df xf tf) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
454 $(patsubst %,_fixuns%XX,sf df xf tf) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
455 $(patsubst %,_floatXX%,sf df xf tf) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
456 $(patsubst %,_floatunXX%,sf df xf tf)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
457
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
458 ifeq ($(LIB2_SIDITI_CONV_FUNCS),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
459 lib2funcs += $(subst XX,si,$(swfloatfuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
460 lib2funcs += $(subst XX,di,$(dwfloatfuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
461 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
462
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
463 # These might cause a divide overflow trap and so are compiled with
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
464 # unwinder info.
111
kono
parents: 67
diff changeset
465 LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _divmoddi4 \
kono
parents: 67
diff changeset
466 _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
467
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
468 # Remove any objects from lib2funcs and LIB2_DIVMOD_FUNCS that are
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
469 # defined as optimized assembly code in LIB1ASMFUNCS or as C code
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
470 # in LIB2FUNCS_EXCLUDE.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
471 lib2funcs := $(filter-out $(LIB2FUNCS_EXCLUDE) $(LIB1ASMFUNCS),$(lib2funcs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
472 LIB2_DIVMOD_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE) $(LIB1ASMFUNCS), \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
473 $(LIB2_DIVMOD_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
474
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
475 LIB2FUNCS_ST := $(filter-out $(LIB2FUNCS_EXCLUDE),$(LIB2FUNCS_ST))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
476
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
477 # Build "libgcc1" (assembly) components.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
478
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
479 lib1asmfuncs-o = $(patsubst %,%$(objext),$(LIB1ASMFUNCS))
111
kono
parents: 67
diff changeset
480 $(lib1asmfuncs-o): %$(objext): $(srcdir)/config/$(LIB1ASMSRC) %.vis
kono
parents: 67
diff changeset
481 $(gcc_compile) -DL$* -xassembler-with-cpp -c $< -include $*.vis
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
482 $(patsubst %,%.vis,$(LIB1ASMFUNCS)): %.vis: %_s$(objext)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
483 $(gen-hide-list)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
484 libgcc-objects += $(lib1asmfuncs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
485
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
486 lib1asmfuncs-s-o = $(patsubst %,%_s$(objext),$(LIB1ASMFUNCS))
111
kono
parents: 67
diff changeset
487 $(lib1asmfuncs-s-o): %_s$(objext): $(srcdir)/config/$(LIB1ASMSRC)
kono
parents: 67
diff changeset
488 $(gcc_s_compile) -DL$* -xassembler-with-cpp -c $<
kono
parents: 67
diff changeset
489 ifeq ($(enable_shared),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
490
111
kono
parents: 67
diff changeset
491 libgcc-s-objects += $(lib1asmfuncs-s-o)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
492
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
493 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
494
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
495 # Build lib2funcs. For the static library also include LIB2FUNCS_ST.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
496 lib2funcs-o = $(patsubst %,%$(objext),$(lib2funcs) $(LIB2FUNCS_ST))
111
kono
parents: 67
diff changeset
497 $(lib2funcs-o): %$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
498 $(gcc_compile) -DL$* -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
499 libgcc-objects += $(lib2funcs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
500
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
501 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
502 lib2funcs-s-o = $(patsubst %,%_s$(objext),$(lib2funcs))
111
kono
parents: 67
diff changeset
503 $(lib2funcs-s-o): %_s$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
504 $(gcc_s_compile) -DL$* -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
505 libgcc-s-objects += $(lib2funcs-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
506 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
507
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
508 ifneq ($(LIB2_SIDITI_CONV_FUNCS),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
509 # Build libgcc2.c for each conversion function, with a specific
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
510 # L<func> definition and LIBGCC2_UNITS_PER_WORD setting. The DImode
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
511 # functions are built with a wordsize of 4; the TImode functions are
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
512 # built with the same labels, but a wordsize of 8.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
513
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
514 sifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,si,$(swfloatfuncs)))
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
515 difuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,di,$(dwfloatfuncs)))
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
516 tifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,ti,$(dwfloatfuncs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
517
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
518 iter-items := $(sifuncs) $(difuncs) $(tifuncs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
519 iter-labels := $(sifuncs) $(difuncs) $(difuncs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
520 iter-sizes := $(patsubst %,4,$(sifuncs) $(difuncs)) $(patsubst %,8,$(tifuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
521
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
522 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/siditi-object.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
523
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
524 libgcc-objects += $(patsubst %,%$(objext),$(sifuncs) $(difuncs) $(tifuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
525 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
526 libgcc-s-objects += $(patsubst %,%_s$(objext),$(sifuncs) $(difuncs) $(tifuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
527 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
528 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
529
111
kono
parents: 67
diff changeset
530 ifeq ($(LIB2_DIVMOD_EXCEPTION_FLAGS),)
kono
parents: 67
diff changeset
531 # Provide default flags for compiling divmod functions, if they haven't been
kono
parents: 67
diff changeset
532 # set already by a target-specific Makefile fragment.
kono
parents: 67
diff changeset
533 LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions -fnon-call-exceptions
kono
parents: 67
diff changeset
534 endif
kono
parents: 67
diff changeset
535
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
536 # Build LIB2_DIVMOD_FUNCS.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
537 lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS))
111
kono
parents: 67
diff changeset
538 $(lib2-divmod-o): %$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
539 $(gcc_compile) -DL$* -c $< \
kono
parents: 67
diff changeset
540 $(LIB2_DIVMOD_EXCEPTION_FLAGS) $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
541 libgcc-objects += $(lib2-divmod-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
542
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
543 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
544 lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS))
111
kono
parents: 67
diff changeset
545 $(lib2-divmod-s-o): %_s$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
546 $(gcc_s_compile) -DL$* -c $< \
kono
parents: 67
diff changeset
547 $(LIB2_DIVMOD_EXCEPTION_FLAGS)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
548 libgcc-s-objects += $(lib2-divmod-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
549 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
550
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
551 ifeq ($(TPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
552 # _sf_to_tf and _df_to_tf require tp-bit.c being compiled in.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
553 FPBIT_FUNCS := $(filter-out _sf_to_tf,$(FPBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
554 DPBIT_FUNCS := $(filter-out _df_to_tf,$(DPBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
555 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
556
111
kono
parents: 67
diff changeset
557 FPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(FPBIT_FUNCS))
kono
parents: 67
diff changeset
558 DPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(DPBIT_FUNCS))
kono
parents: 67
diff changeset
559 TPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(TPBIT_FUNCS))
kono
parents: 67
diff changeset
560
kono
parents: 67
diff changeset
561 fpbit-src := $(srcdir)/fp-bit.c
kono
parents: 67
diff changeset
562
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
563 # Build FPBIT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
564 ifneq ($(FPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
565 fpbit-o = $(patsubst %,%$(objext),$(FPBIT_FUNCS))
111
kono
parents: 67
diff changeset
566 $(fpbit-o): %$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
567 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DFLOAT $(FPBIT_CFLAGS) -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
568 libgcc-objects += $(fpbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
569
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
570 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
571 fpbit-s-o = $(patsubst %,%_s$(objext),$(FPBIT_FUNCS))
111
kono
parents: 67
diff changeset
572 $(fpbit-s-o): %_s$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
573 $(gcc_s_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DFLOAT $(FPBIT_CFLAGS) -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
574 libgcc-s-objects += $(fpbit-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
575 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
576 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
577
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
578 # Build DPBIT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
579 ifneq ($(DPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
580 dpbit-o = $(patsubst %,%$(objext),$(DPBIT_FUNCS))
111
kono
parents: 67
diff changeset
581 $(dpbit-o): %$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
582 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* $(DPBIT_CFLAGS) -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
583 libgcc-objects += $(dpbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
584
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
585 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
586 dpbit-s-o = $(patsubst %,%_s$(objext),$(DPBIT_FUNCS))
111
kono
parents: 67
diff changeset
587 $(dpbit-s-o): %_s$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
588 $(gcc_s_compile) -DFINE_GRAINED_LIBRARIES -DL$* $(DPBIT_CFLAGS) -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
589 libgcc-s-objects += $(dpbit-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
590 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
591 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
592
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
593 # Build TPBIT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
594 ifneq ($(TPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
595 tpbit-o = $(patsubst %,%$(objext),$(TPBIT_FUNCS))
111
kono
parents: 67
diff changeset
596 $(tpbit-o): %$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
597 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DTFLOAT $(TPBIT_CFLAGS) -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
598 libgcc-objects += $(tpbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
599
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
600 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
601 tpbit-s-o = $(patsubst %,%_s$(objext),$(TPBIT_FUNCS))
111
kono
parents: 67
diff changeset
602 $(tpbit-s-o): %_s$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
603 $(gcc_s_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DTFLOAT $(TPBIT_CFLAGS) -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
604 libgcc-s-objects += $(tpbit-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
605 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
606 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
607
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
608 # Build decimal floating point support.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
609 ifeq ($(decimal_float),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
610
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
611 # If $DFP_ENABLE is set, then we want all data type sizes.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
612 ifneq ($(DFP_ENABLE),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
613 D32PBIT = 1
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
614 D64PBIT = 1
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
615 D128PBIT = 1
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
616 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
617
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
618 dfp-filenames =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
619 ifneq ($(D32PBIT)$(D64PBIT)$(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
620 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
621 dfp-filenames += bid_decimal_globals bid_decimal_data \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
622 bid_binarydecimal bid_convert_data \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
623 _isinfd32 _isinfd64 _isinfd128 bid64_noncomp \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
624 bid128_noncomp bid128_fma bid_round bid_from_int \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
625 bid64_add bid128_add bid64_div bid128_div \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
626 bid64_mul bid128_mul bid64_compare bid128_compare \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
627 bid128 bid32_to_bid64 bid32_to_bid128 bid64_to_bid128 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
628 bid64_to_int32 bid64_to_int64 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
629 bid64_to_uint32 bid64_to_uint64 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
630 bid128_to_int32 bid128_to_int64 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
631 bid128_to_uint32 bid128_to_uint64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
632 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
633 dfp-filenames += decContext decNumber decExcept decRound decLibrary decDouble decPacked decQuad decSingle
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
634 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
635 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
636
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
637 dfp-objects = $(patsubst %,%$(objext),$(dfp-filenames))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
638 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
639 $(dfp-objects): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
640 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
641 $(dfp-objects): %$(objext): $(srcdir)/../libdecnumber/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
642 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
643 $(gcc_compile) -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
644 libgcc-objects += $(dfp-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
645
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
646 decbits-filenames =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
647 ifneq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
648 ifneq ($(D32PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
649 decbits-filenames += decimal32
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
650 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
651
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
652 ifneq ($(D64PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
653 decbits-filenames += decimal64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
654 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
655
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
656 ifneq ($(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
657 decbits-filenames += decimal128
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
658 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
659 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
660
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
661 decbits-objects = $(patsubst %,%$(objext),$(decbits-filenames))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
662 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
663 $(decbits-objects): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
664 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
665 $(decbits-objects): %$(objext): $(srcdir)/../libdecnumber/$(enable_decimal_float)/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
666 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
667 $(gcc_compile) -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
668 libgcc-objects += $(decbits-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
669
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
670 # Next build individual support functions.
111
kono
parents: 67
diff changeset
671 D32PBIT_FUNCS = _addsub_sd _div_sd _mul_sd _plus_sd _minus_sd \
kono
parents: 67
diff changeset
672 _eq_sd _ne_sd _lt_sd _gt_sd _le_sd _ge_sd \
kono
parents: 67
diff changeset
673 _sd_to_si _sd_to_di _sd_to_usi _sd_to_udi \
kono
parents: 67
diff changeset
674 _si_to_sd _di_to_sd _usi_to_sd _udi_to_sd \
kono
parents: 67
diff changeset
675 _sd_to_sf _sd_to_df _sd_to_xf _sd_to_tf \
kono
parents: 67
diff changeset
676 _sf_to_sd _df_to_sd _xf_to_sd _tf_to_sd \
kono
parents: 67
diff changeset
677 _sd_to_dd _sd_to_td _unord_sd _conv_sd
kono
parents: 67
diff changeset
678
kono
parents: 67
diff changeset
679 D64PBIT_FUNCS = _addsub_dd _div_dd _mul_dd _plus_dd _minus_dd \
kono
parents: 67
diff changeset
680 _eq_dd _ne_dd _lt_dd _gt_dd _le_dd _ge_dd \
kono
parents: 67
diff changeset
681 _dd_to_si _dd_to_di _dd_to_usi _dd_to_udi \
kono
parents: 67
diff changeset
682 _si_to_dd _di_to_dd _usi_to_dd _udi_to_dd \
kono
parents: 67
diff changeset
683 _dd_to_sf _dd_to_df _dd_to_xf _dd_to_tf \
kono
parents: 67
diff changeset
684 _sf_to_dd _df_to_dd _xf_to_dd _tf_to_dd \
kono
parents: 67
diff changeset
685 _dd_to_sd _dd_to_td _unord_dd _conv_dd
kono
parents: 67
diff changeset
686
kono
parents: 67
diff changeset
687 D128PBIT_FUNCS = _addsub_td _div_td _mul_td _plus_td _minus_td \
kono
parents: 67
diff changeset
688 _eq_td _ne_td _lt_td _gt_td _le_td _ge_td \
kono
parents: 67
diff changeset
689 _td_to_si _td_to_di _td_to_usi _td_to_udi \
kono
parents: 67
diff changeset
690 _si_to_td _di_to_td _usi_to_td _udi_to_td \
kono
parents: 67
diff changeset
691 _td_to_sf _td_to_df _td_to_xf _td_to_tf \
kono
parents: 67
diff changeset
692 _sf_to_td _df_to_td _xf_to_td _tf_to_td \
kono
parents: 67
diff changeset
693 _td_to_sd _td_to_dd _unord_td _conv_td
kono
parents: 67
diff changeset
694
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
695 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
696 ifneq ($(D32PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
697 D32PBIT_FUNCS:=$(filter-out _plus_sd _minus_sd _conv_sd, $(D32PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
698 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
699
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
700 ifneq ($(D64PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
701 D64PBIT_FUNCS:=$(filter-out _plus_dd _minus_dd _conv_dd, $(D64PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
702 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
703
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
704 ifneq ($(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
705 D128PBIT_FUNCS:=$(filter-out _plus_td _minus_td _conv_td, $(D128PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
706 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
707 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
708
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
709 ifneq ($(D32PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
710 d32pbit-o = $(patsubst %,%$(objext),$(D32PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
711 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
712 $(d32pbit-o): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
713 else
111
kono
parents: 67
diff changeset
714 $(d32pbit-o): %$(objext): $(srcdir)/dfp-bit.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
715 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
716 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=32 -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
717 libgcc-objects += $(d32pbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
718 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
719
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
720 ifneq ($(D64PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
721 d64pbit-o = $(patsubst %,%$(objext),$(D64PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
722 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
723 $(d64pbit-o): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
724 else
111
kono
parents: 67
diff changeset
725 $(d64pbit-o): %$(objext): $(srcdir)/dfp-bit.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
726 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
727 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=64 -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
728 libgcc-objects += $(d64pbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
729 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
730
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
731 ifneq ($(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
732 d128pbit-o = $(patsubst %,%$(objext),$(D128PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
733 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
734 $(d128pbit-o): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
735 else
111
kono
parents: 67
diff changeset
736 $(d128pbit-o): %$(objext): $(srcdir)/dfp-bit.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
737 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
738 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=128 -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
739 libgcc-objects += $(d128pbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
740 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
741
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
742 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
743
111
kono
parents: 67
diff changeset
744 ifeq ($(SYNC),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
745 libgcc-sync-size-funcs := $(foreach op, add sub or and xor nand, \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
746 sync_fetch_and_$(op) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
747 sync_$(op)_and_fetch) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
748 sync_bool_compare_and_swap \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
749 sync_val_compare_and_swap \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
750 sync_lock_test_and_set
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
751
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
752 libgcc-sync-size-funcs := $(foreach prefix, $(libgcc-sync-size-funcs), \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
753 $(foreach suffix, 1 2 4 8 16, \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
754 $(prefix)_$(suffix)))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
755
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
756 libgcc-sync-size-funcs-o = $(patsubst %,%$(objext),$(libgcc-sync-size-funcs))
111
kono
parents: 67
diff changeset
757 $(libgcc-sync-size-funcs-o): %$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
758 $(gcc_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
759 -DFN=`echo "$*" | sed 's/_[^_]*$$//'` \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
760 -DSIZE=`echo "$*" | sed 's/.*_//'` \
111
kono
parents: 67
diff changeset
761 -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
762 libgcc-objects += $(libgcc-sync-size-funcs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
763
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
764 libgcc-sync-funcs := sync_synchronize
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
765
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
766 libgcc-sync-funcs-o = $(patsubst %,%$(objext),$(libgcc-sync-funcs))
111
kono
parents: 67
diff changeset
767 $(libgcc-sync-funcs-o): %$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
768 $(gcc_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
769 -DL$* \
111
kono
parents: 67
diff changeset
770 -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
771 libgcc-objects += $(libgcc-sync-funcs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
772
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
773 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
774 libgcc-sync-size-funcs-s-o = $(patsubst %,%_s$(objext), \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
775 $(libgcc-sync-size-funcs))
111
kono
parents: 67
diff changeset
776 $(libgcc-sync-size-funcs-s-o): %_s$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
777 $(gcc_s_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
778 -DFN=`echo "$*" | sed 's/_[^_]*$$//'` \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
779 -DSIZE=`echo "$*" | sed 's/.*_//'` \
111
kono
parents: 67
diff changeset
780 -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
781 libgcc-s-objects += $(libgcc-sync-size-funcs-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
782
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
783 libgcc-sync-funcs-s-o = $(patsubst %,%_s$(objext),$(libgcc-sync-funcs))
111
kono
parents: 67
diff changeset
784 $(libgcc-sync-funcs-s-o): %_s$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
785 $(gcc_s_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
786 -DL$* \
111
kono
parents: 67
diff changeset
787 -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
788 libgcc-s-objects += $(libgcc-sync-funcs-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
789 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
790 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
791
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
792 # Build fixed-point support.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
793 ifeq ($(fixed_point),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
794
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
795 # Generate permutations of function name and mode
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
796 fixed-labels := $(shell $(SHELL) $(srcdir)/gen-fixed.sh arith labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
797 fixed-funcs := $(shell $(SHELL) $(srcdir)/gen-fixed.sh arith funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
798 fixed-modes := $(shell $(SHELL) $(srcdir)/gen-fixed.sh arith modes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
799
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
800 # Generate the rules for each arithmetic function
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
801 iter-items := $(fixed-funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
802 iter-labels := $(fixed-labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
803 iter-from := $(fixed-modes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
804 iter-to := $(fixed-modes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
805 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/fixed-obj.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
806
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
807 # Add arithmetic functions to list of objects to be built
111
kono
parents: 67
diff changeset
808 libgcc-objects += $(patsubst %,%$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
809 ifeq ($(enable_shared),yes)
111
kono
parents: 67
diff changeset
810 libgcc-s-objects += $(patsubst %,%_s$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
811 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
812
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
813 # Convert from or to fractional
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
814 fixed-conv-funcs := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
815 fixed-conv-labels := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
816 fixed-conv-from := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv from)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
817 fixed-conv-to := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv to)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
818
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
819 # Generate the make rules for each conversion function
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
820 iter-items := $(fixed-conv-funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
821 iter-labels := $(fixed-conv-labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
822 iter-from := $(fixed-conv-from)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
823 iter-to := $(fixed-conv-to)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
824 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/fixed-obj.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
825
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
826 # Add conversion functions to list of objects to be built
111
kono
parents: 67
diff changeset
827 libgcc-objects += $(patsubst %,%$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-conv-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
828 ifeq ($(enable_shared),yes)
111
kono
parents: 67
diff changeset
829 libgcc-s-objects += $(patsubst %,%_s$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-conv-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
830 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
831
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
832 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
833
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
834 # Build LIB2ADD and LIB2ADD_ST.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
835 ifneq ($(filter-out %.c %.S %.asm,$(LIB2ADD) $(LIB2ADD_ST)),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
836 $(error Unsupported files in LIB2ADD or LIB2ADD_ST.)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
837 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
838
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
839 libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADD))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
840 libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADD_ST))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
841
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
842 c_flags :=
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
843 iter-items := $(LIB2ADD) $(LIB2ADD_ST)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
844 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
845
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
846 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
847 libgcc-s-objects += $(addsuffix _s$(objext),$(basename $(notdir $(LIB2ADD))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
848 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
849
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
850 # Build LIB2ADDEH, LIB2ADDEHSTATIC, and LIB2ADDEHSHARED. If we don't have
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
851 # libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
852 # LIB2ADDEHSHARED matter. (Usually all three are identical.)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
853
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
854 c_flags := -fexceptions
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
855
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
856 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
857
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
858 libgcc-eh-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADDEHSTATIC))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
859 libgcc-s-objects += $(addsuffix _s$(objext),$(basename $(notdir $(LIB2ADDEHSHARED))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
860
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
861 iter-items := $(sort $(LIB2ADDEHSTATIC) $(LIB2ADDEHSHARED))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
862 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
863
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
864 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
865 # Not shared. LIB2ADDEH are added to libgcc.a.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
866
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
867 libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADDEH))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
868
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
869 iter-items := $(LIB2ADDEH)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
870 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
871
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
872 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
873
111
kono
parents: 67
diff changeset
874 # Build LIBUNWIND. Use -fno-exceptions so that the unwind library does
kono
parents: 67
diff changeset
875 # not generate calls to __gcc_personality_v0.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
876
111
kono
parents: 67
diff changeset
877 c_flags := -fno-exceptions
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
878
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
879 libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
880
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
881 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
882 libunwind-s-objects += $(addsuffix _s$(objext),$(basename $(notdir $(LIBUNWIND))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
883 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
884
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
885 iter-items := $(LIBUNWIND)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
886 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
887
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
888 # Build libgcov components.
111
kono
parents: 67
diff changeset
889
kono
parents: 67
diff changeset
890 LIBGCOV_MERGE = _gcov_merge_add _gcov_merge_single \
kono
parents: 67
diff changeset
891 _gcov_merge_ior _gcov_merge_time_profile _gcov_merge_icall_topn
kono
parents: 67
diff changeset
892 LIBGCOV_PROFILER = _gcov_interval_profiler \
kono
parents: 67
diff changeset
893 _gcov_interval_profiler_atomic \
kono
parents: 67
diff changeset
894 _gcov_pow2_profiler \
kono
parents: 67
diff changeset
895 _gcov_pow2_profiler_atomic \
kono
parents: 67
diff changeset
896 _gcov_one_value_profiler \
kono
parents: 67
diff changeset
897 _gcov_one_value_profiler_atomic \
kono
parents: 67
diff changeset
898 _gcov_average_profiler \
kono
parents: 67
diff changeset
899 _gcov_average_profiler_atomic \
kono
parents: 67
diff changeset
900 _gcov_ior_profiler \
kono
parents: 67
diff changeset
901 _gcov_ior_profiler_atomic \
kono
parents: 67
diff changeset
902 _gcov_indirect_call_profiler_v2 \
kono
parents: 67
diff changeset
903 _gcov_time_profiler \
kono
parents: 67
diff changeset
904 _gcov_indirect_call_topn_profiler
kono
parents: 67
diff changeset
905 LIBGCOV_INTERFACE = _gcov_dump _gcov_flush _gcov_fork \
kono
parents: 67
diff changeset
906 _gcov_execl _gcov_execlp \
kono
parents: 67
diff changeset
907 _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset
kono
parents: 67
diff changeset
908 LIBGCOV_DRIVER = _gcov
kono
parents: 67
diff changeset
909
kono
parents: 67
diff changeset
910 libgcov-merge-objects = $(patsubst %,%$(objext),$(LIBGCOV_MERGE))
kono
parents: 67
diff changeset
911 libgcov-profiler-objects = $(patsubst %,%$(objext),$(LIBGCOV_PROFILER))
kono
parents: 67
diff changeset
912 libgcov-interface-objects = $(patsubst %,%$(objext),$(LIBGCOV_INTERFACE))
kono
parents: 67
diff changeset
913 libgcov-driver-objects = $(patsubst %,%$(objext),$(LIBGCOV_DRIVER))
kono
parents: 67
diff changeset
914 libgcov-objects = $(libgcov-merge-objects) $(libgcov-profiler-objects) \
kono
parents: 67
diff changeset
915 $(libgcov-interface-objects) $(libgcov-driver-objects)
kono
parents: 67
diff changeset
916
kono
parents: 67
diff changeset
917 $(libgcov-merge-objects): %$(objext): $(srcdir)/libgcov-merge.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
918 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-merge.c
kono
parents: 67
diff changeset
919 $(libgcov-profiler-objects): %$(objext): $(srcdir)/libgcov-profiler.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
920 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-profiler.c
kono
parents: 67
diff changeset
921 $(libgcov-interface-objects): %$(objext): $(srcdir)/libgcov-interface.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
922 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-interface.c
kono
parents: 67
diff changeset
923 $(libgcov-driver-objects): %$(objext): $(srcdir)/libgcov-driver.c \
kono
parents: 67
diff changeset
924 $(srcdir)/libgcov-driver-system.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
925 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-driver.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
926
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
927
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
928 # Static libraries.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
929 libgcc.a: $(libgcc-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
930 libgcov.a: $(libgcov-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
931 libunwind.a: $(libunwind-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
932 libgcc_eh.a: $(libgcc-eh-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
933
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
934 libgcc.a libgcov.a libunwind.a libgcc_eh.a:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
935 -rm -f $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
936
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
937 objects="$(objects)"; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
938 if test -z "$$objects"; then \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
939 echo 'int __libgcc_eh_dummy;' > eh_dummy.c; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
940 $(gcc_compile_bare) $(vis_hide) -c eh_dummy.c \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
941 -o eh_dummy$(objext); \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
942 objects=eh_dummy$(objext); \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
943 fi; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
944 $(AR_CREATE_FOR_TARGET) $@ $$objects
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
945
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
946 $(RANLIB) $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
947
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
948 all: libgcc.a
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
949 ifeq ($(enable_gcov),yes)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
950 all: libgcov.a
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
951 endif
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
952
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
953 ifneq ($(LIBUNWIND),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
954 all: libunwind.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
955 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
956
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
957 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
958 all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
959 ifneq ($(LIBUNWIND),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
960 all: libunwind$(SHLIB_EXT)
111
kono
parents: 67
diff changeset
961 libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_EXT)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
962 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
963
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
964 # Map-file generation.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
965 ifneq ($(SHLIB_MKMAP),)
111
kono
parents: 67
diff changeset
966 libgcc.map.in: $(SHLIB_MAPFILES)
kono
parents: 67
diff changeset
967 { cat $(SHLIB_MAPFILES) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
968 | sed -e '/^[ ]*#/d' \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
969 -e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
970 | $(gcc_compile_bare) -E -xassembler-with-cpp -; \
111
kono
parents: 67
diff changeset
971 } > tmp-$@
kono
parents: 67
diff changeset
972 mv tmp-$@ $@
kono
parents: 67
diff changeset
973 libgcc.map: $(SHLIB_MKMAP) libgcc.map.in $(libgcc-s-objects)
kono
parents: 67
diff changeset
974 { $(NM) $(SHLIB_NM_FLAGS) $(libgcc-s-objects); echo %%; \
kono
parents: 67
diff changeset
975 cat libgcc.map.in; \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
976 } | $(AWK) -f $(SHLIB_MKMAP) $(SHLIB_MKMAP_OPTS) > tmp-$@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
977 mv tmp-$@ $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
978 libgcc_s$(SHLIB_EXT): libgcc.map
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
979 mapfile = libgcc.map
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
980 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
981
111
kono
parents: 67
diff changeset
982 libgcc-std.ver: $(srcdir)/libgcc-std.ver.in
kono
parents: 67
diff changeset
983 sed -e 's/__PFX__/$(LIBGCC_VER_GNU_PREFIX)/g' \
kono
parents: 67
diff changeset
984 -e 's/__FIXPTPFX__/$(LIBGCC_VER_FIXEDPOINT_GNU_PREFIX)/g' < $< > $@
kono
parents: 67
diff changeset
985
kono
parents: 67
diff changeset
986 libgcc_s$(SHLIB_EXT): $(libgcc-s-objects) $(extra-parts) libgcc.a
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
987 # @multilib_flags@ is still needed because this may use
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
988 # $(GCC_FOR_TARGET) and $(LIBGCC2_CFLAGS) directly.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
989 # @multilib_dir@ is not really necessary, but sometimes it has
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
990 # more uses than just a directory name.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
991 $(mkinstalldirs) $(MULTIDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
992 $(subst @multilib_flags@,$(CFLAGS) -B./,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
993 @multilib_dir@,$(MULTIDIR),$(subst \
111
kono
parents: 67
diff changeset
994 @shlib_objs@,$(objects) libgcc.a,$(subst \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
995 @shlib_base_name@,libgcc_s,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
996 @shlib_map_file@,$(mapfile),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
997 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
998 @shlib_slibdir@,$(shlib_slibdir),$(SHLIB_LINK))))))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
999
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1000 libunwind$(SHLIB_EXT): $(libunwind-s-objects) $(extra-parts)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1001 # @multilib_flags@ is still needed because this may use
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1002 # $(GCC_FOR_TARGET) and $(LIBGCC2_CFLAGS) directly.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1003 # @multilib_dir@ is not really necessary, but sometimes it has
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1004 # more uses than just a directory name.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1005 $(mkinstalldirs) $(MULTIDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1006 $(subst @multilib_flags@,$(CFLAGS) -B./,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1007 @multilib_dir@,$(MULTIDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1008 @shlib_objs@,$(objects),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1009 @shlib_base_name@,libunwind,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1010 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIBUNWIND_LINK))))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1011
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1012 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1013
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1014 # Build the standard GCC startfiles and endfiles.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1015 ALL_CRT_CFLAGS = $(CFLAGS) $(CRTSTUFF_CFLAGS) $(INCLUDES)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1016 crt_compile = $(CC) $(ALL_CRT_CFLAGS) -o $@ $(compile_deps)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1017
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1018 ifeq ($(CUSTOM_CRTSTUFF),)
111
kono
parents: 67
diff changeset
1019 # Compile two additional files that are linked with every program
kono
parents: 67
diff changeset
1020 # linked using GCC on systems using COFF or ELF, for the sake of C++
kono
parents: 67
diff changeset
1021 # constructors.
kono
parents: 67
diff changeset
1022 crtbegin$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1023 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_BEGIN
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1024
111
kono
parents: 67
diff changeset
1025 crtend$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1026 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_END
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1027
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1028 # These are versions of crtbegin and crtend for shared libraries.
111
kono
parents: 67
diff changeset
1029 crtbeginS$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1030 $(crt_compile) $(CRTSTUFF_T_CFLAGS_S) -c $< -DCRT_BEGIN -DCRTSTUFFS_O
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1031
111
kono
parents: 67
diff changeset
1032 crtendS$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1033 $(crt_compile) $(CRTSTUFF_T_CFLAGS_S) -c $< -DCRT_END -DCRTSTUFFS_O
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1034
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1035 # This is a version of crtbegin for -static links.
111
kono
parents: 67
diff changeset
1036 crtbeginT$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1037 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_BEGIN -DCRTSTUFFT_O
kono
parents: 67
diff changeset
1038
kono
parents: 67
diff changeset
1039 # crtoffloadbegin and crtoffloadend contain symbols, that mark the begin and
kono
parents: 67
diff changeset
1040 # the end of tables with addresses, required for offloading. crtoffloadtable
kono
parents: 67
diff changeset
1041 # contains the array with addresses of those symbols.
kono
parents: 67
diff changeset
1042 crtoffloadbegin$(objext): $(srcdir)/offloadstuff.c
kono
parents: 67
diff changeset
1043 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_BEGIN
kono
parents: 67
diff changeset
1044
kono
parents: 67
diff changeset
1045 crtoffloadend$(objext): $(srcdir)/offloadstuff.c
kono
parents: 67
diff changeset
1046 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_END
kono
parents: 67
diff changeset
1047
kono
parents: 67
diff changeset
1048 crtoffloadtable$(objext): $(srcdir)/offloadstuff.c
kono
parents: 67
diff changeset
1049 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_TABLE
kono
parents: 67
diff changeset
1050 endif
kono
parents: 67
diff changeset
1051
kono
parents: 67
diff changeset
1052 ifeq ($(enable_vtable_verify),yes)
kono
parents: 67
diff changeset
1053 # These are used in vtable verification; see comments in source files for
kono
parents: 67
diff changeset
1054 # more details.
kono
parents: 67
diff changeset
1055
kono
parents: 67
diff changeset
1056 # Override -finhibit-size-directive to avoid mismatch between libgcc and libvtv
kono
parents: 67
diff changeset
1057 # compilations.
kono
parents: 67
diff changeset
1058 VTV_CFLAGS = $(CRTSTUFF_T_CFLAGS_S) -fno-inhibit-size-directive
kono
parents: 67
diff changeset
1059
kono
parents: 67
diff changeset
1060 vtv_start$(objext): $(srcdir)/vtv_start.c
kono
parents: 67
diff changeset
1061 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_start.c
kono
parents: 67
diff changeset
1062
kono
parents: 67
diff changeset
1063 vtv_end$(objext): $(srcdir)/vtv_end.c
kono
parents: 67
diff changeset
1064 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_end.c
kono
parents: 67
diff changeset
1065
kono
parents: 67
diff changeset
1066 vtv_start_preinit$(objext): $(srcdir)/vtv_start_preinit.c
kono
parents: 67
diff changeset
1067 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_start_preinit.c
kono
parents: 67
diff changeset
1068
kono
parents: 67
diff changeset
1069 vtv_end_preinit$(objext): $(srcdir)/vtv_end_preinit.c
kono
parents: 67
diff changeset
1070 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_end_preinit.c
kono
parents: 67
diff changeset
1071 endif
kono
parents: 67
diff changeset
1072
kono
parents: 67
diff changeset
1073 ifeq ($(CUSTOM_CRTIN),)
kono
parents: 67
diff changeset
1074 # -x assembler-with-cpp is only needed on case-insensitive filesystem.
kono
parents: 67
diff changeset
1075 crti$(objext): $(srcdir)/config/$(cpu_type)/crti.S
kono
parents: 67
diff changeset
1076 $(crt_compile) -c -x assembler-with-cpp $<
kono
parents: 67
diff changeset
1077
kono
parents: 67
diff changeset
1078 crtn$(objext): $(srcdir)/config/$(cpu_type)/crtn.S
kono
parents: 67
diff changeset
1079 $(crt_compile) -c -x assembler-with-cpp $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1080 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1081
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1082 # Build extra startfiles in the libgcc directory.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1083 .PHONY: libgcc-extra-parts
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1084 libgcc-extra-parts: $(EXTRA_PARTS)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1085
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1086 # Early copyback; see "all" above for the rationale. The
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1087 # early copy is necessary so that the gcc -B options find
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1088 # the right startup files when linking shared libgcc.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1089 $(mkinstalldirs) $(gcc_objdir)$(MULTISUBDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1090 parts="$(EXTRA_PARTS)"; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1091 for file in $$parts; do \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1092 rm -f $(gcc_objdir)$(MULTISUBDIR)/$$file; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1093 $(INSTALL_DATA) $$file $(gcc_objdir)$(MULTISUBDIR)/; \
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1094 case $$file in \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1095 *.a) \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1096 $(RANLIB) $(gcc_objdir)$(MULTISUBDIR)/$$file ;; \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1097 esac; \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1098 done
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1099
111
kono
parents: 67
diff changeset
1100 all: $(extra-parts)
kono
parents: 67
diff changeset
1101
kono
parents: 67
diff changeset
1102 $(libgcc-objects) $(libgcc-s-objects) $(libgcc-eh-objects) \
kono
parents: 67
diff changeset
1103 $(libgcov-objects) \
kono
parents: 67
diff changeset
1104 $(libunwind-objects) $(libunwind-s-objects) \
kono
parents: 67
diff changeset
1105 $(EXTRA_PARTS): $(LIBGCC_LINKS) libgcc_tm.h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1106
111
kono
parents: 67
diff changeset
1107 # Copy unwind.h to the place where gcc will look for it at build-time
kono
parents: 67
diff changeset
1108 install-unwind_h-forbuild: unwind.h
kono
parents: 67
diff changeset
1109 dest=$(gcc_objdir)/include/tmp$$$$-unwind.h; \
kono
parents: 67
diff changeset
1110 cp unwind.h $$dest; \
kono
parents: 67
diff changeset
1111 chmod a+r $$dest; \
kono
parents: 67
diff changeset
1112 sh $(srcdir)/../move-if-change $$dest $(gcc_objdir)/include/unwind.h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1113
111
kono
parents: 67
diff changeset
1114 # Copy unwind.h to the place where gcc will look at run-time, once installed
kono
parents: 67
diff changeset
1115 #
kono
parents: 67
diff changeset
1116 # This is redundant with the internal copy above when using a regular toplevel
kono
parents: 67
diff changeset
1117 # "install" target, because gcc's install will copy to the destination as well.
kono
parents: 67
diff changeset
1118 #
kono
parents: 67
diff changeset
1119 # This is however useful for "install-no-fixincludes" case, when only the gcc
kono
parents: 67
diff changeset
1120 # internal headers are copied by gcc's install.
kono
parents: 67
diff changeset
1121 install-unwind_h:
kono
parents: 67
diff changeset
1122 $(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
kono
parents: 67
diff changeset
1123 $(INSTALL_DATA) unwind.h $(DESTDIR)$(libsubdir)/include
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1124
111
kono
parents: 67
diff changeset
1125 all: install-unwind_h-forbuild
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1126
111
kono
parents: 67
diff changeset
1127 install-gcov_h:
kono
parents: 67
diff changeset
1128 $(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
kono
parents: 67
diff changeset
1129 $(INSTALL_DATA) $(srcdir)/gcov.h $(DESTDIR)$(libsubdir)/include
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1130
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1131 # Documentation targets (empty).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1132 .PHONY: info html dvi pdf install-info install-html install-pdf
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1133
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1134 info:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1135 install-info:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1136 html:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1137 install-html:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1138 dvi:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1139 pdf:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1140 install-pdf:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1141
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1142 # Install rules. These do not depend on "all", so that they can be invoked
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1143 # recursively from it.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1144 install-libunwind:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1145 $(mkinstalldirs) $(DESTDIR)$(inst_slibdir)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1146
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1147 # NOTE: Maybe this should go into $(inst_libdir), but this
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1148 # is where the old mklibgcc.in put it.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1149 $(INSTALL_DATA) libunwind.a $(DESTDIR)$(inst_slibdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1150 chmod 644 $(DESTDIR)$(inst_slibdir)/libunwind.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1151 $(RANLIB) $(DESTDIR)$(inst_slibdir)/libunwind.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1152
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1153 $(subst @multilib_dir@,$(MULTIDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1154 @shlib_base_name@,libunwind,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1155 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIBUNWIND_INSTALL))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1156
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1157 install-shared:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1158 $(mkinstalldirs) $(DESTDIR)$(inst_libdir)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1159
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1160 $(INSTALL_DATA) libgcc_eh.a $(DESTDIR)$(inst_libdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1161 chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1162 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1163
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1164 $(subst @multilib_dir@,$(MULTIDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1165 @shlib_base_name@,libgcc_s,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1166 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1167
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1168 install-leaf: $(install-shared) $(install-libunwind)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1169 $(mkinstalldirs) $(DESTDIR)$(inst_libdir)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1170
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1171 $(INSTALL_DATA) libgcc.a $(DESTDIR)$(inst_libdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1172 chmod 644 $(DESTDIR)$(inst_libdir)/libgcc.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1173 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc.a
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1174 ifeq ($(enable_gcov),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1175 $(INSTALL_DATA) libgcov.a $(DESTDIR)$(inst_libdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1176 chmod 644 $(DESTDIR)$(inst_libdir)/libgcov.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1177 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1178 endif
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1179
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1180 parts="$(INSTALL_PARTS)"; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1181 for file in $$parts; do \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1182 rm -f $(DESTDIR)$(inst_libdir)/$$file; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1183 $(INSTALL_DATA) $$file $(DESTDIR)$(inst_libdir)/; \
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1184 case $$file in \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1185 *.a) \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1186 $(RANLIB) $(gcc_objdir)$(MULTISUBDIR)/$$file ;; \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1187 esac; \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1188 done
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1189
111
kono
parents: 67
diff changeset
1190 install: install-leaf install-unwind_h install-gcov_h
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
1191 @: $(MAKE) ; $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1192
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1193 install-strip: install
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1194
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1195 .PHONY: install install-shared install-libunwind install-strip
111
kono
parents: 67
diff changeset
1196 .PHONY: install-unwind_h install-unwind_h-forbuild
kono
parents: 67
diff changeset
1197 .PHONY: install-gcov_h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1198
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1199 # Don't export variables to the environment, in order to not confuse
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1200 # configure.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1201 .NOEXPORT:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1202
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1203 include $(srcdir)/empty.mk $(wildcard *.dep)