public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-6046] gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC
@ 2023-12-01 8:55 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2023-12-01 8:55 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4b8078142ee816e2bd484358b935ba1116ed9931
commit r14-6046-g4b8078142ee816e2bd484358b935ba1116ed9931
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Thu Nov 30 17:16:53 2023 +0100
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.
Diff:
---
libgcc/libgcov.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgcc/libgcov.h b/libgcc/libgcov.h
index f5959a8bf5c..a44f145ce25 100644
--- a/libgcc/libgcov.h
+++ b/libgcc/libgcov.h
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-01 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01 8:55 [gcc r14-6046] gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC Sebastian Huber
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).