Skip to content
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

Merged
merged 2 commits into from
Jan 29, 2014
Merged

mk: remove -fno-omit-frame-pointer #11879

merged 2 commits into from
Jan 29, 2014

Conversation

thestinger
Copy link
Contributor

This is still used for Rust code (Options.NoFramePointerElim = true).

This is still used for Rust code (`Options.NoFramePointerElim = true`).
@thestinger
Copy link
Contributor Author

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"
Copy link
Member

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.

@thestinger
Copy link
Contributor Author

@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;
Copy link
Member

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
bors added a commit that referenced this pull request Jan 29, 2014
This is still used for Rust code (`Options.NoFramePointerElim = true`).
@bors bors closed this Jan 29, 2014
@bors bors merged commit cb263e8 into rust-lang:master Jan 29, 2014
@thestinger thestinger deleted the frame-pointer branch February 8, 2014 04:58
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 1, 2023
`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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants