public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-624] Change x mod 0 to produce UNDEFINED rather than VARYING.
@ 2021-05-07 19:02 Andrew Macleod
  0 siblings, 0 replies; only message in thread
From: Andrew Macleod @ 2021-05-07 19:02 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:156054e873194004161dab2f8d43dbccc5cd8f36

commit r12-624-g156054e873194004161dab2f8d43dbccc5cd8f36
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Mon Apr 26 17:46:31 2021 -0400

    Change x mod 0 to produce UNDEFINED rather than VARYING.
    
            * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.

Diff:
---
 gcc/range-op.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/range-op.cc b/gcc/range-op.cc
index 0027b3e1427..ab8f4e211ac 100644
--- a/gcc/range-op.cc
+++ b/gcc/range-op.cc
@@ -2689,7 +2689,7 @@ operator_trunc_mod::wi_fold (irange &r, tree type,
   // Mod 0 is undefined.
   if (wi_zero_p (type, rh_lb, rh_ub))
     {
-      r.set_varying (type);
+      r.set_undefined ();
       return;
     }


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 19:02 [gcc r12-624] Change x mod 0 to produce UNDEFINED rather than VARYING Andrew Macleod

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).