[LLVMbugs] [Bug 11710] New: -fno-eliminate-unused-debug-types is not supported by clang (or llvm-gcc)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 4 22:48:44 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11710
Bug #: 11710
Summary: -fno-eliminate-unused-debug-types is not supported by
clang (or llvm-gcc)
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nallegra at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
It is possible to instruct GCC to produce debugging information for all defined
types, even if they are unused, by passing -fno-eliminate-unused-debug-types.
For example, this can be used to get information about the structures defined
in an include file:
gcc-4.2 -fno-eliminate-unused-debug-types -gdwarf-2 -include
/usr/include/mach-o/loader.h -x c /dev/null -c -o /tmp/output.o
There is also the option -gfull which, according to gcc's man page, "emits
debugging information for all symbols and types", but for some reason this does
not produce the same effect.
clang does not support -fno-eliminate-unused-debug-types; llvm-gcc accepts it,
but appears to ignore it. clang maps -gfull to -g
-fno-eliminate-unused-debug-symbols, but doesn't do anything with the latter.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list