summaryrefslogtreecommitdiff
path: root/gcc/ada/s-asthan.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-26 07:40:04 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-26 07:40:04 +0000
commit8453782c2b508a3c18474bf6626f31ba3e21c968 (patch)
treee58d32f726e2d188319b9870aafdef0441e585b5 /gcc/ada/s-asthan.adb
parent79879aee6a342eea431e7ec8e3d604e68df79331 (diff)
downloadgcc-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-asthan.adb')
-rw-r--r--gcc/ada/s-asthan.adb18
1 files changed, 3 insertions, 15 deletions
diff --git a/gcc/ada/s-asthan.adb b/gcc/ada/s-asthan.adb
index 00df7f45b16..bb3ac693df4 100644
--- a/gcc/ada/s-asthan.adb
+++ b/gcc/ada/s-asthan.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1996-2006, Free Software Foundation, Inc. --
+-- Copyright (C) 1996-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- --
@@ -33,12 +33,8 @@
-- This is the dummy version used on non-VMS systems
-with Ada.Exceptions;
-
package body System.AST_Handling is
- pragma Warnings (Off); -- kill warnings on unreferenced formals
-
------------------------
-- Create_AST_Handler --
------------------------
@@ -48,10 +44,7 @@ package body System.AST_Handling is
Entryno : Natural) return System.Aux_DEC.AST_Handler
is
begin
- Ada.Exceptions.Raise_Exception
- (E => Program_Error'Identity,
- Message => "AST is implemented only on VMS systems");
-
+ raise Program_Error with "AST is implemented only on VMS systems";
return System.Aux_DEC.No_AST_Handler;
end Create_AST_Handler;
@@ -61,12 +54,7 @@ package body System.AST_Handling is
Total_Number : out Natural)
is
begin
- Ada.Exceptions.Raise_Exception
- (E => Program_Error'Identity,
- Message => "AST is implemented only on VMS systems");
-
- Actual_Number := 0;
- Total_Number := 0;
+ raise Program_Error with "AST is implemented only on VMS systems";
end Expand_AST_Packet_Pool;
end System.AST_Handling;