summaryrefslogtreecommitdiff
path: root/gas/as.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
commit8329933bfea48e8853cc7bbbd01c572af14d70db (patch)
treec8dddb28cbf9fcf64f88b132b58a24dc36cc7339 /gas/as.c
parent1c59b327b1783a497e9a7b2f8a554f3bd177f0ba (diff)
downloadbinutils-redhat-8329933bfea48e8853cc7bbbd01c572af14d70db.tar.gz
* 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/as.c')
-rw-r--r--gas/as.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/as.c b/gas/as.c
index d9aa6e276f..4937351c9f 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -1181,6 +1181,8 @@ main (int argc, char ** argv)
output_file_create (out_file_name);
gas_assert (stdoutput != 0);
+ dot_symbol_init ();
+
#ifdef tc_init_after_args
tc_init_after_args ();
#endif