Patchwork Filter out -fsanitize=address from PLUGINCFLAGS

login
register
mail settings
Submitter H.J. Lu
Date Nov. 29, 2012, 5:48 p.m.
Message ID <20121129174851.GC31369@intel.com>
Download mbox | patch
Permalink /patch/202799/
State New
Headers show

Comments

H.J. Lu - Nov. 29, 2012, 5:48 p.m.
Hi,

All plugin tests failed when GCC is configured with
--with-build-config=bootstrap-asan, since linker can't find
libasan at link-time.  -fsanitize=address isn't needed to test
plugin support.  This patch filters out -fsanitize=address from
PLUGINCFLAGS.  OK to install?

Thanks.


H.J.
---
 gcc/Makefile.in    | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

2012-11-22  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/55440
	* Makefile.in (PLUGINCFLAGS): Filter out -fsanitize=address.

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index c7b8648..78a6007 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -329,7 +329,8 @@  enable_lto = @enable_lto@
 
 # Compiler and flags needed for plugin support
 PLUGINCC = @CXX@
-PLUGINCFLAGS = @CXXFLAGS@
+# Filter out -fsanitize=address
+PLUGINCFLAGS = $(filter-out -fsanitize=address,@CXXFLAGS@)
 
 # Libs and linker options needed for plugin support
 PLUGINLIBS = @pluginlibs@