From patchwork Tue Aug 31 15:00:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [obv,fr30] fix some warnings in fr30.c Date: Tue, 31 Aug 2010 05:00:56 -0000 From: Nathan Froyd X-Patchwork-Id: 63275 Message-Id: <20100831150055.GY16898@codesourcery.com> To: gcc-patches@gcc.gnu.org Noticed while testing other things: gcc/config/fr30/fr30.c: In function ‘fr30_move_double’: gcc/config/fr30/fr30.c:885: warning: ISO C90 forbids mixed declarations and code gcc/config/fr30/fr30.c:886: warning: ISO C90 forbids mixed declarations and code gcc/config/fr30/fr30.c:883: warning: unused variable ‘dregno’ dregno is truly dead, its last use was deleted by: 2007-11-26 Rask Ingemann Lambertsen PR target/34174 * config/fr30/fr30.c (fr30_move_double): Sanitize mem->reg case. Copy the address before it is clobbered. Fixed like so. Committed. -Nathan * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra semicolons. Index: config/fr30/fr30.c =================================================================== --- config/fr30/fr30.c (revision 163673) +++ config/fr30/fr30.c (working copy) @@ -844,9 +844,8 @@ fr30_move_double (rtx * operands) else if (src_code == MEM) { rtx addr = XEXP (src, 0); - int dregno = REGNO (dest); - rtx dest0 = operand_subword (dest, 0, TRUE, mode);; - rtx dest1 = operand_subword (dest, 1, TRUE, mode);; + rtx dest0 = operand_subword (dest, 0, TRUE, mode); + rtx dest1 = operand_subword (dest, 1, TRUE, mode); rtx new_mem; gcc_assert (GET_CODE (addr) == REG);