]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Ignore ghost predicate in Ada.Strings.Superbounded
authorClaire Dross <dross@adacore.com>
Fri, 25 Apr 2025 11:29:23 +0000 (13:29 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 30 Jun 2025 13:47:22 +0000 (15:47 +0200)
Add an assertion policy to ignore the ghost predicates in
Ada.Strings.Superbounded.

gcc/ada/ChangeLog:

* libgnat/a-strsup.ads: Ignore Ghost_Predicate in the assertion policy.

gcc/ada/libgnat/a-strsup.ads

index 65d13ed2cbe4992354bf4c25fdafb6c50d2439c5..68098ea89413935ddd13986d70bd3fe9b526f974 100644 (file)
 --  contract cases should not be executed at runtime as well, in order not to
 --  slow down the execution of these functions.
 
-pragma Assertion_Policy (Pre            => Ignore,
-                         Post           => Ignore,
-                         Contract_Cases => Ignore,
-                         Ghost          => Ignore);
+pragma Assertion_Policy (Pre             => Ignore,
+                         Post            => Ignore,
+                         Contract_Cases  => Ignore,
+                         Ghost           => Ignore,
+                         Ghost_Predicate => Ignore);
 
 with Ada.Strings.Maps; use type Ada.Strings.Maps.Character_Mapping_Function;
 with Ada.Strings.Search;