[PATCH] PowerPC libm-test.inc expl(1000.0L) result exceeds __LDBL_MAX__ for IBM Long Double 128.
Ryan S. Arnold
rsa@us.ibm.com
Thu Feb 21 05:10:00 GMT 2008
The result of the libm-test.inc test_expl() function's expl(1000.0L)
test exceeds the value of __LDBL_MAX__ for IBM Long Double 128.
GCC 4.3 is more pedantic than GCC 4.1 and throws out a warning as an
error when storing the constant return value causing a make check
failure. The same warning as an error is generated with GCC 4.1 when it
is compiled with the -pedantic flag.
The following test should be excluded on PowerPC to prevent make check
failures.
TEST_f_f (exp, 1000.0L, 0.197007111401704699388887935224332313e435L);
The following patch excludes it on PowerPC by testing against
__LDBL_MAX_EXP__ since one can't test against floating point values in
pre-processor directives.
Ryan S. Arnold
IBM Linux Technology Center
Linux Toolchain Development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libm-test.diff
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20080221/8f5de728/attachment.bin>
More information about the Libc-alpha
mailing list