* 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.
This commit is contained in:
Maciej W. Rozycki
2010-12-01 21:34:10 +00:00
parent 3df4e177c9
commit 4a826962e7
6 changed files with 43 additions and 3 deletions

View File

@@ -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;
}
}