bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Compiler optimize bug on HPUX 10.20


From: Byers, Denton W.
Subject: RE: Compiler optimize bug on HPUX 10.20
Date: Thu, 3 May 2001 14:57:20 -0400

> -----Original Message-----
> From: bug-gmp-admin at gnu.org [mailto:bug-gmp-admin at gnu.org]On Behalf
Of
> Kevin Ryde
> Sent: Wednesday, May 02, 2001 5:41 PM
> To: Byers, Denton W.
> Cc: bug-gmp at gnu.org
> Subject: Re: Compiler optimize bug(?) & test failures on HPUX 10.20
> If you just want to get something working, a generic C build might
> give more joy,
>
>     ./configure --target=none-hp-hpux10.20 CFLAGS="-g -DNO_ASM"
>
> or similar.

Thanks again, your barebones tip worked and everything tests out OK.  I was
rather shocked when all the tests took 40 minutes to complete.  The first 21
tests took 30 minutes alone.  I decided to experiment a little to find the
limits now that I had a successful build.

============================================================================
===

I reconfigured a clean source tree, adding a -O1 to your CFLAGS.  All the
tests for this build not only passed, but improved in total build/run time
to 25 minutes.  I went back and reran the tests and it took 20 minutes,
meaning the difference of five minutes was used to compile the tests.  So
the overall improvement with the optimize flag would be 20 minutes versus 35
minutes.

============================================================================
===
Just for kicks, I upped the optimize level to -O2 in CFLAGS.  But then I get
the usual error:


gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DOPERATION_tstbit -g -O2 -DNO_ASM -c
tstbit.c  -fPIC -DPIC -o .libs/tstbit.lo
tstbit.c: In function `__gmpz_tstbit':
tstbit.c:70: internal error--insn does not satisfy its constraints:
(jump_insn 222 102 101 (parallel[
            (set (pc)
                (label_ref 219))
            (set (reg:SI 88 SAR)
                (reg:SI 20 %r20))
        ] ) 270 {decrement_and_branch_until_zero+5} (nil)
    (expr_list:REG_BR_PRED (const_int 14 [0xe])
        (nil)))
make[3]: *** [tstbit.lo] Error 1
make[3]: Leavingmake[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
 directory `/sd6/gmp-3.1.1/mpz'
make[2]: Leaving directory `/sd6/gmp-3.1.1/mpz'
make[1]: Leaving directory `/sd6/gmp-3.1.1'

============================================================================
===

Thanks again for the help!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]