diff --git a/arch/arc/core/sys_fatal_error_handler.c b/arch/arc/core/sys_fatal_error_handler.c index 7c161f31937..6f367086990 100644 --- a/arch/arc/core/sys_fatal_error_handler.c +++ b/arch/arc/core/sys_fatal_error_handler.c @@ -43,7 +43,7 @@ __weak void _SysFatalErrorHandler(unsigned int reason, ARG_UNUSED(pEsf); #if !defined(CONFIG_SIMPLE_FATAL_ERROR_HANDLER) -#if defined(CONFIG_ARC_STACK_CHECKING) || defined(CONFIG_STACK_SENTINEL) +#if defined(CONFIG_STACK_SENTINEL) if (reason == _NANO_ERR_STACK_CHK_FAIL) { goto hang_system; }