From e916e1d0e0f51b2841bcb617bee933caf14049cd Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 19 May 2004 19:30:27 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-cfg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2