summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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--)