aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-12-04 00:19:19 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-12-04 00:19:19 +0000
commite66a3432ef115f1637d2cbe06042a9d29a2c70d2 (patch)
tree132e88ed3adfe020b90a957d0d990f3ae26a2745 /gas/expr.c
parent5492beb9c87e8fc8c4fe3cf10758e0c87ae4cbb9 (diff)
downloadgdb-e66a3432ef115f1637d2cbe06042a9d29a2c70d2.zip
gdb-e66a3432ef115f1637d2cbe06042a9d29a2c70d2.tar.gz
gdb-e66a3432ef115f1637d2cbe06042a9d29a2c70d2.tar.bz2
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 f818ad3..52eb472 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.