diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-26 07:40:04 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-26 07:40:04 +0000 |
commit | 8453782c2b508a3c18474bf6626f31ba3e21c968 (patch) | |
tree | e58d32f726e2d188319b9870aafdef0441e585b5 /gcc/ada/g-pehage.adb | |
parent | 79879aee6a342eea431e7ec8e3d604e68df79331 (diff) | |
download | gcc-8453782c2b508a3c18474bf6626f31ba3e21c968.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133568 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/g-pehage.adb')
-rw-r--r-- | gcc/ada/g-pehage.adb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/ada/g-pehage.adb b/gcc/ada/g-pehage.adb index 6d9670f69f8..f64181e1eb8 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 |