From: Aleksandra Pasek Date: Mon, 3 Feb 2025 18:09:36 +0000 (+0000) Subject: ada: Add Ghost aspect to Lo in s-arit32.adb X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4405925143b620b9c18889cc79433d90100416d7;p=thirdparty%2Fgcc.git ada: Add Ghost aspect to Lo in s-arit32.adb gcc/ada/ChangeLog: * libgnat/s-arit32.adb: Add Ghost aspect to Lo. --- diff --git a/gcc/ada/libgnat/s-arit32.adb b/gcc/ada/libgnat/s-arit32.adb index 5172d1dba0e..eb4e6e5590f 100644 --- a/gcc/ada/libgnat/s-arit32.adb +++ b/gcc/ada/libgnat/s-arit32.adb @@ -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)));