From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2063) id 26673385842A; Tue, 9 Apr 2024 02:03:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26673385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712628236; bh=wuc74nlGmyqnWEhR257FrGm5HUt9KN1+rz7lf+tCNoU=; h=From:To:Subject:Date:From; b=A5p4fiucWs4MoXgX0/n2kyIbeCW36+IWXLcAtNckvOteA8TxirRdu8V1A7ze4kAob w6B561SM+TZAq7W4lrezS5SybfmcDfdhUr3po9a2AxHyaLoGpWq7veVpgcVoZUva1h d0OY5UnziC4ghQG8VgtMJQVFKsSBQv4hPyEpZfJY= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kewen Lin To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9851] testsuite: Add profile_update_atomic check to gcov-20.c [PR114614] X-Act-Checkin: gcc X-Git-Author: Kewen Lin X-Git-Refname: refs/heads/master X-Git-Oldrev: 26eb5f8fd173e2425ae7505528fc426de4b7e34c X-Git-Newrev: 9c97de682303b81c8886ac131fcfb3b122f2f1a6 Message-Id: <20240409020356.26673385842A@sourceware.org> Date: Tue, 9 Apr 2024 02:03:55 +0000 (GMT) List-Id: https://gcc.gnu.org/g:9c97de682303b81c8886ac131fcfb3b122f2f1a6 commit r14-9851-g9c97de682303b81c8886ac131fcfb3b122f2f1a6 Author: Kewen Lin Date: Mon Apr 8 21:02:17 2024 -0500 testsuite: Add profile_update_atomic check to gcov-20.c [PR114614] As PR114614 shows, the newly added test case gcov-20.c by commit r14-9789-g08a52331803f66 failed on targets which do not support atomic profile update, there would be a message like: warning: target does not support atomic profile update, single mode is selected Since the test case adopts -fprofile-update=atomic, it requires effective target check profile_update_atomic, this patch is to add the check accordingly. PR testsuite/114614 gcc/testsuite/ChangeLog: * gcc.misc-tests/gcov-20.c: Add effective target check profile_update_atomic. Diff: --- gcc/testsuite/gcc.misc-tests/gcov-20.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.misc-tests/gcov-20.c b/gcc/testsuite/gcc.misc-tests/gcov-20.c index 215faffc980..ca8c12aad2b 100644 --- a/gcc/testsuite/gcc.misc-tests/gcov-20.c +++ b/gcc/testsuite/gcc.misc-tests/gcov-20.c @@ -1,5 +1,6 @@ /* { dg-options "-fcondition-coverage -ftest-coverage -fprofile-update=atomic" } */ /* { dg-do run { target native } } */ +/* { dg-require-effective-target profile_update_atomic } */ /* Some side effect to stop branches from being pruned */ int x = 0;