<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - all DWARF DW_AT_name generation are wrong for ARM"
   href="https://llvm.org/bugs/show_bug.cgi?id=27985">27985</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>all DWARF DW_AT_name generation are wrong for ARM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-as
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yinma@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Use any hello world .c , such as

int foo(char* ccc) {
  char aaa[10];
  aaa[1] = ccc[2];
  return aaa[1];
}

clang  -c -target arm -O0 -g t.c
dwarfdump -i t.o

We can see 
.debug_info

COMPILE_UNIT<header overall offset = 0x00000000>:
< 0><0x0000000b>  DW_TAG_compile_unit
                    DW_AT_producer              "clang version 3.9.0
(<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 3d996e269b2a4c446a67d89d9d8b1c510168169b)
(<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> c27d8b42ef187b39e289d916599f694cc9796302)"
                    DW_AT_language              DW_LANG_C99
                    DW_AT_name                  "clang version 3.9.0
(<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 3d996e269b2a4c446a67d89d9d8b1c510168169b)
(<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> c27d8b42ef187b39e289d916599f694cc9796302)"
                    DW_AT_stmt_list             0x00000000
                    DW_AT_comp_dir              "clang version 3.9.0
(<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 3d996e269b2a4c446a67d89d9d8b1c510168169b)
(<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> c27d8b42ef187b39e289d916599f694cc9796302)"
                    DW_AT_low_pc                0x00000000
                    DW_AT_high_pc               <offset-from-lowpc>36

LOCAL_SYMBOLS:
< 1><0x00000026>    DW_TAG_subprogram
                      DW_AT_low_pc                0x00000000
                      DW_AT_high_pc               <offset-from-lowpc>36
                      DW_AT_frame_base            len 0x0001: 5d: DW_OP_reg13
                      DW_AT_name                  "clang version 3.9.0
(<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 3d996e269b2a4c446a67d89d9d8b1c510168169b)
(<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> c27d8b42ef187b39e289d916599f694cc9796302)"
                      DW_AT_decl_file             0x00000001 clang version
3.9.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 3d996e269b2a4c446a67d89d9d8b1c510168169b)
(<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> c27d8b42ef187b39e289d916599f694cc9796302)/t.c
                      DW_AT_decl_line             0x00000001
                      DW_AT_prototyped            yes(1)
                      DW_AT_type                  <0x00000058>
                      DW_AT_external              yes(1)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>