From 7fec4abdf4bdd3f9778d22de2dc23d81a1094ef5 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 2 Dec 1994 18:07:45 -0500 Subject: [PATCH] (input_operand): Correctly check for SYMBOL_REF referring to the TOC. From-SVN: r8598 --- gcc/config/rs6000/rs6000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d02a4751879..4ecfa8e1ee8 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -554,7 +554,7 @@ input_operand (op, mode) return 1; /* A SYMBOL_REF referring to the TOC is valid. */ - if (GET_CODE (op) == SYMBOL_REF && CONSTANT_POOL_ADDRESS_P (op)) + if (LEGITIMATE_CONSTANT_POOL_ADDRESS_P (op)) return 1; /* Otherwise, we will be doing this SET with an add, so anything valid