summaryrefslogtreecommitdiff
path: root/gcc/config/ns32k
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-03-16 09:07:11 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-03-16 09:07:11 -0500
commitbc69bfacd48428c3fe9aab1924b9b7dbb9041dff (patch)
tree043ef1776a517fbbadea47b498bca1bedc21b87c /gcc/config/ns32k
parent65e8fe02bbc0f5b4afb64a01d51b8a82ad27112c (diff)
downloadgcc-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.c11
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--)