summaryrefslogtreecommitdiff
path: root/gcc/ada/s-wchstw.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2007-09-26 12:46:59 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-09-26 12:46:59 +0200
commitd031ecc4a5d4eaf746283e1755eb29abd9caa963 (patch)
treedd400045e995e9757ea34685bc456587f6e865c1 /gcc/ada/s-wchstw.adb
parentde93c8b38e514e9297e9e22fe5ef46fe547b9ce6 (diff)
downloadgcc-d031ecc4a5d4eaf746283e1755eb29abd9caa963.tar.gz
s-wchstw.adb: provide messages for run time unit exceptions
2007-09-26 Robert Dewar <dewar@adacore.com> * s-wchstw.adb: provide messages for run time unit exceptions * a-witeio.adb: Minor reformatting * exp_ch13.adb: Minor reformatting From-SVN: r128807
Diffstat (limited to 'gcc/ada/s-wchstw.adb')
-rw-r--r--gcc/ada/s-wchstw.adb8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ada/s-wchstw.adb b/gcc/ada/s-wchstw.adb
index 476a2e84abe..2f09ba25e61 100644
--- a/gcc/ada/s-wchstw.adb
+++ b/gcc/ada/s-wchstw.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2005, 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- --
@@ -74,7 +74,8 @@ package body System.WCh_StW is
function In_Char return Character is
begin
if P > S'Last then
- raise Constraint_Error;
+ raise Constraint_Error
+ with "badly formed wide character code";
else
P := P + 1;
return S (P - 1);
@@ -136,7 +137,8 @@ package body System.WCh_StW is
Get_Next_Code (S, SP, V, EM);
if V > 16#FFFF# then
- raise Constraint_Error;
+ raise Constraint_Error
+ with "out of range value for wide character";
end if;
RP := RP + 1;