This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: silence build warning from libstdc++
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 03 May 2009 21:43:55 +1000
- Subject: Re: PATCH: silence build warning from libstdc++
- References: <1240897752.32520.2.camel@helios> <20090430151716.60bdfe2c@milvia.artheist.org>
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}