From 42f8338d592506ccafe30a639b60f73d510c643e Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 19 Mar 2018 21:46:23 +0100 Subject: [PATCH] re PR rtl-optimization/84643 (gcc/optabs.c:6549:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel') PR rtl-optimization/84643 * memmodel.h (enum memmodel): Add MEMMODEL_MAX enumerator. From-SVN: r258662 --- gcc/ChangeLog | 5 +++++ gcc/memmodel.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7745ef61548..624bf15d94a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-03-19 Jakub Jelinek + + PR rtl-optimization/84643 + * memmodel.h (enum memmodel): Add MEMMODEL_MAX enumerator. + 2018-03-19 Maxim Ostapenko PR sanitizer/78651 diff --git a/gcc/memmodel.h b/gcc/memmodel.h index d793f3eedb0..f0a3f7c48d0 100644 --- a/gcc/memmodel.h +++ b/gcc/memmodel.h @@ -45,7 +45,9 @@ enum memmodel MEMMODEL_LAST = 6, MEMMODEL_SYNC_ACQUIRE = MEMMODEL_ACQUIRE | MEMMODEL_SYNC, MEMMODEL_SYNC_RELEASE = MEMMODEL_RELEASE | MEMMODEL_SYNC, - MEMMODEL_SYNC_SEQ_CST = MEMMODEL_SEQ_CST | MEMMODEL_SYNC + MEMMODEL_SYNC_SEQ_CST = MEMMODEL_SEQ_CST | MEMMODEL_SYNC, + /* Say that all the higher bits are valid target extensions. */ + MEMMODEL_MAX = INTTYPE_MAXIMUM (int) }; /* Return the memory model from a host integer. */ -- 2.30.2