aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/g-pehage.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2008-03-26 08:40:04 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2008-03-26 08:40:04 +0100
commit4e9f48a126a0812b87a7dba7dfcd11d441c48e80 (patch)
treee58d32f726e2d188319b9870aafdef0441e585b5 /gcc/ada/g-pehage.adb
parent944f7f28cdb3368b192412eee53cec7210cfe84f (diff)
downloadgcc-4e9f48a126a0812b87a7dba7dfcd11d441c48e80.zip
gcc-4e9f48a126a0812b87a7dba7dfcd11d441c48e80.tar.gz
gcc-4e9f48a126a0812b87a7dba7dfcd11d441c48e80.tar.bz2
g-pehage.adb, [...]: Replace Raise_Exception by "raise with" construct.
2008-03-26 Robert Dewar <dewar@adacore.com> * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb, s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace Raise_Exception by "raise with" construct. From-SVN: r133568
Diffstat (limited to 'gcc/ada/g-pehage.adb')
-rw-r--r--gcc/ada/g-pehage.adb10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/ada/g-pehage.adb b/gcc/ada/g-pehage.adb
index 6d9670f..f64181e 100644
--- a/gcc/ada/g-pehage.adb
+++ b/gcc/ada/g-pehage.adb
@@ -31,7 +31,6 @@
-- --
------------------------------------------------------------------------------
-with Ada.Exceptions; use Ada.Exceptions;
with Ada.IO_Exceptions; use Ada.IO_Exceptions;
with GNAT.Heap_Sort_G;
@@ -1218,8 +1217,7 @@ package body GNAT.Perfect_Hash_Generators is
end if;
if C not in '0' .. '9' then
- Raise_Exception
- (Program_Error'Identity, "cannot read position argument");
+ raise Program_Error with "cannot read position argument";
end if;
while C in '0' .. '9' loop
@@ -1271,8 +1269,7 @@ package body GNAT.Perfect_Hash_Generators is
exit when L < N;
if Argument (N) /= ',' then
- Raise_Exception
- (Program_Error'Identity, "cannot read position argument");
+ raise Program_Error with "cannot read position argument";
end if;
N := N + 1;
@@ -2184,8 +2181,7 @@ package body GNAT.Perfect_Hash_Generators is
end loop;
if Old_Differences = Max_Differences then
- Raise_Exception
- (Program_Error'Identity, "some keys are identical");
+ raise Program_Error with "some keys are identical";
end if;
-- Insert selected position and sort Sel_Position table