re PR fortran/80674 (trunk/gcc/fortran/trans-stmt.c:2578]: (style) Redundant condition)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 15 May 2017 23:46:23 +0000 (23:46 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 15 May 2017 23:46:23 +0000 (23:46 +0000)
2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80674
* trans-stmt.c (gfc_trans_integer_select): Remove redundant condition.

From-SVN: r248079

gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c

index 07cbea03c92e5869d4a43624e544d4012987d99a..542ee730b9b7475f974d43ce88c700b2f6ad6c4b 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       PR fortran/80674
+       * trans-stmt.c (gfc_trans_integer_select): Remove redundant condition.
+
 2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/80752
index 98687c80637dee21a0735af20e6529709dff3826..e4f1da54ac71fbd760efe449fb54b1c146bd19b8 100644 (file)
@@ -2575,9 +2575,8 @@ gfc_trans_integer_select (gfc_code * code)
                 to represent unbounded cases.  */
 
              if (!cp->low
-                 || (cp->low
-                     && mpz_cmp (cp->low->value.integer,
-                                 cp->high->value.integer) != 0))
+                 || (mpz_cmp (cp->low->value.integer,
+                               cp->high->value.integer) != 0))
                high = gfc_conv_mpz_to_tree (cp->high->value.integer,
                                             cp->high->ts.kind);