[PATCH] D137360: [Linker] Remove nocallback attribute while linking
Daniel Thornburgh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 10:59:20 PST 2022
mysterymath added a comment.
In D137360#3994127 <https://reviews.llvm.org/D137360#3994127>, @nikic wrote:
> On that note, does someone have an example of how `__attribute__((nocallback))` is getting used in the wild? Do people use the preprocessor to add the nocallback attribute in the header only for external users of the library, but omit it when including the header in the implementation (as no callback is likely not valid there?)
That appears to be how glibc uses it: https://github.com/bminor/glibc/blob/d055481ce39d03652ac60de5078889e15b6917ff/misc/sys/cdefs.h#L64
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137360/new/
https://reviews.llvm.org/D137360
More information about the llvm-commits
mailing list