aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-11-11 09:18:46 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2019-11-11 09:18:46 +0100
commitd9945c8842ed2731285a7be0b80ea6f3e50190ee (patch)
tree40941bcf4d9f958af32eb89360f51690659c35de
parent223bf296b23e7c610225b0798f68d67c6ae0f050 (diff)
downloadgcc-d9945c8842ed2731285a7be0b80ea6f3e50190ee.zip
gcc-d9945c8842ed2731285a7be0b80ea6f3e50190ee.tar.gz
gcc-d9945c8842ed2731285a7be0b80ea6f3e50190ee.tar.bz2
Assert 'offset2' instead of 'offset' in 'gcc/gimplify.c:gimplify_scan_omp_clauses'
... to fix a long-time typo/copy'n'past-o. gcc/ * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead of 'offset'. From-SVN: r278038
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/gimplify.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a1e928b..ca0cebc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
+ * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
+ of 'offset'.
+
* Makefile.in (LANG_CONFIGUREFRAGS): Define.
(config.status): Use/depend on it.
* configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 5fa0ba6..2bc41cf 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -8890,8 +8890,8 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
break;
if (scp)
continue;
- gcc_assert (offset == NULL_TREE
- || poly_int_tree_p (offset));
+ gcc_assert (offset2 == NULL_TREE
+ || poly_int_tree_p (offset2));
tree d1 = OMP_CLAUSE_DECL (*sc);
tree d2 = OMP_CLAUSE_DECL (c);
while (TREE_CODE (d1) == ARRAY_REF)