* Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
[platform/upstream/binutils.git] / bfd / .Sanitize
index 4c38bfe..f1ef16e 100644 (file)
@@ -23,6 +23,38 @@ else
        lose_these_too="${arc_files} ${lose_these_too}"
 fi
 
+d10v_files="cpu-d10v.c elf32-d10v.c"
+
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+       keep_these_too="${d10v_files} ${keep_these_too}"
+else
+       lose_these_too="${d10v_files} ${lose_these_too}"
+fi
+
+m32r_files="cpu-m32r.c elf32-m32r.c"
+
+if ( echo $* | grep keep\-m32r > /dev/null ) ; then
+       keep_these_too="${m32r_files} ${keep_these_too}"
+else
+       lose_these_too="${m32r_files} ${lose_these_too}"
+fi
+
+v850_files="cpu-v850.c elf32-v850.c"
+
+if ( echo $* | grep keep\-v850 > /dev/null ) ; then
+       keep_these_too="${v850_files} ${keep_these_too}"
+else
+       lose_these_too="${v850_files} ${lose_these_too}"
+fi
+
+tic80_files="cpu-tic80.c coff-tic80.c"
+
+if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
+       keep_these_too="${tic80_files} ${keep_these_too}"
+else
+       lose_these_too="${tic80_files} ${lose_these_too}"
+fi
+
 # All files listed between the "Things-to-keep:" line and the
 # "Files-to-sed:" line will be kept.  All other files will be removed.
 # Directories listed in this section will have their own Sanitize
@@ -37,6 +69,7 @@ ChangeLog.1
 ChangeLog.2
 Makefile.in
 PORTING
+README
 TODO
 VERSION
 acconfig.h
@@ -46,6 +79,7 @@ aout-adobe.c
 aout-arm.c
 aout-encap.c
 aout-ns32k.c
+aout-sparcle.c
 aout-target.h
 aout0.c
 aout32.c
@@ -111,6 +145,8 @@ cpu-i960.c
 cpu-m68k.c
 cpu-m88k.c
 cpu-mips.c
+cpu-mn10200.c
+cpu-mn10300.c
 cpu-ns32k.c
 cpu-powerpc.c
 cpu-rs6000.c
@@ -136,9 +172,13 @@ elf32-i860.c
 elf32-m68k.c
 elf32-m88k.c
 elf32-mips.c
+elf32-mn10200.c
+elf32-mn10300.c
 elf32-ppc.c
+elf32-sh.c
 elf32-sparc.c
 elf32.c
+elf64-alpha.c
 elf64-gen.c
 elf64-mips.c
 elf64-sparc.c
@@ -248,6 +288,7 @@ sunos.c
 syms.c
 sysdep.h
 targets.c
+targmatch.sed
 tekhex.c
 trad-core.c
 versados.c
@@ -286,23 +327,23 @@ else
        done
 fi
 
-gm_files="ChangeLog ChangeLog.2 config.bfd"
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
-       for i in $gm_files ; do
-               if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+       for i in $d10v_files ; do
+               if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping gm stuff in $i
+                               echo Keeping d10v stuff in $i
                        fi
                fi
        done
 else
-       for i in $gm_files ; do
-               if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+       for i in $d10v_files ; do
+               if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"gm\" from $i...
+                               echo Removing traces of \"d10v\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
+                       sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -314,23 +355,107 @@ else
        done
 fi
 
-h8s_files="archures.c coff-h8300.c coffcode.h cpu-h8300.c ChangeLog"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
+m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
+if ( echo $* | grep keep\-m32r > /dev/null ) ; then
+       for i in $m32r_files ; do
+               if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping h8s stuff in $i
+                               echo Keeping m32r stuff in $i
                        fi
                fi
        done
 else
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
+       for i in $m32r_files ; do
+               if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"h8s\" from $i...
+                               echo Removing traces of \"m32r\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
+                       sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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
+
+v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
+if ( echo $* | grep keep\-v850 > /dev/null ) ; then
+       for i in $v850_files ; do
+               if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping v850 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $v850_files ; do
+               if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"v850\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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
+
+tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c"
+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
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping tic80 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $tic80_files ; do
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"tic80\" from $i...
+                       fi
+                       cp $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...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+gm_files="ChangeLog ChangeLog.2 config.bfd"
+if ( echo $* | grep keep\-gm > /dev/null ) ; then
+       for i in $gm_files ; do
+               if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping gm stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $gm_files ; do
+               if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"gm\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...