This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [wwwdocs] Document -fstack-usage and -fstack-check improvements


* Eric Botcazou:

>> Are the -fstack-check fixes really Ada-specific?
>
> I didn't mention -fstack-check in the patch, only stack checking in Ada.

There have been general improvements in this area (compared to 4.4 at
least, where stack probes for VLAs were spaced too far apart).

Looking at the generated assembly, I think the initial probe is still
too far off (on GNU/Linux i386 and amd64).  The stack pointer is
decremented by the page size plus the size of 8 words, which could
miss the guard page.  This is visible in both C and Ada code.


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