[PATCH] D30538: Add documentation for -fno-strict-aliasing
Simon Byrne via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 26 10:51:07 PDT 2017
simonbyrne updated this revision to Diff 100430.
simonbyrne added a comment.
@@ -1098,6 +1098,14 @@
the behavior of sanitizers in the ``cfi`` group to allow checking
of cross-DSO virtual and indirect calls.
+.. option:: -f[no-]strict-aliasing
+ Enables/disables the strict aliasing assumption, which assumes that
+ objects of different types do not share the same location in memory.
+ NOTE: Unlike gcc, clang does not allow "type-punning" by writing and
+ reading from different union members without `-fno-strict-aliasing`
.. option:: -fstrict-vtable-pointers
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 671 bytes
Desc: not available
More information about the cfe-commits