https://bugs.llvm.org/show_bug.cgi?id=35938

            Bug ID: 35938
           Summary: ThinLTO inline functions that should be discarded
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Linker
          Assignee: unassignedb...@nondot.org
          Reporter: rafael.espind...@gmail.com
                CC: llvm-bugs@lists.llvm.org, tejohn...@google.com

Created attachment 19672
  --> https://bugs.llvm.org/attachment.cgi?id=19672&action=edit
testcase

In the attached testcase each file has a different weak function foo.

The first file is compiled to ELF. The second one is compiled to bitcode. The
linker selects the function foo from the first (ELF) object and LTO is expected
to drop the second one.

Unfortunately ThinLTO internalizes the second function instead of dropping it.
This means that llvm can now inline it.

-- 
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

Reply via email to