This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[obvious patch] fix chmod of stdint.h
- From: Chris Demetriou <cgd at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: ebotcazou at adacore dot com
- Date: Mon, 15 Mar 2010 01:52:51 -0700
- Subject: [obvious patch] fix chmod of stdint.h
This fixes my incorrect (not quite obvious enough 8-S) patch committed
in r157392: it avoids invoking chmod on the newly-copied stdint.h when
no such file has been copied.
Thanks to Eric Botcazou for pointing out the issue. (Bone-headed
mistake: i misread 'elif' as 'else'. There might be a joke here about
me and "obvious" that I'll leave for somebody else to make... 8-)
bootstrapped on x86_64-linux. I don't have a system on which to try
the $(USE_GCC_STDINT) != wrap and != provide case, though.
committed as revision 157454.
chris
----
[gcc/ChangeLog]
2010-03-15 Chris Demetriou <cgd@google.com>
* Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
wasn't copied.
[gcc/ChangeLog]
2010-03-15 Chris Demetriou <cgd@google.com>
* Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
wasn't copied.
Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in (revision 157453)
+++ gcc/Makefile.in (working copy)
@@ -3842,10 +3842,11 @@
cp $(srcdir)/ginclude/stdint-gcc.h include/stdint-gcc.h; \
chmod a+r include/stdint-gcc.h; \
cp $(srcdir)/ginclude/stdint-wrap.h include/stdint.h; \
+ chmod a+r include/stdint.h; \
elif [ $(USE_GCC_STDINT) = provide ]; then \
cp $(srcdir)/ginclude/stdint-gcc.h include/stdint.h; \
+ chmod a+r include/stdint.h; \
fi
- chmod a+r include/stdint.h
set -e; for ml in `cat fixinc_list`; do \
sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \