https://bugs.llvm.org/show_bug.cgi?id=36187
Bug ID: 36187
Summary: ThinLTO inlines variables that should be discarded
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Linker
Assignee: unassignedb...@nondot.org
Reporter: gri...@accesssoftek.com
CC: llvm-bugs@lists.llvm.org
Created attachment 19790
--> https://bugs.llvm.org/attachment.cgi?id=19790&action=edit
testcase
It is similar PR35938, but about variables now.
In the attached testcase (based on testcase from PR mentioned)
each file has a different weak variable foo.
The first file is compiled to ELF. The second one is compiled to bitcode. The
linker selects the variable foo from the first (ELF) object and LTO is expected
to drop the second one. Instead of that it inlines it currently.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs