This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Test failures on HP-UX 10.20


gsl-discuss@lists.thewrittenword.com writes:
 > Against 1.0 compiled with:
 >   CC=cc (HP-UX commercial C compiler)
 >   CFLAGS="+O2 -Ae -z +ESlit +Onofltacc +DAportable +Oentrysched \
 >   +Odataprefetch"
 > ...
 > FAIL: gsl_isinf(inf) (0 observed vs 1 expected)
 > FAIL: gsl_isinf(-inf) (0 observed vs -1 expected)
 > FAIL: gsl_isnan(nan) (0 observed vs 1 expected)
 > FAIL: gsl_finite(inf) (1 observed vs 0 expected)
 > FAIL: gsl_finite(nan) (1 observed vs 0 expected)

Thanks for the bug report.  The compiler is probably optimising away
tests for nan like (x != x) in sys/infnan.c. I don't have access to
that platform to investigate it or try out any workarounds.  On IRIX
the option -OPT:IEEE_NaN_inf=ON was needed to ensure correct infinity
arithmetic for the same reasons.

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]