[PATCH] D148166: [compiler-rt] [test] [profile] Mark the without-libc test as unsupported on mingw

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 13:38:09 PDT 2023


mstorsjo created this revision.
mstorsjo added reviewers: phosek, alvinhochun, vitalybuka.
Herald added subscribers: Enna1, dberris.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

Mingw toolchains always end up referencing the malloc symbol due to
the CRT startup files.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148166

Files:
  compiler-rt/test/profile/instrprof-without-libc.c


Index: compiler-rt/test/profile/instrprof-without-libc.c
===================================================================
--- compiler-rt/test/profile/instrprof-without-libc.c
+++ compiler-rt/test/profile/instrprof-without-libc.c
@@ -9,6 +9,9 @@
 // an MSVC environment, so we can't make this test portable.
 // UNSUPPORTED: target={{.*msvc.*}}
 
+// The MinGW CRT init files do reference malloc etc, so this test fails.
+// UNSUPPORTED: target={{.*windows-gnu.*}}
+
 #include <stdint.h>
 #include <stdlib.h>
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148166.512959.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230412/aed72d24/attachment.bin>


More information about the llvm-commits mailing list