]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove redundant parentheses from System.Stack_Checking.Operations
authorPatrick Bernardi <bernardi@adacore.com>
Tue, 28 Feb 2023 22:30:46 +0000 (17:30 -0500)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 23 May 2023 07:59:07 +0000 (09:59 +0200)
gcc/ada/

* libgnat/s-stchop.adb (Stack_Check): Remove redundant parentheses.

gcc/ada/libgnat/s-stchop.adb

index 8d8cc60ffb00a3b114c217b09d9a90d212b4ca10..e0efcefa2177df300990cbb8bd29664c0aca9cac 100644 (file)
@@ -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