[PATCH] D66726: [Bitfield] Disable -ffine-grained-bitfield-accesses only when thread sanitizer is enabled

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 22:36:48 PDT 2019


wmi created this revision.
wmi added reviewers: chandlerc, chill, hfinkel.
Herald added a project: LLVM.
wmi edited subscribers, added: cfe-commits; removed: llvm-commits.

Currently -ffine-grained-bitfield-accesses is disabled when any type of sanitizer is enabled (https://reviews.llvm.org/D36562). That seems unnecessary because the flag only affect Tsan's ability to find race conditions between accesses to consecutive bitfields. The patch disable -ffine-grained-bitfield-accesses only when thread sanitizer is enabled.


Repository:
  rL LLVM

https://reviews.llvm.org/D66726

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGenCXX/finegrain-bitfield-access.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66726.217075.patch
Type: text/x-patch
Size: 13371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190826/a856058b/attachment.bin>


More information about the llvm-commits mailing list