Mark Wielaard c55764
commit d343ed4f0f11f2902d3ca858a4a0ecb8f1685587
Mark Wielaard c55764
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Mark Wielaard c55764
Date:   Tue Jun 2 20:23:06 2015 +0000
Mark Wielaard c55764
Mark Wielaard c55764
    GCC 5.1 is too smart. Disable Identical Code Folding for preload libs.
Mark Wielaard c55764
    
Mark Wielaard c55764
    We want to disabled Identical Code Folding for the tools preload shared
Mark Wielaard c55764
    objects to get better backraces. For GCC 5.1 -fipa-icf is enabled by
Mark Wielaard c55764
    default at -O2.
Mark Wielaard c55764
    
Mark Wielaard c55764
        The optimization reduces code size and may disturb
Mark Wielaard c55764
        unwind stacks by replacing a function by equivalent
Mark Wielaard c55764
        one with a different name.
Mark Wielaard c55764
    
Mark Wielaard c55764
    Add a configure check to see if GCC supports -fno-ipa-icf.
Mark Wielaard c55764
    If it does then add the flag to AM_CFLAGS_PSO_BASE.
Mark Wielaard c55764
    
Mark Wielaard c55764
    Without this GCC will notice some of the preload replacement functions
Mark Wielaard c55764
    in vg_replace_strmem are identical and fold them all into one picking
Mark Wielaard c55764
    a random (existing) function name. This causes backtraces showing
Mark Wielaard c55764
    completely unexpected function names.
Mark Wielaard c55764
    
Mark Wielaard c55764
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15305 a5019735-40e9-0310-863c-91ae7b9d1cf9
Mark Wielaard c55764
Mark Wielaard c55764
diff --git a/Makefile.all.am b/Makefile.all.am
Mark Wielaard c55764
index d587548..a04cb4a 100644
Mark Wielaard c55764
--- a/Makefile.all.am
Mark Wielaard c55764
+++ b/Makefile.all.am
Mark Wielaard c55764
@@ -133,10 +133,10 @@ endif
Mark Wielaard c55764
 if VGCONF_OS_IS_DARWIN
Mark Wielaard c55764
 AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 else
Mark Wielaard c55764
 AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-		     -fpic -fno-builtin
Mark Wielaard c55764
+		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 endif
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
--- valgrind-3.10.1/configure.ac.orig	2015-06-03 14:28:49.535167119 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/configure.ac	2015-06-03 14:29:16.594455917 +0200
Mark Wielaard c55764
@@ -1744,6 +1744,32 @@
Mark Wielaard c55764
   CXXFLAGS="$CXXFLAGS -fno-stack-protector"
Mark Wielaard c55764
 fi
Mark Wielaard c55764
 
Mark Wielaard c55764
+# Does GCC support disabling Identical Code Folding?
Mark Wielaard c55764
+# We want to disabled Identical Code Folding for the
Mark Wielaard c55764
+# tools preload shared objects to get better backraces.
Mark Wielaard c55764
+# For GCC 5.1+ -fipa-icf is enabled by default at -O2.
Mark Wielaard c55764
+# "The optimization reduces code size and may disturb
Mark Wielaard c55764
+#  unwind stacks by replacing a function by equivalent
Mark Wielaard c55764
+#  one with a different name."
Mark Wielaard c55764
+AC_MSG_CHECKING([if gcc accepts -fno-ipa-icf])
Mark Wielaard c55764
+
Mark Wielaard c55764
+safe_CFLAGS=$CFLAGS
Mark Wielaard c55764
+CFLAGS="-fno-ipa-icf"
Mark Wielaard c55764
+
Mark Wielaard c55764
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
Mark Wielaard c55764
+  return 0;
Mark Wielaard c55764
+]])], [
Mark Wielaard c55764
+no_ipa_icf=yes
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF="-fno-ipa-icf"
Mark Wielaard c55764
+AC_MSG_RESULT([yes])
Mark Wielaard c55764
+], [
Mark Wielaard c55764
+no_ipa_icf=no
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF=""
Mark Wielaard c55764
+AC_MSG_RESULT([no])
Mark Wielaard c55764
+])
Mark Wielaard c55764
+CFLAGS=$safe_CFLAGS
Mark Wielaard c55764
+
Mark Wielaard c55764
+AC_SUBST(FLAG_FNO_IPA_ICF)
Mark Wielaard c55764
 
