This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: silence build warning from libstdc++


On Thu, 2009-04-30 at 15:17 -0700, Benjamin Kosnik wrote:

> Better would be to just edit include/Makefile.am to remove
> -Winvalid-pch from PCHFLAGS.

How about this patch?

2009-05-03  Ben Elliston  <bje@au.ibm.com>

        * include/Makefile.am (PCHFLAGS): Remove -Winvalid-pch.
        * include/Makefile.in: Likewise.

Index: include/Makefile.am
===================================================================
--- include/Makefile.am (revision 147058)
+++ include/Makefile.am (working copy)
@@ -852,7 +852,7 @@ pch_output_dirs = \
        ${pch1_output_builddir} ${pch2_output_builddir} ${pch3_output_builddir}
 pch_output_anchors = \
        ${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor}
-PCHFLAGS=-Winvalid-pch -x c++-header $(CXXFLAGS)
+PCHFLAGS=-x c++-header $(CXXFLAGS)
 if GLIBCXX_BUILD_PCH
 pch_build = ${pch_output}
 else

Index: include/Makefile.in
===================================================================
--- include/Makefile.in (revision 147058)
+++ include/Makefile.in (working copy)
@@ -1098,7 +1098,7 @@ pch_output_dirs = \
 pch_output_anchors = \
        ${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor}
 
-PCHFLAGS = -Winvalid-pch -x c++-header $(CXXFLAGS)
+PCHFLAGS = -x c++-header $(CXXFLAGS)
 @GLIBCXX_BUILD_PCH_FALSE@pch_build = 
 @GLIBCXX_BUILD_PCH_TRUE@pch_build = ${pch_output}
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]