[llvm-bugs] [Bug 25304] New: Support GCC's -fno-eliminate-unused-debug-types

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 23 16:21:49 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25304

            Bug ID: 25304
           Summary: Support GCC's -fno-eliminate-unused-debug-types
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dblaikie at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Clang has no way to emit all debug info in the translation unit, regardless of
whether or not those entities are used. GCC has a flag to opt in to such
verbosity:

"-fno-eliminate-unused-debug-types
Normally, when producing DWARF 2 output, GCC avoids producing debug symbol
output for types that are nowhere used in the source file being compiled.
Sometimes it is useful to have GCC emit debugging information for all types
declared in a compilation unit, regardless of whether or not they are actually
used in that compilation unit, for example if, in the debugger, you want to
cast a value to a type that is not actually used in your program (but is
declared). More often, however, this results in a significant amount of wasted
space." - https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html

I have no personal use for this option, but it's a sometimes-useful flag
someone might want to implement at some point.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151023/e5d741b6/attachment.html>


More information about the llvm-bugs mailing list