aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-12-03 16:31:28 -0500
committerSimon Marchi <simon.marchi@efficios.com>2021-12-09 14:06:05 -0500
commitdb94f15756752d3360d0ec81bd8143fa94821f3b (patch)
tree28785dae722782b69c3eea0421326e0dc70ad1f6
parent0cb857dcd06957ddc433002cf3b572c0cc9183f5 (diff)
downloadgdb-db94f15756752d3360d0ec81bd8143fa94821f3b.zip
gdb-db94f15756752d3360d0ec81bd8143fa94821f3b.tar.gz
gdb-db94f15756752d3360d0ec81bd8143fa94821f3b.tar.bz2
gdb/microblaze-tdep.c: fix -Wunused-but-set-variable
Fix this, seen when building with clang 14: CXX microblaze-tdep.o /home/simark/src/binutils-gdb/gdb/microblaze-tdep.c:207:7: error: variable 'flags' set but not used [-Werror,-Wunused-but-set-variable] int flags = 0; ^ Change-Id: I59f726ed33e924912748bc475b6fd9a9394fc0d0
-rw-r--r--gdb/microblaze-tdep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index 5309da5..e50f50d 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -204,7 +204,6 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
unsigned long insn;
int rd, ra, rb, imm;
enum microblaze_instr op;
- int flags = 0;
int save_hidden_pointer_found = 0;
int non_stack_instruction_found = 0;
@@ -303,8 +302,6 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
{
/* We have a frame pointer. Note the register which is
acting as the frame pointer. */
- flags |= MICROBLAZE_MY_FRAME_IN_FP;
- flags &= ~MICROBLAZE_MY_FRAME_IN_SP;
cache->fp_regnum = rd;
microblaze_debug ("Found a frame pointer: r%d\n", cache->fp_regnum);
save_hidden_pointer_found = 0;