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: unassignedclangb...@nondot.org
          Reporter: dblai...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to