summaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-04 11:01:34 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-04 11:01:34 +0000
commit50b589163946324a28d769b2c6be321ada6edeac (patch)
treeff51844afb0d248a98556451ecbb9b1c3a056a0d /gcc/recog.c
parent2b98e22bd8af0c0d0b0e02720a508dcea3672658 (diff)
downloadgcc-50b589163946324a28d769b2c6be321ada6edeac.tar.gz
PR target/48496
* recog.c (constrain_operands): If extra constraints are present, also accept pseudo-registers with equivalent memory locations during reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index cb2bfd31701..3f6bc545fb4 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -2680,6 +2680,16 @@ constrain_operands (int strict)
/* Every address operand can be reloaded to fit. */
&& strict < 0)
win = 1;
+ /* Cater to architectures like IA-64 that define extra memory
+ constraints without using define_memory_constraint. */
+ else if (reload_in_progress
+ && REG_P (op)
+ && REGNO (op) >= FIRST_PSEUDO_REGISTER
+ && reg_renumber[REGNO (op)] < 0
+ && reg_equiv_mem (REGNO (op)) != 0
+ && EXTRA_CONSTRAINT_STR
+ (reg_equiv_mem (REGNO (op)), c, p))
+ win = 1;
#endif
break;
}