Skip to content

Don't force-enable frame pointers when generating debug info  #48785

Closed

Description

@nikomatsakis

In #47152, we decided to add a flag to force enable frame pointers (that is, to prevent the compiler from optimizing them away). This flag was to be insta-stable because it is needed, e.g. to help profilers like perf that need to reconstruct the stack. @dotdash then came back with a few proposed changes. Unfortunately, they were never able to finalize the rebase, and the PR was closed by triage for inactivity. This is where you come in, dear reader! Perhaps you can help us!

There was some dispute about what the final interface ought to be though. @dotdash proposed -Comit-frame-pointer=[yes|no], but @Mark-Simulacrum proposed -Cframe-pointers=[auto, yes, no], which seems logical enough.

However we say it, the default behavior (when user says nothing) probably wants to be:

Activity

  1. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Mar 6, 2018
  2. nikomatsakis commented on Mar 6, 2018

    @nikomatsakis
    ContributorAuthor

    cc @rust-lang/compiler -- we should settle on a plan here, no?

  3. nagisa commented on Mar 6, 2018

    @nagisa
    Member

    -Cframe-pointers=val matches our current direction of CLI design. We should change to that ASAP if we want to keep the compatibility.

    The defaults can always be changed later, though. The default should be specified in the target files.

    I’ll fiddle with this.

  4. added
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Mar 6, 2018
  5. added
    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)
    on Mar 7, 2018
  6. added 2 commits that reference this issue on Mar 21, 2018
  7. added a commit that references this issue on May 1, 2018
  8. jonhoo commented on Sep 21, 2018

    @jonhoo
    Contributor

    Should this be closed given that #48786 has landed?

  9. sfackler commented on Sep 21, 2018

    @sfackler
    Member

    I think so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions