]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: common: mark engine restart as noreturn
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 05:31:25 +0000 (00:31 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:23:00 +0000 (01:23 -0500)
This helps the compiler with optimization and fixes fallthru warnings.

sim/common/sim-engine.h

index f027cdced5ef6b5db58b0d496d92ba37b347311c..5d1f8fa48cbbfd820ea1e77c19d9704afb0d81b9 100644 (file)
@@ -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 */