Detect whether target can use -fprofile-update=atomic
authorMartin Liska <mliska@suse.cz>
Tue, 6 Sep 2016 14:13:21 +0000 (16:13 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 6 Sep 2016 14:13:21 +0000 (14:13 +0000)
commit7fe76f6ae806fda9a5efe335ccf0e250dd4dde1a
tree315ef19a1505b76db80cb9f8f37a31a21332de73
parent209b636eddd6602c55b4a65237578953b7d80225
Detect whether target can use -fprofile-update=atomic

PR gcov-profile/77378
PR gcov-profile/77466
* libgcov-profiler.c: Use __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{4,8} to
conditionaly enable/disable *_atomic functions.
PR gcov-profile/77378
PR gcov-profile/77466
* tree-profile.c (tree_profiling): Detect whether target can use
-fprofile-update=atomic.
PR gcov-profile/77378
PR gcov-profile/77466
* gcc.dg/profile-update-warning.c: New test.

From-SVN: r240008
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/profile-update-warning.c [new file with mode: 0644]
gcc/tree-profile.c
libgcc/ChangeLog
libgcc/libgcov-profiler.c