On Fri, Feb 2, 2018 at 12:55 PM, Eric Botcazou <ebotca...@adacore.com> wrote:
>> But, that is not what the builtin setjmp/longjmp tests have.
>
> Yes, but I don't think that we want to risk breaking a working compiler on
> some targets because peculiar tests don't pass on another.  I think that
> init_eh is OK for x32 so SJLJ exceptions work and the issue is only with the
> undocumented builtin setjmp/longjmp.
>
> What happens on Aarch64 -milp32 for example?  Would it be OK to save/restore
> only 32-bit values?  And MIPS n32?
>
> Maybe we can define another builtin, e.g. __builtin_setjmp_size, and let the
> compiler compute the size based on the same formula as init_eh or somesuch:
>
>   char buf[__builtin_setjmp_size ()];
>

I think it should be a predefined macro.

H.J.

Reply via email to