From 83c728b58156835b5706a500cc8c83808fda36a5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 19 Jul 2013 19:06:48 +0000 Subject: [PATCH] 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 --- clang/docs/UsersManual.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 903704746360..daa90b64e409 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 `.