This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/9274: [pch] cannot create libstdc++-v3 pch
- From: bkoz at gcc dot gnu dot org
- To: bkoz at redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, geoffk at gcc dot gnu dot org, geoffk at geoffk dot org, jason at redhat dot com, pcarlini at unitus dot it
- Date: 25 Mar 2003 17:27:23 -0000
- Subject: Re: other/9274: [pch] cannot create libstdc++-v3 pch
- Reply-to: bkoz at gcc dot gnu dot org, bkoz at redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, geoffk at gcc dot gnu dot org, geoffk at geoffk dot org, jason at redhat dot com, pcarlini at unitus dot it, gcc-gnats at gcc dot gnu dot org
Synopsis: [pch] cannot create libstdc++-v3 pch
State-Changed-From-To: analyzed->open
State-Changed-By: bkoz
State-Changed-When: Tue Mar 25 17:27:22 2003
State-Changed-Why:
Ping. This is still an issue with gcc-20030325. Jason, have you had a chance to look at this? Again, here's the patch to mainline to auto-gen the pch and use it in the testsuite run.
2003-03-27 Benjamin Kosnik <bkoz at redhat dot com>
* include/Makefile.am (allstamps): Add stamp-stdc++-precompile.
(stamp-std-precompile): Generate stdc++.h.gch
(install-data-local): Install generated file.
* include/Makefile.in: Regenerate.
* testsuite_flags.in (--cxxflags): Put -g -O2 here.
Index: testsuite_flags.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite_flags.in,v
retrieving revision 1.14
diff -c -p -r1.14 testsuite_flags.in
*** testsuite_flags.in 14 Mar 2003 22:17:26 -0000 1.14
--- testsuite_flags.in 18 Mar 2003 02:51:57 -0000
*************** case ${query} in
*** 44,50 ****
;;
--build-cxx)
PCHFLAGS="-Winvalid-pch -include ${BUILD_DIR}/include/stdc++.h"
! CC_build="@glibcpp_CXX@"
CXX=`echo $CC_build | sed 's/xgcc/g++/g'`
echo ${CXX}
;;
--- 44,50 ----
;;
--build-cxx)
PCHFLAGS="-Winvalid-pch -include ${BUILD_DIR}/include/stdc++.h"
! CC_build="@glibcpp_CXX@ ${PCHFLAGS}"
CXX=`echo $CC_build | sed 's/xgcc/g++/g'`
echo ${CXX}
;;
Index: include/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/Makefile.am,v
retrieving revision 1.54
diff -c -p -r1.54 Makefile.am
*** include/Makefile.am 14 Mar 2003 22:16:05 -0000 1.54
--- include/Makefile.am 18 Mar 2003 02:51:59 -0000
*************** pch_source = ${glibcpp_srcdir}/include/$
*** 348,354 ****
# CLEANFILES and all-local are kept up-to-date.
allstamps = \
stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
! stamp-backward stamp-ext stamp-target
# Here are the rules for building the headers
all-local: ${target_builddir}/c++config.h ${thread_target_headers} ${allstamps}
--- 348,354 ----
# CLEANFILES and all-local are kept up-to-date.
allstamps = \
stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
! stamp-backward stamp-ext stamp-target stamp-stdc++-precompile
# Here are the rules for building the headers
all-local: ${target_builddir}/c++config.h ${thread_target_headers} ${allstamps}
*************** install-data-local:
*** 524,529 ****
--- 524,530 ----
$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
for file in ${std_headers_rename}; do \
$(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done
+ $(INSTALL_DATA) ${std_builddir}/${pch_output} $(DESTDIR)${gxx_include_dir}/${std_builddir}
$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${target_builddir}
for file in ${target_headers} ${target_headers_extra} \
${thread_target_headers}; do \
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9274