]> git.baikalelectronics.ru Git - kernel.git/commit
s390: avoid __builtin_return_address(n) on clang
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Apr 2019 21:26:23 +0000 (23:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 11 Apr 2019 11:37:29 +0000 (13:37 +0200)
commit351d3f8eb93803b7f8602f031c32ce8b047d6b4f
treed52308a0bac1805613d6e0dec3fc60263b0db005
parented613476fec5dc23f9bed1da3f844a33e120dc8f
s390: avoid __builtin_return_address(n) on clang

llvm on s390 has problems with __builtin_return_address(n), with n>0,
this results in a somewhat cryptic error message:

fatal error: error in backend: Unsupported stack frame traversal count

To work around it, use the direct return address directly. This
is probably not ideal here, but gets things to compile and should
only lead to inferior reporting, not to misbehavior of the generated
code.

Link: https://bugs.llvm.org/show_bug.cgi?id=41424
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ftrace.h