[Patch, libgcc] The files auto-target.h and stamp-h should only be removed by "make distclean".

Chung-Ju Wu jasonwucj@gmail.com
Tue Jun 25 08:24:00 GMT 2013


Hi, all,

In the discussion thread:
http://gcc.gnu.org/ml/gcc/2013-06/msg00176.html

There is a bug that auto-target.h and stamp-h are removed by "make clean".
The files should only be removed by "make distclean".

A patch was then provided and got approval by Ian.
Below are ChangeLog and the patch:


Index: libgcc/ChangeLog
===================================================================
--- libgcc/ChangeLog    (revision 200389)
+++ libgcc/ChangeLog    (working copy)
@@ -1,3 +1,8 @@
+2013-06-25  Chung-Ju Wu  <jasonwucj@gmail.com>
+
+       * Makefile.in (clean, distclean): Remove auto-target.h and stamp-h
+       correctly.
+
 2013-06-21  Joseph Myers  <joseph@codesourcery.com>

        PR other/53317


Index: libgcc/Makefile.in
===================================================================
--- libgcc/Makefile.in  (revision 200389)
+++ libgcc/Makefile.in  (working copy)
@@ -121,8 +121,8 @@
 .PHONY: all clean

 clean:
-       -rm -f auto-target.h libgcc_tm.h libgcc.map
-       -rm -f libgcc_tm.stamp stamp-h stmp-ldirs
+       -rm -f libgcc_tm.h libgcc.map
+       -rm -f libgcc_tm.stamp stmp-ldirs
        -rm -f *$(objext)
        -rm -f *.dep
        -rm -f *.a
@@ -131,6 +131,8 @@
        @$(MULTICLEAN) multi-clean DO=clean
 distclean: clean
        @$(MULTICLEAN) multi-clean DO=distclean
+       -rm -f auto-target.h
+       -rm -f stamp-h
        -rm -f *~ Makefile config.cache config.status multilib.out
        -rm -f config.log
 maintainer-clean realclean: distclean


Committed into trunk as Rev. 200390.
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=200390


Best regards,
jasonwucj



More information about the Gcc-patches mailing list