From: Jeff Law Date: Tue, 18 Jun 1996 22:26:09 +0000 (+0000) Subject: * coff-h8300.c: Remove #if 0 code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2459179f7a082da7b16b89f914c055f3656c54c5;p=binutils-gdb.git * coff-h8300.c: Remove #if 0 code. (compatable): Don't allow mixing/matching of different architectures. Just stuff I noticed. start-sanitize-h8s * archures.c (bfd_mach_h8300s): Add. * bfd-in2.h: Rebuilt. * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. (BADMAG): Likewise. (h8300_reloc16_estimate): Likewise. (h8300_reloc16_extra_cases): Likewise. (h8300_bfd_link_add_symbols): Likewise. * coffcode.h (coff_set_arch_mach_hook): Likewise. (coff_set_flags): Likewise. * cpu-h8300.c (h8300_scan): Likewise. Add H8/S to bfd_h8300_arch list. end-sanitize-h8s H8/S support. Sanitized away until we know its official status. --- diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 8217e3ff338..4c38bfeea69 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -314,6 +314,34 @@ 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 + if [ -n "${verbose}" ] ; then + echo Keeping h8s stuff in $i + fi + fi + done +else + for i in $h8s_files ; do + if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"h8s\" from $i... + fi + cp $i new + sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/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