PR gas/12282
authorMaciej W. Rozycki <macro@linux-mips.org>
Sat, 4 Dec 2010 00:19:19 +0000 (00:19 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Sat, 4 Dec 2010 00:19:19 +0000 (00:19 +0000)
* expr.c (expr_build_dot): Make a clone of the symbol to return if
needed.

gas/ChangeLog
gas/expr.c

index b0a1966dfa2fdf395df7890241c004c72e5d3a53..2bee1d0acb6f81376c9ccaac13341af7ff81b763 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-04  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       PR gas/12282
+       * expr.c (expr_build_dot): Make a clone of the symbol to return if
+       needed.
+
 2010-12-02  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * symbols.c (S_FORCE_RELOC): Return true for indirect functions
index f818ad389afae5d419b1fbb9a1e5af3934629383..52eb472441cb39796a398b8a94b2ffa5c4735bfd 100644 (file)
@@ -172,7 +172,7 @@ expr_build_dot (void)
   expressionS e;
 
   current_location (&e);
-  return make_expr_symbol (&e);
+  return symbol_clone_if_forward_ref (make_expr_symbol (&e));
 }
 \f
 /* Build any floating-point literal here.