public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2006] [Ada] Do not catch 'N rem -1' in CodePeer_Mode
@ 2021-07-05 13:13 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-05 13:13 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:afe5959e11727f6ff276bc1a7c62181306157504

commit r12-2006-gafe5959e11727f6ff276bc1a7c62181306157504
Author: Boris Yakobowski <yakobowski@adacore.com>
Date:   Wed Apr 21 14:49:15 2021 +0200

    [Ada] Do not catch 'N rem -1' in CodePeer_Mode
    
    gcc/ada/
    
            * exp_ch4.adb (Expand_N_Op_Rem): Remove special case for rem -1
            in CodePeer_Mode.

Diff:
---
 gcc/ada/exp_ch4.adb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index a9fc2705157..54e91b2f2e3 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -10393,7 +10393,9 @@ package body Exp_Ch4 is
       --  types and this is really marginal). We will just assume that we need
       --  the test if the left operand can be negative at all.
 
-      if Lneg and Rneg then
+      if (Lneg and Rneg)
+         and then not CodePeer_Mode
+      then
          Rewrite (N,
            Make_If_Expression (Loc,
              Expressions => New_List (


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-05 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 13:13 [gcc r12-2006] [Ada] Do not catch 'N rem -1' in CodePeer_Mode Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).