aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/a-assert.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/libgnat/a-assert.ads')
-rw-r--r--gcc/ada/libgnat/a-assert.ads19
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/ada/libgnat/a-assert.ads b/gcc/ada/libgnat/a-assert.ads
index f7aef0f..0a590d6 100644
--- a/gcc/ada/libgnat/a-assert.ads
+++ b/gcc/ada/libgnat/a-assert.ads
@@ -4,7 +4,7 @@
-- --
-- A D A . A S S E R T I O N S --
-- --
--- Copyright (C) 2015-2020, Free Software Foundation, Inc. --
+-- Copyright (C) 2015-2021, Free Software Foundation, Inc. --
-- --
-- S p e c --
-- --
@@ -39,23 +39,12 @@
pragma Assertion_Policy (Pre => Ignore);
--- We do a with of System.Assertions to get hold of the exception (following
--- the specific RM permission that lets' Assertion_Error being a renaming).
--- The suppression of Warnings stops the warning about bad categorization.
-
-pragma Warnings (Off);
-with System.Assertions;
-pragma Warnings (On);
+pragma Compiler_Unit_Warning;
package Ada.Assertions with
- SPARK_Mode
+ SPARK_Mode, Pure
is
- pragma Pure (Assertions);
-
- Assertion_Error : exception renames System.Assertions.Assert_Failure;
- -- This is the renaming that is allowed by 11.4.2(24). Note that the
- -- Exception_Name will refer to the one in System.Assertions (see
- -- AARM-11.4.1(12.b)).
+ Assertion_Error : exception;
procedure Assert (Check : Boolean) with
Pre => Check;