Mark Wielaard c55764
 # does this compiler support --param inline-unit-growth=... ?
Mark Wielaard c55764
 
Mark Wielaard c55764
Only in valgrind-3.10.1: autom4te.cache
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/auxprogs/Makefile.in valgrind-3.10.1/auxprogs/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/auxprogs/Makefile.in	2015-06-03 14:30:23.567170612 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/auxprogs/Makefile.in	2015-06-03 14:39:57.289288083 +0200
Mark Wielaard c55764
@@ -177,6 +177,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -317,7 +318,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -329,7 +330,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/cachegrind/Makefile.in valgrind-3.10.1/cachegrind/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/cachegrind/Makefile.in	2015-06-03 14:30:23.564170581 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/cachegrind/Makefile.in	2015-06-03 14:39:57.370288946 +0200
Mark Wielaard c55764
@@ -231,6 +231,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -372,7 +373,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -384,7 +385,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/cachegrind/tests/Makefile.in valgrind-3.10.1/cachegrind/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/cachegrind/tests/Makefile.in	2015-06-03 14:30:23.563170570 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/cachegrind/tests/Makefile.in	2015-06-03 14:39:57.433289617 +0200
Mark Wielaard c55764
@@ -190,6 +190,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -330,7 +331,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -342,7 +343,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/cachegrind/tests/x86/Makefile.in valgrind-3.10.1/cachegrind/tests/x86/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/cachegrind/tests/x86/Makefile.in	2015-06-03 14:30:23.562170559 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/cachegrind/tests/x86/Makefile.in	2015-06-03 14:39:57.489290214 +0200
Mark Wielaard c55764
@@ -142,6 +142,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -282,7 +283,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -294,7 +295,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/callgrind/Makefile.in valgrind-3.10.1/callgrind/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/callgrind/Makefile.in	2015-06-03 14:30:23.561170548 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/callgrind/Makefile.in	2015-06-03 14:39:57.618291589 +0200
Mark Wielaard c55764
@@ -244,6 +244,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -385,7 +386,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -397,7 +398,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/callgrind/tests/Makefile.in valgrind-3.10.1/callgrind/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/callgrind/tests/Makefile.in	2015-06-03 14:30:23.559170527 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/callgrind/tests/Makefile.in	2015-06-03 14:39:57.677292217 +0200
Mark Wielaard c55764
@@ -183,6 +183,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -323,7 +324,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -335,7 +336,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/config.h.in valgrind-3.10.1/config.h.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/config.h.in	2015-06-03 14:30:23.624171221 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/config.h.in	2015-06-03 14:30:34.000000000 +0200
Mark Wielaard c55764
@@ -33,62 +33,12 @@
Mark Wielaard c55764
 /* path to GDB */
Mark Wielaard c55764
 #undef GDB_PATH
Mark Wielaard c55764
 
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.10.x */
Mark Wielaard c55764
-#undef GLIBC_2_10
Mark Wielaard c55764
+/* Define to 1 if index() and strlen() have been optimized heavily (x86 glibc
Mark Wielaard c55764
+   >= 2.12) */
Mark Wielaard c55764
+#undef GLIBC_MANDATORY_INDEX_AND_STRLEN_REDIRECT
Mark Wielaard c55764
 
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.11.x */
Mark Wielaard c55764
-#undef GLIBC_2_11
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.12.x */
Mark Wielaard c55764
-#undef GLIBC_2_12
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.13.x */
Mark Wielaard c55764
-#undef GLIBC_2_13
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.14.x */
Mark Wielaard c55764
-#undef GLIBC_2_14
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.15.x */
Mark Wielaard c55764
-#undef GLIBC_2_15
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.16.x */
Mark Wielaard c55764
-#undef GLIBC_2_16
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.17.x */
Mark Wielaard c55764
-#undef GLIBC_2_17
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.18.x */
Mark Wielaard c55764
-#undef GLIBC_2_18
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.19.x */
Mark Wielaard c55764
-#undef GLIBC_2_19
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.2.x */
Mark Wielaard c55764
-#undef GLIBC_2_2
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.20.x */
Mark Wielaard c55764
-#undef GLIBC_2_20
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.3.x */
Mark Wielaard c55764
-#undef GLIBC_2_3
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.4.x */
Mark Wielaard c55764
-#undef GLIBC_2_4
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.5.x */
Mark Wielaard c55764
-#undef GLIBC_2_5
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.6.x */
Mark Wielaard c55764
-#undef GLIBC_2_6
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.7.x */
Mark Wielaard c55764
-#undef GLIBC_2_7
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.8.x */
Mark Wielaard c55764
-#undef GLIBC_2_8
Mark Wielaard c55764
-
Mark Wielaard c55764
-/* Define to 1 if you're using glibc 2.9.x */
Mark Wielaard c55764
-#undef GLIBC_2_9
Mark Wielaard c55764
+/* Define to 1 if strlen() has been optimized heavily (amd64 glibc >= 2.10) */
Mark Wielaard c55764
+#undef GLIBC_MANDATORY_STRLEN_REDIRECT
Mark Wielaard c55764
 
