diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-19 19:06:48 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-19 19:06:48 +0000 |
| commit | 83c728b58156835b5706a500cc8c83808fda36a5 (patch) | |
| tree | e120bbc19bd751a250b2b8cde2e2166340a1887e | |
| parent | 0aa60efe9cf04588d46055a9a8dbd78a4c47d5ee (diff) | |
| download | bcm5719-llvm-83c728b58156835b5706a500cc8c83808fda36a5.tar.gz bcm5719-llvm-83c728b58156835b5706a500cc8c83808fda36a5.zip | |
Update users manual to indicate:
1) clang++ must be used when linking C++ programs using -fsanitize=undefined, and
2) MSan can't be combined with TSan or ASan.
llvm-svn: 186711
| -rw-r--r-- | clang/docs/UsersManual.rst | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 90370474636..daa90b64e40 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -971,9 +971,17 @@ are listed below. group. The ``-fsanitize=`` argument must also be provided when linking, in - order to link to the appropriate runtime library. It is not possible - to combine the ``-fsanitize=address`` and ``-fsanitize=thread`` - checkers in the same program. + order to link to the appropriate runtime library. When using + ``-fsanitize=vptr`` (or a group that includes it, such as + ``-fsanitize=undefined``) with a C++ program, the link must be + performed by ``clang++``, not ``clang``, in order to link against the + C++-specific parts of the runtime library. + + It is not possible to combine more than one of the ``-fsanitize=address``, + ``-fsanitize=thread``, and ``-fsanitize=memory`` checkers in the same + program. The ``-fsanitize=undefined`` checks can be combined with other + sanitizers. + **-f[no-]address-sanitizer** Deprecated synonym for :ref:`-f[no-]sanitize=address <opt_fsanitize_address>`. |

