aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-12-01 21:34:10 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-12-01 21:34:10 +0000
commit4a826962e76042a7ec1126e1e24b1850faa52443 (patch)
tree3350c7e1876f3344a0ff14ada698ac0f92783914 /gas/expr.c
parent3df4e177c9bdd2dd095a3c4e437ffba47cf32b37 (diff)
downloadfsf-binutils-gdb-4a826962e76042a7ec1126e1e24b1850faa52443.zip
fsf-binutils-gdb-4a826962e76042a7ec1126e1e24b1850faa52443.tar.gz
fsf-binutils-gdb-4a826962e76042a7ec1126e1e24b1850faa52443.tar.bz2
* symbols.h (dot_symbol): New declaration.
(dot_symbol_init): New prototype. * symbols.c (dot_symbol): New variable. (symbol_clone): Assert it's not dot_symbol being cloned. (dot_symbol_init): New function. (symbol_clone_if_forward_ref): Create a new temporary symbol when trying to clone dot_symbol. * expr.c (current_location): Refer to dot_symbol instead of making a new temporary symbol. * read.c (read_a_source_file): Update dot_symbol as we go. * as.c (main): Call dot_symbol_init.
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 620fdce..215b2ba 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -705,7 +705,7 @@ current_location (expressionS *expressionp)
else
{
expressionp->X_op = O_symbol;
- expressionp->X_add_symbol = symbol_temp_new_now ();
+ expressionp->X_add_symbol = &dot_symbol;
expressionp->X_add_number = 0;
}
}