You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling my code with -flto=thin -fwhole-program-vtables -Wl,--lto-whole-program-visibility to devirtualize calls in my code, I get a segfault.
The segfault only seems to occur when all three options are enabled, using only -flto=thin -fwhole-program-vtables does not cause crashes. According to godbolt, it's also less effective at devirtualization.
Please let me know if there's anything else I can provide.
$ clang --version
Ubuntu clang version 20.1.5 (++20250430014901+ebfae55af454-1~exp1~20250430014920.111)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-20/bi
$ ld --version
Ubuntu LLD 20.1.5 (compatible with GNU linkers
I'm using clang 20 from the ubuntu ppa here.
When compiling my code with
-flto=thin -fwhole-program-vtables -Wl,--lto-whole-program-visibility
to devirtualize calls in my code, I get a segfault.The segfault only seems to occur when all three options are enabled, using only
-flto=thin -fwhole-program-vtables
does not cause crashes. According to godbolt, it's also less effective at devirtualization.Please let me know if there's anything else I can provide.
The text was updated successfully, but these errors were encountered: