<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 - llvm-mc chokes on .file directives generated by clang -S"
   href="https://bugs.llvm.org/show_bug.cgi?id=44210">44210</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-mc chokes on .file directives generated by clang -S
          </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>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>labath@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>cmtice@google.com, echristo@gmail.com, jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I think this example says it all

=====
$ echo "void foo(){}" > test.c
$ clang -gmlt -gdwarf-5 ./test.c -c -o a.o # everything OK here
$ clang -gmlt -gdwarf-5 ./test.c -S -o - | llvm-mc -filetype=obj -o a.o -
-dwarf-version=5
<stdin>:10:7: error: unassigned file number in '.loc' directive
        .loc    1 1 0                   # ./test.c:1:0
                ^
<stdin>:19:7: error: unassigned file number in '.loc' directive
        .loc    1 1 12 prologue_end     # ./test.c:1:12
=====


This is kind of related to pr44170, as the trigger for it is pretty subtle
(it's the "./" part -- see that bug for details).</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>