Mark Wielaard c55764
 /* Define to 1 if gcc/as can do Altivec. */
Mark Wielaard c55764
 #undef HAS_ALTIVEC
Mark Wielaard c55764
Only in valgrind-3.10.1: config.h.in~
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/configure valgrind-3.10.1/configure
Mark Wielaard c55764
--- valgrind-3.10.1.orig/configure	2015-06-03 14:30:23.624171221 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/configure	2015-06-03 14:40:03.112350132 +0200
Mark Wielaard c55764
@@ -685,6 +685,7 @@
Mark Wielaard c55764
 DWARF4_FALSE
Mark Wielaard c55764
 DWARF4_TRUE
Mark Wielaard c55764
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR
Mark Wielaard c55764
 FLAG_W_EXTRA
Mark Wielaard c55764
 FLAG_W_NO_STATIC_LOCAL_IN_INLINE
Mark Wielaard c55764
@@ -8517,6 +8518,51 @@
Mark Wielaard c55764
   CXXFLAGS="$CXXFLAGS -fno-stack-protector"
Mark Wielaard c55764
 fi
Mark Wielaard c55764
 
Mark Wielaard c55764
+# Does GCC support disabling Identical Code Folding?
Mark Wielaard c55764
+# We want to disabled Identical Code Folding for the
Mark Wielaard c55764
+# tools preload shared objects to get better backraces.
Mark Wielaard c55764
+# For GCC 5.1+ -fipa-icf is enabled by default at -O2.
Mark Wielaard c55764
+# "The optimization reduces code size and may disturb
Mark Wielaard c55764
+#  unwind stacks by replacing a function by equivalent
Mark Wielaard c55764
+#  one with a different name."
Mark Wielaard c55764
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-ipa-icf" >&5
Mark Wielaard c55764
+$as_echo_n "checking if gcc accepts -fno-ipa-icf... " >&6; }
Mark Wielaard c55764
+
Mark Wielaard c55764
+safe_CFLAGS=$CFLAGS
Mark Wielaard c55764
+CFLAGS="-fno-ipa-icf"
Mark Wielaard c55764
+
Mark Wielaard c55764
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Wielaard c55764
+/* end confdefs.h.  */
Mark Wielaard c55764
+
Mark Wielaard c55764
+int
Mark Wielaard c55764
+main ()
Mark Wielaard c55764
+{
Mark Wielaard c55764
+
Mark Wielaard c55764
+  return 0;
Mark Wielaard c55764
+
Mark Wielaard c55764
+  ;
Mark Wielaard c55764
+  return 0;
Mark Wielaard c55764
+}
Mark Wielaard c55764
+_ACEOF
Mark Wielaard c55764
+if ac_fn_c_try_compile "$LINENO"; then :
Mark Wielaard c55764
+
Mark Wielaard c55764
+no_ipa_icf=yes
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF="-fno-ipa-icf"
Mark Wielaard c55764
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Mark Wielaard c55764
+$as_echo "yes" >&6; }
Mark Wielaard c55764
+
Mark Wielaard c55764
+else
Mark Wielaard c55764
+
Mark Wielaard c55764
+no_ipa_icf=no
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF=""
Mark Wielaard c55764
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Mark Wielaard c55764
+$as_echo "no" >&6; }
Mark Wielaard c55764
+
Mark Wielaard c55764
+fi
Mark Wielaard c55764
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mark Wielaard c55764
+CFLAGS=$safe_CFLAGS
Mark Wielaard c55764
+
Mark Wielaard c55764
+
Mark Wielaard c55764
 
