aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/global.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/global.c b/gcc/global.c
index 12088d8..a4f5ab1 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -871,7 +871,8 @@ prune_preferences ()
we want to give the lower-priority allocno the first chance for
these registers). */
for (j = i + 1; j < max_allocno; j++)
- if (CONFLICTP (allocno, allocno_order[j]))
+ if (CONFLICTP (allocno, allocno_order[j])
+ || CONFLICTP (allocno_order[j], allocno))
{
COPY_HARD_REG_SET (temp,
hard_reg_full_preferences[allocno_order[j]]);