]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcov: Fix build on AIX
authorMartin Liska <mliska@suse.cz>
Tue, 2 Jun 2020 14:57:35 +0000 (16:57 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 3 Jun 2020 06:12:50 +0000 (08:12 +0200)
commiteb3480fc0fe68c0062a5548e922d530c78121cb5
tree1e3619f4c6d57ebb711c11cb15b3311501a8d76b
parenta9312a7926079ddb78b5f93681a9f6823422f5e1
gcov: Fix build on AIX

We must guard used atomic builtins with GCOV_SUPPORTS_ATOMIC.
The patch is tested on AIX and I'm going to push it.

libgcc/ChangeLog:

PR gcov-profile/95480
* libgcov-profiler.c (GCOV_SUPPORTS_ATOMIC): Move to...
* libgcov.h (GCOV_SUPPORTS_ATOMIC): ...here.
(gcov_counter_add): Use GCOV_SUPPORTS_ATOMIC guard.
(gcov_counter_set_if_null): Likewise.
libgcc/libgcov-profiler.c
libgcc/libgcov.h