From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id F1B7B3858404; Thu, 21 Dec 2023 06:23:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1B7B3858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703139818; bh=pYPq8EMXC8gjazULTo5MA08ycKU0MZXOv4M73HgJjiw=; h=From:To:Subject:Date:From; b=Tu6s1ClY6hQOMGHqn8M8fSkojKXoVO9kQ2Ilj2VPJhc/om0TVG4b55MbWaBv9X6AI qXl0Bo/pGDHCiSf3Sx7w0WYbpOcmmyhl+sl48QobsO/0k2Wgcw+h0AUBnPU3HUOxlg gNK1QoVJftQX729XJdrmfT6Q0tJv8rD2qJtEj0ZU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: common: mark engine restart as noreturn X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: cbdfef872beb095c5549f2005d917b0043492717 X-Git-Newrev: c5190830dbb6c3c875d853b46d742c444fece838 Message-Id: <20231221062338.F1B7B3858404@sourceware.org> Date: Thu, 21 Dec 2023 06:23:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc5190830dbb6= c3c875d853b46d742c444fece838 commit c5190830dbb6c3c875d853b46d742c444fece838 Author: Mike Frysinger Date: Thu Dec 21 00:31:25 2023 -0500 sim: common: mark engine restart as noreturn =20 This helps the compiler with optimization and fixes fallthru warnings. Diff: --- sim/common/sim-engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; =20 /* Restart hook - allow target specific operation when restarting a simulator */