Thread (20 messages) flat view 20 messages, 6 authors, 2019-09-10

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

From: Segher Boessenkool <hidden>
Date: 2019-09-03 19:31:51
Also in: lkml, stable

On Mon, Sep 02, 2019 at 10:55:53PM -0700, Nathan Chancellor wrote:
On Thu, Aug 29, 2019 at 09:59:48AM +0000, David Laight wrote:
quoted
From: Nathan Chancellor
quoted
Sent: 28 August 2019 19:45
...
quoted
However, I think that -fno-builtin-* would be appropriate here because
we are providing our own setjmp implementation, meaning clang should not
be trying to do anything with the builtin implementation like building a
declaration for it.
Isn't implementing setjmp impossible unless you tell the compiler that
you function is 'setjmp-like' ?
No idea, PowerPC is the only architecture that does such a thing.
Since setjmp can return more than once, yes, exciting things can happen
if you do not tell the compiler about this.


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help