summaryrefslogtreecommitdiff
path: root/gcc/ada/a-tiflau.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-06 10:21:54 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-06 10:21:54 +0000
commit49651b8d2284d3fc1d89cce19df962707f46c451 (patch)
treebeb010365b6db760cf222be5c36c0240c75541d4 /gcc/ada/a-tiflau.adb
parent6e52d61490464b5530f38f64ed4a64d2b76711ce (diff)
downloadgcc-49651b8d2284d3fc1d89cce19df962707f46c451.tar.gz
2007-04-20 Hristian Kirtchev <kirtchev@adacore.com>
* a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse "." in the case of nnn.xxx when nnn terminates with an underscore. Parse the remaining "#" or ":" in the case of nnn#.xxx# git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125384 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-tiflau.adb')
-rw-r--r--gcc/ada/a-tiflau.adb10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ada/a-tiflau.adb b/gcc/ada/a-tiflau.adb
index d0fe1e153ee..a0a31a8fe15 100644
--- a/gcc/ada/a-tiflau.adb
+++ b/gcc/ada/a-tiflau.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -138,6 +138,7 @@ package body Ada.Text_IO.Float_Aux is
if Loaded then
Load_Extended_Digits (File, Buf, Ptr);
+ Load (File, Buf, Ptr, '#', ':');
-- Case of nnn#xxx.[xxx]# or nnn#xxx#
@@ -158,6 +159,13 @@ package body Ada.Text_IO.Float_Aux is
-- Case of nnn.[nnn] or nnn
else
+ -- Prevent the potential processing of '.' in cases where the
+ -- initial digits have a trailing underscore.
+
+ if Buf (Ptr) = '_' then
+ return;
+ end if;
+
Load (File, Buf, Ptr, '.', Loaded);
if Loaded then