Skip to content

Commit

Permalink
ada: Remove redundant parentheses from System.Stack_Checking.Operations
Browse files Browse the repository at this point in the history
gcc/ada/

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

Tested on x86_64-pc-linux-gnu, committed on master.
  • Loading branch information
burratoo authored and ouuleilei-bot committed May 23, 2023
1 parent c2d62cd commit 0fe8d5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gcc/ada/libgnat/s-stchop.adb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fe8d5a

Please sign in to comment.