Nested functions on ARM

law@redhat.com law@redhat.com
Tue Nov 14 09:03:00 GMT 2000


  In message < 200011140202.SAA19348@elmo.cygnus.com >you write:
  >   There are two problems with the patch.  Firstly it does not handle
  >   the corruption of the IP register by the PIC code when AOF_ASSEMBLER
  >   is true.  I was unable to decipher what this code was doing (and why
  >   it is in output_arm_prologue instead of arm_expand_prologue).  If it
  >   is important I could try to add code for this case as well.
Unsure about this one.


  >   The second problem is that the code uses an unallocated stack slot
  >   (ie a slot below the stack pointer).  It is only used for a short
  >   period of time, but it is vulnerable to corruption by interrupt
  >   handlers and the like.  I do not know if this will be a problem in
  >   real life.
This is a real problem.  Consider signal handling, interrupts, etc.

jeff



More information about the Gcc-bugs mailing list