From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id 9C5E8383943F; Fri, 6 May 2022 14:43:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C5E8383943F Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Matthew Malcomson To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] Fix handling of (u)intcap_t atomics X-Act-Checkin: gcc X-Git-Author: Richard Sandiford X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 7601a93bdaad20348719dd766a6523b1dcf1ee43 X-Git-Newrev: 2cce26b359e5ab59e5e9c4f8c57ed19c2c0d7feb Message-Id: <20220506144314.9C5E8383943F@sourceware.org> Date: Fri, 6 May 2022 14:43:14 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2022 14:43:14 -0000 https://gcc.gnu.org/g:2cce26b359e5ab59e5e9c4f8c57ed19c2c0d7feb commit 2cce26b359e5ab59e5e9c4f8c57ed19c2c0d7feb Author: Richard Sandiford 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 *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))