Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/gmp/files: gmp-4.3.2-ABI-multilib.patch
Date: Fri, 08 Jan 2010 14:12:00
Message-Id: E1NTFZG-0003kC-66@stork.gentoo.org
1 vapier 10/01/08 14:11:58
2
3 Added: gmp-4.3.2-ABI-multilib.patch
4 Log:
5 Version bump.
6
7 Revision Changes Path
8 1.1 dev-libs/gmp/files/gmp-4.3.2-ABI-multilib.patch
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/files/gmp-4.3.2-ABI-multilib.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/files/gmp-4.3.2-ABI-multilib.patch?rev=1.1&content-type=text/plain
12
13 Index: gmp-4.3.2-ABI-multilib.patch
14 ===================================================================
15 Gentoo uses ABI env var already
16
17 --- gmp-4.2.3/configure
18 +++ gmp-4.2.3/configure
19 @@ -489,7 +489,7 @@
20 WANT_MPBSD_TRUE
21 WANT_MPBSD_FALSE
22 GMP_NAIL_BITS
23 -ABI
24 +GMPABI
25 HAVE_HOST_CPU_FAMILY_power
26 HAVE_HOST_CPU_FAMILY_powerpc
27 GMP_LDFLAGS
28 @@ -930,7 +930,7 @@
29 ac_precious_vars='build_alias
30 host_alias
31 target_alias
32 -ABI
33 +GMPABI
34 CC
35 CFLAGS
36 LDFLAGS
37 @@ -1091,7 +1091,7 @@
38 include additional configurations [automatic]
39
40 Some influential environment variables:
41 - ABI desired ABI (for processors supporting more than one ABI)
42 + GMPABI desired ABI (for processors supporting more than one ABI)
43 CC C compiler command
44 CFLAGS C compiler flags
45 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
46 @@ -2670,7 +2670,7 @@
47 # (64-bit), but not both, so there's no option to choose the desired
48 # mode, we must instead detect which of the two it is. This is done by
49 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
50 - # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
51 + # GMPABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
52 #
53 gcc_cflags="-O2"
54 gcc_cflags_optlist="arch"
55 @@ -2694,11 +2694,11 @@
56 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
57 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
58 #
59 - # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
60 + # We don't use -mpa-risc-2-0 in GMPABI=1.0 because 64-bit registers may not
61 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
62 # only adds a few float instructions with -mpa-risc-2-0, so it would
63 # probably be safe, but let's not take the chance. In any case, a
64 - # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
65 + # configuration like --host=hppa2.0 GMPABI=1.0 is far from optimal.
66 #
67 case $host_cpu in
68 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
69 @@ -2733,9 +2733,9 @@
70 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
71 cc_20n_testlist="hpc-hppa-2-0"
72
73 - # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
74 + # GMPABI=2.0w is available for hppa2.0w and hppa2.0, but not for
75 # hppa2.0n, on the assumption that that the latter indicates a
76 - # desire for ABI=2.0n.
77 + # desire for GMPABI=2.0n.
78 case $host in
79 hppa2.0n-*-*) ;;
80 *)
81 @@ -3203,7 +3203,7 @@
82 # mode, but not set our ABI. For some reason it's sparc where this
83 # keeps coming up, presumably users there are accustomed to driving the
84 # compiler mode that way. The effect of our testlist setting is to
85 - # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
86 + # reject GMPABI=64 in favour of GMPABI=32 if the user has forced the flags to
87 # 32-bit mode.
88 #
89 abilist="32"
90 @@ -3308,12 +3308,12 @@
91 case $host_cpu in
92 sparc64 | sparcv9* | ultrasparc*)
93 case $host in
94 - # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
95 - # registers properly, so ABI=32 is left as the only choice.
96 + # Solaris 6 and earlier cannot run GMPABI=64 since it doesn't save
97 + # registers properly, so GMPABI=32 is left as the only choice.
98 #
99 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
100
101 - # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
102 + # BSD sparc64 ports are 64-bit-only systems, so GMPABI=64 is the only
103 # choice. In fact they need no special compiler flags, gcc -m64
104 # is the default, but it doesn't hurt to add it. v9 CPUs always
105 # use the sparc64 port, since the plain 32-bit sparc ports don't
106 @@ -3399,7 +3399,7 @@
107 # -O, but lets assume that's no longer true.
108 #
109 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
110 - # the default in such a build (we think), so -m32 is essential for ABI=32.
111 + # the default in such a build (we think), so -m32 is essential for GMPABI=32.
112 # This is, of course, done for any $host_cpu, not just x86_64, so we can
113 # get such a gcc into the right mode to cross-compile to say i486-*-*.
114 #
115 @@ -3639,7 +3639,7 @@
116
117 cat >&5 <<EOF
118 User:
119 -ABI=$ABI
120 +GMPABI=$GMPABI
121 CC=$CC
122 CFLAGS=$CFLAGS_or_unset
123 CPPFLAGS=$CPPFLAGS_or_unset
124 @@ -3660,24 +3660,24 @@
125 # If the user specifies an ABI then it must be in $abilist, after that
126 # $abilist is restricted to just that choice.
127 #
128 -if test -n "$ABI"; then
129 +if test -n "$GMPABI"; then
130 found=no
131 for abi in $abilist; do
132 - if test $abi = "$ABI"; then found=yes; break; fi
133 + if test $abi = "$GMPABI"; then found=yes; break; fi
134 done
135 if test $found = no; then
136 - { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
137 -echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
138 + { { echo "$as_me:$LINENO: error: GMPABI=$GMPABI is not among the following valid choices: $abilist" >&5
139 +echo "$as_me: error: GMPABI=$GMPABI is not among the following valid choices: $abilist" >&2;}
140 { (exit 1); exit 1; }; }
141 fi
142 - abilist="$ABI"
143 + abilist="$GMPABI"
144 fi
145
146 found_compiler=no
147
148 for abi in $abilist; do
149
150 - echo "checking ABI=$abi"
151 + echo "checking GMPABI=$abi"
152
153 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
154 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
155 @@ -5128,7 +5128,7 @@
156 # For -march settings which enable SSE2 we exclude certain bad
157 # gcc versions and we need an OS knowing how to save xmm regs.
158 #
159 - # This is only for ABI=32, any 64-bit gcc is good and any OS
160 + # This is only for GMPABI=32, any 64-bit gcc is good and any OS
161 # knowing x86_64 will know xmm.
162 #
163 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
164 @@ -6368,16 +6368,16 @@
165 done
166 fi
167
168 - ABI="$abi"
169 + GMPABI="$abi"
170 CC="$cc"
171 CFLAGS="$cflags"
172 CPPFLAGS="$cppflags"
173
174
175 # Could easily have this in config.h too, if desired.
176 - ABI_nodots=`echo $ABI | sed 's/\./_/'`
177 + GMPABI_nodots=`echo $GMPABI | sed 's/\./_/'`
178
179 -echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
180 +echo "define_not_for_expansion(\`HAVE_ABI_$GMPABI_nodots')" >> $gmp_tmpconfigm4p
181
182
183
184 @@ -8830,12 +8830,12 @@
185 # If there's any sse2 or mmx in the path, check whether the assembler
186 # supports it, and remove if not.
187 #
188 -# We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
189 +# We only need this in GMPABI=32, for GMPABI=64 on x86_64 we can assume a new
190 # enough assembler.
191 #
192 case $host in
193 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*)
194 - if test "$ABI" = 32; then
195 + if test "$GMPABI" = 32; then
196 case "$path $fat_path" in
197 *mmx*) echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
198 echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
199 @@ -9019,7 +9019,7 @@
200
201 cat >&5 <<EOF
202 Decided:
203 -ABI=$ABI
204 +GMPABI=$GMPABI
205 CC=$CC
206 CFLAGS=$CFLAGS
207 CPPFLAGS=$CPPFLAGS
208 @@ -9028,7 +9028,7 @@
209 CXXFLAGS=$CXXFLAGS
210 path=$path
211 EOF
212 -echo "using ABI=\"$ABI\""
213 +echo "using GMPABI=\"$GMPABI\""
214 echo " CC=\"$CC\""
215 echo " CFLAGS=\"$CFLAGS\""
216 echo " CPPFLAGS=\"$CPPFLAGS\""
217 @@ -30005,7 +30005,7 @@
218
219 case $host in
220 *-*-aix*)
221 - case $ABI in
222 + case $GMPABI in
223 64 | aix64)
224 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
225 ;;
226 @@ -30015,7 +30015,7 @@
227 esac
228 ;;
229 *-*-linux* | *-*-*bsd*)
230 - case $ABI in
231 + case $GMPABI in
232 mode64)
233 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
234 ;;
235 @@ -30025,7 +30025,7 @@
236 esac
237 ;;
238 *-*-darwin*)
239 - case $ABI in
240 + case $GMPABI in
241 mode64)
242 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
243 ;;
244 @@ -30048,7 +30048,7 @@
245
246 ;;
247 sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
248 - case $ABI in
249 + case $GMPABI in
250 64)
251
252 echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
253 @@ -30130,7 +30130,7 @@
254 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
255
256
257 - case $ABI in
258 + case $GMPABI in
259 32)
260
261 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
262 @@ -34032,7 +34032,7 @@
263 WANT_MPBSD_TRUE!$WANT_MPBSD_TRUE$ac_delim
264 WANT_MPBSD_FALSE!$WANT_MPBSD_FALSE$ac_delim
265 GMP_NAIL_BITS!$GMP_NAIL_BITS$ac_delim
266 -ABI!$ABI$ac_delim
267 +GMPABI!$GMPABI$ac_delim
268 HAVE_HOST_CPU_FAMILY_power!$HAVE_HOST_CPU_FAMILY_power$ac_delim
269 HAVE_HOST_CPU_FAMILY_powerpc!$HAVE_HOST_CPU_FAMILY_powerpc$ac_delim
270 GMP_LDFLAGS!$GMP_LDFLAGS$ac_delim