This is the mail archive of the gcc@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: When is the stack pointer unreliable?


>> Since reloading the stack pointer causes a stall on some processors
>> it should be avoided when possible.  Under what situations is sp
>> unreliable?
> alloca calls,

In which case current_function_calls_alloca is set.

> variable sized objects in the stack come immediately to mind.

I assume that this is always handled by allocate_dynamic_stack_space
in which case current_function_calls_alloca is set.

> You might also need to check if the compiler has optimized away
> popping of args after a function call if we unconditionally reach the
> epilogue after performing the call.

Good point.  That hadn't occurred to me.

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------



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