diff options
author | Nick Clifton <nickc@redhat.com> | 1997-08-14 02:03:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1997-08-14 02:03:34 +0000 |
commit | 32e23ecd9ce3a7a867b2fc5638d3b107925b4fd9 (patch) | |
tree | a2fa2f727b26b17ccf374c6e27a763ab0d4b2ad8 /gas/config/.Sanitize | |
parent | f61b671dddbaa027d7fe406b8746d7b7fd9922f9 (diff) | |
download | gdb-32e23ecd9ce3a7a867b2fc5638d3b107925b4fd9.zip gdb-32e23ecd9ce3a7a867b2fc5638d3b107925b4fd9.tar.gz gdb-32e23ecd9ce3a7a867b2fc5638d3b107925b4fd9.tar.bz2 |
Added support for v850e and v850eq instructions.
Diffstat (limited to 'gas/config/.Sanitize')
-rw-r--r-- | gas/config/.Sanitize | 61 |
1 files changed, 59 insertions, 2 deletions
diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize index 42d6312..1b810dd 100644 --- a/gas/config/.Sanitize +++ b/gas/config/.Sanitize @@ -36,7 +36,15 @@ v850_files="tc-v850.c tc-v850.h" if ( echo $* | grep keep\-v850 > /dev/null ) ; then keep_these_too="${v850_files} ${keep_these_too}" else + if ( echo $* | grep keep\-v850e > /dev/null ) ; then + keep_these_too="${v850_files} ${keep_these_too}" + else + if ( echo $* | grep keep\-v850eq > /dev/null ) ; then + keep_these_too="${v850_files} ${keep_these_too}" + else lose_these_too="${v850_files} ${lose_these_too}" + fi + fi fi tic80_files="tc-tic80.c tc-tic80.h" @@ -197,7 +205,7 @@ else echo Removing traces of \"r5900\" from $i... fi cp $i new - sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new + sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -226,7 +234,7 @@ else echo Removing traces of \"tic80\" from $i... fi cp $i new - sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new + sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -238,5 +246,54 @@ else done fi +v850e_files="tc-v850.c tc-v850.h" +if ( echo $* | grep keep\-v850e > /dev/null ) ; then + for i in $v850e_files ; do + if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"v850eq\" from $i... + fi + cp $i new + sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/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 +else + if ( echo $* | grep keep\-v850eq > /dev/null ) ; then + for i in $v850e_files ; do + if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping v850e and v850eq stuff in $i + fi + fi + done + else + for i in $v850e_files ; do + if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"v850e\" from $i... + fi + cp $i new + sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new + cp new newer + sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < new > newer + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv newer $i + rm new + fi + done + fi +fi # End of file. |