This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/33595] FAIL: gfortran.dg/nint_2.f90 -O0 execution test



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2007-10-01 13:13 -------
Can you compile and run the following C test code? (gcc -std=c99, or the system
compiler)

#include <math.h>
#include <stdio.h>
int main (void)
{
  printf ("%ld %ld %ld\n", lround (nextafter(0.5,-9.0)), lround (0.5), lround
(nextafter(0.5,9.0)));
}

It should print "0 1 1". If it prints "1 1 1", then your system libm has a bug.
(HP-UX is not alone there, as we already discovered such a problem in AIX and
powerpc-glibc, see PR33271). In that case, you might want to file a bug-report
to HP, and I will xfail the testcase on hppa-hpux.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33595


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