From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1059) id 139733894C1A; Thu, 27 Aug 2020 18:09:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 139733894C1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598551772; bh=owc1E7J3WTeauJKkD+iALBEKAiFxiqaNriDPsdrzdG0=; h=From:To:Subject:Date:From; b=ivsPOaEZTpJdC7ZGkGrGHSb9tt8J9hRX/fFi33dZBkUYaXrBFUNelRayo/M8VBpe2 e7WK8B3qiWAMLs1fq0Gv0n0771DuEPATriuk6ZkllxBxCcFrXBx2+0FHy6zMlVuthp CSwT0nW/nWGwYkNRaw8JNOydH/xExZbnzjwqpM9I= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Nathan Sidwell To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/c++-modules] Revert "AArch64: Add if condition in aarch64_function_value [PR96479]" X-Act-Checkin: gcc X-Git-Author: Richard Sandiford X-Git-Refname: refs/heads/devel/c++-modules X-Git-Oldrev: 17dc08edc28f4fc25f6cd7b71f0d0a0d1ec2f833 X-Git-Newrev: db4615380832d3d3751a70ecdf6fe6c9fe3c4f69 Message-Id: <20200827180932.139733894C1A@sourceware.org> Date: Thu, 27 Aug 2020 18:09:32 +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: Thu, 27 Aug 2020 18:09:32 -0000 https://gcc.gnu.org/g:db4615380832d3d3751a70ecdf6fe6c9fe3c4f69 commit db4615380832d3d3751a70ecdf6fe6c9fe3c4f69 Author: Richard Sandiford Date: Thu Aug 13 12:59:13 2020 +0100 Revert "AArch64: Add if condition in aarch64_function_value [PR96479]" This reverts commit b418ccb358e428091fb9c6020fd10be5ae40a17a. Diff: --- gcc/config/aarch64/aarch64.c | 4 ---- gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f80594d2331..b7f5bc76f1b 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5554,10 +5554,6 @@ aarch64_function_value (const_tree type, const_tree func, if (aarch64_vfp_is_call_or_return_candidate (mode, type, &ag_mode, &count, NULL, false)) { - /* TYPE passed in fp/simd registers. */ - if (!TARGET_FLOAT) - aarch64_err_no_fpadvsimd (ag_mode); - gcc_assert (!sve_p); if (!aarch64_composite_type_p (type, mode)) { diff --git a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c index 6f785c99b74..336402ead84 100644 --- a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c +++ b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c @@ -4,6 +4,6 @@ typedef int int32x2_t __attribute__ ((__vector_size__ ((8)))); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" "" {target "aarch64*-*-*"} .+1 } */ int32x2_t test (int32x2_t a, int32x2_t b) -{ /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" } */ - return a + b; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" } */ +{ + return a + b; }