c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like [LR]SHIFT_EXPR.
authorJakub Jelinek <jakub@redhat.com>
Fri, 13 Oct 2017 20:06:40 +0000 (22:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Oct 2017 20:06:40 +0000 (22:06 +0200)
* c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
[LR]SHIFT_EXPR.

From-SVN: r253742

gcc/c-family/ChangeLog
gcc/c-family/c-gimplify.c

index ee6fc87..f880f29 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-13  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
+       [LR]SHIFT_EXPR.
+
 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
 
        * c-common.c (enum missing_token_insertion_kind): New enum.
index 6a4b7c7..91f9bf9 100644 (file)
@@ -229,6 +229,8 @@ c_gimplify_expr (tree *expr_p, gimple_seq *pre_p ATTRIBUTE_UNUSED,
     {
     case LSHIFT_EXPR:
     case RSHIFT_EXPR:
+    case LROTATE_EXPR:
+    case RROTATE_EXPR:
       {
        /* We used to convert the right operand of a shift-expression
           to an integer_type_node in the FEs.  But it is unnecessary