aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-10-29 19:48:18 +0000
committerJeff Law <law@redhat.com>1996-10-29 19:48:18 +0000
commitbc49fab8ea87645d9e5999cc61ff66df2f92ad59 (patch)
tree2e9baaefc15dee1a696ab8b19f85fd8c69de5289 /gas
parenta334533c1be607d4deea642e97f98f2a2d7a37d1 (diff)
downloadgdb-bc49fab8ea87645d9e5999cc61ff66df2f92ad59.zip
gdb-bc49fab8ea87645d9e5999cc61ff66df2f92ad59.tar.gz
gdb-bc49fab8ea87645d9e5999cc61ff66df2f92ad59.tar.bz2
* config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
to an absolute value, instead increment it as needed.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-v850.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a771d23..b30a2bf 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,6 +1,9 @@
start-sanitize-v850
Tue Oct 29 12:28:16 1996 Jeffrey A Law (law@cygnus.com)
+ * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
+ to an absolute value, instead increment it as needed.
+
* config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
* config/tc-v850.c: Fix some indention problems.
(md_relax_table): Define for D9->D99 branch displacement
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index a0bc352..fb238e4 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -426,14 +426,14 @@ md_convert_frag (abfd, sec, fragP)
if (fragP->fr_subtype == 0)
{
fragP->fr_var = 0;
- fragP->fr_fix = 2;
+ fragP->fr_fix += 2;
fix_new (fragP, 0, 2, fragP->fr_symbol,
fragP->fr_offset, 1, BFD_RELOC_UNUSED + (int)fragP->fr_opcode);
}
else if (fragP->fr_subtype == 1)
{
fragP->fr_var = 0;
- fragP->fr_fix = 6;
+ fragP->fr_fix += 6;
/* Reverse the condition of the first branch. */
fragP->fr_literal[0] &= 0xf7;
/* Mask off all the displacement bits. */