This is the mail archive of the gcc-bugs@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]

Re: Nested functions on ARM



  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


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