Fix PR 17135 (whilst keeping PR14827 fixed) by prefering register names over
[deliverable/binutils-gdb.git] / gas / .Sanitize
index 236bc9f8badd11395acf4c9b6cf70930b439df96..32e433100684e11d904e64732a1a5c791ef9fe05 100644 (file)
@@ -22,6 +22,13 @@ for d in obsolete regress regress.m68k testscripts ; do
     fi
 done
 
+# Remember the current list of files in config.
+if test -d config; then
+  gas_config_files=`cd config; echo *`
+else
+  gas_config_files=
+fi
+
 # All files listed between the "Things-to-keep:" line and the
 # "Do-last:" line will be kept.  All other files will be removed.
 # Directories listed in this section will have their own Sanitize
@@ -33,7 +40,8 @@ Things-to-keep:
 CONTRIBUTORS
 COPYING
 ChangeLog
-ChangeLog.1
+ChangeLog-9295
+ChangeLog-9697
 Makefile.am
 Makefile.in
 NEWS
@@ -129,7 +137,7 @@ Things-to-lose:
 
 Do-last:
 
-v850_files="ChangeLog configure.in configure"
+v850_files="ChangeLog ChangeLog-9697 configure.in configure"
 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
        for i in $v850_files ; do
                if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
@@ -157,7 +165,7 @@ else
        done
 fi
 
-r5900_files="ChangeLog configure configure.in"
+r5900_files="ChangeLog ChangeLog-9697 configure configure.in"
 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
        for i in $r5900_files ; do
                if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
@@ -185,23 +193,23 @@ else
        done
 fi
 
-vr5400_files="ChangeLog"
-if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
-       for i in $vr5400_files ; do
-               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+cygnus_files="ChangeLog ChangeLog-9697"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+       for i in $cygnus_files ; do
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping vr5400 stuff in $i
+                               echo Keeping cygnus stuff in $i
                        fi
                fi
        done
 else
-       for i in $vr5400_files ; do
-               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+       for i in $cygnus_files ; do
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"vr5400\" from $i...
+                               echo Removing traces of \"cygnus\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
+                       sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -213,7 +221,7 @@ else
        done
 fi
 
-tx19_files="ChangeLog"
+tx19_files="ChangeLog ChangeLog-9697"
 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
        for i in $tx19_files ; do
                if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
@@ -241,7 +249,7 @@ else
        done
 fi
 
-tx49_files="ChangeLog"
+tx49_files="ChangeLog ChangeLog-9697"
 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
        for i in $tx49_files ; do
                if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
@@ -269,7 +277,7 @@ else
        done
 fi
 
-tic80_files="ChangeLog configure.in configure"
+tic80_files="ChangeLog ChangeLog-9697 configure.in configure"
 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
        for i in $tic80_files ; do
                if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
@@ -325,35 +333,7 @@ else
        done
 fi
 
-d30v_files="ChangeLog configure configure.in"
-if ( echo $* | grep keep\-d30v > /dev/null ) ; then
-       for i in $d30v_files ; do
-               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Keeping d30v stuff in $i
-                       fi
-               fi
-       done
-else
-       for i in $d30v_files ; do
-               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"d30v\" from $i...
-                       fi
-                       cp $i new
-                       sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
-                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               if [ -n "${verbose}" ] ; then
-                                       echo Caching $i in .Recover...
-                               fi
-                               mv $i .Recover
-                       fi
-                       mv new $i
-               fi
-       done
-fi
-
-m32rx_files="ChangeLog configure.in configure"
+m32rx_files="ChangeLog ChangeLog-9697 configure.in configure"
 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
        for i in $m32rx_files ; do
                if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
@@ -463,12 +443,93 @@ else
        done
 fi
 
+branchbug4011_files="ChangeLog"
+if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
+       for i in $branchbug4011_files ; do
+               if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping branchbug4011 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $branchbug4011_files ; do
+               if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"branchbug4011\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+beos_files="ChangeLog configure.in configure"
+if ( echo $* | grep keep\-beos > /dev/null ) ; then
+       for i in $beos_files ; do
+               if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping beos stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $beos_files ; do
+               if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"beos\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
 for i in * ; do
-       if test ! -d $i && (grep sanitize $i > /dev/null) ; then
-               echo '***' Some mentions of Sanitize are still left in $i! 1>&2
-       fi
+  if test ! -d $i && (grep sanitize $i > /dev/null) ; then
+    echo '***' Some mentions of Sanitize are still left in gas/$i! 1>&2
+  fi
 done
 
+for lost in .. $lose_these_too; do
+  if test $lost != ..; then
+    for i in Makefile.am Makefile.in configure.in configure; do
+      if fgrep $lost $i >/dev/null 2>&1; then
+        echo '***' File $lost was sanitized out but is still mentioned in gas/$i 1>&2
+      fi
+    done
+  fi
+done
+
+# Check each file we removed from gas/config, and make sure it is not
+# mentioned in Makefiles or configure files.
+for lost in .. $gas_config_files; do
+  if test $lost != .. && test $lost != CVS; then
+    if test -f config/$lost; then
+      :
+    else
+      for i in Makefile.am Makefile.in configure.in configure; do
+        if fgrep $lost $i >/dev/null 2>&1; then
+          echo '***' File gas/config/$lost was sanitized out but is still mentioned in gas/$i 1>&2
+        fi
+      done
+    fi
+  fi
+done
 
 # This must come after all other sanitizations.  Re-sanitize the .pot
 # file.
This page took 0.025678 seconds and 4 git commands to generate.