[all-commits] [llvm/llvm-project] 743f78: [InstrProfiling] Fix warnings when building for Wi...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Mon Aug 9 01:39:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 743f78ef7fcaaf59246a1163858da3d9581485ff
https://github.com/llvm/llvm-project/commit/743f78ef7fcaaf59246a1163858da3d9581485ff
Author: Martin Storsjö <martin at martin.st>
Date: 2021-08-09 (Mon, 09 Aug 2021)
Changed paths:
M compiler-rt/lib/profile/InstrProfilingWriter.c
Log Message:
-----------
[InstrProfiling] Fix warnings when building for Windows
The Headers.CountersDelta field is an uint64_t, not a pointer,
so just cast to uint32_t to truncate it.
Differential Revision: https://reviews.llvm.org/D107619
Commit: 94c001d6465857459617e9858e5128a784400e54
https://github.com/llvm/llvm-project/commit/94c001d6465857459617e9858e5128a784400e54
Author: Martin Storsjö <martin at martin.st>
Date: 2021-08-09 (Mon, 09 Aug 2021)
Changed paths:
M compiler-rt/lib/profile/CMakeLists.txt
Log Message:
-----------
[profile] Build with -fms-extensions in MinGW mode
54902e00d1280785042e2c7ec71b25a949ade92c added a use of
/alternatename via a #pragma comment(linker); in MinGW mode, this
requires building with -fms-extensions. (This flag is added to
SANITIZER_COMMON_CFLAGS in the toplevel CMakeLists.txt.)
This avoids a warning when building in MinGW mode (about an unknown
pragma being ignored), and presumably also makes the code work as
intended.
Differential Revision: https://reviews.llvm.org/D107620
Compare: https://github.com/llvm/llvm-project/compare/aefdce8b397a...94c001d64658
More information about the All-commits
mailing list