From 5a12987e79513b46d317c6973555c582ba4da895 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 28 Dec 2018 12:34:03 +0100 Subject: [PATCH] poly_int: get_inner_reference & co.: fix known_eq typo/bug gcc/ * gimplify.c (gimplify_scan_omp_clauses): Fix known_eq typo/bug. Co-Authored-By: Julian Brown From-SVN: r267447 --- gcc/ChangeLog | 5 +++++ gcc/gimplify.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 310d4f03e0a..feaa4251815 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-28 Thomas Schwinge + Julian Brown + + * gimplify.c (gimplify_scan_omp_clauses): Fix known_eq typo/bug. + 2018-12-27 Jan Hubicka * ipa-devirt.c (polymorphic_call_target_d): Add n_odr_types. diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 465d138abbe..40ed18e3027 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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) -- 2.30.2