aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-10-31 21:09:32 +0000
committerSam James <sam@gentoo.org>2024-11-11 07:44:42 +0000
commit00448f9b5a123b4b6b3e6f45d2fecf0a5dca66b3 (patch)
tree5aecba9b3a2a102b199517e27549f5634202e27c /gcc
parent8f791fac1419a5dc663abd5091cf4db409539b33 (diff)
downloadgcc-00448f9b5a123b4b6b3e6f45d2fecf0a5dca66b3.zip
gcc-00448f9b5a123b4b6b3e6f45d2fecf0a5dca66b3.tar.gz
gcc-00448f9b5a123b4b6b3e6f45d2fecf0a5dca66b3.tar.bz2
doc: install: document UBSAN_OPTIONS
Explain that 'bootstrap-ubsan' won't abort on errors by default and how to override that by setting UBSAN_OPTIONS. gcc/ChangeLog: PR other/116948 * doc/install.texi (Building a native compiler): Document UBSAN_OPTIONS.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/doc/install.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index d1fc722..705440f 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -3149,7 +3149,9 @@ systems that are running Linux kernel version 5.4 or later.
@item @samp{bootstrap-ubsan}
Compiles GCC itself using Undefined Behavior Sanitization in order to catch
-undefined behavior within the GCC code.
+undefined behavior within the GCC code. Note that it does not abort on errors
+by default. @code{UBSAN_OPTIONS} can be set to change this, like
+@samp{UBSAN_OPTIONS='abort_on_error=1:halt_on_error=1:print_summary=1:print_stacktrace=1'}.
@end table