float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
authorBruno Haible <bruno@clisp.org>
Fri, 30 Sep 2011 19:07:43 +0000 (21:07 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 30 Sep 2011 19:07:43 +0000 (21:07 +0200)
commitfddec5c13299e0aa3651d53fb0faeb4789e3d396
tree18ec8377f899dd163095bc3bf60ac45f10a45e83
parent8a8ac81fa2cfdf94f5e696d391dd43adeca18071
float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.

* m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
'long double'. Set REPLACE_ITOLD.
* lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
* lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
* lib/itold.c: New file.
* modules/float (Files): Add lib/itold.c.
(configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
(Makefile.am): Substitute REPLACE_ITOLD.
* modules/math (Depends-on): Add float.
(Makefile.am): Substitute REPLACE_ITOLD.
* doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
* doc/posix-headers/math.texi: Likewise.
* doc/posix-functions/logl.texi: Likewise.
ChangeLog
doc/posix-functions/logl.texi
doc/posix-headers/float.texi
doc/posix-headers/math.texi
lib/float.in.h
lib/math.in.h
m4/float_h.m4
modules/float
modules/math