diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2010-12-01 21:34:10 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2010-12-01 21:34:10 +0000 |
commit | 8329933bfea48e8853cc7bbbd01c572af14d70db (patch) | |
tree | c8dddb28cbf9fcf64f88b132b58a24dc36cc7339 /gas/symbols.h | |
parent | 1c59b327b1783a497e9a7b2f8a554f3bd177f0ba (diff) | |
download | binutils-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/symbols.h')
-rw-r--r-- | gas/symbols.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/symbols.h b/gas/symbols.h index 377a130074..1d5b2a3ca6 100644 --- a/gas/symbols.h +++ b/gas/symbols.h @@ -28,6 +28,7 @@ extern symbolS *symbol_rootP; /* all the symbol nodes */ extern symbolS *symbol_lastP; /* last struct symbol we made, or NULL */ extern symbolS abs_symbol; +extern symbolS dot_symbol; extern int symbol_table_frozen; @@ -60,6 +61,7 @@ symbolS *symbol_temp_make (void); symbolS *colon (const char *sym_name); void local_colon (int n); void symbol_begin (void); +void dot_symbol_init (void); void symbol_print_statistics (FILE *); void symbol_table_insert (symbolS * symbolP); valueT resolve_symbol_value (symbolS *); |