Make various error-related globals thread-local
authorTom Tromey <tom@tromey.com>
Sun, 27 Aug 2023 17:37:38 +0000 (11:37 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 Nov 2023 00:47:12 +0000 (17:47 -0700)
commitc6d6a048f5a6f422e470c7c4bdb21a0c59d7c8fd
tree6059da9eaca725a1e8582e4ae8c919f34019b430
parent426931be4b538078c89c09d89ae3ecbab3146f46
Make various error-related globals thread-local

This changes bfd_error et al to be thread-local.

* Makefile.in: Regenerate.
* aclocal.m4: Include ax_tls.m4.
* ax_tls.m4: New file.
* bfd.c: (bfd_error, input_error, input_bfd, _bfd_error_buf):
Now thread-local.
(bfd_asprintf): Update docs.
* config.in, configure: Regenerate.
* configure.ac: Call AX_TLS.
* po/bfd.pot: Regenerate.
bfd/Makefile.in
bfd/aclocal.m4
bfd/ax_tls.m4 [new file with mode: 0644]
bfd/bfd.c
bfd/config.in
bfd/configure
bfd/configure.ac
bfd/po/bfd.pot