]> 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:08:06 +0000 (17:08 +0100)
gcc/ChangeLog:
* doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
documentation, mention UBSAN_OPTIONS, similar to what is done
for AddressSanitizer.

gcc/doc/invoke.texi

index 8b3ebcfbc4fc22bf325556c4dfdca708fa9ffa3f..c4c653292474db1c7e0b30a8b7279cb53dfde6ad 100644 (file)
@@ -15247,7 +15247,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