poly_int: get_inner_reference & co.: fix known_eq typo/bug
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 28 Dec 2018 11:34:03 +0000 (12:34 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 28 Dec 2018 11:34:03 +0000 (12:34 +0100)
gcc/
* gimplify.c (gimplify_scan_omp_clauses): Fix known_eq typo/bug.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
From-SVN: r267447

gcc/ChangeLog
gcc/gimplify.c

index 310d4f03e0a07837bc1858aae73cfd4c8a0fa630..feaa4251815a8180f6074ec61eea7e723de32da1 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
+           Julian Brown  <julian@codesourcery.com>
+
+       * gimplify.c (gimplify_scan_omp_clauses): Fix known_eq typo/bug.
+
 2018-12-27  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-devirt.c (polymorphic_call_target_d): Add n_odr_types.
index 465d138abbed15e3a8ee550c96073014293e0ee1..40ed18e302712feac8674ae53dfec91619ed9280 100644 (file)
@@ -8719,7 +8719,7 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
                              o2 = 0;
                            o2 += bits_to_bytes_round_down (bitpos2);
                            if (maybe_lt (o1, o2)
-                               || (known_eq (o1, 2)
+                               || (known_eq (o1, o2)
                                    && maybe_lt (bitpos, bitpos2)))
                              {
                                if (ptr)