* [PATCH] gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC
@ 2023-12-01 8:19 Sebastian Huber
2023-12-01 8:38 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2023-12-01 8:19 UTC (permalink / raw)
To: gcc-patches; +Cc: Richard Biener, Matthias Klose
libgcc/ChangeLog:
PR target/112777
* libgcov.h (GCOV_SUPPORTS_ATOMIC): Honor that __LIBGCC_HAVE_LIBATOMIC is
always defined as either 0 or 1.
---
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
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC
2023-12-01 8:19 [PATCH] gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC Sebastian Huber
@ 2023-12-01 8:38 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2023-12-01 8:38 UTC (permalink / raw)
To: Sebastian Huber; +Cc: gcc-patches, Matthias Klose
On Fri, Dec 1, 2023 at 9:19 AM Sebastian Huber
<sebastian.huber@embedded-brains.de> wrote:
>
> libgcc/ChangeLog:
OK.
> PR target/112777
>
> * libgcov.h (GCOV_SUPPORTS_ATOMIC): Honor that __LIBGCC_HAVE_LIBATOMIC is
> always defined as either 0 or 1.
> ---
> 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
> --
> 2.35.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-01 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01 8:19 [PATCH] gcov: Fix use of __LIBGCC_HAVE_LIBATOMIC Sebastian Huber
2023-12-01 8:38 ` Richard Biener
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).