* config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
authorJeff Law <law@redhat.com>
Tue, 29 Oct 1996 19:48:18 +0000 (19:48 +0000)
committerJeff Law <law@redhat.com>
Tue, 29 Oct 1996 19:48:18 +0000 (19:48 +0000)
        to an absolute value, instead increment it as needed.

gas/ChangeLog
gas/config/tc-v850.c

index a771d23c8ad66a01ae667fc06473118fcc77db03..b30a2bf51fd89690b13bef6fe3c39f8c8f7cc7c1 100644 (file)
@@ -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
index a0bc352dba046be0f2defac74eefae63193d0ac7..fb238e41f874ffdb22f0c7879f9d22639928d6d7 100644 (file)
@@ -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.  */