public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed] sim: common: delete unused argbuf in generated mloop code
@ 2023-12-19 11:55 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-12-19 11:55 UTC (permalink / raw)
  To: gdb-patches

This function only uses prev_abuf, not abuf, and doesn't inline code
from the various ports on the fly, so abuf will never be used.
---
 sim/common/genmloop.sh | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sim/common/genmloop.sh b/sim/common/genmloop.sh
index 4312dc5468f6..e6683def4637 100755
--- a/sim/common/genmloop.sh
+++ b/sim/common/genmloop.sh
@@ -1138,8 +1138,6 @@ void
 void
 @prefix@_pbb_after (SIM_CPU *current_cpu, SCACHE *sc)
 {
-  SEM_ARG sem_arg = sc;
-  const ARGBUF *abuf = SEM_ARGBUF (sem_arg);
   const SEM_ARG prev_sem_arg = sc - 1;
   const ARGBUF *prev_abuf = SEM_ARGBUF (prev_sem_arg);
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-19 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 11:55 [PATCH/committed] sim: common: delete unused argbuf in generated mloop code Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).