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/s-stchop.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/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 aacdad94708..e403bc9b15a 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; |