mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-26 00:45:59 +08:00
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.
This commit is contained in:
parent
26eb5f8fd1
commit
9c97de6823
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user