Commit f6d2671e by Nick Clifton Committed by Nick Clifton

arm.c (thumb_find_work_register): Fix location of argument register count.

* config/arm/arm.c (thumb_find_work_register): Fix location of
  argument register count.

From-SVN: r134553
parent 826fadba
2008-04-22 Nick Clifton <nickc@redhat.com>
* config/arm/arm.c (thumb_find_work_register): Fix location of
argument register count.
2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com> 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
Support scheduling for ColdFire V1 and V3 microarchitecture. Support scheduling for ColdFire V1 and V3 microarchitecture.
...@@ -1957,6 +1962,7 @@ ...@@ -1957,6 +1962,7 @@
2008-03-28 Nick Clifton <nickc@redhat.com> 2008-03-28 Nick Clifton <nickc@redhat.com>
PR target/31110
* config/mn10300/mn10300.c (mn10300_secondary_reload_class): * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
Return GENERAL_REGS for stack adjustment reloads. Return GENERAL_REGS for stack adjustment reloads.
......
...@@ -3564,7 +3564,7 @@ thumb_find_work_register (unsigned long pushed_regs_mask) ...@@ -3564,7 +3564,7 @@ thumb_find_work_register (unsigned long pushed_regs_mask)
if (! cfun->machine->uses_anonymous_args if (! cfun->machine->uses_anonymous_args
&& crtl->args.size >= 0 && crtl->args.size >= 0
&& crtl->args.size <= (LAST_ARG_REGNUM * UNITS_PER_WORD) && crtl->args.size <= (LAST_ARG_REGNUM * UNITS_PER_WORD)
&& cfun->args_info.nregs < 4) && crtl->args.info.nregs < 4)
return LAST_ARG_REGNUM; return LAST_ARG_REGNUM;
/* Otherwise look for a call-saved register that is going to be pushed. */ /* Otherwise look for a call-saved register that is going to be pushed. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment