[LLVMbugs] [Bug 14611] New: Clang does not emit debug info for referenced constants

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 14 14:25:57 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14611

             Bug #: 14611
           Summary: Clang does not emit debug info for referenced
                    constants
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: googler
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dblaikie at gmail.com
                CC: dgregor at apple.com, echristo at gmail.com,
                    llvmbugs at cs.uiuc.edu
            Blocks: 14330
    Classification: Unclassified


Given the program:

#include <stdio.h>

int main() {
  FILE *f = stderr;
}

GCC produces debug info including a DW_TAG_variable for "stderr", Clang does
not.

This difference in behavior breaks gdb.base/dprintf.exp in the GDB 7.5 test
suite because GCC cannot resolve "stderr" in "set dprintf-channel stderr", so
far as I can tell.

-- 
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