<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 - [LTO] missing file name in diagnostic message about inline asm"
   href="https://bugs.llvm.org/show_bug.cgi?id=33984">33984</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[LTO] missing file name in diagnostic message about inline asm
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>For example, given a.c:

int main(int argc, char**argv) {
__asm__("bad");

}

Without LTO, the message is correct:

a.c:2:9: error: invalid instruction, did you mean: adc, add, adr, and, b?
__asm__("bad");
        ^
<inline asm>:1:2: note: instantiated into assembly here
        bad
        ^~~
1 error generated.


With -flto, it becomes:
<inline asm>:1:2: error: invalid instruction, did you mean: adc, add, adr, and,
b?
        bad
        ^
LLVM ERROR: Error parsing inline asm

Not that the filename of the source is missing. If there're multiple objs,
there is no way to tell which file's inline asm is bad.</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>