[LLVMbugs] [Bug 2172] New: Dwarf emitter assumes all functions have debug info

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Mar 24 15:14:20 PDT 2008


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

           Summary: Dwarf emitter assumes all functions have debug info
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: alenhar2 at uiuc.edu
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1554)
 --> (http://llvm.org/bugs/attachment.cgi?id=1554)
file with some debug info

compiling this with -g:
typedef int (*ft)(int);

extern int bar(int);

ft foo(int x) {
 return bar;
}


and this without
int bar(int x ) {
  return x;
}


Then linking (with -disable opt) yields the attached bytecode file, which
crashes llc.  The crash happens when llc tries to emit dwarf info for bar,
which doesn't exist.


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