[AArch64/AArch64-4.7] Fix warning - Unused variable in aarch64_float_const_representable.
authorJames Greenhalgh <james.greenhalgh@arm.com>
Thu, 28 Feb 2013 17:35:40 +0000 (17:35 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Thu, 28 Feb 2013 17:35:40 +0000 (17:35 +0000)
gcc/
* config/aarch64/aarch64.c
(aarch64_float_const_representable): Remove unused variable.

From-SVN: r196352

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 0b6cc34d32b6ede9dc9bc5a6cecb85faddbcdb82..213aa8834824e2ba223be46ee4c5bb71a594a35d 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/aarch64/aarch64.c
+       (aarch64_float_const_representable): Remove unused variable.
+
 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
index a1e4cdd6a18c3a88e2a4bcf1e3bf4bee40998fc0..8c8532c97ccdd864cca9ff35b37ae9445f220663 100644 (file)
@@ -7088,7 +7088,7 @@ aarch64_float_const_representable_p (rtx x)
   /* This represents our current view of how many bits
      make up the mantissa.  */
   int point_pos = 2 * HOST_BITS_PER_WIDE_INT - 1;
-  int sign, exponent;
+  int exponent;
   unsigned HOST_WIDE_INT mantissa, mask;
   HOST_WIDE_INT m1, m2;
   REAL_VALUE_TYPE r, m;
@@ -7105,8 +7105,7 @@ aarch64_float_const_representable_p (rtx x)
       || REAL_VALUE_MINUS_ZERO (r))
     return false;
 
-  /* Extract sign and exponent.  */
-  sign = REAL_VALUE_NEGATIVE (r) ? 1 : 0;
+  /* Extract exponent.  */
   r = real_value_abs (&r);
   exponent = REAL_EXP (&r);