[PATCH] D122789: [compiler-rt] [scudo] Use -mcrc32 on x86 when available

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 1 01:35:50 PDT 2022


mgorny updated this revision to Diff 419666.
mgorny added a comment.

Used `__builtin_ia32_crc32*` along with `-mcrc32` to fix compatibility with GCC.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122789/new/

https://reviews.llvm.org/D122789

Files:
  compiler-rt/cmake/config-ix.cmake
  compiler-rt/lib/scudo/CMakeLists.txt
  compiler-rt/lib/scudo/scudo_allocator.cpp
  compiler-rt/lib/scudo/scudo_crc32.cpp
  compiler-rt/lib/scudo/scudo_crc32.h
  compiler-rt/lib/scudo/standalone/CMakeLists.txt
  compiler-rt/lib/scudo/standalone/checksum.h
  compiler-rt/lib/scudo/standalone/chunk.h
  compiler-rt/lib/scudo/standalone/crc32_hw.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122789.419666.patch
Type: text/x-patch
Size: 7946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220401/72e2bdf9/attachment-0001.bin>


More information about the cfe-commits mailing list