This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping: C-family stack check for threads
- From: Richard Henderson <rth at redhat dot com>
- To: Thomas Klein <th dot r dot klein at web dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 05 Jul 2011 09:07:45 -0700
- Subject: Re: Ping: C-family stack check for threads
- References: <4E123DE2.1090504@web.de>
On 07/04/2011 03:25 PM, Thomas Klein wrote:
> There is a emit_multi_reg_push but is there something like emit_multi_reg_pop, too.
There's a multi-reg push because that's one instruction.
> Are the other operations (compare, branche, ..) still allowed?
Of course. Everything is still allowed.
See the alpha prologue where the stack is probed in a loop to make
sure that each page is present.
> Yes, if the failure function is taken the info will be wrong.
> If this is a major problem do I have to add this info after any push and pop operation?
Of course it is a major problem. How are you supposed to debug a
failure? Guess at the stack trace?
> Will the rtl push/pop do this already for me?
It'll do some of it, yes.
r~