[compiler-rt] d846a15 - [compiler-rt] [test] [profile] Mark the without-libc test as unsupported on mingw

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 02:06:26 PDT 2023


Author: Martin Storsjö
Date: 2023-04-13T12:03:34+03:00
New Revision: d846a15025eba77cd0c7e39335ac8c16fbc3152a

URL: https://github.com/llvm/llvm-project/commit/d846a15025eba77cd0c7e39335ac8c16fbc3152a
DIFF: https://github.com/llvm/llvm-project/commit/d846a15025eba77cd0c7e39335ac8c16fbc3152a.diff

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

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

Differential Revision: https://reviews.llvm.org/D148166

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/instrprof-without-libc.c b/compiler-rt/test/profile/instrprof-without-libc.c
index b7f7a1e9c6887..3142138cdffc0 100644
--- a/compiler-rt/test/profile/instrprof-without-libc.c
+++ b/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>
 


        


More information about the llvm-commits mailing list