ARC: handle gcc generated __builtin_trap for older compiler
commitbd67557464c2cf89e239da1f11c5d8905ee18f01
authorVineet Gupta <vgupta@synopsys.com>
Fri, 8 Dec 2017 16:45:57 +0000 (8 08:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:55:44 +0000 (10 09:55 +0200)
treea3e7fb6624f7ab491813a290bd3bab08a56b12cd
parent074d0aaec0c61ab19099a1d31d08c7552ed97a16
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