This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch/RFC] Enable PCH for mingw32
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 01 Jun 2004 16:01:40 +0200
- Subject: Re: [Patch/RFC] Enable PCH for mingw32
- References: <000c01c446b4$d11db860$dd6d65da@DANNY> <jm4qpwv5iw.fsf@desire.geoffk.org> <87vfictqc7.fsf@taltos.codesourcery.com> <000b01c447c9$e8f07d90$996d65da@DANNY>
The attached patch should fix it. Ok for mainline?
Paolo
2004-06-01 Paolo Bonzini <bonzini@gnu.org>
* include/Makefile.am (${pch_input}): Emit PCH
files with a gch suffix, to support Windows.
* include/Makefile.in: Regenerate.
Index: libstdc++-v3/include/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/Makefile.am,v
retrieving revision 1.79
diff -u -r1.79 Makefile.am
--- libstdc++-v3/include/Makefile.am 13 Mar 2004 06:54:24 -0000 1.79
+++ libstdc++-v3/include/Makefile.am 1 Jun 2004 13:57:51 -0000
@@ -541,8 +541,8 @@
if [ ! -d "${pch_output_builddir}" ]; then \
mkdir -p ${pch_output_builddir}; \
fi; \
- $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g; \
- $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g;
+ $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g.gch; \
+ $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g.gch;
# For robustness sake (in light of junk files or in-source
# configuration), copy from the build or source tree to the install
Index: libstdc++-v3/include/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/Makefile.in,v
retrieving revision 1.101
diff -u -r1.101 Makefile.in
--- libstdc++-v3/include/Makefile.in 19 Mar 2004 11:34:42 -0000 1.101
+++ libstdc++-v3/include/Makefile.in 1 Jun 2004 13:57:51 -0000
@@ -915,8 +915,8 @@
if [ ! -d "${pch_output_builddir}" ]; then \
mkdir -p ${pch_output_builddir}; \
fi; \
- $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g; \
- $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g;
+ $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g.gch; \
+ $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g.gch;
# For robustness sake (in light of junk files or in-source
# configuration), copy from the build or source tree to the install