aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiane Meirowitz <diane.meirowitz@oracle.com>2021-09-15 21:03:00 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2021-10-11 17:08:06 +0100
commit1c0a83eff7bb5b1db997a9726ae6542aec893baa (patch)
treed3dbe25df02e1c3c42bdbf07c9994308256be79e
parentf858239830b9c791d8bbc692378137b4a725b735 (diff)
downloadgcc-1c0a83eff7bb5b1db997a9726ae6542aec893baa.zip
gcc-1c0a83eff7bb5b1db997a9726ae6542aec893baa.tar.gz
gcc-1c0a83eff7bb5b1db997a9726ae6542aec893baa.tar.bz2
doc: improve -fsanitize=undefined description
gcc/ChangeLog: * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer documentation, mention UBSAN_OPTIONS, similar to what is done for AddressSanitizer.
-rw-r--r--gcc/doc/invoke.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 8b3ebcf..c4c6532 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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