Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / ada / s-vallli.adb
index 66f93f7..035a95d 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2012, 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- --
@@ -58,7 +58,7 @@ package body System.Val_LLI is
 
       if Str (Ptr.all) not in '0' .. '9' then
          Ptr.all := Start;
-         raise Constraint_Error;
+         Bad_Value (Str);
       end if;
 
       Uval := Scan_Raw_Long_Long_Unsigned (Str, Ptr, Max);
@@ -71,7 +71,7 @@ package body System.Val_LLI is
          then
             return Long_Long_Integer'First;
          else
-            raise Constraint_Error;
+            Bad_Value (Str);
          end if;
 
       --  Negative values