diff mbox

[ARM] Remove unused variable in arm

Message ID DB5PR0801MB274266066A1997A6DE30E7BEE7A10@DB5PR0801MB2742.eurprd08.prod.outlook.com
State New
Headers show

Commit Message

Bin Cheng July 18, 2017, 8:11 a.m. UTC
Hi,
This leftover unused variable breaks arm bootstrap.  Simply remove it.

Thanks,
bin
2017-07-18  Bin Cheng  <bin.cheng@arm.com>

	* config/arm/arm.c (arm_emit_store_exclusive): Remove unused var.

Comments

Kyrill Tkachov July 18, 2017, 8:15 a.m. UTC | #1
Hi Bin,

On 18/07/17 09:11, Bin Cheng wrote:
> Hi,
> This leftover unused variable breaks arm bootstrap.  Simply remove it.
>
> Thanks,
> bin
> 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
>
> 	* config/arm/arm.c (arm_emit_store_exclusive): Remove unused var.

The ChangeLog entry should say emit_unlikely_jump rather than arm_emit_store_exclusive.
Ok with fixed ChangeLog entry.

Kyrill
diff mbox

Patch

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 1b7b382..139ab70 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -28268,8 +28268,6 @@  arm_emit_store_exclusive (machine_mode mode, rtx bval, rtx rval,
 static void
 emit_unlikely_jump (rtx insn)
 {
-  int very_unlikely = REG_BR_PROB_BASE / 100 - 1;
-
   rtx_insn *jump = emit_jump_insn (insn);
   add_reg_br_prob_note (jump, profile_probability::very_unlikely ());
 }