stormy16.c (stormy16_print_operand): Avoid some uses of uninitialized variables in...
authorGeoffrey Keating <geoffk@redhat.com>
Sun, 4 Nov 2001 07:42:04 +0000 (07:42 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 4 Nov 2001 07:42:04 +0000 (07:42 +0000)
* config/stormy16/stormy16.c (stormy16_print_operand): Avoid
some uses of uninitialized variables in error cases.

From-SVN: r46766

gcc/ChangeLog
gcc/config/stormy16/stormy16.c

index bcf73c629c2f80c78ad39403794755ea1d6749cb..57d166dc32f1e907d6ccd351382110a8c368423b 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
 
+       * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
+       some uses of uninitialized variables in error cases.
+
        * config/stormy16/stormy16.c (stormy16_output_shift): Don't
        look at 'temp' if we won't be using it.
 
index 059f3ebdbff3269e4964e3f8d2325d74f0adb525..6910b392173e55ebe09c6ce36eebab89fa4456b9 100644 (file)
@@ -1516,7 +1516,8 @@ stormy16_print_operand (file, x, code)
        /* There is either one bit set, or one bit clear, in X.
           Print it preceded by '#'.  */
       {
-       HOST_WIDE_INT xx, l;
+       HOST_WIDE_INT xx = 1;
+       HOST_WIDE_INT l;
 
        if (GET_CODE (x) == CONST_INT)
          xx = INTVAL (x);
@@ -1547,7 +1548,7 @@ stormy16_print_operand (file, x, code)
       /* Print the immediate operand less one, preceded by '#'.  
          For 'O', negate it first.  */
       {
-       HOST_WIDE_INT xx;
+       HOST_WIDE_INT xx = 0;
        
        if (GET_CODE (x) == CONST_INT)
          xx = INTVAL (x);