[llvm-bugs] [Bug 36187] New: ThinLTO inlines variables that should be discarded
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 1 01:38:30 PST 2018
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: unassignedbugs at nondot.org
Reporter: grimar at accesssoftek.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180201/c1db12a2/attachment.html>
More information about the llvm-bugs
mailing list