Skip to content

Commit

Permalink
arch: x86_64: select NO_OPTIMIZATIONS in X86_EXCEPTION_STACK_TRACE
Browse files Browse the repository at this point in the history
Select `NO_OPTIMIZATIONS` instead of depending on it.

Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin committed May 29, 2024
1 parent 9516963 commit 56478ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/core/Kconfig.intel64
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion tests/arch/common/stack_unwind/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56478ed

Please sign in to comment.