diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1994-11-30 01:29:26 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1994-11-30 01:29:26 +0000 |
commit | 05cedcf6c14a80362a47750f56ad4ebb4d676e11 (patch) | |
tree | 7a73bbcabcbb89dbe3f0edce2e6fe26fc3cec6bc /bfd/.Sanitize | |
parent | 23c17feaa7b3edfa100ae36e7e883347541ee9d5 (diff) | |
download | gdb-05cedcf6c14a80362a47750f56ad4ebb4d676e11.zip gdb-05cedcf6c14a80362a47750f56ad4ebb4d676e11.tar.gz gdb-05cedcf6c14a80362a47750f56ad4ebb4d676e11.tar.bz2 |
Initial ARC support.
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r-- | bfd/.Sanitize | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index c5f1dae..ff20bb2 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -31,6 +31,14 @@ else lose_these_too="${rce_files} ${lose_these_too}" fi +arc_files="cpu-arc.c elf32-arc.c" + +if ( echo $* | grep keep\-arc > /dev/null ) ; then + keep_these_too="${arc_files} ${keep_these_too}" +else + lose_these_too="${arc_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 @@ -291,6 +299,34 @@ else done fi +arc_files="ChangeLog archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h" +if ( echo $* | grep keep\-arc > /dev/null ) ; then + for i in $arc_files ; do + if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping arc stuff in $i + fi + fi + done +else + for i in $arc_files ; do + if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"arc\" from $i... + fi + cp $i new + sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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 |