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 ee6fc87dd6f3ae5f4751a67c99ac208756ebb7c3..f880f29fd55ad6918103bc38e8b06be0fd2d35ab 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 6a4b7c77a34a4fba1b5208cadaa3d4f10b750897..91f9bf9c7a3acb2a138c047e99fb42f9bebf9e45 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