[LLVMbugs] [Bug 1710] New: No debug info for optimised code
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Sep 27 08:37:20 PDT 2007
http://llvm.org/bugs/show_bug.cgi?id=1710
Summary: No debug info for optimised code
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: richard.smith at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
>From http://www.llvm.org/docs/SourceLevelDebugging.html:
"An extremely high priority of LLVM debugging information is to make it
interact
well with optimizations and analysis. ... Compiling a program with "-O3 -g"
gives you full debug information."
However, compiling with optimisation seems to disable debugging.
llvm_initialize_backend() (in llvm-gcc-4.0/gcc/llvm-backend.cpp) has this:
if (!optimize && debug_info_level > DINFO_LEVEL_NONE)
TheDebugInfo = new DebugInfo(TheModule);
which suggests that this is intentional.
(This is with 2.0)
--
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