Patch to enable build on s390x

Marc Glisse marc.glisse at inria.fr
Thu Sep 15 09:32:16 CEST 2011


(that's not a part of gmp I normally touch)

On Wed, 14 Sep 2011, Mike Frysinger wrote:

> On Tue, Aug 30, 2011 at 22:02, Steve M. Robbins wrote:
>> I'd like to draw your attention to Andreas' patch
>> for building GMP on the 64-bit S390 (s390x):
>> http://article.gmane.org/gmane.comp.lib.gmp.general/2611
>>
>> I just built 5.0.2 for Debian -- including this patch -- and, as
>> reported, all tests pass on both s390 and s390x.
>>
>> Would you consider adding this to the next release?
>
> diff people over the years have pointed out the patch and asked for
> inclusion, but seems that people with commit access have yet to notice
> so that it actually happens :(

The patch doesn't seem quite right. Apart from BYTES_PER_MP_LIMB, the rest 
should be handled automatically, no? On the other hand, it is missing all 
the tuning info (see the same file in other directories). But if you 
aren't adding any asm file, I am not sure creating a directory is 
necessary. Note also that the patch references a discussion where noone 
answered Torbjorn's question: 
http://gmplib.org/list-archives/gmp-bugs/2008-December/001229.html

Does the build work with --disable-assembly?

-- 
Marc Glisse


More information about the gmp-bugs mailing list