This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PING: ARM PATCH for handling unaligned stack offsets.


Hello,

I am resending the patch which was posted here
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02137.html

It was reviewed by Richard Earnshaw. I do not have write permissions can some one see if it
is ok to check in and do so.


Thanks

Khem

ChangeLog Entry:

2005-07-07 Khem Raj <kraj@mvista.com>

	* config/arm/arm.c (thumb_output_function_prologue): Handle
	unaligned stack offsets when using thumb backtracking.



Index: arm.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.467
diff -u -r1.467 arm.c
--- arm.c	7 Jul 2005 21:43:02 -0000	1.467
+++ arm.c	7 Jul 2005 22:01:21 -0000
@@ -13491,7 +13491,7 @@
       if (l_mask)
 	{
 	  thumb_pushpop (f, l_mask, 1, &cfa_offset, l_mask);
-	  offset = bit_count (l_mask);
+	  offset = bit_count (l_mask) * UNITS_PER_WORD;
 	}
       else
 	offset = 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]