OSDN Git Service

* config/arm/arm.c (thumb_find_work_register): Fix location of
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Apr 2008 09:42:25 +0000 (09:42 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Apr 2008 09:42:25 +0000 (09:42 +0000)
  argument register count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134553 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3a1566b..bb996fc 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 78aac13..d788af6 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.  */