* config/tc-mips.c (prev_insn_labels): New.
authorGavin Romig-Koch <gavin@redhat.com>
Mon, 29 Jun 1998 13:38:34 +0000 (13:38 +0000)
committerGavin Romig-Koch <gavin@redhat.com>
Mon, 29 Jun 1998 13:38:34 +0000 (13:38 +0000)
(mips_fix_4011_branch_bug): New.
(append_insn): Watch for and handle branchs with labels.
(mips_no_prev_insn): Initialize prev_insn_labels.
(md_longopts,md_parse_option): Add {no-}fix-4011-branch-bug option.

gas/.Sanitize
gas/ChangeLog
gas/config/.Sanitize

index 236bc9f8badd11395acf4c9b6cf70930b439df96..e6f17cf79bba5885a54841984735b7e850da80d2 100644 (file)
@@ -463,6 +463,34 @@ else
        done
 fi
 
+branchbug4011_files="ChangeLog"
+if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
+       for i in $branchbug4011_files ; do
+               if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping branchbug4011 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $branchbug4011_files ; do
+               if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"branchbug4011\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/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
index 0c2f900e1808a9733a11f08edd57b412fcc22c0f..61b3fa4a5f73a1545703a3c67e9886263f82da04 100644 (file)
@@ -1,3 +1,13 @@
+start-sanitize-branchbug4011
+Mon Jun 29 09:36:27 1998  Gavin Koch  <gavin@cygnus.com>
+
+       * config/tc-mips.c (prev_insn_labels): New.
+       (mips_fix_4011_branch_bug): New.
+       (append_insn): Watch for and handle branchs with labels.
+       (mips_no_prev_insn): Initialize prev_insn_labels.
+       (md_longopts,md_parse_option): Add {no-}fix-4011-branch-bug option.
+
+end-sanitize-branchbug4011
 Fri Jun 26 11:21:11 1998  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-mn10300.c (set_arch_mach): New function.
index 66927aa56bbe247fb7b58f1bc113b0f43f50c627..b6fb21e6572a396e60b930707707969f0eedfe08 100644 (file)
@@ -466,6 +466,34 @@ else
        done
 fi
 
+branchbug4011_files="tc-mips.c"
+if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
+       for i in $branchbug4011_files ; do
+               if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping branchbug4011 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $branchbug4011_files ; do
+               if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"branchbug4011\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/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