(global_symbolic_reference_mentioned_p): Recurse only

if GET_CODE (op) == CONST.

From-SVN: r6796
This commit is contained in:
Richard Kenner 1994-03-16 09:07:11 -05:00
parent 65e8fe02bb
commit bc69bfacd4
1 changed files with 9 additions and 2 deletions

View File

@ -406,8 +406,15 @@ global_symbolic_reference_mentioned_p (op)
register char *fmt;
register int i;
if (GET_CODE (op) == SYMBOL_REF && ! SYMBOL_REF_FLAG (op))
return 1;
if (GET_CODE (op) == SYMBOL_REF)
{
if (! SYMBOL_REF_FLAG (op))
return 1;
else
return 0;
}
else if (GET_CODE (op) != CONST)
return 0;
fmt = GET_RTX_FORMAT (GET_CODE (op));
for (i = GET_RTX_LENGTH (GET_CODE (op)) - 1; i >= 0; i--)