IA64 & HAVE_ABI_64 question

Steve Ellcey sje at cup.hp.com
Fri May 7 20:47:27 CEST 2010

On Thu, 2010-05-06 at 19:53 +0200, Torbjorn Granlund wrote:

> This sound like one of two things:
> (1) You forgotten to distclean between builds
> (2) A problem with configure with unknown root cause

I build in a different directory then the source directory and
completely remove the object directory after builds.  This is a
configure problem.

> Perhaps configure should be more resilient against environment/argument
> clashes, and I am indeed a bit surprised that it doesn't fail later.
> Alas, I cannot test this since I have no HP-UX access.

Well, I don't know if this should be needed but I was able to fix the
problem by adding the use of the 'sizeof-long-4' test to the
testlist.  This test fails with 'cc +DD64' since that has an 8 byte long
and we then correctly used the ABI=64 setting.  I am tempted to say we
should add 'any_64_testlist="sizeof-long-8" too just to be sure.  I
don't know if that is considered a reasonable thing to do or not.  I
don't see any targets checking both long-4 and long-8.

--- gmp-4.2.4/configure.in      2008-08-01 10:24:04.000000000 -0700
+++ gmp-4.2.4.new/configure.in  2010-05-07 10:38:48.000000000 -0700
@@ -711,6 +711,8 @@ case $host in
         cc_64_cflags_opt="+O3 +O2 +O1"
         gcc_64_cflags="-mlp64 -O2"
+       any_32_testlist="sizeof-long-4"

Steve Ellcey
sje at cup.hp.com

More information about the gmp-discuss mailing list