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 07cbea0..542ee73 100644 (file)
@@ -1,5 +1,10 @@
 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
        * expr.c (gfc_generate_initializer):  If type conversion fails,
        check for error and return NULL.
index 98687c8..e4f1da5 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);