From: Andrew Pinski Date: Wed, 19 May 2004 19:30:27 +0000 (+0000) Subject: tree-cfg.c (find_case_label_for_value): Replace call to simple_cst_equal with tree_in... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e916e1d0e0f51b2841bcb617bee933caf14049cd;p=gcc.git tree-cfg.c (find_case_label_for_value): Replace call to simple_cst_equal with tree_int_cst_equal. 2004-05-19 Andrew Pinski * tree-cfg.c (find_case_label_for_value): Replace call to simple_cst_equal with tree_int_cst_equal. From-SVN: r82033 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bdfb82e847..50337db634b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-19 Andrew Pinski + + * tree-cfg.c (find_case_label_for_value): Replace call to + simple_cst_equal with tree_int_cst_equal. + 2004-05-19 Jeff Law * tree-ssa-phiopt.c (value_replacement): Handle the case where diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 9e468f47ccc..a8244c6dcf6 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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