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: unassignedb...@nondot.org
          Reporter: mar...@martin.st
                CC: llvm-bugs@lists.llvm.org, nikita....@gmail.com,
                    tstel...@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ö <mar...@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....@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to