mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
refactor: Add missing explicit instantiations of function templates #37007
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!37007
Loading…
Reference in a new issue
No description provided.
Delete branch "261129-module-local"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
SignatureHashandSignatureHashSchnorrfunction templates are defined ininterpreter.cppbut are also used from other translation units, which have relied on implicit instantiations being emitted in that file. The standard does not guarantee that.This PR adds the missing explicit instantiations. It fixes linker errors (see the nightly builds with libstdc++ and libc++) when building with Clang 24, where module-local optimizer hints are now enabled by default. The change was introduced in https://github.com/llvm/llvm-project/pull/238529.
A successful build of this branch with Clang 24 is available here: https://github.com/hebasto/bitcoin-core-nightly/pull/496.
As a workaround, Clang's previous behavior can be restored with the
-fno-module-local-hintsflag.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.I found no actionable issues in this static review.
Reviewed:
7ec6081ecab2· Review report · Previous reportspermalink
lgtm
please omit all the arg names completely. IIUC this is the normal C++ pattern and also done so in addrman.cpp
Sure. Reworked.
review ACK
7ec6081eca🔌Show signature
Signature:
ACK
7ec6081ecaBackported to
32.xin #36984.Backported to
31.xin #36928 and30.xin #36929.