This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r275849 - in /trunk/gcc: ada/ChangeLog ada/libg...
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 18 Sep 2019 08:32:24 -0000
- Subject: r275849 - in /trunk/gcc: ada/ChangeLog ada/libg...
Author: pmderodat
Date: Wed Sep 18 08:32:23 2019
New Revision: 275849
URL: https://gcc.gnu.org/viewcvs?rev=275849&root=gcc&view=rev
Log:
[Ada] Ensure that Scan_Real result does not depend on trailing zeros
Previous change in that procedure to handle overflow issues during
scanning removed the special handling for trailing zeros in the decimal
part. Beside the absence of overflow during scanning the special
handling of these zeros is still necessary.
2019-09-18 Nicolas Roche <roche@adacore.com>
gcc/ada/
* libgnat/s-valrea.adb (Scan_Integral_Digits): New procedure.
(Scan_Decimal_Digits): New procedure.
(As_Digit): New function.
(Scan_Real): Use Scan_Integral_Digits and Scan_Decimal_Digits.
gcc/testsuite/
* gnat.dg/float_value2.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/float_value2.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/libgnat/s-valrea.adb
trunk/gcc/testsuite/ChangeLog