]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Reject use in SPARK of Asm intrinsics for code insertions
authorYannick Moy <moy@adacore.com>
Fri, 2 Sep 2022 08:40:56 +0000 (10:40 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 12 Sep 2022 08:16:51 +0000 (10:16 +0200)
SPARK does not allow code insertions. This applies also to
calls to Asm intrinsics defined in System.Machine_Code.

gcc/ada/

* libgnat/s-maccod.ads: Mark package as SPARK_Mode Off.

gcc/ada/libgnat/s-maccod.ads

index c3abf07a9e782c8b63fa6c9fb80aee287c6cda12..df7c7df17b28e94b32e008074f6c8f78a70a898e 100644 (file)
@@ -33,7 +33,9 @@
 --  operations, and also for machine code statements. See GNAT documentation
 --  for full details.
 
-package System.Machine_Code is
+package System.Machine_Code
+  with SPARK_Mode => Off
+is
    pragma No_Elaboration_Code_All;
    pragma Pure;