From patchwork Mon Nov 13 14:26:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 1863222 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4STWxn1nLNz1yRm for ; Tue, 14 Nov 2023 01:28:29 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 01BC53892D5F for ; Mon, 13 Nov 2023 14:28:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 05217392C290 for ; Mon, 13 Nov 2023 14:27:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 05217392C290 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 05217392C290 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885649; cv=none; b=KU5FTU1i6ELGC8gU0VfvqtfRI8KGvk6ZbY91XNWluioiYKz8cJGA8x1/bDtuT7Aj9U9u271wjVLLA+aTtuS9uP88MS3DjWy/4kN4AsbZgZtJa2yBNM+0QKPkU2SnzHod65RfqtFeyhx5X5tHmRl/4rdlCZKsV5gQcDHrqPwLWiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885649; c=relaxed/simple; bh=+BQU6GbSpt9sjagqX/Y0UqBVhu8gwT61QWWL5ovY7K0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=ph3xo60Gfwt0zEMLKo0gIoQQCaTpI/DJd5eXZwBaZ2Yh4cNQ1Rx29hO7tDPN3+ZV9D1NR8C3TSuB1pokLQyJUc62DGWWFRlSkgcdpZr4JWWlPWk/TjPLvoS9c1tV1hsQxQeDW7zXo4jN4st0rO3tI+IHVzj0JQzmE4EamjDlEoM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 47F50FEC; Mon, 13 Nov 2023 06:28:13 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 56D433F7B4; Mon, 13 Nov 2023 06:27:27 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 06/22] arm: testsuite: avoid problems with -mfpu=auto in attr_thumb-static2.c Date: Mon, 13 Nov 2023 14:26:42 +0000 Message-Id: <20231113142658.69039-7-rearnsha@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231113142658.69039-1-rearnsha@arm.com> References: <20231113142658.69039-1-rearnsha@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org This test overrides the architecture, but fails to describe which floating-point features are needed. This causes problems if the ABI requires FP for parameter passing and -mfpu=auto is selected, so ensure that one is specified. gcc/testsuite: * gcc.target/arm/attr_thumb-static2.c: Add +fp to the -march specification. --- gcc/testsuite/gcc.target/arm/attr_thumb-static2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c b/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c index 77454343b23..a38f9a95607 100644 --- a/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c +++ b/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c @@ -2,7 +2,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v7a_ok } */ -/* { dg-options "-O0 -march=armv7-a" } */ +/* { dg-options "-O0 -march=armv7-a+fp" } */ struct _NSPoint {