]> www.infradead.org Git - users/dwmw2/linux.git/commit
ARC: handle gcc generated __builtin_trap for older compiler
authorVineet Gupta <vgupta@synopsys.com>
Fri, 8 Dec 2017 16:45:57 +0000 (08:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:54:42 +0000 (09:54 +0200)
commit3b851f87ba20ee8825af227f846feee85856a1ec
tree8a675989011982f09e941364899618d7135441c5
parent1a18b808faf19aebc3ed303ce91ebc31b4519824
ARC: handle gcc generated __builtin_trap for older compiler

commit af1be2e21203867cb958aaceed5366e2e24b88e8 upstream.

ARC gcc prior to GNU 2018.03 release didn't have a target specific
__builtin_trap() implementation, generating default abort() call.

Implement the abort() call - emulating what newer gcc does for the same,
as suggested by Arnd.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/traps.c