From 2a27fd6dae3edec949deda9a55928a0e22c8a8ae Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 30 Oct 2012 13:51:27 +0000 Subject: Fix strtod handling of underflow (bug 14047). --- ChangeLog | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 29d0a9a487..067337a44b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +2012-10-30 Joseph Myers + + [BZ #14047] + * sysdeps/generic/tininess.h: New file. + * sysdeps/i386/tininess.h: Likewise. + * sysdeps/sh/tininess.h: Likewise. + * sysdeps/x86_64/tininess.h: Likewise. + * stdlib/tst-strtod-underflow.c: Likewise. + * stdlib/tst-tininess.c: Likewise. + * stdlib/strtod_l.c: Include . + (round_and_return): Do not set errno for exact underflow cases. + Force an underflow exception when setting errno for underflow. + Determine underflow based on rounding to normal precision if + TININESS_AFTER_ROUNDING. + * stdlib/tst-strtod.c (tests): Do not expect errno to be set to + ERANGE for exact underflow cases. + * stdlib/Makefile (tests): Add tst-tininess and + tst-strtod-underflow. + ($(objpfx)tst-tininess): Use $(link-libm). + ($(objpfx)tst-strtod-underflow): Likewise. + 2012-10-30 Andreas Jaeger [BZ#14767] -- cgit v1.2.3