public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] Fix handling of (u)intcap_t atomics
@ 2022-05-06 14:43 Matthew Malcomson
  0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-05-06 14:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2cce26b359e5ab59e5e9c4f8c57ed19c2c0d7feb

commit 2cce26b359e5ab59e5e9c4f8c57ed19c2c0d7feb
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Mon Apr 25 19:42:33 2022 +0100

    Fix handling of (u)intcap_t atomics
    
    Overload resolution for the atomic builtins didn't allow
    operations on INTCAP_TYPEs, which was causing failures in
    existing gcc.target/aarch64/morello/atomics tests.

Diff:
---
 gcc/c-family/c-common.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index a8a5456e704..98ae22fd00e 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -6980,7 +6980,9 @@ sync_resolve_size (tree function, vec<tree, va_gc> *params, bool fetch)
     goto incompatible;
 
   type = TREE_TYPE (type);
-  if (!INTEGRAL_TYPE_P (type) && !POINTER_TYPE_P (type))
+  if (!INTEGRAL_TYPE_P (type)
+      && !POINTER_TYPE_P (type)
+      && !INTCAP_TYPE_P (type))
     goto incompatible;
 
   if (!COMPLETE_TYPE_P (type))


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

only message in thread, other threads:[~2022-05-06 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 14:43 [gcc(refs/vendors/ARM/heads/morello)] Fix handling of (u)intcap_t atomics 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).