int argnum;
   int argreg = CSKY_ABI_A0_REGNUM;
   int last_arg_regnum = CSKY_ABI_LAST_ARG_REGNUM;
-  int need_dummy_stack = 0;
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
   std::vector<stack_item> stack_items;
 
                {
                  /* The argument should be pushed onto the dummy stack.  */
                  stack_items.emplace_back (4, val);
-                 need_dummy_stack += 4;
                }
              len -= partial_len;
              val += partial_len;
          else if (CSKY_32_IS_PUSH (insn))
            {
              /* Push for 32_bit.  */
-             int offset = 0;
              if (CSKY_32_IS_PUSH_R29 (insn))
                {
                  stacksize += 4;
                  register_offsets[29] = stacksize;
                  if (csky_debug)
                    print_savedreg_msg (29, register_offsets, false);
-                 offset += 4;
                }
              if (CSKY_32_PUSH_LIST2 (insn))
                {
                  int num = CSKY_32_PUSH_LIST2 (insn);
                  int tmp = 0;
                  stacksize += num * 4;
-                 offset += num * 4;
                  if (csky_debug)
                    {
                      fprintf_unfiltered (gdb_stdlog,
                  register_offsets[15] = stacksize;
                  if (csky_debug)
                    print_savedreg_msg (15, register_offsets, false);
-                 offset += 4;
                }
              if (CSKY_32_PUSH_LIST1 (insn))
                {
                  int num = CSKY_32_PUSH_LIST1 (insn);
                  int tmp = 0;
                  stacksize += num * 4;
-                 offset += num * 4;
                  if (csky_debug)
                    {
                      fprintf_unfiltered (gdb_stdlog,