This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/13182] -fstack-check probes too distant when allocating on stack
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 May 2017 09:52:31 +0000
- Subject: [Bug middle-end/13182] -fstack-check probes too distant when allocating on stack
- Auto-submitted: auto-generated
- References: <bug-13182-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13182
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ebotcazou at gcc dot gnu.org
Resolution|--- |WORKSFORME
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
That's as expected: the probing mechanism maintains a protection area so the
program can recover from a stack overflow condition by raising an exception.
That's why it always probes a few pages ahead but, once the first few pages are
skipped at the entry point, every subsequent page is probed.