mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC
libgcc/ChangeLog: PR target/112777 * libgcov.h (GCOV_SUPPORTS_ATOMIC): Honor that __LIBGCC_HAVE_LIBATOMIC is always defined as either 0 or 1.
This commit is contained in:
parent
a1bc121c00
commit
4b8078142e
@ -98,7 +98,7 @@ typedef unsigned gcov_type_unsigned __attribute__ ((mode (QI)));
|
||||
/* Detect whether target can support atomic update of profilers. */
|
||||
#if (__SIZEOF_LONG_LONG__ == 4 && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) \
|
||||
|| (__SIZEOF_LONG_LONG__ == 8 && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) \
|
||||
|| defined (__LIBGCC_HAVE_LIBATOMIC)
|
||||
|| __LIBGCC_HAVE_LIBATOMIC
|
||||
#define GCOV_SUPPORTS_ATOMIC 1
|
||||
#else
|
||||
#define GCOV_SUPPORTS_ATOMIC 0
|
||||
|
Loading…
Reference in New Issue
Block a user