public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9851] testsuite: Add profile_update_atomic check to gcov-20.c [PR114614]
@ 2024-04-09 2:03 Kewen Lin
0 siblings, 0 replies; only message in thread
From: Kewen Lin @ 2024-04-09 2:03 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9c97de682303b81c8886ac131fcfb3b122f2f1a6
commit r14-9851-g9c97de682303b81c8886ac131fcfb3b122f2f1a6
Author: Kewen Lin <linkw@linux.ibm.com>
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-09 2:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-09 2:03 [gcc r14-9851] testsuite: Add profile_update_atomic check to gcov-20.c [PR114614] Kewen Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).