[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-roundl-ieee failures
From: |
Bruno Haible |
Subject: |
test-roundl-ieee failures |
Date: |
Sun, 19 Jun 2011 15:06:18 +0200 |
User-agent: |
KMail/1.9.9 |
> 2 x FAIL: test-roundl-ieee
On AIX 7.1:
test-roundl-ieee.c:45: assertion failed
/bin/sh: 9109556 IOT/Abort trap(coredump)
FAIL: test-roundl-ieee
This fixes it:
2011-06-19 Bruno Haible <address@hidden>
roundl-ieee: Fix test failure on AIX 7.1.
* m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
* doc/posix-functions/roundl.texi: Mention problem with negative
arguments.
--- doc/posix-functions/roundl.texi.orig Sun Jun 19 15:01:51 2011
+++ doc/posix-functions/roundl.texi Sun Jun 19 15:01:38 2011
@@ -19,6 +19,10 @@
Portability problems fixed by Gnulib module @code{roundl-ieee}:
@itemize
@item
+This function returns a positive zero for an argument between -0.5 and 0
+on some platforms:
+AIX 7.1.
address@hidden
This function returns a positive zero for a minus zero argument
on some platforms:
OSF/1 5.1.
--- m4/roundl.m4.orig Sun Jun 19 15:01:51 2011
+++ m4/roundl.m4 Sun Jun 19 14:59:35 2011
@@ -1,4 +1,4 @@
-# roundl.m4 serial 10
+# roundl.m4 serial 11
dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -35,10 +35,14 @@
int main (int argc, char *argv[])
{
long double (*my_roundl) (long double) = argc ? roundl : dummy;
+ int result = 0;
/* Test whether roundl (-0.0L) is -0.0L. */
if (signbitl (minus_zerol) && !signbitl (my_roundl (minus_zerol)))
- return 1;
- return 0;
+ result |= 1;
+ /* Test whether roundl (-0.3L) is -0.0L. */
+ if (signbitl (-0.3L) && !signbitl (my_roundl (-0.3L)))
+ result |= 2;
+ return result;
}
]])],
[gl_cv_func_roundl_ieee=yes],
--
In memoriam Alois Eliáš <http://en.wikipedia.org/wiki/Alois_Eliáš>
Re: test_strerror_r failures, Eric Blake, 2011/06/21
test-pread.sh failure, Bruno Haible, 2011/06/19
test-ceil-ieee failures, Bruno Haible, 2011/06/19
test-ceilf-ieee failures, Bruno Haible, 2011/06/19
test-roundf-ieee failures, Bruno Haible, 2011/06/19
test-round-ieee failures, Bruno Haible, 2011/06/19
test-roundl-ieee failures,
Bruno Haible <=
test-*printf-posix failures, Bruno Haible, 2011/06/19
Re: POSIX modules status, Bruno Haible, 2011/06/19
test-linkat failure on IRIX, Bruno Haible, 2011/06/19
tests for module 'float', Bruno Haible, 2011/06/20