From: Maciej W. Rozycki Date: Sat, 4 Dec 2010 00:19:19 +0000 (+0000) Subject: PR gas/12282 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e66a3432ef115f1637d2cbe06042a9d29a2c70d2;p=binutils-gdb.git PR gas/12282 * expr.c (expr_build_dot): Make a clone of the symbol to return if needed. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b0a1966dfa2..2bee1d0acb6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-12-04 Maciej W. Rozycki + + PR gas/12282 + * expr.c (expr_build_dot): Make a clone of the symbol to return if + needed. + 2010-12-02 Richard Sandiford * symbols.c (S_FORCE_RELOC): Return true for indirect functions diff --git a/gas/expr.c b/gas/expr.c index f818ad389af..52eb472441c 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -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)); } /* Build any floating-point literal here.