aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@redhat.com>1998-06-29 13:38:34 +0000
committerGavin Romig-Koch <gavin@redhat.com>1998-06-29 13:38:34 +0000
commitb08a983c45bae6db79f9236f8320d101bbb17c0e (patch)
tree4e0e509a2eb2bce1625d9cd8cfed46e7a34c04f8 /gas
parent46eb9e5a57033d36030dbb855a1f10ee63cc7f2c (diff)
downloadgdb-b08a983c45bae6db79f9236f8320d101bbb17c0e.zip
gdb-b08a983c45bae6db79f9236f8320d101bbb17c0e.tar.gz
gdb-b08a983c45bae6db79f9236f8320d101bbb17c0e.tar.bz2
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/.Sanitize28
-rw-r--r--gas/ChangeLog10
-rw-r--r--gas/config/.Sanitize28
3 files changed, 66 insertions, 0 deletions
diff --git a/gas/.Sanitize b/gas/.Sanitize
index 236bc9f..e6f17cf 100644
--- a/gas/.Sanitize
+++ b/gas/.Sanitize
@@ -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
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0c2f900..61b3fa4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize
index 66927aa..b6fb21e 100644
--- a/gas/config/.Sanitize
+++ b/gas/config/.Sanitize
@@ -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