summaryrefslogtreecommitdiffstats
path: root/gcc/ada/a-except.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-08 06:47:27 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-08 06:47:27 +0000
commitaec1fb1161557691f1196f8933974ad19652fd60 (patch)
tree80d6e6738d21140c587d6d5aaa1425eb64b67d18 /gcc/ada/a-except.ads
parenta17c817eae2fff44f185aafb5c8049f99910d48b (diff)
downloadppe42-gcc-aec1fb1161557691f1196f8933974ad19652fd60.tar.gz
ppe42-gcc-aec1fb1161557691f1196f8933974ad19652fd60.zip
2008-04-08 Robert Dewar <dewar@adacore.com>
* a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb (Raise_Exception): In accordance with AI-446, raise CE for Null_Id (Raise_Exception_Always): Fix documentation accordingly git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134018 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-except.ads')
-rw-r--r--gcc/ada/a-except.ads16
1 files changed, 6 insertions, 10 deletions
diff --git a/gcc/ada/a-except.ads b/gcc/ada/a-except.ads
index a97ccb44032..e9f5ecd687e 100644
--- a/gcc/ada/a-except.ads
+++ b/gcc/ada/a-except.ads
@@ -84,12 +84,8 @@ package Ada.Exceptions is
function Exception_Name (Id : Exception_Id) return String;
procedure Raise_Exception (E : Exception_Id; Message : String := "");
- -- Note: it would be really nice to give a pragma No_Return for this
- -- procedure, but it would be wrong, since Raise_Exception does return if
- -- given the null exception in Ada 95 mode. However we do special case the
- -- name in the test in the compiler for issuing a warning for a missing
- -- return after this call. Program_Error seems reasonable enough in such a
- -- case. See also the routine Raise_Exception_Always in the private part.
+ pragma No_Return (Raise_Exception);
+ -- Note: In accordance with AI-466, CE is raised if E = Null_Id
function Exception_Message (X : Exception_Occurrence) return String;
@@ -183,10 +179,10 @@ private
pragma No_Return (Raise_Exception_Always);
pragma Export (Ada, Raise_Exception_Always, "__gnat_raise_exception");
-- This differs from Raise_Exception only in that the caller has determined
- -- that for sure the parameter E is not null, and that therefore the call
- -- to this procedure cannot return. The expander converts Raise_Exception
- -- calls to Raise_Exception_Always if it can determine this is the case.
- -- The Export allows this routine to be accessed from Pure units.
+ -- that for sure the parameter E is not null, and that therefore no check
+ -- for Null_Id is required. The expander converts Raise_Exception calls to
+ -- Raise_Exception_Always if it can determine this is the case. The Export
+ -- allows this routine to be accessed from Pure units.
procedure Raise_From_Signal_Handler
(E : Exception_Id;
OpenPOWER on IntegriCloud