This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
remove HAS_LDBL_SPRINTF_BUG code
authorDavid Mitchell <davem@iabyn.com>
Wed, 17 May 2017 12:36:27 +0000 (13:36 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:01 +0000 (09:11 +0100)
commit00bc75c12c7ebb8cf76cc4f3d49f39c9f8897108
tree6224d2be6c7d892cb2ec9f776b6fdec89dca37e5
parentccb8ae84d412f65e7f257f6d21742aad77857514
remove HAS_LDBL_SPRINTF_BUG code

This code was added in 2002 to work round an Irix 6 rounding bug in
long double sprintfs.

I strongly suspect that any such OS bug has long been fixed and/or such
machines have been retired or are unlikely to have new perls installed on
them.

Part of the motivation for removing this code is that following the
previous commit, that block of code's use of the float_need variable
is likely to be wrong (since it now includes exponent etc), but I have no
way of testing it.

I've left the probe code in hints/irix_6.sh, so if anyone ever reports
sprintf.t failures on an old Irix platform, perl -V should show if their
system still has the bug. At that point someone brave could resurrect this
block of code.
sv.c