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

            Bug ID: 17710
           Summary: Clang emits DWARF4 forms with -gdwarf-2 option
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ >z.c
$ ./bin/clang -gdwarf-2 z.c -c -o z.o
$ ./bin/llvm-dwarfdump --debug-dump=info z.o | grep "DW_AT_stmt_list"
              DW_AT_stmt_list [DW_FORM_sec_offset]    (0x00000000)

DW_FORM_sec_offset first appeared in DWARF4, while the emitted compile unit is
said to have DWARF-2:
$ ./bin/llvm-dwarfdump --debug-dump=info z.o | grep "version"
0x00000000: Compile Unit: length = 0x00000022 version = 0x0002 abbr_offset =
0x0000 addr_size = 0x08 (next unit at 0x00000026)

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