On 09/14/2015 10:23 AM, Eric Botcazou wrote:
as documented, STACK_CHECK_PROTECT is supposed to be an "estimate of the amount of stack required to propagate an exception". It's (mainly) for Ada and it needs to distinguish the various EH schemes, which might have different needs. While the current setting is OK for the front-end SJLJ scheme used up to now in Ada, it's not sufficient for the middle-end SJLJ scheme that we are experimenting with; you need 8K on some platforms to pass the ACATS testsuite.
So it looks like some targets are at least optionally still using sjlj exceptions and would be affected by this change. AFAICT it only makes a difference with -fstack-check and would be a bugfix even for those targets - correct? Or is there something Ada-specific that makes it require more stack? If it's not Ada-specific, the patch is ok if you also update the tm.texi documentation.
Bernd