<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 - Backport mingw fixes for compiler-rt profile library to 13.x"
   href="https://bugs.llvm.org/show_bug.cgi?id=51496">51496</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Backport mingw fixes for compiler-rt profile library to 13.x
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>profile
          </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, nikita.ppv@gmail.com, tstellar@redhat.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>51236
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The compiler-rt profile library is broken in 13.x for mingw targets. These two
commits need to be backported to remedy it:


commit 94c001d6465857459617e9858e5128a784400e54
Author: Martin Storsjö <<a href="mailto:martin@martin.st">martin@martin.st</a>>
Date:   Fri Aug 6 09:22:11 2021 +0300

    [profile] Build with -fms-extensions in MinGW mode


commit 4cfb047d6ab3259c20059e8ed4c15ece3d6eb723
Author: Nikita Popov <<a href="mailto:nikita.ppv@gmail.com">nikita.ppv@gmail.com</a>>
Date:   Sun Aug 15 23:43:34 2021 +0200

    [profile] Don't use pragma comment linker on mingw


Out of these two commits, the latter undoes the former and does fix the same
issue differently - but I guess it's simplest to just cherrypick them both in
that order. (The first fix only works when built with clang and linked with
lld, but the latter fixes building with GCC and linking with ld.bfd.)</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] 13.0.0 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=51236">Bug 51236</a>] [meta] 13.0.0 Release Blockers
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>