]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: improve -fsanitize=undefined description
authorDiane Meirowitz <diane.meirowitz@oracle.com>
Wed, 15 Sep 2021 21:03:00 +0000 (21:03 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 11 Oct 2021 16:12:18 +0000 (17:12 +0100)
gcc/ChangeLog:
* doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
documentation, mention UBSAN_OPTIONS, similar to what is done
for AddressSanitizer.

(cherry picked from commit 1c0a83eff7bb5b1db997a9726ae6542aec893baa)

gcc/doc/invoke.texi

index 6fb740bacd38a8910ec080918695944b41a5aee5..eae00f87918215f9a796ca30d90b66d387a0ece7 100644 (file)
@@ -14837,7 +14837,8 @@ The option cannot be combined with @option{-fsanitize=thread}.
 @opindex fsanitize=undefined
 Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
 Various computations are instrumented to detect undefined behavior
-at runtime.  Current suboptions are:
+at runtime.  See @uref{https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html} for more details.   The run-time behavior can be influenced using the
+@env{UBSAN_OPTIONS} environment variable.  Current suboptions are:
 
 @table @gcctabopt