toolchain: fix the C++ exception workaround for new toolchains that don't have such hook

pull/5919/head
Anton Maklakov 2020-09-02 20:42:47 +07:00
rodzic 40f3cc4a34
commit f63bbc169e
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -108,9 +108,14 @@ sys_startup_fn_t g_startup_fn[1] = { start_cpu0 };
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS #ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
// workaround for C++ exception crashes // workaround for C++ exception crashes
void _Unwind_SetNoFunctionContextInstall(unsigned char enable); void _Unwind_SetNoFunctionContextInstall(unsigned char enable) __attribute__((weak, alias("_Unwind_SetNoFunctionContextInstall_Default")));
// workaround for C++ exception large memory allocation // workaround for C++ exception large memory allocation
void _Unwind_SetEnableExceptionFdeSorting(unsigned char enable); void _Unwind_SetEnableExceptionFdeSorting(unsigned char enable);
static IRAM_ATTR void _Unwind_SetNoFunctionContextInstall_Default(unsigned char enable __attribute__((unused)))
{
(void)0;
}
#endif // CONFIG_COMPILER_CXX_EXCEPTIONS #endif // CONFIG_COMPILER_CXX_EXCEPTIONS
static const char* TAG = "cpu_start"; static const char* TAG = "cpu_start";