aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-11-14 23:11:30 +0000
committerAlan Modra <amodra@gmail.com>2005-11-14 23:11:30 +0000
commite46c13d8f17628b84f4da019d5846c32fdf90557 (patch)
tree603e72ca2dc1b43578dce1691ee00a0e5841c1d4 /gas/symbols.c
parenta7bfd147a2be06395bba6127336a207e5ed411d5 (diff)
downloadgdb-e46c13d8f17628b84f4da019d5846c32fdf90557.zip
gdb-e46c13d8f17628b84f4da019d5846c32fdf90557.tar.gz
gdb-e46c13d8f17628b84f4da019d5846c32fdf90557.tar.bz2
* symbols.c (S_GET_VALUE): Remove non-BFD assembler recursion guard.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index e8c110c..f781a35 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1782,20 +1782,11 @@ S_GET_VALUE (symbolS *s)
if (s->sy_value.X_op != O_constant)
{
- static symbolS *recur;
-
- /* FIXME: In non BFD assemblers, S_IS_DEFINED and S_IS_COMMON
- may call S_GET_VALUE. We use a static symbol to avoid the
- immediate recursion. */
- if (recur == s)
- return (valueT) s->sy_value.X_add_number;
- recur = s;
if (! s->sy_resolved
|| s->sy_value.X_op != O_symbol
|| (S_IS_DEFINED (s) && ! S_IS_COMMON (s)))
as_bad (_("attempt to get value of unresolved symbol `%s'"),
S_GET_NAME (s));
- recur = NULL;
}
return (valueT) s->sy_value.X_add_number;
}