From 84cf9ddab39f794e8e85ea286fb8f341bd42ff0d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 21 Nov 1994 17:43:56 -0500 Subject: [PATCH] (input_operand): Allow a SYMBOL_REF referring to a symbol in the TOC. From-SVN: r8542 --- gcc/config/rs6000/rs6000.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 48952197672..5d6f9c952ec 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -533,6 +533,10 @@ input_operand (op, mode) && GET_CODE (op) == CONST_INT) return 1; + /* A SYMBOL_REF referring to the TOC is valid. */ + if (GET_CODE (op) == SYMBOL_REF && CONSTANT_POOL_ADDRESS_P (op)) + return 1; + /* Otherwise, we will be doing this SET with an add, so anything valid for an add will be valid. */ return add_operand (op, mode); -- 2.30.2