aboutsummaryrefslogtreecommitdiff
path: root/gcc/ra-build.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ra-build.c')
-rw-r--r--gcc/ra-build.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ra-build.c b/gcc/ra-build.c
index 4f0eac0b166..8c2d1a0f448 100644
--- a/gcc/ra-build.c
+++ b/gcc/ra-build.c
@@ -2301,8 +2301,14 @@ remember_web_was_spilled (struct web *web)
reg_class_contents[reg_alternate_class (web->regno)]);
}
else
+/* APPLE LOCAL */
+#ifdef TARGET_POWERPC
+ COPY_HARD_REG_SET (web->usable_regs,
+ reg_class_contents[(int) NON_SPECIAL_REGS]);
+#else
COPY_HARD_REG_SET (web->usable_regs,
reg_class_contents[(int) GENERAL_REGS]);
+#endif
AND_COMPL_HARD_REG_SET (web->usable_regs, never_use_colors);
prune_hardregs_for_mode (&web->usable_regs, PSEUDO_REGNO_MODE (web->regno));
#ifdef CANNOT_CHANGE_MODE_CLASS