public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [COMMITTED] bpf: remove unused variables from bpf_expand_{prologue,epilogue}
@ 2022-09-06  7:00 Jose E. Marchesi
  0 siblings, 0 replies; only message in thread
From: Jose E. Marchesi @ 2022-09-06  7:00 UTC (permalink / raw)
  To: gcc-patches


gcc/ChangeLog:

	* config/bpf/bpf.cc (bpf_expand_prologue): Remove unused automatic
	`insn'.
	(bpf_expand_epilogue): Likewise.
---
 gcc/config/bpf/bpf.cc | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc
index 9cb56cfb287..51055651707 100644
--- a/gcc/config/bpf/bpf.cc
+++ b/gcc/config/bpf/bpf.cc
@@ -428,7 +428,6 @@ bpf_compute_frame_layout (void)
 void
 bpf_expand_prologue (void)
 {
-  rtx insn;
   HOST_WIDE_INT size;
 
   size = (cfun->machine->local_vars_size
@@ -468,7 +467,7 @@ bpf_expand_prologue (void)
 				       plus_constant (DImode,
 						      hard_frame_pointer_rtx,
 						      fp_offset - 8));
-		  insn = emit_move_insn (mem, gen_rtx_REG (DImode, regno));
+		  emit_move_insn (mem, gen_rtx_REG (DImode, regno));
 		  fp_offset -= 8;
 		}
 	    }
@@ -481,15 +480,15 @@ bpf_expand_prologue (void)
      accessor.  */
   if (cfun->calls_alloca)
     {
-      insn = emit_move_insn (stack_pointer_rtx,
-			     hard_frame_pointer_rtx);
+      emit_move_insn (stack_pointer_rtx,
+                      hard_frame_pointer_rtx);
 
       if (size > 0)
 	{
-	  insn = emit_insn (gen_rtx_SET (stack_pointer_rtx,
-					 gen_rtx_PLUS (Pmode,
-						       stack_pointer_rtx,
-						       GEN_INT (-size))));
+	  emit_insn (gen_rtx_SET (stack_pointer_rtx,
+                                  gen_rtx_PLUS (Pmode,
+                                                stack_pointer_rtx,
+                                                GEN_INT (-size))));
 	}
     }
 }
@@ -504,7 +503,6 @@ bpf_expand_epilogue (void)
      not restoring callee-saved registers in BPF.  */
   if (TARGET_XBPF)
     {
-      rtx insn;
       int regno;
       int fp_offset = -cfun->machine->local_vars_size;
 
@@ -528,7 +526,7 @@ bpf_expand_epilogue (void)
 				       plus_constant (DImode,
 						      hard_frame_pointer_rtx,
 						      fp_offset - 8));
-		  insn = emit_move_insn (gen_rtx_REG (DImode, regno), mem);
+		  emit_move_insn (gen_rtx_REG (DImode, regno), mem);
 		  fp_offset -= 8;
 		}
 	    }
-- 
2.30.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-06  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06  7:00 [COMMITTED] bpf: remove unused variables from bpf_expand_{prologue,epilogue} Jose E. Marchesi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).