[LLVMbugs] [Bug 12069] New: DW_TAG_base_type missing DW_AT_name for subrange types

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 22 17:08:37 PST 2012


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

             Bug #: 12069
           Summary: DW_TAG_base_type missing DW_AT_name for subrange types
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: yuri.pankov at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


int
main(void)
{
        int     i[2];

        return 0;
}

dwarfdump output:

clang version 3.0 (tags/RELEASE_30/final) (also tried the 3.1 trunk 151211, the
DIE we are interested in is 141):
[...]
LOCAL_SYMBOLS:
[...]
<3><  120>      DW_TAG_variable
                DW_AT_name                  i
                DW_AT_decl_file             1 /home/yuri/test.c
                DW_AT_decl_line             4
                DW_AT_type                  <144>
                DW_AT_location              DW_OP_fbreg 0
<1><  134>      DW_TAG_base_type
                DW_AT_name                  int
                DW_AT_encoding              DW_ATE_signed
                DW_AT_byte_size             4
<1><  141>      DW_TAG_base_type
                DW_AT_byte_size             4
                DW_AT_encoding              DW_ATE_signed
<1><  144>      DW_TAG_array_type
                DW_AT_type                  <134>
<2><  149>      DW_TAG_subrange_type
                DW_AT_type                  <141>
                DW_AT_upper_bound           <141>1
[...]


gcc 3/4 (for comparison, DIE 102):
[...]
LOCAL_SYMBOLS:
[...]
<2><   66>      DW_TAG_variable
                DW_AT_name                  i
                DW_AT_decl_file             1 /home/yuri/test.c
                DW_AT_decl_line             4
                DW_AT_type                  <86>
                DW_AT_location              DW_OP_fbreg -16
<1><   79>      DW_TAG_base_type
                DW_AT_byte_size             4
                DW_AT_encoding              DW_ATE_signed
                DW_AT_name                  int
<1><   86>      DW_TAG_array_type
                DW_AT_type                  <79>
                DW_AT_sibling               <102>
<2><   95>      DW_TAG_subrange_type
                DW_AT_type                  <102>
                DW_AT_upper_bound           <102>1
<1><  102>      DW_TAG_base_type
                DW_AT_byte_size             4
                DW_AT_encoding              DW_ATE_unsigned
                DW_AT_name                  unsigned int
[...]

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