* tree.c (simple_cst_equal): Add braces to shut up warnings.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 13 Aug 1998 17:01:36 +0000 (17:01 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 13 Aug 1998 17:01:36 +0000 (13:01 -0400)
From-SVN: r21699

gcc/ChangeLog
gcc/tree.c

index 9c33025ce641b3b918b192c0a8bcf8e05ea8ae30..cda0da44bd39670f882da791b3ae5a92ac09af3d 100644 (file)
@@ -6,6 +6,7 @@ Thu Aug 13 16:09:53 1998  Martin von Loewis  <loewis@informatik.hu-berlin.de>
 Thu Aug 13 15:24:48 1998  Jason Merrill  <jason@yorick.cygnus.com>
 
        * toplev.c (display_help): Add braces to shut up warnings.
+       * tree.c (simple_cst_equal): Likewise.
 
        * fold-const.c (non_lvalue): Don't deal with null pointer 
        constants here.
index 1f6b5a66e72d5e250df923a569ea217ea7e2a5bd..82b2cc540df17934bd914c435a83b244c264343f 100644 (file)
@@ -3958,10 +3958,13 @@ simple_cst_equal (t1, t2)
   code2 = TREE_CODE (t2);
 
   if (code1 == NOP_EXPR || code1 == CONVERT_EXPR || code1 == NON_LVALUE_EXPR)
-    if (code2 == NOP_EXPR || code2 == CONVERT_EXPR || code2 == NON_LVALUE_EXPR)
-      return simple_cst_equal (TREE_OPERAND (t1, 0), TREE_OPERAND (t2, 0));
-    else
-      return simple_cst_equal (TREE_OPERAND (t1, 0), t2);
+    {
+      if (code2 == NOP_EXPR || code2 == CONVERT_EXPR
+         || code2 == NON_LVALUE_EXPR)
+       return simple_cst_equal (TREE_OPERAND (t1, 0), TREE_OPERAND (t2, 0));
+      else
+       return simple_cst_equal (TREE_OPERAND (t1, 0), t2);
+    }
   else if (code2 == NOP_EXPR || code2 == CONVERT_EXPR
           || code2 == NON_LVALUE_EXPR)
     return simple_cst_equal (t1, TREE_OPERAND (t2, 0));