s390x support

Mike Frysinger vapier at gentoo.org
Sat Jan 9 00:38:53 CET 2010

i was reviewing Gentoo gmp patches again after the new release and figured 
it's high time to get s390x stuff integrated upstream.  searching the mailing 
list resulted in these old threads:

while i can understand wanting the best performance out of the box, i dont 
think that optimizations should be used to prevent even basic support for a 
target.  which is to say, can we at least get the configure check merged ?  
every distro that supports s390x is carrying some variant of that patch 

as for the multilib question, yes s390x can do s390 multilib.  you simply need 
to add -m31 when compiling/linking.  some people call s390 a "31bit" arch 
because it is limited to 31bits for addressing, but that can be ignored for 
the purposes of gmp i think.

s390 gcc targets define __s390__ while s390x gcc targets define __s390__ and 
__s390x__.  i'm pretty sure the i370/mvs defines are non-gcc compiler defines.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://gmplib.org/list-archives/gmp-discuss/attachments/20100108/c6b851dc/attachment-0001.bin>

More information about the gmp-discuss mailing list