[PATCH] powerpc: Add attributes for setjmp/longjmp
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Sep 19 20:25:50 AEST 2019
On Wed, 2019-09-04 at 14:11:07 UTC, Segher Boessenkool wrote:
> The setjmp function should be declared as "returns_twice", or bad
> things can happen[1]. This does not actually change generated code
> in my testing.
>
> The longjmp function should be declared as "noreturn", so that the
> compiler can optimise calls to it better. This makes the generated
> code a little shorter.
>
> Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/aa497d4352414aad22e792b35d0aaaa12bbc37c5
cheers
More information about the Linuxppc-dev
mailing list