]> git.ipfire.org Git - thirdparty/gcc.git/commit
hpux: Fix detection of atomic support when profiling
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 19 May 2025 21:28:00 +0000 (17:28 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 19 May 2025 21:30:50 +0000 (17:30 -0400)
commit23a8659a3e3a1877f70d196ae498a76d0fd2783c
tree001d68acbc5bd5cab08e855f3b3a78caf9de16a6
parent9063810c86beee6274d745b91d8fb43a81c9683e
hpux: Fix detection of atomic support when profiling

The pa target lacks atomic sync compare and swap instructions.
These are implemented as libcalls and in libatomic.  As on linux,
we lie about their availability.

This fixes the gcov-30.c test on hppa64-hpux11.

2025-05-19  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa-hpux.h (TARGET_HAVE_LIBATOMIC): Define.
(HAVE_sync_compare_and_swapqi): Likewise.
(HAVE_sync_compare_and_swaphi): Likewise.
(HAVE_sync_compare_and_swapsi): Likewise.
(HAVE_sync_compare_and_swapdi): Likewise.
gcc/config/pa/pa-hpux.h