From 56478edaf219acd8fec6f2f54eaef98741b874a7 Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Wed, 29 May 2024 23:41:38 +0800 Subject: [PATCH] arch: x86_64: select NO_OPTIMIZATIONS in X86_EXCEPTION_STACK_TRACE Select `NO_OPTIMIZATIONS` instead of depending on it. Signed-off-by: Yong Cong Sin --- arch/x86/core/Kconfig.intel64 | 2 +- tests/arch/common/stack_unwind/testcase.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/core/Kconfig.intel64 b/arch/x86/core/Kconfig.intel64 index 36e7110f79a1155..81efa0a18536f96 100644 --- a/arch/x86/core/Kconfig.intel64 +++ b/arch/x86/core/Kconfig.intel64 @@ -33,9 +33,9 @@ config X86_EXCEPTION_STACK_TRACE bool default y select DEBUG_INFO + select NO_OPTIMIZATIONS depends on EXCEPTION_STACK_TRACE depends on !OMIT_FRAME_POINTER - depends on NO_OPTIMIZATIONS help Internal config to enable runtime stack traces on fatal exceptions. diff --git a/tests/arch/common/stack_unwind/testcase.yaml b/tests/arch/common/stack_unwind/testcase.yaml index a2c7beacbeeec7a..1f996eecacfe690 100644 --- a/tests/arch/common/stack_unwind/testcase.yaml +++ b/tests/arch/common/stack_unwind/testcase.yaml @@ -30,7 +30,6 @@ tests: arch.common.stack_unwind.x86: arch_allow: x86 extra_configs: - - CONFIG_NO_OPTIMIZATIONS=y - CONFIG_OMIT_FRAME_POINTER=n integration_platforms: - qemu_x86