<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 - DebugInfo: Should Clang cc1as be calling setMCLineTableRootFile"
   href="https://bugs.llvm.org/show_bug.cgi?id=40538">40538</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DebugInfo: Should Clang cc1as be calling setMCLineTableRootFile
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>paul.robinson@am.sony.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dblaikie@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>(Relevant context on the review thread of r328805, and related commit r352541)

There seems to be an unexplained difference between assembling code with
llvm-mc and with Clang's cc1as using DWARFv5 - llvm-mc calls
setMCLineTableRootFile and cc1as does not. At least in my data, this was
related to/lead to llvm-mc successfully assembling an empty asm file, and cc1as
crashing on it (until the fix in r352541), though Paul Robinson observed a
crash in llvm-mc as well.

Looks like setMCLineTableRootFile does useful things like including the source
and md5sum of the file, if desired, for the DWARFv5 output.

So it'd be good to resolve this one way or the other - remove the function, or
add a call to it from cc1as, so the two uses are symmetric (or explain why they
shouldn't be symmetric here).</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>