projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b34d4
)
(input_operand): Allow a SYMBOL_REF referring to a symbol in the TOC.
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 21 Nov 1994 22:43:56 +0000
(17:43 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 21 Nov 1994 22:43:56 +0000
(17:43 -0500)
From-SVN: r8542
gcc/config/rs6000/rs6000.c
patch
|
blob
|
history
diff --git
a/gcc/config/rs6000/rs6000.c
b/gcc/config/rs6000/rs6000.c
index 48952197672723491b17a4bd40aabac35ff27218..5d6f9c952ecd312e92da9354bce902190d3e5317 100644
(file)
--- 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);