Tru64, egcs, and optimization

Steve ROBBINS stever@bic.mni.mcgill.ca
Tue May 30 08:58:00 GMT 2000


Hullo,

A while back, I reported some `make check' failures in gsl/siman under
`Tru64' unix on an alpha machine.  Later, I reported that foregoing
optimization generated code that passed the tests.  But that was using an
install of egcs from a year back.  I speculated that a newer GCC might
work right.  Indeed, it does. 

I have just compiled GSL using GCC 2.95.2, WITH -O2 optimization,
and it PASSES all `siman' tests that used to fail.  In fact, it
passes all tests except 

    FAIL: vegas(f2), dim=9, err=0.0003, chisq=0.6418 
        (0.49968100184661118 observed vs 1 expected) 

(which was already known).


In summary:

On my "Digital UNIX V4.0F (Rev. 1229)" machine, with an alpha processor,
compiling with default (-O2) optimization using egcs-2.91.66 produced code
that fails siman/test.  Omitting the optimization flag completely produces
code that passes the test.  I did not try dropping back to `-O1'.

On the same platform, gcc 2.95.2 produced code that passes siman/test,
using the default `-O2' optimization.

-smr



More information about the Gsl-discuss mailing list