From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25194 invoked by alias); 1 Oct 2007 13:13:44 -0000 Received: (qmail 25172 invoked by uid 48); 1 Oct 2007 13:13:34 -0000 Date: Mon, 01 Oct 2007 13:13:00 -0000 Message-ID: <20071001131334.25171.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33595] FAIL: gfortran.dg/nint_2.f90 -O0 execution test In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00028.txt.bz2 ------- 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 #include 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