aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 00:38:31 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:59:22 -0500
commitd137b254d9aa4c91d5d2e7865d971bbdaa40e769 (patch)
treea9ddb0f1f76874b83a4efce003732b2e305b5664 /sim/m32r
parentf184f3a224405473d605ba1d7a455b011e8f2b9e (diff)
downloadgdb-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/m32r')
-rw-r--r--sim/m32r/sim-main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m32r/sim-main.h b/sim/m32r/sim-main.h
index 89502f2..31758a1 100644
--- a/sim/m32r/sim-main.h
+++ b/sim/m32r/sim-main.h
@@ -21,7 +21,7 @@
/* Misc. */
/* Catch address exceptions. */
-extern SIM_CORE_SIGNAL_FN m32r_core_signal;
+extern SIM_CORE_SIGNAL_FN m32r_core_signal ATTRIBUTE_NORETURN;
#define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
m32r_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
(TRANSFER), (ERROR))