<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 --- - ARM/Windows compilation broken by r278788"
   href="https://llvm.org/bugs/show_bug.cgi?id=30356">30356</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ARM/Windows compilation broken by r278788
          </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>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>Backend: ARM
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>martin@martin.st
          </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>Created <span class=""><a href="attachment.cgi?id=17246" name="attach_17246" title="Example that shows the issue">attachment 17246</a> <a href="attachment.cgi?id=17246&action=edit" title="Example that shows the issue">[details]</a></span>
Example that shows the issue

The changes in r278788 (with r278789 applied on top) broke compilation of code
containing divisions for ARM/Windows.

When compiling, it errors out with "fatal error: error in backend: out of range
pc-relative fixup value". When the new changes are commented out, the resulting
code seems just fine though, the included CBZ branches are well in range and
behave properly.

The issue can be reproduced by compiling the attached C source file:

clang -target armv7-windows-msvc test.c -c -o test.o -O2

(It can also be reproduced without -O2.)</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>