]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto-plugin: use locking only for selected targets
authorMartin Liska <mliska@suse.cz>
Thu, 7 Jul 2022 10:15:28 +0000 (12:15 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 7 Jul 2022 13:18:58 +0000 (15:18 +0200)
commitd89fa97ff318b1f892e2629c5a249313872a01b1
treed061779d7e14099d9b23a52eb8d5704d9883fdaa
parent9fc61fc8da9677db862790a6e522f1e2875096a7
lto-plugin: use locking only for selected targets

For now, support locking only for linux targets that are different from
riscv* where the target depends on libatomic (and fails during
bootstrap).

PR lto/106170

lto-plugin/ChangeLog:

* configure.ac: Configure HAVE_PTHREAD_LOCKING.
* lto-plugin.c (LOCK_SECTION): New.
(UNLOCK_SECTION): New.
(claim_file_handler): Use the newly added macros.
(onload): Likewise.
* config.h.in: Regenerate.
* configure: Regenerate.
lto-plugin/config.h.in
lto-plugin/configure
lto-plugin/configure.ac
lto-plugin/lto-plugin.c