[PATCH] D111009: Update inline builtin handling to honor gnu inline attribute
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 3 12:44:58 PDT 2021
nickdesaulniers added a comment.
Here's a reduced test case from the kernel. Let's add a unit test for it.
const void *con_unify_unimap_p1;
extern inline __attribute__((__always_inline__)) __attribute__((gnu_inline))
int memcmp(const void *p, const void *q, unsigned long size) {
__builtin_memcmp(p, q, size);
}
void con_unify_unimap_q1(void) {
memcmp(con_unify_unimap_p1, con_unify_unimap_q1, sizeof(int));
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111009/new/
https://reviews.llvm.org/D111009
More information about the cfe-commits
mailing list