-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Linker plugin LTO broken? #163652
Copy link
Copy link
Open
Labels
A-LTOArea: Link-time optimization (LTO)Area: Link-time optimization (LTO)C-bugCategory: This is a bug.Category: This is a bug.needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
Description
Activity
Metadata
Metadata
Assignees
Labels
A-LTOArea: Link-time optimization (LTO)Area: Link-time optimization (LTO)C-bugCategory: This is a bug.Category: This is a bug.needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
I tried this code:
I expected to see this happen:
foogets inlined.Instead, this happened:
foodoes not get inlined.Also if I understood correctly in #159924 (comment), lld would ignore the standard library even if linker-plugin-lto was working due to us putting bitcode in the wrong section for
-Cembed-bitcode=yes.Meta
rustc --version --verbose:clang --version: