[LLVMbugs] [Bug 14484] New: Problem with columns in debug info

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 3 01:11:42 PST 2012


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

             Bug #: 14484
           Summary: Problem with columns in debug info
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: alastair.donaldson at imperial.ac.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9633
  --> http://llvm.org/bugs/attachment.cgi?id=9633
Example program which exibits the problem.

I believe that CLANG is generating incorrect column data in the debugging
information produced by the -g flag.

On the attached C test case, I'm doing:

clang -emit-llvm -g -c -o test.bc test.c
llvm-dis test.bc

This leads to the attached .ll file.

The call to "bar" has debug information 9 associated with it.

Debug information 9 then says that the line number is 4 (correct), but that the
column is 0 (incorrect: the column should be 5).

I would be very grateful if someone could fix this.  I'm building a static
analysis tool on top of CLANG and I use this debugging information to produce
error messages.  At the moment every error message has associated column 0.

Thanks

Ally

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