Patchwork [COMMITTED,ARM] Cleanup uninitialized variable

login
register
mail settings
Submitter Greta Yorsh
Date April 12, 2013, 2:19 p.m.
Message ID <000801ce3788$c68aace0$53a006a0$@yorsh@arm.com>
Download mbox | patch
Permalink /patch/236113/
State New
Headers show

Comments

Greta Yorsh - April 12, 2013, 2:19 p.m.
Cleanup to remove warning about uninitialized variable "base" when compiling
arm.c.

Approved offline by Richard Earnshaw. Committed r197921.

gcc/

2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>

	* config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".

Patch

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index af95ac1..982487e 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -12694,7 +12694,7 @@  gen_operands_ldrd_strd (rtx *operands, bool load,
 {
   int nops = 2;
   HOST_WIDE_INT offsets[2], offset;
-  rtx base;
+  rtx base = NULL_RTX;
   rtx cur_base, cur_offset, tmp;
   int i, gap;
   HARD_REG_SET regset;