Skip to content
Commit 25046556 authored by Duy Nguyen's avatar Duy Nguyen Committed by Benjamin Cabé
Browse files

tests: error_hook: Workaround for RX architecture



GCC for RX would crash with an internal compiler error during
DWARF frame generation in `dwarf2out_frame_debug_adjust_cfa()`
when compiling the `trigger_fault_illegal_instruction()`
test function.

This patch adds `__builtin_unreachable()` to help the compiler
reason about control flow, preventing incorrect DWARF CFA
generation.

Signed-off-by: default avatarDuy Nguyen <duy.nguyen.xa@renesas.com>
parent e0a13a6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment