mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
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.
This commit is contained in:
@ -349,7 +349,7 @@ static INLINE void
|
|||||||
This is as opposed to x-after which is only emitted at the end of a group
|
This is as opposed to x-after which is only emitted at the end of a group
|
||||||
of parallel insns. */
|
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)
|
@prefix@_emit_before (SIM_CPU *current_cpu, SCACHE *sc, PCADDR pc, int first_p)
|
||||||
{
|
{
|
||||||
ARGBUF *abuf = &sc[0].argbuf;
|
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
|
x-after is emitted after a serial insn or at the end of a group of
|
||||||
parallel insns. */
|
parallel insns. */
|
||||||
|
|
||||||
static INLINE void
|
ATTRIBUTE_UNUSED static INLINE void
|
||||||
@prefix@_emit_after (SIM_CPU *current_cpu, SCACHE *sc, PCADDR pc)
|
@prefix@_emit_after (SIM_CPU *current_cpu, SCACHE *sc, PCADDR pc)
|
||||||
{
|
{
|
||||||
ARGBUF *abuf = &sc[0].argbuf;
|
ARGBUF *abuf = &sc[0].argbuf;
|
||||||
|
@ -67,7 +67,8 @@ extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, ARGBUF *abuf,
|
|||||||
return id;
|
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)
|
execute (SIM_CPU *current_cpu, SCACHE *sc, int fast_p)
|
||||||
{
|
{
|
||||||
SEM_PC vpc;
|
SEM_PC vpc;
|
||||||
|
Reference in New Issue
Block a user