optabs.c (expand_ffs): Initialize val and defined_at_zero to avoid warnings.
authorZack Weinberg <zack@codesourcery.com>
Mon, 3 Sep 2007 19:53:02 +0000 (19:53 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 3 Sep 2007 19:53:02 +0000 (19:53 +0000)
* optabs.c (expand_ffs): Initialize val and defined_at_zero
to avoid warnings.

From-SVN: r128058

gcc/ChangeLog
gcc/optabs.c

index 6bbd703aae487a60e0a30bf7e19981178975d3f8..1d12d5dcd6e2da25782592212b467418253e1e1e 100644 (file)
@@ -1,5 +1,8 @@
 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
 
+       * optabs.c (expand_ffs): Initialize val and defined_at_zero
+       to avoid warnings.
+
        * optabs.c: Remove unnecessary forward declarations.
        (expand_unop_direct): New, broken out of expand_unop.
        (expand_doubleword_clz): New.
index f35685255bbbe8f193980446102341a8e2b9fa35..f28393dec6df9c2b7ff29f4ee17c57d5668354e6 100644 (file)
@@ -2702,8 +2702,8 @@ expand_ctz (enum machine_mode mode, rtx op0, rtx target)
 static rtx
 expand_ffs (enum machine_mode mode, rtx op0, rtx target)
 {
-  HOST_WIDE_INT val;
-  bool defined_at_zero;
+  HOST_WIDE_INT val = 0;
+  bool defined_at_zero = false;
   rtx temp, seq;
 
   if (optab_handler (ctz_optab, mode)->insn_code != CODE_FOR_nothing)