cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
authorMarek Polacek <polacek@redhat.com>
Wed, 20 May 2015 11:47:18 +0000 (11:47 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 20 May 2015 11:47:18 +0000 (11:47 +0000)
* cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.

* c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.

From-SVN: r223442

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/cfgexpand.c

index 701b7590c415191c08b9d66decb314b47499bc84..ba1186db344e82720ef4bd588c850bcc81b36491 100644 (file)
@@ -1,3 +1,7 @@
+2015-05-20  Marek Polacek  <polacek@redhat.com>
+
+       * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
+
 2015-05-20  Marek Polacek  <polacek@redhat.com>
 
        * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
index 30e615627297f2b5fb7d8359fdd5589c8a541885..9d7736ecc5f05bbdf2080490bf4e1a02ec67d3b1 100644 (file)
@@ -1,3 +1,7 @@
+2015-05-20  Marek Polacek  <polacek@redhat.com>
+
+       * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
+
 2015-05-20  Marek Polacek  <polacek@redhat.com>
 
        * c-ada-spec.c (dump_sloc): Use DECL_P.
index 86a9f54b80686a5f96ae0ae12c9c6c7c8f91898e..168cae985d9527bd814876d920ba96251656c6d7 100644 (file)
@@ -395,7 +395,7 @@ check_omp_for_incr_expr (location_t loc, tree exp, tree decl)
          {
            tree op1 = TREE_OPERAND (exp, 1);
            tree temp = TARGET_EXPR_SLOT (op0);
-           if (TREE_CODE_CLASS (TREE_CODE (op1)) == tcc_binary
+           if (BINARY_CLASS_P (op1)
                && TREE_OPERAND (op1, 1) == temp)
              {
                op1 = copy_node (op1);
index 09e668acb7cda84a278fe31fcffc664fad02c9b4..f65e1fc70099baae080cfb74937b5a25c7f8904b 100644 (file)
@@ -4039,7 +4039,7 @@ expand_debug_expr (tree exp)
          op0 = simplify_gen_subreg (mode, op0, inner_mode,
                                     subreg_lowpart_offset (mode,
                                                            inner_mode));
-       else if (TREE_CODE_CLASS (TREE_CODE (exp)) == tcc_unary
+       else if (UNARY_CLASS_P (exp)
                 ? TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (exp, 0)))
                 : unsignedp)
          op0 = simplify_gen_unary (ZERO_EXTEND, mode, op0, inner_mode);