diff options
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index 1246ca8..1b7a044 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1020,6 +1020,11 @@ register_operand (op, mode) op = SUBREG_REG (op); } + /* If we have an ADDRESSOF, consider it valid since it will be + converted into something that will not be a MEM. */ + if (GET_CODE (op) == ADDRESSOF) + return 1; + /* We don't consider registers whose class is NO_REGS to be a register operand. */ return (GET_CODE (op) == REG |