summaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-12-04 00:19:18 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-12-04 00:19:18 +0000
commitc5fe37f256129ae44365087e914894705772ae1a (patch)
tree45ac710265fb68ea9ce1d4f4caa65dfce9ac1544 /gas/expr.c
parent384eeb4b91e4683875dc69733b09c35af3ac0b8c (diff)
downloadbinutils-redhat-c5fe37f256129ae44365087e914894705772ae1a.tar.gz
PR gas/12282
* expr.c (expr_build_dot): Make a clone of the symbol to return if needed.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index f818ad389a..52eb472441 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.