https://bugs.llvm.org/show_bug.cgi?id=50477
Bug ID: 50477
Summary: -fsemantic-interposition breaks extern inline
Product: clang
Version: trunk
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
consider
void foo_good();
extern inline void foo()
{
foo_good();
}
void bar()
{
foo();
}
using: -fsemantic-interposition -fPIC -O2
expected: no reference to foo, only to foo_good.
got: interposable call to foo.
with -O0 i expect a local call to foo that is not interposable.
(i don't think iso c requires either way, but
gcc implements it the described way on elf
platforms and existing software relies on it.
at least on linux targets clang should follow.)
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs