diff options
author | Steve Baird <baird@adacore.com> | 2024-08-05 15:15:22 -0700 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-08-23 10:51:04 +0200 |
commit | 24c5396f8cd6e93010612f09fb77845559e30692 (patch) | |
tree | 4b6de9f48547b90cdf18def1793e30a140732700 /gcc/expr.cc | |
parent | 40903c7decc4632ce54617ea9d68ead3b126a52e (diff) | |
download | gcc-24c5396f8cd6e93010612f09fb77845559e30692.zip gcc-24c5396f8cd6e93010612f09fb77845559e30692.tar.gz gcc-24c5396f8cd6e93010612f09fb77845559e30692.tar.bz2 |
ada: Eliminated-mode overflow check not eliminated
If the Overflow_Mode in effect is Eliminated, then evaluating an arithmetic
op such as addition or subtraction should not fail an overflow check.
Fix a bug which resulted in such an overflow check failure.
gcc/ada/
* checks.adb (Is_Signed_Integer_Arithmetic_Op): Return True in the
case of relational operator whose operands are of a signed integer
type.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions