diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2010-12-16 18:48:28 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2010-12-16 18:48:28 +0000 |
commit | a1facbec7a584827dc10d1e3afc326e8653de4ac (patch) | |
tree | 4218d509ac25e1c8f2b067a980198f734f6c7dca /gas/symbols.c | |
parent | f8e9a93000a380b2d82e02d362127962419567fa (diff) | |
download | gdb-a1facbec7a584827dc10d1e3afc326e8653de4ac.zip gdb-a1facbec7a584827dc10d1e3afc326e8653de4ac.tar.gz gdb-a1facbec7a584827dc10d1e3afc326e8653de4ac.tar.bz2 |
* symbols.c (symbol_clone_if_forward_ref): Call tc_new_dot_label
for new fake labels created off the dot special symbol.
* config/tc-mips.h (tc_new_dot_label): New macro.
(mips_record_label): New prototype.
* config/tc-mips.c (my_getExpression): Remove MIPS16 fake label
annotation.
(s_cons, s_float_cons, s_gpword, s_gpdword): Only clear labels
recorded once data expressions have been evaluated.
(mips_define_label): Move code to record labels over to...
(mips_record_label): ... this new function.
* doc/internals.texi: Document tc_new_dot_label.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index 4e4ad77..9a4e2be 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -668,7 +668,12 @@ symbol_clone_if_forward_ref (symbolS *symbolP, int is_forward) symbolP->sy_resolving = 0; } else - symbolP = symbol_temp_new_now (); + { + symbolP = symbol_temp_new_now (); +#ifdef tc_new_dot_label + tc_new_dot_label (symbolP); +#endif + } } symbolP->sy_value.X_add_symbol = add_symbol; |