* config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
authorStephane Carrez <stcarrez@nerim.fr>
Sat, 28 Jul 2001 19:28:04 +0000 (19:28 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sat, 28 Jul 2001 19:28:04 +0000 (19:28 +0000)
and bra relax: update fragP->fr_fix after the fixup.

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

index f2f84817997cd73455cb47da22f2a2c54063c91f..94bb8e046bd4842764df50518c9b774a7dea6d1d 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-27  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
+       and bra relax: update fragP->fr_fix after the fixup.
+
 2001-07-27  Tracy Kuhrt  <Tracy.Kuhrt@microchip.com>
 
        * read.c (s_set): Check for missing symbol name.
index c73f575cb784965b57ffe4f4b19a570b88ca73c8..2c2b80c16548cae40c85916f457707e0ccb6716b 100644 (file)
@@ -2595,9 +2595,9 @@ md_estimate_size_before_relax (fragP, segment)
                 necessary for the unresolved symbol address.  */
              fragP->fr_opcode[0] = convert_branch (fragP->fr_opcode[0]);
 
-             fragP->fr_fix++;
-             fix_new (fragP, old_fr_fix - 1, 2, fragP->fr_symbol,
+             fix_new (fragP, fragP->fr_fix - 1, 2, fragP->fr_symbol,
                       fragP->fr_offset, 0, BFD_RELOC_16);
+             fragP->fr_fix++;
              break;
 
            case STATE_CONDITIONAL_BRANCH: