aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/.Sanitize32
1 files changed, 32 insertions, 0 deletions
diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize
index b1716c5..9b80bd0 100644
--- a/gas/config/.Sanitize
+++ b/gas/config/.Sanitize
@@ -246,6 +246,38 @@ else
done
fi
+if [ -n "${verbose}" ] ; then
+ echo Processing \"sh4\"...
+fi
+
+sh4_files="tc-sh.c"
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sh4 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sh4\" from $i...
+ fi
+ cp $i new
+ sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $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
+
v850e_files="tc-v850.c tc-v850.h"
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
if ( echo $* | grep keep\-v850eq > /dev/null ) ; then