<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [DWARF v5] Duplicate file table entry when a simple .s file is compiled"
   href="https://bugs.llvm.org/show_bug.cgi?id=47715">47715</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[DWARF v5] Duplicate file table entry when a simple .s file is compiled
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Wolfgang_Pieb@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The assembly source:
#======
foo:
   ret
#======
when compiled with 
clang -gdwarf-5 -c -x assembler-with-cpp test.s

produces a file table with 2 entries for the source file:

llvm-dwarfdump --debug-line test.o
<snip>
include_directories[  0] = "/home/test"
file_names[  0]:file_names[  0]:
           name: "test.s"
      dir_index: 0
file_names[  1]:
           name: "test.s"
      dir_index: 0
<snip>

This is somewhat similar to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Duplicate file names in DWARF v5 line tables"
   href="show_bug.cgi?id=44170">bug 44170</a>, but does not depend on using a different
pathname for the source. The first entry seems to be derived from the command
line. With

clang -gdwarf-5 -c -x assembler-with-cpp ./test.s

the file table comes out to be:

include_directories[  0] = "/home/test"
include_directories[  1] = "."
file_names[  0]:
           name: "./test.s"
      dir_index: 0
file_names[  1]:
           name: "test.s"
      dir_index: 1

In both cases, the line entries only refer to file 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>