Lines 38-43
BEGIN {
Link Here
|
38 |
dir_rcall = "short-calls" |
38 |
dir_rcall = "short-calls" |
39 |
opt_rcall = "mshort-calls" |
39 |
opt_rcall = "mshort-calls" |
40 |
|
40 |
|
|
|
41 |
dir_double64 = "double64" |
42 |
opt_double64 = "mdouble=64" |
43 |
|
44 |
dir_long_double64 = "long-double64" |
45 |
opt_long_double64 = "mlong-double=64" |
46 |
|
41 |
# awk Variable Makefile Variable |
47 |
# awk Variable Makefile Variable |
42 |
# ------------------------------------------ |
48 |
# ------------------------------------------ |
43 |
# m_options <-> MULTILIB_OPTIONS |
49 |
# m_options <-> MULTILIB_OPTIONS |
Lines 47-52
BEGIN {
Link Here
|
47 |
m_options = "\nMULTILIB_OPTIONS = " |
53 |
m_options = "\nMULTILIB_OPTIONS = " |
48 |
m_dirnames = "\nMULTILIB_DIRNAMES =" |
54 |
m_dirnames = "\nMULTILIB_DIRNAMES =" |
49 |
m_required = "\nMULTILIB_REQUIRED =" |
55 |
m_required = "\nMULTILIB_REQUIRED =" |
|
|
56 |
|
57 |
# configure will only set one of these. |
58 |
have_double64 = (have_double64 == "HAVE_DOUBLE64") |
59 |
have_long_double64 = (have_long_double64 == "HAVE_LONG_DOUBLE64") |
50 |
} |
60 |
} |
51 |
|
61 |
|
52 |
################################################################## |
62 |
################################################################## |
Lines 130-136
BEGIN {
Link Here
|
130 |
# leading "mmcu=avr2/" in order not to confuse genmultilib. |
140 |
# leading "mmcu=avr2/" in order not to confuse genmultilib. |
131 |
gsub (/^mmcu=avr2\//, "", opts) |
141 |
gsub (/^mmcu=avr2\//, "", opts) |
132 |
if (opts != "mmcu=avr2") |
142 |
if (opts != "mmcu=avr2") |
|
|
143 |
{ |
133 |
m_required = m_required " \\\n\t" opts |
144 |
m_required = m_required " \\\n\t" opts |
|
|
145 |
if (have_double64 && have_long_double64) |
146 |
{ |
147 |
m_required = m_required " \\\n\t" opts "/" opt_double64 |
148 |
m_required = m_required " \\\n\t" opts "/" opt_long_double64 |
149 |
} |
150 |
else if (have_double64) |
151 |
m_required = m_required " \\\n\t" opts "/" opt_double64 |
152 |
else if (have_long_double64) |
153 |
m_required = m_required " \\\n\t" opts "/" opt_long_double64 |
154 |
} |
134 |
} |
155 |
} |
135 |
} |
156 |
} |
136 |
|
157 |
|
Lines 144-151
END {
Link Here
|
144 |
############################################################ |
165 |
############################################################ |
145 |
|
166 |
|
146 |
# Intended Target: ./gcc/config/avr/t-multilib |
167 |
# Intended Target: ./gcc/config/avr/t-multilib |
|
|
168 |
if (have_double64 && have_long_double64) |
169 |
{ |
170 |
print m_options " " opt_tiny " " opt_rcall " " opt_double64 "/" opt_long_double64 |
171 |
print m_dirnames " " dir_tiny " " dir_rcall " " dir_double64 " " dir_long_double64 |
172 |
# Do not try to build a ./double64 variant, because we currently |
173 |
# are just copying from the respective non-[long-]double variant. |
174 |
# And due to the build order of multilibs, the default lib is built |
175 |
# after all the other libs have been build, hence there would be |
176 |
# nothing to copy from... |
177 |
#m_required = m_required " \\\n\t" opt_double64 |
178 |
#m_required = m_required " \\\n\t" opt_long_double64 |
179 |
} |
180 |
else if (have_double64) |
181 |
{ |
182 |
print m_options " " opt_tiny " " opt_rcall " " opt_double64 |
183 |
print m_dirnames " " dir_tiny " " dir_rcall " " dir_double64 |
184 |
# ...dito. |
185 |
#m_required = m_required " \\\n\t" opt_double64 |
186 |
} |
187 |
else if (have_long_double64) |
188 |
{ |
189 |
print m_options " " opt_tiny " " opt_rcall " " opt_long_double64 |
190 |
print m_dirnames " " dir_tiny " " dir_rcall " " dir_long_double64 |
191 |
# ...dito. |
192 |
#m_required = m_required " \\\n\t" opt_long_double64 |
193 |
} |
194 |
else |
195 |
{ |
196 |
print m_options " " opt_tiny " " opt_rcall |
197 |
print m_dirnames " " dir_tiny " " dir_rcall |
198 |
} |
147 |
|
199 |
|
148 |
print m_options " " opt_tiny " " opt_rcall |
|
|
149 |
print m_dirnames " " dir_tiny " " dir_rcall |
150 |
print m_required |
200 |
print m_required |
151 |
} |
201 |
} |