[LLVMbugs] [Bug 19006] New: clang does not emit .debug_aranges (gcc does)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 28 06:27:37 PST 2014


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

            Bug ID: 19006
           Summary: clang does not emit .debug_aranges (gcc does)
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The program

 int main() { return 0; }

compiled with

 clang -S s.c -o s_clang.s -g -target i686-pc-mingw32

produces empty .debug_aranges:

        Lsection_abbrev:
    .section    .debug_aranges,"rn"
    .section    .debug_macinfo,"rn"

compiled with 

  gcc -S s.c -g -o s_gcc.s

produces correct .debug_aranges:

    .section    .debug_aranges,"dr"
    .long    0x1c
    .word    0x2
    .secrel32    Ldebug_info0
    .byte    0x4
    .byte    0
    .word    0
    .word    0
    .long    Ltext0
    .long    Letext0-Ltext0
    .long    0
    .long    0
    .section    .debug_line,"dr"

clang r201846
gcc version 4.8.2 (i686-win32-dwarf, Built by MinGW-W64 project)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140228/eace14ef/attachment.html>


More information about the llvm-bugs mailing list