-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Unwinding on mac64 is broken with fp elim #11954
Comments
I believe that this is leading to lots of failures on the bots. cc rust-lang#11954
I believe that this is leading to lots of failures on the bots. cc #11954
Triage: Is this still an issue? Do we want/need frame point elimination on OS X? If not or there is already a satisfactory fix this should be closed. |
Yes, in theory there is a bit of a codegen/perf improvement if we have fp elimination, but it's still disabled for mac |
@alexcrichton what about now? I can't find that code you linked to anymore, it would seem that |
Ah it just moved over here (still disabled) |
Quoting @alexcrichton: > the fp elim here comes from the code contents of the patch: > > ```rust > // FIXME: rust-lang#11906: Omitting frame pointers breaks retrieving the value of a parameter. > // FIXME: rust-lang#11954: mac64 unwinding may not work with fp elim > let no_fp_elim = (sess.opts.debuginfo != NoDebugInfo) || > (sess.targ_cfg.os == abi::OsMacos && > sess.targ_cfg.arch == abi::X86_64); > ``` > > > which points to rust-lang#11954 which > I believe was [incorrectly closed][] (only references i686, not > x86_64). > > This sounds vaguely familiar about how it's related to > unwinding. This also is the definition of something lost to time > which we unfortunately lost track of :(. > > [incorrectly closed]: rust-lang#11954 (comment)
We recently turned on frame pointer elimination in our LLVM codegen. This is apparently causing many problems with unwinding on mac64 platforms. This isn't quite deterministic, but some patches trigger this regularly.
For now, I'm adding an exception for mac64 platforms.
The text was updated successfully, but these errors were encountered: