summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:46:59 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:46:59 +0000
commite7196ec3f0aa26a7a14378d290fa8bc5e18ea837 (patch)
treedd400045e995e9757ea34685bc456587f6e865c1
parent482cab1f8e9df0c2cbd646b1d4b0580aade2b538 (diff)
downloadppe42-gcc-e7196ec3f0aa26a7a14378d290fa8bc5e18ea837.tar.gz
ppe42-gcc-e7196ec3f0aa26a7a14378d290fa8bc5e18ea837.zip
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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128807 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ada/a-witeio.adb1
-rw-r--r--gcc/ada/exp_ch13.adb1
-rw-r--r--gcc/ada/s-wchstw.adb8
3 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ada/a-witeio.adb b/gcc/ada/a-witeio.adb
index c83230cdea7..f10f85007f3 100644
--- a/gcc/ada/a-witeio.adb
+++ b/gcc/ada/a-witeio.adb
@@ -1134,6 +1134,7 @@ package body Ada.Wide_Text_IO is
-- Procedure to output one character of a wide character sequence
procedure WC_Out is new Wide_Char_To_Char_Sequence (Out_Char);
+
--------------
-- Out_Char --
--------------
diff --git a/gcc/ada/exp_ch13.adb b/gcc/ada/exp_ch13.adb
index d10baa2928c..9c39c1c4a83 100644
--- a/gcc/ada/exp_ch13.adb
+++ b/gcc/ada/exp_ch13.adb
@@ -94,7 +94,6 @@ package body Exp_Ch13 is
declare
Decl : constant Node_Id := Declaration_Node (Ent);
Typ : constant Entity_Id := Etype (Ent);
-
begin
if Nkind (Decl) = N_Object_Declaration
and then Present (Expression (Decl))
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;
OpenPOWER on IntegriCloud