libsanitizer: Add option to bootstrap using HWASAN
authorMatthew Malcomson <matthew.malcomson@arm.com>
Wed, 25 Nov 2020 16:31:41 +0000 (16:31 +0000)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Wed, 25 Nov 2020 16:35:37 +0000 (16:35 +0000)
commit170e618ef559a9b1220174c1d33cd7e5b1045cc8
treee3cc338dd0968385848cd2fb1c6afa104e213883
parent8a769f816f8af7a8aac6f16874011c3e15280e38
libsanitizer:  Add option to bootstrap using HWASAN

This is an analogous option to --bootstrap-asan to configure.  It allows
bootstrapping GCC using HWASAN.

For the same reasons as for ASAN we have to avoid using the HWASAN
sanitizer when compiling libiberty and the lto-plugin.

Also add a function to query whether -fsanitize=hwaddress has been
passed.

ChangeLog:

* configure: Regenerate.
* configure.ac: Add --bootstrap-hwasan option.

config/ChangeLog:

* bootstrap-hwasan.mk: New file.

gcc/ChangeLog:

* doc/install.texi: Document new option.

libiberty/ChangeLog:

* configure: Regenerate.
* configure.ac: Avoid using sanitizer.

lto-plugin/ChangeLog:

* Makefile.am: Avoid using sanitizer.
* Makefile.in: Regenerate.
config/bootstrap-hwasan.mk [new file with mode: 0644]
configure
configure.ac
gcc/doc/install.texi
libiberty/configure
libiberty/configure.ac
lto-plugin/Makefile.am
lto-plugin/Makefile.in