OSDN Git Service

libstdc++-v3/
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Apr 2008 21:14:32 +0000 (21:14 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Apr 2008 21:14:32 +0000 (21:14 +0000)
PR libstdc++/35954
* include/Makefile.am (pch*_output): Do not touch pch*_output_anchor.
Call 'mkdir -p' unconditionally, but ignore its return value.
* include/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134494 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in

index 90a895b..f4b180e 100644 (file)
@@ -1,5 +1,10 @@
 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       PR libstdc++/35954
+       * include/Makefile.am (pch*_output): Do not touch pch*_output_anchor.
+       Call 'mkdir -p' unconditionally, but ignore its return value.
+       * include/Makefile.in: Regenerate.
+
        * include/Makefile.am: Fix most stamp rules to regenerate
        the links for all sources newer than the stamp file.
        * include/Makefile.in: Regenerate.
index 7bfde7c..e2b7412 100644 (file)
@@ -1080,34 +1080,22 @@ ${host_builddir}/gthr-default.h: ${toplevel_srcdir}/gcc/${glibcxx_thread_h} \
 
 # Build two precompiled C++ includes, stdc++.h.gch/*.gch
 ${pch1a_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
-       if [ ! -d "${pch1_output_builddir}" ]; then \
-         mkdir -p ${pch1_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch1_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O0 -g ${pch1_source} -o $@
-       touch ${pch1_output_anchor}
 
 ${pch1b_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
-       if [ ! -d "${pch1_output_builddir}" ]; then \
-         mkdir -p ${pch1_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch1_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch1_source} -o $@
-       touch ${pch1_output_anchor}
 
 # Build a precompiled TR1 include, stdtr1c++.h.gch/O2.gch
 ${pch2_output}: ${pch2_source} ${pch1_output}
-       if [ ! -d "${pch2_output_builddir}" ]; then \
-         mkdir -p ${pch2_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch2_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch2_source} -o $@
-       touch ${pch2_output_anchor}
 
 # Build a precompiled extension include, extc++.h.gch/O2.gch
 ${pch3_output}: ${pch3_source} ${pch2_output}
-       if [ ! -d "${pch3_output_builddir}" ]; then \
-         mkdir -p ${pch3_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch3_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch3_source} -o $@
-       touch ${pch3_output_anchor}
 
 # For robustness sake (in light of junk files or in-source
 # configuration), copy from the build or source tree to the install
index 88c976a..092ad96 100644 (file)
@@ -1474,34 +1474,22 @@ ${host_builddir}/gthr-default.h: ${toplevel_srcdir}/gcc/${glibcxx_thread_h} \
 
 # Build two precompiled C++ includes, stdc++.h.gch/*.gch
 ${pch1a_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
-       if [ ! -d "${pch1_output_builddir}" ]; then \
-         mkdir -p ${pch1_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch1_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O0 -g ${pch1_source} -o $@
-       touch ${pch1_output_anchor}
 
 ${pch1b_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
-       if [ ! -d "${pch1_output_builddir}" ]; then \
-         mkdir -p ${pch1_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch1_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch1_source} -o $@
-       touch ${pch1_output_anchor}
 
 # Build a precompiled TR1 include, stdtr1c++.h.gch/O2.gch
 ${pch2_output}: ${pch2_source} ${pch1_output}
-       if [ ! -d "${pch2_output_builddir}" ]; then \
-         mkdir -p ${pch2_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch2_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch2_source} -o $@
-       touch ${pch2_output_anchor}
 
 # Build a precompiled extension include, extc++.h.gch/O2.gch
 ${pch3_output}: ${pch3_source} ${pch2_output}
-       if [ ! -d "${pch3_output_builddir}" ]; then \
-         mkdir -p ${pch3_output_builddir}; \
-       fi; \
+       -mkdir -p ${pch3_output_builddir}
        $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch3_source} -o $@
-       touch ${pch3_output_anchor}
 
 # For robustness sake (in light of junk files or in-source
 # configuration), copy from the build or source tree to the install