This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
When is the stack pointer unreliable?
- To: egcs at cygnus dot com
- Subject: When is the stack pointer unreliable?
- From: John Wehle <john at feith dot com>
- Date: Sun, 6 Sep 1998 00:09:01 -0400 (EDT)
I noticed that i386 backend reloads the stack pointer in
situations where it shouldn't be necessary. In i386.c
(ix86_epilogue) is the comment:
/* sp is often unreliable so we must go off the frame pointer.
Since reloading the stack pointer causes a stall on some processors
it should be avoided when possible. Under what situations is sp
unreliable?
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------