------- Comment #2 from ramana at gcc dot gnu dot org  2010-07-22 14:37 -------
Hi,


Patches should be sent to gcc-patc...@gcc.gnu.org rather than put in bugzilla
entries. 

Even though the number of registers is theoretically 16 you are never going to
have num_saves = 16 . It's at the maximum going to be 14 (assuming the case
that the base register is the lowest register in the list even though such use
is deprecated, because you aren't going to be saving pc and sp in your prologue
from the compiler ). BTW stmfd allows theoretically sp and PC in ARM state in
the list of registers but such uses are deprecated and I don't think the
compiler can even generate such code. In Thumb state this is just not allowed.  

Thus the total number of bytes should be 95 bytes (plugging in num_saves = 14)
which gives us a 5 byte cushion. 

Ramana


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45029

Reply via email to