From: Viljar Indus <[email protected]>
Technically this is no longer necessary as everything will be
removed along with the ignored ghost code removal.
gcc/ada/ChangeLog:
* sem_prag.adb (Analyze_Pragma): Remove overflow supression
workaround.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_prag.adb | 28 +---------------------------
1 file changed, 1 insertion(+), 27 deletions(-)
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb
index 543ca7f6f93..72534eec97f 100644
--- a/gcc/ada/sem_prag.adb
+++ b/gcc/ada/sem_prag.adb
@@ -15692,33 +15692,7 @@ package body Sem_Prag is
-- Now go ahead and analyze the if statement
In_Assertion_Expr := In_Assertion_Expr + 1;
-
- -- One rather special treatment. If we are now in Eliminated
- -- overflow mode, then suppress overflow checking since we do
- -- not want to drag in the bignum stuff if we are in Ignore
- -- mode anyway. This is particularly important if we are using
- -- a configurable run time that does not support bignum ops.
-
- if Scope_Suppress.Overflow_Mode_Assertions = Eliminated then
- declare
- Svo : constant Boolean :=
- Scope_Suppress.Suppress (Overflow_Check);
- begin
- Scope_Suppress.Overflow_Mode_Assertions := Strict;
- Scope_Suppress.Suppress (Overflow_Check) := True;
- Analyze (N);
- Scope_Suppress.Suppress (Overflow_Check) := Svo;
- Scope_Suppress.Overflow_Mode_Assertions := Eliminated;
- end;
-
- -- Not that special case
-
- else
- Analyze (N);
- end if;
-
- -- All done with this check
-
+ Analyze (N);
In_Assertion_Expr := In_Assertion_Expr - 1;
-- Check is active or expansion not active. In these cases we can
--
2.53.0