Repository navigation
[OpenMP] Remove internal linkage from __kmp_wait template (NFC) - #207983
Merged
Merged
Conversation
__kmp_wait in kmp_dispatch.h is a static function template in a header, so any TU that includes it without instantiating it trips -Wunused-template (kmp_runtime.cpp, kmp_affinity.cpp, kmp_global.cpp, kmp_settings.cpp). It is used by kmp_dispatch.cpp and kmp_dispatch_hier.h. Drop static, which the comment above it already suggests. Part of llvm#202945.
Member
Author
|
Ping for review @mjklemm @TerryLWilmarth @vgvassilev @erichkeane |
aobolensk
pushed a commit
to aobolensk/llvm-project
that referenced
this pull request
Jul 8, 2026
…#207983) __kmp_wait in kmp_dispatch.h is a static function template in a header, so any TU that includes it without instantiating it trips -Wunused-template (kmp_runtime.cpp, kmp_affinity.cpp, kmp_global.cpp, kmp_settings.cpp). It is used by kmp_dispatch.cpp and kmp_dispatch_hier.h. Drop static, which the comment above it already suggests. Part of llvm#202945
vgvassilev
pushed a commit
that referenced
this pull request
Jul 8, 2026
Reland of #206123, which was reverted in #207848. What has changed since: - flang-rt occurrences are fixed in #207979 - openmp had one more occurrence which is fixed in #207983 - The remaining -Wunused-template hits anywhere in CI logs are the tsan Go runtime warnings, which are warnings only (buildgo.sh does not use -Werror on Linux) Marked as draft until #207979 and #207983 land. Closes #202945
gandhi56
pushed a commit
that referenced
this pull request
Jul 9, 2026
) __kmp_wait in kmp_dispatch.h is a static function template in a header, so any TU that includes it without instantiating it trips -Wunused-template (kmp_runtime.cpp, kmp_affinity.cpp, kmp_global.cpp, kmp_settings.cpp). It is used by kmp_dispatch.cpp and kmp_dispatch_hier.h. Drop static, which the comment above it already suggests. Part of #202945
gandhi56
pushed a commit
that referenced
this pull request
Jul 9, 2026
Reland of #206123, which was reverted in #207848. What has changed since: - flang-rt occurrences are fixed in #207979 - openmp had one more occurrence which is fixed in #207983 - The remaining -Wunused-template hits anywhere in CI logs are the tsan Go runtime warnings, which are warnings only (buildgo.sh does not use -Werror on Linux) Marked as draft until #207979 and #207983 land. Closes #202945
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
__kmp_wait in kmp_dispatch.h is a static function template in a header, so any TU that includes it without instantiating it trips -Wunused-template (kmp_runtime.cpp, kmp_affinity.cpp, kmp_global.cpp, kmp_settings.cpp). It is used by kmp_dispatch.cpp and kmp_dispatch_hier.h. Drop static, which the comment above it already suggests.
Part of #202945