[Bug ipa/59469] [4.8/4.9 Regression] LLVM build failure with gcc LTO
rafael.espindola at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 9 20:41:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59469
--- Comment #26 from Rafael Avila de Espindola <rafael.espindola at gmail dot com> ---
> Yes, is see the weak symbol both in BasicBlock.o and Function.o.
> However it gets optimized away when I link them with "-flto -O3" into
> libLLVMCore.so (see comment 0).
That optimization seems invalid. There is a explicit template instantiation
definition, so it is valid for other dsos to have an undefined reference.
> Honza says it is an error to have the symbol undefined in
> libLLVMAsmParser.so.
> (The undefined symbol comes from LLParser.cpp)
More information about the Gcc-bugs
mailing list