summaryrefslogtreecommitdiffstats
path: root/lto-plugin
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 /lto-plugin
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 'lto-plugin')
-rw-r--r--lto-plugin/Makefile.am4
-rw-r--r--lto-plugin/Makefile.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/lto-plugin/Makefile.am b/lto-plugin/Makefile.am
index 204b25f45ef..8b20e1d1d87 100644
--- a/lto-plugin/Makefile.am
+++ b/lto-plugin/Makefile.am
@@ -11,8 +11,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
11AM_CFLAGS = @ac_lto_plugin_warn_cflags@ $(CET_HOST_FLAGS) 11AM_CFLAGS = @ac_lto_plugin_warn_cflags@ $(CET_HOST_FLAGS)
12AM_LDFLAGS = @ac_lto_plugin_ldflags@ 12AM_LDFLAGS = @ac_lto_plugin_ldflags@
13AM_LIBTOOLFLAGS = --tag=disable-static 13AM_LIBTOOLFLAGS = --tag=disable-static
14override CFLAGS := $(filter-out -fsanitize=address,$(CFLAGS)) 14override CFLAGS := $(filter-out -fsanitize=address -fsanitize=hwaddress,$(CFLAGS))
15override LDFLAGS := $(filter-out -fsanitize=address,$(LDFLAGS)) 15override LDFLAGS := $(filter-out -fsanitize=address -fsanitize=hwaddress,$(LDFLAGS))
16 16
17libexecsub_LTLIBRARIES = liblto_plugin.la 17libexecsub_LTLIBRARIES = liblto_plugin.la
18gcc_build_dir = @gcc_build_dir@ 18gcc_build_dir = @gcc_build_dir@
diff --git a/lto-plugin/Makefile.in b/lto-plugin/Makefile.in
index 834699b439e..20611c6b1e6 100644
--- a/lto-plugin/Makefile.in
+++ b/lto-plugin/Makefile.in
@@ -675,8 +675,8 @@ uninstall-am: uninstall-libexecsubLTLIBRARIES
675 675
676.PRECIOUS: Makefile 676.PRECIOUS: Makefile
677 677
678override CFLAGS := $(filter-out -fsanitize=address,$(CFLAGS)) 678override CFLAGS := $(filter-out -fsanitize=address -fsanitize=hwaddress,$(CFLAGS))
679override LDFLAGS := $(filter-out -fsanitize=address,$(LDFLAGS)) 679override LDFLAGS := $(filter-out -fsanitize=address -fsanitize=hwaddress,$(LDFLAGS))
680 680
681all-local: $(in_gcc_libs) 681all-local: $(in_gcc_libs)
682 682