* Fix for building ARM ports
@ 2008-04-22 12:50 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2008-04-22 12:50 UTC (permalink / raw)
To: gcc-patches
Hi Guys,
I am applying the patch below as an obvious fix to allow the ARM
ports to build.
Cheers
Nick
gcc/ChangeLog
2008-04-22 Nick Clifton <nickc@redhat.com>
* config/arm/arm.c (thumb_find_work_register): Fix location of
argument register count.
Index: gcc/config/arm/arm.c
===================================================================
--- gcc/config/arm/arm.c (revision 134552)
+++ gcc/config/arm/arm.c (working copy)
@@ -3564,7 +3564,7 @@
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-22 9:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-22 12:50 Fix for building ARM ports Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).