On 08/12/2011 02:13 PM, H.J. Lu wrote:
We may have a race condition here.
I opened:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50047
Does the attached patch work?
Can you provide a patch instead of the whole Makefile.in?
Sorry, that was not intended.
Paolo
2011-08-12 Paolo Bonzini <bonz...@gnu.org>
* Makefile.in (install-unwind_h): Create $(gcc_objdir)/include/unwind.h
atomically.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 177688)
+++ Makefile.in (working copy)
@@ -991,8 +1001,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
+ cp unwind.h $(gcc_objdir)/include/tmp-unwind.h
+ sh $(srcdir)/../move-if-change \
+ $(gcc_objdir)/include/tmp-unwind.h \
+ $(gcc_objdir)/include/unwind.h
chmod a+r $(gcc_objdir)/include/unwind.h
all: install-unwind_h