diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-03-16 09:07:11 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-03-16 09:07:11 -0500 |
commit | bc69bfacd48428c3fe9aab1924b9b7dbb9041dff (patch) | |
tree | 043ef1776a517fbbadea47b498bca1bedc21b87c /gcc/config/ns32k | |
parent | 65e8fe02bbc0f5b4afb64a01d51b8a82ad27112c (diff) | |
download | gcc-bc69bfacd48428c3fe9aab1924b9b7dbb9041dff.tar.gz |
(global_symbolic_reference_mentioned_p): Recurse only
if GET_CODE (op) == CONST.
From-SVN: r6796
Diffstat (limited to 'gcc/config/ns32k')
-rw-r--r-- | gcc/config/ns32k/ns32k.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c index 5d6035f72c1..cd56323854d 100644 --- a/gcc/config/ns32k/ns32k.c +++ b/gcc/config/ns32k/ns32k.c @@ -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--) |