On Mon, Aug 12, 2019 at 07:37:51AM +0200, Christophe Leroy wrote:
Le 12/08/2019 à 04:32, Nathan Chancellor a écrit :
quoted
Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when
setjmp is used") disabled -Wbuiltin-requires-header because of a warning
about the setjmp and longjmp declarations.
r367387 in clang added another diagnostic around this, complaining that
there is no jmp_buf declaration.
[...]
quoted
Cc: stable@vger.kernel.org # 4.19+
Link: https://github.com/ClangBuiltLinux/linux/issues/625
Link: https://github.com/llvm/llvm-project/commit/3be25e79477db2d31ac46493d97eca8c20592b07
Signed-off-by: Nathan Chancellor <redacted>
---
[...]
quoted
arch/powerpc/kernel/Makefile | 5 +++--
arch/powerpc/xmon/Makefile | 5 +++--
What about scripts/recordmcount.c and scripts/sortextable.c which contains
calls to setjmp() and longjmp() ?
And arch/um/ ?
Christophe
Hi Christophe,
It looks like all of those will be using the system's setjmp header,
which won't cause these warnings.
Cheers,
Nathan