> This patch adds stack clash protection to the x86 port and provides the
> first set of tests that will be used by the other ports in the future.
>
> Changes since V2:
>
> This uses the new PARAMs to determine if probing is needed and how often
> to probe once probing is needed.  New tests were added to verify
> behavior of the new flags.  Old tests explicitly set the guard size and
> probing interval
>
>
> Jeff
>
> * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): New.
> (ix86_expand_prologue): Dump stack clash info as needed.
> Call ix86_adjust_stack_and_probe_stack_clash as needed.
>
> testsuite/
>
> * gcc.dg/stack-check-4.c: New test.
> * gcc.dg/stack-check-5.c: New test.
> * gcc.dg/stack-check-6.c: New test.
> * gcc.dg/stack-check-6a.c: New test.
> * gcc.dg/stack-check-7.c: New test.
> * gcc.dg/stack-check-8.c: New test.
> * gcc.dg/stack-check-9.c: New test.
> * gcc.dg/stack-check-10.c: New test.

LGTM.

Thanks,
Uros.

Reply via email to