arm.c (thumb_find_work_register): Fix location of argument register count.
authorNick Clifton <nickc@redhat.com>
Tue, 22 Apr 2008 09:42:25 +0000 (09:42 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 22 Apr 2008 09:42:25 +0000 (09:42 +0000)
* config/arm/arm.c (thumb_find_work_register): Fix location of
  argument register count.

From-SVN: r134553

gcc/ChangeLog
gcc/config/arm/arm.c

index 3a1566b9d3e76539b3eb6ee34037a7ad55a93065..bb996fce98f6491752c502cc4f8fb8a189ef5a04 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        Support scheduling for ColdFire V1 and V3 microarchitecture.
 
 2008-03-28  Nick Clifton  <nickc@redhat.com>
 
+       PR target/31110
        * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
        Return GENERAL_REGS for stack adjustment reloads.
 
index 78aac134dafc30d44ed1fc81bef2ebdb903877f6..d788af6740f8f98ee004b01a8af26e483f594ed1 100644 (file)
@@ -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.  */