From: Mike Frysinger Date: Thu, 21 Dec 2023 05:31:25 +0000 (-0500) Subject: sim: common: mark engine restart as noreturn X-Git-Tag: binutils-2_42~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5190830dbb6c3c875d853b46d742c444fece838;p=thirdparty%2Fbinutils-gdb.git sim: common: mark engine restart as noreturn This helps the compiler with optimization and fixes fallthru warnings. --- diff --git a/sim/common/sim-engine.h b/sim/common/sim-engine.h index f027cdced5e..5d1f8fa48cb 100644 --- a/sim/common/sim-engine.h +++ b/sim/common/sim-engine.h @@ -88,7 +88,7 @@ extern void sim_engine_restart (SIM_DESC sd, sim_cpu *last_cpu, /* NULL -> in event-mgr */ sim_cpu *next_cpu, /* NULL -> succ (last_cpu) or event-mgr */ - sim_cia cia); + sim_cia cia) ATTRIBUTE_NORETURN; /* Restart hook - allow target specific operation when restarting a simulator */