tree-cfg.c (find_case_label_for_value): Replace call to simple_cst_equal with tree_in...
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 19 May 2004 19:30:27 +0000 (19:30 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 19 May 2004 19:30:27 +0000 (12:30 -0700)
2004-05-19  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-cfg.c (find_case_label_for_value): Replace call to
        simple_cst_equal with tree_int_cst_equal.

From-SVN: r82033

gcc/ChangeLog
gcc/tree-cfg.c

index 2bdfb82e847fde40cec33da903a92241a2c399e3..50337db634b935c0421b927c7670b198098ebb9f 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-19  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * tree-cfg.c (find_case_label_for_value): Replace call to
+       simple_cst_equal with tree_int_cst_equal.
+
 2004-05-19  Jeff Law <law@redhat.com>
 
        * tree-ssa-phiopt.c (value_replacement): Handle the case where
index 9e468f47ccc4a4206860a9a9346c5aa49ddccca7..a8244c6dcf68892b76c56f68554746438aff202b 100644 (file)
@@ -1958,7 +1958,7 @@ find_case_label_for_value (tree switch_expr, tree val)
       else if (CASE_HIGH (t) == NULL)
        {
          /* A `normal' case label.  */
-         if (simple_cst_equal (CASE_LOW (t), val) == 1)
+         if (tree_int_cst_equal (CASE_LOW (t), val))
            return t;
        }
       else