Skip to content

Tracking Issue for defaulting to DWARF 5 format #75890

Description

@LifeIsStrange

https://www.phoronix.com/scan.php?page=news_item&px=GCC-11-DWARF-5-Possible-Default
GCC 11 will enable DWARF 5 by default.
LLVM supports should be good as many backends already enable DWARF 5 by default, such as amdgpu or fuschia.

What are the blockers if any?
I don't think there is a flag to even enable it in an opt-in manner currently?

I think this could be a great improvement to rust as it could affect debug binaries performance, size and even correctness/allow things that weren't possible before, thus enabling future lldb/Gdb features.

Activity

  1. jonas-schievink commented on Aug 24, 2020

    @jonas-schievink
    Contributor

    What new features would Rust benefit from with this?

  2. ehuss commented on Aug 24, 2020

    @ehuss
    Contributor

    I think one improvement would be split dwarf (#34651). I believe this would help reduce the size of executables when using the pre-compiled standard library (or at least not require stripping), and may have a performance improvement. Unfortunately it looks like there is still a long road to support that. It would be interesting to see an overview of what modern tooling supports (gcc, clang, gnu ld, lldb, gdb, etc.), since it seems like support has been spotty at best.

  3. added
    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Oct 20, 2020
  4. LifeIsStrange commented on Jan 26, 2022

    @LifeIsStrange
    Author
  5. pnkfelix commented on Oct 14, 2022

    @pnkfelix
    Contributor

    see #98350; you can now (unstably, i.e. on nightly) opt-into DWARF5 on Linux

  6. pnkfelix commented on Oct 14, 2022

    @pnkfelix
    Contributor

    discussed at T-compiler steering meeting

    we are not currently in a position to change all targets to DWARF5; it seems clear from issues like #98746 that support for DWARF 5 is inconsistent at best.

    there is on-going work to allow one to opt-into using DWARF5, e.g. in already mentioned #98350. We should open a different tracking issue regarding offering stable support for that opt-in.

    but defaulting to DWARF5 seems premature.

    thus, closing this tracking issue.

  7. pnkfelix commented on Oct 14, 2022

    @pnkfelix
    Contributor

    Filed #103057 for the desire for a stable way to opt into DWARF5

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-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions