This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use move-if-change on macro_list dependency
I received the attached patch from Jon Grimm, jgrimm2@us.ibm.com --
I've added the changelog. It does fix the problem I am seeing, and seems
good to me.
tested on powerpc64-unknown-linux-gnu with -j4 bootstrap
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2004-11-16 Jon Grimm <jgrimm2@us.ibm.com>
* Makefile.in (macro_list): Depend on s-macro_list.
(s-macro_list): New target.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1422
diff -c -3 -p -r1.1422 Makefile.in
*** Makefile.in 14 Nov 2004 16:24:28 -0000 1.1422
--- Makefile.in 16 Nov 2004 09:27:51 -0000
*************** stmp-int-hdrs: $(STMP_FIXINC) $(USER_H)
*** 2792,2803 ****
install-gcc-tooldir:
$(mkinstalldirs) $(DESTDIR)$(gcc_tooldir)
! macro_list : $(GCC_PASSES)
echo | $(GCC_FOR_TARGET) -E -dM - | \
sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
! sort -u > tmp-$@
! $(SHELL) $(srcdir)/../move-if-change tmp-$@ $@
# Build fixed copies of system files.
stmp-fixinc: gsyslimits.h macro_list \
--- 2792,2805 ----
install-gcc-tooldir:
$(mkinstalldirs) $(DESTDIR)$(gcc_tooldir)
! macro_list: s-macro_list; @true
! s-macro_list : $(GCC_PASSES)
echo | $(GCC_FOR_TARGET) -E -dM - | \
sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
! sort -u > tmp-macro_list
! $(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
! $(STAMP) s-macro_list
# Build fixed copies of system files.
stmp-fixinc: gsyslimits.h macro_list \