From: Jakub Jelinek Date: Mon, 19 Mar 2018 20:46:23 +0000 (+0100) Subject: re PR rtl-optimization/84643 (gcc/optabs.c:6549:26: runtime error: load of value... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42f8338d592506ccafe30a639b60f73d510c643e;p=gcc.git 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 --- 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. */