From 9e859f7e007dc30e6aa2ccd3fd595fae6ae4a3a2 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 7 Jan 1993 05:42:33 +0000 Subject: [PATCH] (reload) [SMALL_REGISTER_CLASSES]: When adding an extra need if the insn uses the function value return register... (reload) [SMALL_REGISTER_CLASSES]: When adding an extra need if the insn uses the function value return register, likewise add an extra single-reg need for each class in which the insn needs a group. From-SVN: r3141 --- gcc/reload1.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gcc/reload1.c b/gcc/reload1.c index 12ca8a1a9c2..1cc8d7825b1 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1299,14 +1299,12 @@ reload (first, global, dumpfile) for (i = 0; i < N_REG_CLASSES; i++) if (TEST_HARD_REG_BIT (reg_class_contents[i], r)) { - if (insn_needs[i] > 0) + /* ??? It's not clear what is really + right to do if this insn needs a group. + But maybe that cannot happen. */ + if (insn_needs[i] > 0 || insn_groups[i] > 0) insn_needs[i]++; - if (insn_groups[i] > 0 - && nregs > 1) - inc_groups = 1; } - if (inc_groups) - insn_groups[i]++; } #endif /* SMALL_REGISTER_CLASSES */