summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthew Malcomson <matthew.malcomson@arm.com>2020-11-25 16:31:41 +0000
committerMatthew Malcomson <matthew.malcomson@arm.com>2020-11-25 16:35:37 +0000
commit170e618ef559a9b1220174c1d33cd7e5b1045cc8 (patch)
treee3cc338dd0968385848cd2fb1c6afa104e213883 /configure.ac
parentlibsanitizer: Only build libhwasan when targeting AArch64 (diff)
downloadgcc-170e618ef559a9b1220174c1d33cd7e5b1045cc8.tar.gz
gcc-170e618ef559a9b1220174c1d33cd7e5b1045cc8.tar.bz2
gcc-170e618ef559a9b1220174c1d33cd7e5b1045cc8.tar.xz
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 44fa75f3a32..944f30cfea8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2814,7 +2814,7 @@ fi
2814# or bootstrap-ubsan, bootstrap it. 2814# or bootstrap-ubsan, bootstrap it.
2815if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then 2815if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
2816 case "$BUILD_CONFIG" in 2816 case "$BUILD_CONFIG" in
2817 *bootstrap-asan* | *bootstrap-ubsan* ) 2817 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
2818 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, 2818 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
2819 bootstrap_fixincludes=yes 2819 bootstrap_fixincludes=yes
2820 ;; 2820 ;;