[llvm-bugs] [Bug 51496] New: Backport mingw fixes for compiler-rt profile library to 13.x

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 16 12:36:51 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51496

            Bug ID: 51496
           Summary: Backport mingw fixes for compiler-rt profile library
                    to 13.x
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: profile
          Assignee: unassignedbugs at nondot.org
          Reporter: martin at martin.st
                CC: llvm-bugs at lists.llvm.org, nikita.ppv at gmail.com,
                    tstellar at redhat.com
            Blocks: 51236

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ö <martin at martin.st>
Date:   Fri Aug 6 09:22:11 2021 +0300

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


commit 4cfb047d6ab3259c20059e8ed4c15ece3d6eb723
Author: Nikita Popov <nikita.ppv at gmail.com>
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.)


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=51236
[Bug 51236] [meta] 13.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210816/6f8e5849/attachment.html>


More information about the llvm-bugs mailing list