[Bug libstdc++/15490] New: precompiled headers not rebuilt when compiler executable changed

jbeulich at novell dot com gcc-bugzilla@gcc.gnu.org
Mon May 17 20:00:00 GMT 2004


While mismatched compiler executables cannot generally use precompiled header
files of one another (and the compiler itself does not [yet] have the smartness
to deal with this itself), include/Makefile.am failes to make the precompiled
headers dependent upon the compiler executable (which is necessary independent
of the compiler getting fixed). Suggestion:

--- /usr/local/src/gcc-3.4.0/libstdc++-v3/include/Makefile.am	2004-03-18
18:36:42.000000000 +0100
+++ 3.4.0/libstdc++-v3/include/Makefile.am	2004-05-17 09:35:30.753727744 +0200
@@ -536,7 +536,7 @@
 	    < ${toplevel_srcdir}/gcc/${glibcxx_thread_h} > $@
 
 # Build a precompiled C++ include, stdc++.h.gch.
-${pch_input}: ${allstamped} ${host_builddir}/c++config.h ${pch_source}
+${pch_input}: ${allstamped} ${host_builddir}/c++config.h ${pch_source}
$(wildcard $(dir $(firstword $(CXX)))cc1plus$(EXEEXT))
 	touch ${pch_input}; \
 	if [ ! -d "${pch_output_builddir}" ]; then \
 	  mkdir -p ${pch_output_builddir}; \

-- 
           Summary: precompiled headers not rebuilt when compiler executable
                    changed
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbeulich at novell dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15490



More information about the Gcc-bugs mailing list