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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to