]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Add Ghost aspect to Lo in s-arit32.adb
authorAleksandra Pasek <pasek@adacore.com>
Mon, 3 Feb 2025 18:09:36 +0000 (18:09 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 5 Jun 2025 08:18:37 +0000 (10:18 +0200)
gcc/ada/ChangeLog:

* libgnat/s-arit32.adb: Add Ghost aspect to Lo.

gcc/ada/libgnat/s-arit32.adb

index 5172d1dba0e6f00bf7b45ad0c13b65b6c82ed362..eb4e6e5590f6b64fc2d5a24e69421a9ca432d4f2 100644 (file)
@@ -96,7 +96,8 @@ is
    --  Convert absolute value of X to unsigned. Note that we can't just use
    --  the expression of the Else since it overflows for X = Int32'First.
 
-   function Lo (A : Uns64) return Uns32 is (Uns32 (A and (2 ** 32 - 1)));
+   function Lo (A : Uns64) return Uns32 is (Uns32 (A and (2 ** 32 - 1)))
+   with Ghost;
    --  Low order half of 64-bit value
 
    function Hi (A : Uns64) return Uns32 is (Uns32 (Shift_Right (A, 32)));