From: Patrick Bernardi Date: Tue, 28 Feb 2023 22:30:46 +0000 (-0500) Subject: ada: Remove redundant parentheses from System.Stack_Checking.Operations X-Git-Tag: basepoints/gcc-15~9018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0245ee3b3729fb961d203a580f21ecc49efb197;p=thirdparty%2Fgcc.git ada: Remove redundant parentheses from System.Stack_Checking.Operations gcc/ada/ * libgnat/s-stchop.adb (Stack_Check): Remove redundant parentheses. --- diff --git a/gcc/ada/libgnat/s-stchop.adb b/gcc/ada/libgnat/s-stchop.adb index 8d8cc60ffb00..e0efcefa2177 100644 --- a/gcc/ada/libgnat/s-stchop.adb +++ b/gcc/ada/libgnat/s-stchop.adb @@ -234,11 +234,10 @@ package body System.Stack_Checking.Operations is -- it is essential to use our local copy of Stack. begin - if (Stack_Grows_Down and then - (not (Frame_Address <= My_Stack.Base))) + if (Stack_Grows_Down and then not (Frame_Address <= My_Stack.Base)) or else (not Stack_Grows_Down and then - (not (Frame_Address >= My_Stack.Base))) + not (Frame_Address >= My_Stack.Base)) then -- The returned Base is lower than the stored one, so assume that -- the original one wasn't right and use the current Frame_Address