This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: 4.5 Branch: Import Jim's PR 43520 patch
- From: Nick Clifton <nickc at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 May 2010 13:19:52 +0100
- Subject: RFA: 4.5 Branch: Import Jim's PR 43520 patch
Hi Guys,
I would like to import Jim Wilson's patch for PR 43520 to the 4.5
branch. Without it the arm-eabi toolchain will fail to run the gcc
testsuite because it goes into an infinite loop, eating up memory,
during the gcc.c-torture/compile/limits-fnargs.c test.
OK to apply ?
Cheers
Nick
gcc/ChangeLog
2010-05-21 Nick Clifton <nickc@redhat.com>
Import this patch from the mainline:
2010-04-20 James E. Wilson <wilson@codesourcery.com>
PR rtl-optimization/43520
* ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
zero available registers.
Index: gcc/ira-lives.c
===================================================================
--- gcc/ira-lives.c (revision 159655)
+++ gcc/ira-lives.c (working copy)
@@ -805,6 +805,9 @@
? GENERAL_REGS
: REG_CLASS_FROM_CONSTRAINT (c, p));
if (cl != NO_REGS
+ /* There is no register pressure problem if all of the
+ regs in this class are fixed. */
+ && ira_available_class_regs[cl] != 0
&& (ira_available_class_regs[cl]
<= ira_reg_class_nregs[cl][mode]))
IOR_HARD_REG_SET (*set, reg_class_contents[cl]);