Added m32rx sanitization.

This commit is contained in:
Nick Clifton 1997-12-16 14:54:08 +00:00
parent 9a8ea169a6
commit d745e6d93d
5 changed files with 96 additions and 0 deletions

View file

@ -347,6 +347,34 @@ else
done
fi
m32rx_files="ChangeLog 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
if [ -n "${verbose}" ] ; then
echo Keeping m32rx stuff in $i
fi
fi
done
else
for i in $m32rx_files ; do
if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"m32rx\" from $i...
fi
cp $i new
sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/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

View file

@ -25,11 +25,13 @@ Mon Dec 15 15:20:32 1997 Nick Clifton <nickc@cygnus.com>
* doc/c-m32r.texi: New file, documenting m32r specific features.
start-sanitize-m32rx
* config/tc-m32r.c (allow_m32rx): New function.
(enable_m32rx): New variable.
(md_pseudo_table): Added .m32r and .m32rx pseudo ops
(md_show_usage): Document new --m32rx command line option.
(md_parse_option): Implement new --m32rx command line option.
end-sanitize-m32rx
Mon Dec 15 10:32:28 1997 Jeffrey A Law (law@cygnus.com)

View file

@ -376,4 +376,38 @@ else
done
fi
m32rx_files="tc-m32r.c tc-m32r.h"
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
if [ -n "${verbose}" ] ; then
echo Keeping m32rx stuff in $i
fi
fi
done
else
for i in $m32rx_files ; do
if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"m32rx\" from $i...
fi
cp $i new
sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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
done
# End of file.

View file

@ -82,6 +82,34 @@ else
done
fi
m32rx_files="c-m32rx.texi as.texinfo"
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
if [ -n "${verbose}" ] ; then
echo Keeping m32rx stuff in $i
fi
fi
done
else
for i in $m32rx_files ; do
if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"m32rx\" from $i...
fi
cp $i new
sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/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
# Don't try to clean directories here, as the 'mv' command will fail.
# Also, grep fails on NFS mounted directories.

View file

@ -240,9 +240,11 @@ Here is a brief summary of how to invoke @code{@value{AS}}. For details,
[ -ACA | -ACA_A | -ACB | -ACC | -AKA | -AKB | -AKC | -AMC ]
[ -b ] [ -no-relax ]
@end ifset
@c start-sanitize-m32rx
@ifset M32R
[ --m32rx ]
@end ifset
@c start-sanitize-m32rx
@ifset M680X0
[ -l ] [ -m68000 | -m68010 | -m68020 | ... ]
@end ifset
@ -426,6 +428,7 @@ error if necessary.
@end table
@end ifset
@c start-sanitize-m32rx
@ifset M32R
The following options are available when @value{AS} is configured for the
Mitsubishi M32R series.
@ -438,6 +441,7 @@ is normally the M32R, but this option changes it to the M32RX.
@end table
@end ifset
@c end-sanitize-m32rx
@ifset M680X0
The following options are available when @value{AS} is configured for the