Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upThinLTO linking failure #45195
Comments
alexcrichton
added
A-codegen
A-LLVM
labels
Oct 11, 2017
This comment has been minimized.
This comment has been minimized.
|
Hm ok that's not actually a great reproduction. ThinLTO is performing as expected for that reproduction, the problem is that we just don't have dead code elimination turned on at O1 in LLVM. Going to try to re-reduce again with optimizations enabled to get closer to the original issue. |
This comment has been minimized.
This comment has been minimized.
|
Er actually turns out I was testing the wrong thing! I think I've got a fix |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 11, 2017
alexcrichton
referenced this issue
Oct 11, 2017
Merged
rustc: Fix some ThinLTO internalization #45215
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 12, 2017
bors
added a commit
that referenced
this issue
Oct 15, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 15, 2017
bors
added a commit
that referenced
this issue
Oct 15, 2017
bors
added a commit
that referenced
this issue
Oct 15, 2017
bors
closed this
in
#45215
Oct 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alexcrichton commentedOct 11, 2017
An extracted test case from https://internals.rust-lang.org/t/help-test-out-thinlto/6017/32 can be minimized down to:
and can be reproduced with:
Oddly enough the error is slightly nondeterministic...