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.
This commit is contained in:
Diane Meirowitz 2021-09-15 21:03:00 +00:00 committed by Richard Sandiford
parent f858239830
commit 1c0a83eff7

View 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