diff options
author | Robert Dewar <dewar@adacore.com> | 2008-03-26 08:40:04 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-03-26 08:40:04 +0100 |
commit | 4e9f48a126a0812b87a7dba7dfcd11d441c48e80 (patch) | |
tree | e58d32f726e2d188319b9870aafdef0441e585b5 /gcc/ada/s-stchop.adb | |
parent | 944f7f28cdb3368b192412eee53cec7210cfe84f (diff) | |
download | gcc-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/s-stchop.adb')
-rw-r--r-- | gcc/ada/s-stchop.adb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/ada/s-stchop.adb b/gcc/ada/s-stchop.adb index aacdad9..e403bc9 100644 --- a/gcc/ada/s-stchop.adb +++ b/gcc/ada/s-stchop.adb @@ -39,8 +39,6 @@ pragma Restrictions (No_Elaboration_Code); -- We want to guarantee the absence of elaboration code because the -- binder does not handle references to this package. -with Ada.Exceptions; - with System.Storage_Elements; use System.Storage_Elements; with System.Parameters; use System.Parameters; with System.Soft_Links; @@ -216,9 +214,7 @@ package body System.Stack_Checking.Operations is (not Stack_Grows_Down and then Stack_Address < Frame_Address) then - Ada.Exceptions.Raise_Exception - (E => Storage_Error'Identity, - Message => "stack overflow detected"); + raise Storage_Error with "stack overflow detected"; end if; -- This function first does a "cheap" check which is correct @@ -270,9 +266,7 @@ package body System.Stack_Checking.Operations is (not Stack_Grows_Down and then Stack_Address > My_Stack.Limit) then - Ada.Exceptions.Raise_Exception - (E => Storage_Error'Identity, - Message => "stack overflow detected"); + raise Storage_Error with "stack overflow detected"; end if; return My_Stack; |