From ff17f164035e09f502390f76ac111d3d54b724ee Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 13 Jan 2000 23:01:59 +0000 Subject: [PATCH] fix compile time warnings about unused epilogue instructions From-SVN: r31397 --- gcc/ChangeLog | 5 +++++ gcc/config/fr30/fr30.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 144759a32b6..1edf3ab107a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-01-13 Nick Clifton + + * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed + register to prevent compile time warnings. + 2000-01-13 Zack Weinberg * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv' diff --git a/gcc/config/fr30/fr30.c b/gcc/config/fr30/fr30.c index e03ea5bb8fd..1504a77e1ff 100644 --- a/gcc/config/fr30/fr30.c +++ b/gcc/config/fr30/fr30.c @@ -377,7 +377,10 @@ fr30_expand_epilogue () for (regno = 0; regno < STACK_POINTER_REGNUM; regno ++) if (current_frame_info.gmask & (1 << regno)) - emit_insn (gen_movsi_pop (gen_rtx_REG (Pmode, regno))); + { + emit_insn (gen_movsi_pop (gen_rtx_REG (Pmode, regno))); + emit_insn (gen_rtx_USE (VOIDmode, regno)); + } if (current_frame_info.pretend_size) emit_insn (gen_add_to_stack (GEN_INT (current_frame_info.pretend_size)));