]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/50047 (Revision 177670 failed to bootstrap)
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 12 Aug 2011 17:13:04 +0000 (17:13 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Fri, 12 Aug 2011 17:13:04 +0000 (17:13 +0000)
2011-08-12  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/50047
* Makefile.in (install-unwind_h): Create
$(gcc_objdir)/include/unwind.h atomically.

From-SVN: r177706

libgcc/ChangeLog
libgcc/Makefile.in

index 863339119ac01d588d33eea98ff71c0dc36f913c..363ecc2fa738691a458d21a6441859fc60da1464 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-12  Paolo Bonzini  <bonzini@gnu.org>
+
+       PR bootstrap/50047
+       * Makefile.in (install-unwind_h): Create
+       $(gcc_objdir)/include/unwind.h atomically.
+
 2011-08-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * Makefile.in (install-unwind_h): Remove destination file first.
index a2cb7c707138701990b0b0a77f097a28dcc5306b..e9f2fa2f2b848db1248b22f92c395a467d006a60 100644 (file)
@@ -991,9 +991,10 @@ gcc-extra-parts:
 all: $(extra-parts)
 
 install-unwind_h:
-       rm -f $(gcc_objdir)/include/unwind.h
-       cp unwind.h $(gcc_objdir)/include/unwind.h
-       chmod a+r $(gcc_objdir)/include/unwind.h
+       dest=$(gcc_objdir)/include/tmp$$$$-unwind.h; \
+       cp unwind.h $$dest; \
+       chmod a+r $$dest; \
+       sh $(srcdir)/../move-if-change $$dest $(gcc_objdir)/include/unwind.h
 
 all: install-unwind_h