aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsim/common/genmloop.sh4
-rw-r--r--sim/cris/mloop.in3
2 files changed, 4 insertions, 3 deletions
diff --git a/sim/common/genmloop.sh b/sim/common/genmloop.sh
index 572dc8a..b8a0f43 100755
--- a/sim/common/genmloop.sh
+++ b/sim/common/genmloop.sh
@@ -349,7 +349,7 @@ static INLINE void
This is as opposed to x-after which is only emitted at the end of a group
of parallel insns. */
-static INLINE void
+ATTRIBUTE_UNUSED static INLINE void
@prefix@_emit_before (SIM_CPU *current_cpu, SCACHE *sc, PCADDR pc, int first_p)
{
ARGBUF *abuf = &sc[0].argbuf;
@@ -364,7 +364,7 @@ static INLINE void
x-after is emitted after a serial insn or at the end of a group of
parallel insns. */
-static INLINE void
+ATTRIBUTE_UNUSED static INLINE void
@prefix@_emit_after (SIM_CPU *current_cpu, SCACHE *sc, PCADDR pc)
{
ARGBUF *abuf = &sc[0].argbuf;
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;