aboutsummaryrefslogtreecommitdiff
path: root/sim/cris
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-03 01:17:17 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-03 01:19:43 -0400
commit3a275541049f295719782642fb8aa912b0a4a0d3 (patch)
treebf11791f181a0fc9f7ac1bd740b3148c2385abbc /sim/cris
parent359c74415c2b78bf2b2be3bd3e013d78f298350d (diff)
downloadgdb-3a275541049f295719782642fb8aa912b0a4a0d3.zip
gdb-3a275541049f295719782642fb8aa912b0a4a0d3.tar.gz
gdb-3a275541049f295719782642fb8aa912b0a4a0d3.tar.bz2
sim: mloop: mark a few conditionally used funcs as unused
These are marked inline, so building w/gcc at higher optimization levels will automatically discard them. But building with -O0 will trigger unused function warnings, so fix that. The common before/after cover functions in the common mloop generator are not used by all architecture ports. Doesn't seem to be a hard requirement, so marking them optional (i.e. unused) is fine. The cris execute function is conditionally used depending on the fast-build mode settings, so mark it unused too.
Diffstat (limited to 'sim/cris')
-rw-r--r--sim/cris/mloop.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in
index 645d821..da800e7 100644
--- a/sim/cris/mloop.in
+++ b/sim/cris/mloop.in
@@ -67,7 +67,8 @@ extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, ARGBUF *abuf,
return id;
}
-static INLINE SEM_PC
+/* This might not be used directly depending on the fast compile mode. */
+ATTRIBUTE_UNUSED static INLINE SEM_PC
execute (SIM_CPU *current_cpu, SCACHE *sc, int fast_p)
{
SEM_PC vpc;