[clang] [profile] runtime counter relocation is needed on windows-msvc targets (PR #127858)

Wael Yehia via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 20 10:46:01 PST 2025


================
@@ -6,6 +6,7 @@
 
 // RUN: %clang --target=powerpc64-ibm-aix -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
 // RUN: %clang --target=x86_64-unknown-fuchsia -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
+// RUN: %clang --target=x86_64-windows-msvc -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
----------------
w2yehia wrote:

_WIN32 doesn't indicate it's only for 32-bit: [source](https://accu.org/journals/overload/24/132/wilson_2223/)
i.e. the compiler-rt code is active in both 32-bit and 64-bit compilations of the runtime on Windows.

https://github.com/llvm/llvm-project/pull/127858


More information about the cfe-commits mailing list