]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: install: document UBSAN_OPTIONS
authorSam James <sam@gentoo.org>
Thu, 31 Oct 2024 21:09:32 +0000 (21:09 +0000)
committerSam James <sam@gentoo.org>
Mon, 11 Nov 2024 07:44:42 +0000 (07:44 +0000)
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.

gcc/doc/install.texi

index d1fc7220db9dc5eacba083af71b1823505ca1aff..705440ffd330d117fe4b1d9da55fa776a9609274 100644 (file)
@@ -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