* config/tc-mips.c (md_convert_frag): Remove a call to
authorMaciej W. Rozycki <macro@linux-mips.org>
Wed, 1 Dec 2010 20:30:04 +0000 (20:30 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Wed, 1 Dec 2010 20:30:04 +0000 (20:30 +0000)
S_GET_VALUE and use the result of resolve_symbol_value as the
value of the symbol processed in MIPS16 relaxation.

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

index 64f2301..e02bc3a 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-01  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/tc-mips.c (md_convert_frag): Remove a call to
+       S_GET_VALUE and use the result of resolve_symbol_value as the
+       value of the symbol processed in MIPS16 relaxation.
+
 2010-11-30  Joel Sherrill  <joel.sherrill@oarcorp.com>
 
        * configure.tgt: Add sparc64-rtems.
index ac02aee..31d80ec 100644 (file)
@@ -14548,8 +14548,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT asec, fragS *fragp)
          ext = FALSE;
        }
 
-      resolve_symbol_value (fragp->fr_symbol);
-      val = S_GET_VALUE (fragp->fr_symbol);
+      val = resolve_symbol_value (fragp->fr_symbol);
       if (op->pcrel)
        {
          addressT addr;