From: Nick Clifton Date: Tue, 22 Apr 2008 09:42:25 +0000 (+0000) Subject: arm.c (thumb_find_work_register): Fix location of argument register count. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6d2671ea9645cffba6f1e85d7a6bf1ccb6ba551;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a1566b9d3e..bb996fce98f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-04-22 Nick Clifton + + * config/arm/arm.c (thumb_find_work_register): Fix location of + argument register count. + 2008-04-22 Maxim Kuvyrkov Support scheduling for ColdFire V1 and V3 microarchitecture. @@ -1957,6 +1962,7 @@ 2008-03-28 Nick Clifton + PR target/31110 * config/mn10300/mn10300.c (mn10300_secondary_reload_class): Return GENERAL_REGS for stack adjustment reloads. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 78aac134daf..d788af6740f 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3564,7 +3564,7 @@ thumb_find_work_register (unsigned long pushed_regs_mask) if (! cfun->machine->uses_anonymous_args && crtl->args.size >= 0 && crtl->args.size <= (LAST_ARG_REGNUM * UNITS_PER_WORD) - && cfun->args_info.nregs < 4) + && crtl->args.info.nregs < 4) return LAST_ARG_REGNUM; /* Otherwise look for a call-saved register that is going to be pushed. */