From patchwork Tue Feb 21 14:26:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 65414 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A7D4D3858423 for ; Tue, 21 Feb 2023 14:26:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7D4D3858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676989613; bh=B2jb/Lr4pOrkQQVKwbLFtZjWJaLIU1zb/SE/f6JniCo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JI2nHwZ0RwvaDdHIMw+V4y+v6+zTJYj1+Pw/U894vV75dYrPbMbQVzsCW4crt5rzg vmM+WywnzXctdr1Dn2bz2wkwQi/kyYYLnlaHHMcr8uOTUKRtUqyUvQ4q9/w8znFWAg KJz1RJnTZV4pi0cmH+78lqQNDRqCLzQLUnQjLKZg= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 494583858D3C for ; Tue, 21 Feb 2023 14:26:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 494583858D3C Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8850034AD1 for ; Tue, 21 Feb 2023 14:26:28 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7483613223 for ; Tue, 21 Feb 2023 14:26:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Iu9BG5TU9GNfUAAAMHmgww (envelope-from ) for ; Tue, 21 Feb 2023 14:26:28 +0000 To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Require compilation flags in two gdb.arch/aarch64 test-cases Date: Tue, 21 Feb 2023 15:26:41 +0100 Message-Id: <20230221142641.13882-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom de Vries via Gdb-patches From: Tom de Vries Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" With test-cases gdb.arch/aarch64-mte-core.exp and gdb.arch/aarch64-pauth.exp I run into compilation errors due to unsupported compilation flags. Fix this by requiring the compilation flags, such that I have instead: ... UNSUPPORTED: gdb.arch/aarch64-mte-core.exp: require failed: \ have_compile_flag -march=armv8.5-a+memtag UNSUPPORTED: gdb.arch/aarch64-pauth.exp: require failed: \ have_compile_flag -mbranch-protection=pac-ret+leaf ... Tested on aarch64-linux. --- gdb/testsuite/gdb.arch/aarch64-mte-core.exp | 2 ++ gdb/testsuite/gdb.arch/aarch64-pauth.exp | 2 ++ 2 files changed, 4 insertions(+) base-commit: 2ef339e38f51906a394105fe545058fec1f9bc4a diff --git a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp index dde5df47b1a..6127ffb302b 100644 --- a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp +++ b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp @@ -166,6 +166,8 @@ proc test_mode { mode } { require is_aarch64_target +require {have_compile_flag -march=armv8.5-a+memtag} + # Run tests foreach_with_prefix mode {"sync" "async"} { test_mode $mode diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp index d0dfaf96900..36d8e722072 100644 --- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp +++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp @@ -19,6 +19,8 @@ require is_aarch64_target +require {have_compile_flag -mbranch-protection=pac-ret+leaf} + # Build program with address signing forced on. standard_testfile set compile_flags {debug}