Mark Wielaard c55764
 # does this compiler support --param inline-unit-growth=... ?
Mark Wielaard c55764
 
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/coregrind/Makefile.in valgrind-3.10.1/coregrind/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/coregrind/Makefile.in	2015-06-03 14:30:23.654171541 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/coregrind/Makefile.in	2015-06-03 14:39:58.470300668 +0200
Mark Wielaard c55764
@@ -811,6 +811,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -951,7 +952,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -963,7 +964,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/docs/Makefile.in valgrind-3.10.1/docs/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/docs/Makefile.in	2015-06-03 14:30:23.669171701 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/docs/Makefile.in	2015-06-03 14:39:58.515301147 +0200
Mark Wielaard c55764
@@ -99,6 +99,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/drd/Makefile.in valgrind-3.10.1/drd/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/drd/Makefile.in	2015-06-03 14:30:23.623171210 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/drd/Makefile.in	2015-06-03 14:39:58.673302831 +0200
Mark Wielaard c55764
@@ -294,6 +294,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -435,7 +436,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -447,7 +448,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/drd/tests/Makefile.in valgrind-3.10.1/drd/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/drd/tests/Makefile.in	2015-06-03 14:30:23.620171178 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/drd/tests/Makefile.in	2015-06-03 14:39:58.842304631 +0200
Mark Wielaard c55764
@@ -566,6 +566,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -706,7 +707,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -718,7 +719,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/Makefile.in valgrind-3.10.1/exp-bbv/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/Makefile.in	2015-06-03 14:30:23.574170687 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/Makefile.in	2015-06-03 14:39:58.915305410 +0200
Mark Wielaard c55764
@@ -184,6 +184,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -325,7 +326,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -337,7 +338,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/tests/amd64-linux/Makefile.in valgrind-3.10.1/exp-bbv/tests/amd64-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/tests/amd64-linux/Makefile.in	2015-06-03 14:30:23.571170655 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/tests/amd64-linux/Makefile.in	2015-06-03 14:39:59.035306688 +0200
Mark Wielaard c55764
@@ -162,6 +162,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -302,7 +303,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -314,7 +315,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/tests/arm-linux/Makefile.in valgrind-3.10.1/exp-bbv/tests/arm-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/tests/arm-linux/Makefile.in	2015-06-03 14:30:23.573170676 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/tests/arm-linux/Makefile.in	2015-06-03 14:39:59.093307306 +0200
Mark Wielaard c55764
@@ -145,6 +145,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -285,7 +286,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -297,7 +298,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/tests/Makefile.in valgrind-3.10.1/exp-bbv/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/tests/Makefile.in	2015-06-03 14:30:23.573170676 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/tests/Makefile.in	2015-06-03 14:39:58.972306017 +0200
Mark Wielaard c55764
@@ -173,6 +173,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -313,7 +314,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -325,7 +326,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/tests/ppc32-linux/Makefile.in valgrind-3.10.1/exp-bbv/tests/ppc32-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/tests/ppc32-linux/Makefile.in	2015-06-03 14:30:23.572170666 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/tests/ppc32-linux/Makefile.in	2015-06-03 14:39:59.154307956 +0200
Mark Wielaard c55764
@@ -145,6 +145,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -285,7 +286,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -297,7 +298,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/tests/x86/Makefile.in valgrind-3.10.1/exp-bbv/tests/x86/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/tests/x86/Makefile.in	2015-06-03 14:30:23.569170634 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/tests/x86/Makefile.in	2015-06-03 14:39:59.274309235 +0200
Mark Wielaard c55764
@@ -154,6 +154,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -294,7 +295,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -306,7 +307,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-bbv/tests/x86-linux/Makefile.in valgrind-3.10.1/exp-bbv/tests/x86-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-bbv/tests/x86-linux/Makefile.in	2015-06-03 14:30:23.573170676 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-bbv/tests/x86-linux/Makefile.in	2015-06-03 14:39:59.212308574 +0200
Mark Wielaard c55764
@@ -145,6 +145,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -285,7 +286,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -297,7 +298,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-dhat/Makefile.in valgrind-3.10.1/exp-dhat/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-dhat/Makefile.in	2015-06-03 14:30:23.561170548 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-dhat/Makefile.in	2015-06-03 14:39:59.347310013 +0200
Mark Wielaard c55764
@@ -208,6 +208,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -349,7 +350,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -361,7 +362,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-dhat/tests/Makefile.in valgrind-3.10.1/exp-dhat/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-dhat/tests/Makefile.in	2015-06-03 14:30:23.561170548 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-dhat/tests/Makefile.in	2015-06-03 14:39:59.384310407 +0200
Mark Wielaard c55764
@@ -99,6 +99,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-sgcheck/Makefile.in valgrind-3.10.1/exp-sgcheck/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-sgcheck/Makefile.in	2015-06-03 14:30:23.857173707 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-sgcheck/Makefile.in	2015-06-03 14:39:59.479311419 +0200
Mark Wielaard c55764
@@ -227,6 +227,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -368,7 +369,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -380,7 +381,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/exp-sgcheck/tests/Makefile.in valgrind-3.10.1/exp-sgcheck/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/exp-sgcheck/tests/Makefile.in	2015-06-03 14:30:23.857173707 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/exp-sgcheck/tests/Makefile.in	2015-06-03 14:39:59.549312165 +0200
Mark Wielaard c55764
@@ -170,6 +170,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -310,7 +311,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -322,7 +323,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/gdbserver_tests/Makefile.in valgrind-3.10.1/gdbserver_tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/gdbserver_tests/Makefile.in	2015-06-03 14:30:23.689171914 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/gdbserver_tests/Makefile.in	2015-06-03 14:39:59.617312890 +0200
Mark Wielaard c55764
@@ -180,6 +180,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -320,7 +321,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -332,7 +333,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/helgrind/Makefile.in valgrind-3.10.1/helgrind/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/helgrind/Makefile.in	2015-06-03 14:30:23.601170975 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/helgrind/Makefile.in	2015-06-03 14:39:59.728314073 +0200
Mark Wielaard c55764
@@ -259,6 +259,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -400,7 +401,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -412,7 +413,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/helgrind/tests/Makefile.in valgrind-3.10.1/helgrind/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/helgrind/tests/Makefile.in	2015-06-03 14:30:23.597170933 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/helgrind/tests/Makefile.in	2015-06-03 14:39:59.839315256 +0200
Mark Wielaard c55764
@@ -396,6 +396,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -536,7 +537,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -548,7 +549,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/include/Makefile.in valgrind-3.10.1/include/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/include/Makefile.in	2015-06-03 14:30:23.631171295 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/include/Makefile.in	2015-06-03 14:39:59.883315724 +0200
Mark Wielaard c55764
@@ -132,6 +132,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/lackey/Makefile.in valgrind-3.10.1/lackey/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/lackey/Makefile.in	2015-06-03 14:30:23.602170986 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/lackey/Makefile.in	2015-06-03 14:39:59.954316481 +0200
Mark Wielaard c55764
@@ -184,6 +184,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -325,7 +326,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -337,7 +338,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/lackey/tests/Makefile.in valgrind-3.10.1/lackey/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/lackey/tests/Makefile.in	2015-06-03 14:30:23.602170986 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/lackey/tests/Makefile.in	2015-06-03 14:39:59.991316875 +0200
Mark Wielaard c55764
@@ -102,6 +102,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/Makefile.in valgrind-3.10.1/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/Makefile.in	2015-06-03 14:30:23.855173685 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/Makefile.in	2015-06-03 14:40:02.788346679 +0200
Mark Wielaard c55764
@@ -210,6 +210,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -351,7 +352,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -363,7 +364,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/Makefile.vex.in valgrind-3.10.1/Makefile.vex.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/Makefile.vex.in	2015-06-03 14:30:23.565170591 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/Makefile.vex.in	2015-06-03 14:39:57.216287305 +0200
Mark Wielaard c55764
@@ -283,6 +283,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -423,7 +424,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -435,7 +436,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/massif/Makefile.in valgrind-3.10.1/massif/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/massif/Makefile.in	2015-06-03 14:30:23.638171370 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/massif/Makefile.in	2015-06-03 14:40:00.072317738 +0200
Mark Wielaard c55764
@@ -239,6 +239,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -380,7 +381,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -392,7 +393,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/massif/tests/Makefile.in valgrind-3.10.1/massif/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/massif/tests/Makefile.in	2015-06-03 14:30:23.637171359 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/massif/tests/Makefile.in	2015-06-03 14:40:00.148318548 +0200
Mark Wielaard c55764
@@ -223,6 +223,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -363,7 +364,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -375,7 +376,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/Makefile.in valgrind-3.10.1/memcheck/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/Makefile.in	2015-06-03 14:30:23.855173685 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/Makefile.in	2015-06-03 14:40:00.251319646 +0200
Mark Wielaard c55764
@@ -257,6 +257,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -398,7 +399,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -410,7 +411,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/amd64/Makefile.in valgrind-3.10.1/memcheck/tests/amd64/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/amd64/Makefile.in	2015-06-03 14:30:23.766172736 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/amd64/Makefile.in	2015-06-03 14:40:00.633323716 +0200
Mark Wielaard c55764
@@ -190,6 +190,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -330,7 +331,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -342,7 +343,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/amd64-linux/Makefile.in valgrind-3.10.1/memcheck/tests/amd64-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/amd64-linux/Makefile.in	2015-06-03 14:30:23.725172298 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/amd64-linux/Makefile.in	2015-06-03 14:40:00.564322981 +0200
Mark Wielaard c55764
@@ -145,6 +145,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -285,7 +286,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -297,7 +298,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/common/Makefile.in valgrind-3.10.1/memcheck/tests/common/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/common/Makefile.in	2015-06-03 14:30:23.696171989 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/common/Makefile.in	2015-06-03 14:40:00.684324260 +0200
Mark Wielaard c55764
@@ -124,6 +124,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -264,7 +265,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -276,7 +277,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/darwin/Makefile.in valgrind-3.10.1/memcheck/tests/darwin/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/darwin/Makefile.in	2015-06-03 14:30:23.730172352 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/darwin/Makefile.in	2015-06-03 14:40:00.746324920 +0200
Mark Wielaard c55764
@@ -165,6 +165,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -305,7 +306,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -317,7 +318,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/linux/Makefile.in valgrind-3.10.1/memcheck/tests/linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/linux/Makefile.in	2015-06-03 14:30:23.728172330 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/linux/Makefile.in	2015-06-03 14:40:00.814325645 +0200
Mark Wielaard c55764
@@ -191,6 +191,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -331,7 +332,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -343,7 +344,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/Makefile.in valgrind-3.10.1/memcheck/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/Makefile.in	2015-06-03 14:30:23.780172885 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/Makefile.in	2015-06-03 14:40:00.500322299 +0200
Mark Wielaard c55764
@@ -845,6 +845,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -985,7 +986,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -997,7 +998,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/ppc32/Makefile.in valgrind-3.10.1/memcheck/tests/ppc32/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/ppc32/Makefile.in	2015-06-03 14:30:23.693171957 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/ppc32/Makefile.in	2015-06-03 14:40:00.874326284 +0200
Mark Wielaard c55764
@@ -142,6 +142,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -282,7 +283,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -294,7 +295,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/ppc64/Makefile.in valgrind-3.10.1/memcheck/tests/ppc64/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/ppc64/Makefile.in	2015-06-03 14:30:23.772172800 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/ppc64/Makefile.in	2015-06-03 14:40:00.935326934 +0200
Mark Wielaard c55764
@@ -142,6 +142,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -282,7 +283,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -294,7 +295,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/s390x/Makefile.in valgrind-3.10.1/memcheck/tests/s390x/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/s390x/Makefile.in	2015-06-03 14:30:23.692171946 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/s390x/Makefile.in	2015-06-03 14:40:01.002327648 +0200
Mark Wielaard c55764
@@ -166,6 +166,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -306,7 +307,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -318,7 +319,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/vbit-test/Makefile.in valgrind-3.10.1/memcheck/tests/vbit-test/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/vbit-test/Makefile.in	2015-06-03 14:30:23.698172010 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/vbit-test/Makefile.in	2015-06-03 14:40:01.080328479 +0200
Mark Wielaard c55764
@@ -164,6 +164,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -304,7 +305,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -316,7 +317,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/x86/Makefile.in valgrind-3.10.1/memcheck/tests/x86/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/x86/Makefile.in	2015-06-03 14:30:23.722172267 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/x86/Makefile.in	2015-06-03 14:40:01.223330003 +0200
Mark Wielaard c55764
@@ -192,6 +192,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -332,7 +333,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -344,7 +345,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/memcheck/tests/x86-linux/Makefile.in valgrind-3.10.1/memcheck/tests/x86-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/memcheck/tests/x86-linux/Makefile.in	2015-06-03 14:30:23.777172853 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/memcheck/tests/x86-linux/Makefile.in	2015-06-03 14:40:01.144329161 +0200
Mark Wielaard c55764
@@ -165,6 +165,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -305,7 +306,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -317,7 +318,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/mpi/Makefile.in valgrind-3.10.1/mpi/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/mpi/Makefile.in	2015-06-03 14:30:23.858173717 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/mpi/Makefile.in	2015-06-03 14:40:01.290330717 +0200
Mark Wielaard c55764
@@ -157,6 +157,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -297,7 +298,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -309,7 +310,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/Makefile.in valgrind-3.10.1/none/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/Makefile.in	2015-06-03 14:30:24.086176150 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/Makefile.in	2015-06-03 14:40:01.365331516 +0200
Mark Wielaard c55764
@@ -182,6 +182,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -323,7 +324,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -335,7 +336,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/amd64/Makefile.in valgrind-3.10.1/none/tests/amd64/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/amd64/Makefile.in	2015-06-03 14:30:24.020175446 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/amd64/Makefile.in	2015-06-03 14:40:01.616334191 +0200
Mark Wielaard c55764
@@ -389,6 +389,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -529,7 +530,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -541,7 +542,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/arm/Makefile.in valgrind-3.10.1/none/tests/arm/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/arm/Makefile.in	2015-06-03 14:30:24.073176012 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/arm/Makefile.in	2015-06-03 14:40:01.707335160 +0200
Mark Wielaard c55764
@@ -202,6 +202,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -342,7 +343,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -354,7 +355,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/arm64/Makefile.in valgrind-3.10.1/none/tests/arm64/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/arm64/Makefile.in	2015-06-03 14:30:24.000175233 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/arm64/Makefile.in	2015-06-03 14:40:01.771335843 +0200
Mark Wielaard c55764
@@ -154,6 +154,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -294,7 +295,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -306,7 +307,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/darwin/Makefile.in valgrind-3.10.1/none/tests/darwin/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/darwin/Makefile.in	2015-06-03 14:30:24.008175318 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/darwin/Makefile.in	2015-06-03 14:40:01.829336460 +0200
Mark Wielaard c55764
@@ -147,6 +147,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -287,7 +288,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -299,7 +300,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/linux/Makefile.in valgrind-3.10.1/none/tests/linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/linux/Makefile.in	2015-06-03 14:30:24.005175286 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/linux/Makefile.in	2015-06-03 14:40:01.888337089 +0200
Mark Wielaard c55764
@@ -150,6 +150,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -290,7 +291,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -302,7 +303,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/Makefile.in valgrind-3.10.1/none/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/Makefile.in	2015-06-03 14:30:24.084176129 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/Makefile.in	2015-06-03 14:40:01.506333019 +0200
Mark Wielaard c55764
@@ -535,6 +535,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -675,7 +676,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -687,7 +688,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/mips32/Makefile.in valgrind-3.10.1/none/tests/mips32/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/mips32/Makefile.in	2015-06-03 14:30:24.047175734 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/mips32/Makefile.in	2015-06-03 14:40:01.962337878 +0200
Mark Wielaard c55764
@@ -221,6 +221,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -361,7 +362,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -373,7 +374,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/mips64/Makefile.in valgrind-3.10.1/none/tests/mips64/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/mips64/Makefile.in	2015-06-03 14:30:24.039175649 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/mips64/Makefile.in	2015-06-03 14:40:02.055338869 +0200
Mark Wielaard c55764
@@ -276,6 +276,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -416,7 +417,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -428,7 +429,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/ppc32/Makefile.in valgrind-3.10.1/none/tests/ppc32/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/ppc32/Makefile.in	2015-06-03 14:30:23.911174283 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/ppc32/Makefile.in	2015-06-03 14:40:02.165340041 +0200
Mark Wielaard c55764
@@ -291,6 +291,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -431,7 +432,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -443,7 +444,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/ppc64/Makefile.in valgrind-3.10.1/none/tests/ppc64/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/ppc64/Makefile.in	2015-06-03 14:30:24.080176086 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/ppc64/Makefile.in	2015-06-03 14:40:02.267341128 +0200
Mark Wielaard c55764
@@ -260,6 +260,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -400,7 +401,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -412,7 +413,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/s390x/Makefile.in valgrind-3.10.1/none/tests/s390x/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/s390x/Makefile.in	2015-06-03 14:30:23.895174113 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/s390x/Makefile.in	2015-06-03 14:40:02.407342619 +0200
Mark Wielaard c55764
@@ -589,6 +589,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -729,7 +730,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -741,7 +742,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/x86/Makefile.in valgrind-3.10.1/none/tests/x86/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/x86/Makefile.in	2015-06-03 14:30:23.964174849 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/x86/Makefile.in	2015-06-03 14:40:02.565344303 +0200
Mark Wielaard c55764
@@ -338,6 +338,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -478,7 +479,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -490,7 +491,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/none/tests/x86-linux/Makefile.in valgrind-3.10.1/none/tests/x86-linux/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/none/tests/x86-linux/Makefile.in	2015-06-03 14:30:24.082176108 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/none/tests/x86-linux/Makefile.in	2015-06-03 14:40:02.463343216 +0200
Mark Wielaard c55764
@@ -143,6 +143,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -283,7 +284,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -295,7 +296,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/perf/Makefile.in valgrind-3.10.1/perf/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/perf/Makefile.in	2015-06-03 14:30:24.087176161 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/perf/Makefile.in	2015-06-03 14:40:02.631345006 +0200
Mark Wielaard c55764
@@ -176,6 +176,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -316,7 +317,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -328,7 +329,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/shared/Makefile.in valgrind-3.10.1/shared/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/shared/Makefile.in	2015-06-03 14:30:23.564170581 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/shared/Makefile.in	2015-06-03 14:40:02.665345369 +0200
Mark Wielaard c55764
@@ -99,6 +99,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
diff -ru valgrind-3.10.1.orig/tests/Makefile.in valgrind-3.10.1/tests/Makefile.in
Mark Wielaard c55764
--- valgrind-3.10.1.orig/tests/Makefile.in	2015-06-03 14:30:23.626171242 +0200
Mark Wielaard c55764
+++ valgrind-3.10.1/tests/Makefile.in	2015-06-03 14:40:02.728346040 +0200
Mark Wielaard c55764
@@ -174,6 +174,7 @@
Mark Wielaard c55764
 ECHO_T = @ECHO_T@
Mark Wielaard c55764
 EGREP = @EGREP@
Mark Wielaard c55764
 EXEEXT = @EXEEXT@
Mark Wielaard c55764
+FLAG_FNO_IPA_ICF = @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
Mark Wielaard c55764
 FLAG_M32 = @FLAG_M32@
Mark Wielaard c55764
 FLAG_M64 = @FLAG_M64@
Mark Wielaard c55764
@@ -314,7 +315,7 @@
Mark Wielaard c55764
 	-fno-builtin
Mark Wielaard c55764
 
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_FALSE@		     -fpic -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # These flags are used for building the preload shared objects (PSOs).
Mark Wielaard c55764
@@ -326,7 +327,7 @@
Mark Wielaard c55764
 # results in segfaults like (eg) #324050.
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PSO_BASE = -dynamic \
Mark Wielaard c55764
 @VGCONF_OS_IS_DARWIN_TRUE@		     -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
Mark Wielaard c55764
-@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin
Mark Wielaard c55764
+@VGCONF_OS_IS_DARWIN_TRUE@		     -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@
Mark Wielaard c55764
 
Mark Wielaard c55764
 
Mark Wielaard c55764
 # Flags for specific targets.