public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] selftests: Disable range test on capabilities
@ 2021-09-21  9:13 Matthew Malcomson
  0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2021-09-21  9:13 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:15a49e9f285a69e4f233905c77bb163bfe237827

commit 15a49e9f285a69e4f233905c77bb163bfe237827
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Mon Jul 19 13:52:50 2021 +0100

    selftests: Disable range test on capabilities
    
    This disables a selftest that tries to invert a range where the domain
    is a capability type, as this is currently unsupported (and leads to an
    ICE).
    
    gcc/ChangeLog:
    
            * range-op.cc (range_tests): Don't try and invert a range if the
            domain is a capability type.

Diff:
---
 gcc/range-op.cc | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gcc/range-op.cc b/gcc/range-op.cc
index b7b708b488b..125ef0e2c6a 100644
--- a/gcc/range-op.cc
+++ b/gcc/range-op.cc
@@ -3772,11 +3772,14 @@ range_tests ()
   // Make sure NULL and non-NULL of pointer types work, and that
   // inverses of them are consistent.
   tree voidp = build_pointer_type (void_type_node);
-  r0 = range_zero (voidp);
-  r1 = r0;
-  r0.invert ();
-  r0.invert ();
-  ASSERT_TRUE (r0 == r1);
+  if (!capability_type_p (voidp))
+    {
+      r0 = range_zero (voidp);
+      r1 = r0;
+      r0.invert ();
+      r0.invert ();
+      ASSERT_TRUE (r0 == r1);
+    }
 
   // [10,20] U [15, 30] => [10, 30].
   r0 = int_range<1> (INT (10), INT (20));


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

only message in thread, other threads:[~2021-09-21  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21  9:13 [gcc(refs/vendors/ARM/heads/morello)] selftests: Disable range test on capabilities Matthew Malcomson

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