diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 00:38:31 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:22 -0500 |
commit | d137b254d9aa4c91d5d2e7865d971bbdaa40e769 (patch) | |
tree | a9ddb0f1f76874b83a4efce003732b2e305b5664 /sim/mn10300 | |
parent | f184f3a224405473d605ba1d7a455b011e8f2b9e (diff) | |
download | gdb-d137b254d9aa4c91d5d2e7865d971bbdaa40e769.zip gdb-d137b254d9aa4c91d5d2e7865d971bbdaa40e769.tar.gz gdb-d137b254d9aa4c91d5d2e7865d971bbdaa40e769.tar.bz2 |
sim: signal: mark signal callback funcs as noreturn since they don't return
All funcs already call other funcs that don't return. The mips port is
the only exception because its generic exception handler can return in
the case of normal exceptions. So while the exceptions its signal handler
triggers doesn't return, we can't express that conditional logic. So add
some useless abort calls to make the compiler happy.
Diffstat (limited to 'sim/mn10300')
-rw-r--r-- | sim/mn10300/mn10300-sim.h | 3 | ||||
-rw-r--r-- | sim/mn10300/sim-main.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sim/mn10300/mn10300-sim.h b/sim/mn10300/mn10300-sim.h index 3eadc0f..493df38 100644 --- a/sim/mn10300/mn10300-sim.h +++ b/sim/mn10300/mn10300-sim.h @@ -196,7 +196,8 @@ INLINE_SIM_MAIN (void) genericOr (uint32_t source, uint32_t destReg); INLINE_SIM_MAIN (void) genericXor (uint32_t source, uint32_t destReg); INLINE_SIM_MAIN (void) genericBtst (uint32_t leftOpnd, uint32_t rightOpnd); INLINE_SIM_MAIN (void) do_syscall (SIM_DESC sd); -void program_interrupt (SIM_DESC sd, sim_cpu *cpu, sim_cia cia, SIM_SIGNAL sig); +void program_interrupt (SIM_DESC sd, sim_cpu *cpu, sim_cia cia, SIM_SIGNAL sig) + ATTRIBUTE_NORETURN; void mn10300_cpu_exception_trigger(SIM_DESC sd, sim_cpu* cpu, address_word pc); void mn10300_cpu_exception_suspend(SIM_DESC sd, sim_cpu* cpu, int exception); diff --git a/sim/mn10300/sim-main.h b/sim/mn10300/sim-main.h index d08b13d..b0f0d12 100644 --- a/sim/mn10300/sim-main.h +++ b/sim/mn10300/sim-main.h @@ -48,6 +48,6 @@ mn10300_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), (TRANSFER), #include "mn10300-sim.h" #endif -extern SIM_CORE_SIGNAL_FN mn10300_core_signal; +extern SIM_CORE_SIGNAL_FN mn10300_core_signal ATTRIBUTE_NORETURN; #endif |