From: Alan Modra Date: Mon, 14 Nov 2005 23:11:30 +0000 (+0000) Subject: * symbols.c (S_GET_VALUE): Remove non-BFD assembler recursion guard. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e46c13d8f17628b84f4da019d5846c32fdf90557;p=binutils-gdb.git * symbols.c (S_GET_VALUE): Remove non-BFD assembler recursion guard. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 0896668c8fe..7256b0e6ee9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2005-11-15 Alan Modra + + * symbols.c (S_GET_VALUE): Remove non-BFD assembler recursion guard. + 2005-11-14 Jan Beulich * config/tc-ia64.c (AR_FCR, AR_EFLAG, AR_CSD, AR_SSD, AR_CFLG, diff --git a/gas/symbols.c b/gas/symbols.c index e8c110cb421..f781a3574bf 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; }