-
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
mk: remove -fno-omit-frame-pointer #11879
Conversation
This is still used for Rust code (`Options.NoFramePointerElim = true`).
It would be nice to disable this for Rust code too. However, we were not generating the expected debug information before and debuggers rely on this as a fallback when it is not present. |
@@ -188,7 +182,6 @@ CFG_DEF_SUFFIX_i686-unknown-linux-gnu := .linux.def | |||
CFG_LLC_FLAGS_i686-unknown-linux-gnu := | |||
CFG_INSTALL_NAME_i686-unknown-linux-gnu = | |||
CFG_LIBUV_LINK_FLAGS_i686-unknown-linux-gnu = | |||
CFG_LLVM_BUILD_ENV_i686-unknown-linux-gnu="CXXFLAGS=-fno-omit-frame-pointer" |
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.
Let's not delete these lines from the makefile, but rather just leave them blank. I think that their presence helps suppress any usage of an undefined variable.
@alexcrichton: They're only defined for Linux and not the other platforms though. I could leave them and add empty lines for the other platforms, but it's pretty pointless if none are setting it. |
@@ -128,6 +128,9 @@ pub mod write { | |||
}; | |||
let use_softfp = sess.opts.debugging_opts & session::USE_SOFTFP != 0; | |||
|
|||
// FIXME: #11906: Omitting frame pointers currently breaks retrieving the value of a parameter. | |||
let no_frame_pointer_elim = sess.opts.debugging_opts & session::DEBUG_INFO != 0; |
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.
This should use sess.opts.debuginfo
instead of inspecting debugging_opts
This can almost be fully disabled, as it no longer breaks retrieving a backtrace on OS X as verified by @alexcrichton. However, it still breaks retrieving the values of parameters. This should be fixable in the future via a proper location list... Closes #7477
This is still used for Rust code (`Options.NoFramePointerElim = true`).
`manual_try_fold`: check that `fold` is really `Iterator::fold` Fix rust-lang#11876 changelog: [`manual_try_fold`]: suggest using `try_fold` only for `Iterator::fold` uses
This is still used for Rust code (
Options.NoFramePointerElim = true
).