summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2016-10-05 17:45:33 +0200
committerNico Huber <nico.h@gmx.de>2016-10-29 01:33:31 +0200
commite941eef823687b3333185204aebb81a23e7c5b29 (patch)
treebf8591f5d029fab192041878005957a693ff0011
parente84e625483bccd67a76d0177ac5346b51c2ce016 (diff)
downloadcoreboot-e941eef823687b3333185204aebb81a23e7c5b29.tar.xz
gnat.adc: Do not generate assertion code for Refined_Post
Ada usually does lots of type and contract checking during runtime. As this produces overhead and there is nobody to tell when we run into an exception, we disable code generation for those checks. Now disable it for `Refined_Post` too, which was just missed earlier. Change-Id: I67ca754f830e387efee3930e86929eb494bfaf03 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/16945 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--gnat.adc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnat.adc b/gnat.adc
index 3b463dc26a..88cf438d77 100644
--- a/gnat.adc
+++ b/gnat.adc
@@ -35,6 +35,7 @@ pragma Restrictions (Static_Storage_Size);
pragma Assertion_Policy
(Statement_Assertions => Disable,
Pre => Disable,
- Post => Disable);
+ Post => Disable,
+ Refined_Post => Disable);
pragma Overflow_Mode (General => Strict, Assertions => Eliminated);
pragma SPARK_Mode (On);