-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix personality_fn within the compiler_builtins #40254
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
(seems like a fallout of SNAP cleanup) |
src/libcompiler_builtins/lib.rs
Outdated
fn iabs(self) -> i128 { | ||
let s = self >> 127; | ||
let s = self.wrapping_shl(127); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be wrapping_shr
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
compiler_builtins may not have any unwinding within it to link correctly. This is notoriously finicky, and this small piece of change removes yet another case where personality function happens to get introduced. Side note: I do remember solving the exact same thing before. I wonder why it has reappered...
dc5fdbc
to
8f581cc
Compare
I don't see any conditional jump in the disassembly of that function. It would be very weird if it were the cause. |
... except if LLVM has a bug in their garbage collector. |
It doesn't apply cleanly, because of |
My i686 build works with #40256, thanks! I'm trying native builds now on all arches... |
Everything looks good, thanks! |
@bors: r+ |
📌 Commit 8f581cc has been approved by |
…=alexcrichton Fix personality_fn within the compiler_builtins compiler_builtins may not have any unwinding within it to link correctly. This is notoriously finicky, and this small piece of change removes yet another case where personality function happens to get introduced. Side note: I do remember solving the exact same thing before. I wonder why it has reappered... @cuviper, could you please try building beta with this patch applied? It should apply cleanly. If it works, I’ll nominate to land this into beta. Fixes(?) rust-lang#40251
compiler_builtins may not have any unwinding within it to link correctly. This is notoriously
finicky, and this small piece of change removes yet another case where personality function
happens to get introduced.
Side note: I do remember solving the exact same thing before. I wonder why it has reappered...
@cuviper, could you please try building beta with this patch applied? It should apply cleanly. If it works, I’ll nominate to land this into beta.
Fixes(?) #40251