This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix creation of tmp-gi.list


I happened to interrupt make while executing the s-gtyp-input rule.
The next make invocation then died because tmp-gi.list contained
duplicate entries.

OK for trunk?

Thanks,
Ralf

gcc/ChangeLog:
2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing
	it.

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 8e4daf5..7b55174 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3144,6 +3144,7 @@ $(ALL_GTFILES_H) gtype-desc.c gtype-desc.h : s-gtype ; @true
 
 gtyp-input.list: s-gtyp-input ; @true
 s-gtyp-input: Makefile
+	rm -f tmp-gi.list
 	$(foreach gtyp, $(GTFILES), $(echo_to_gi.list))
 	$(SHELL) $(srcdir)/../move-if-change tmp-gi.list gtyp-input.list
 	$(STAMP) s-gtyp-input


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]