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 | 4a826962e76042a7ec1126e1e24b1850faa52443 (patch) | |
tree | 3350c7e1876f3344a0ff14ada698ac0f92783914 /gas/read.c | |
parent | 3df4e177c9bdd2dd095a3c4e437ffba47cf32b37 (diff) | |
download | gdb-4a826962e76042a7ec1126e1e24b1850faa52443.zip gdb-4a826962e76042a7ec1126e1e24b1850faa52443.tar.gz 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/read.c')
-rw-r--r-- | gas/read.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -629,6 +629,7 @@ read_a_source_file (char *name) was_new_line = is_end_of_line[(unsigned char) input_line_pointer[-1]]; if (was_new_line) { + symbol_set_value_now (&dot_symbol); #ifdef md_start_line_hook md_start_line_hook (); #endif @@ -1128,6 +1129,7 @@ read_a_source_file (char *name) md_after_pass_hook (); #endif } + symbol_set_value_now (&dot_symbol); quit: |