PR testsuite/55440: Filter out -fsanitize=address from PLUGINCFLAGS

Submitted by H.J. Lu on Nov. 22, 2012, 11:07 p.m.


Message ID
State New
Headers show

Commit Message

H.J. Lu Nov. 22, 2012, 11:07 p.m.

When GCC is compiled with -fsanitize=address, we passs
-fsanitize=address to PLUGINCFLAGS.  We either can't find libasan at
build-time or run-time.  This patch filter-outs -fsanitize=address
from PLUGINCFLAGS.  OK to install?


2012-11-22  H.J. Lu  <>
	PR testsuite/55440
	* (PLUGINCFLAGS): Filter out -fsanitize=address.

Patch hide | download patch | download mbox

diff --git a/gcc/ b/gcc/
index 88b29ea..154a0fb 100644
--- a/gcc/
+++ b/gcc/
@@ -329,7 +329,8 @@  enable_lto = @enable_lto@
 # Compiler and flags needed for plugin support
+# Filter out -fsanitize=address
+PLUGINCFLAGS = $(filter-out -fsanitize=address,@CXXFLAGS@)
 # Libs and linker options needed for plugin support
 PLUGINLIBS = @pluginlibs@