aboutsummaryrefslogtreecommitdiff
path: root/gcc/memmodel.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-19 21:46:23 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-19 21:46:23 +0100
commit42f8338d592506ccafe30a639b60f73d510c643e (patch)
tree2d79b7ca59c56e938d090b673f8e6eeff43a64e1 /gcc/memmodel.h
parentac9ec1988a6d0add2eb724a5d1a9d06101623c51 (diff)
downloadgcc-42f8338d592506ccafe30a639b60f73d510c643e.zip
gcc-42f8338d592506ccafe30a639b60f73d510c643e.tar.gz
gcc-42f8338d592506ccafe30a639b60f73d510c643e.tar.bz2
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
Diffstat (limited to 'gcc/memmodel.h')
-rw-r--r--gcc/memmodel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/memmodel.h b/gcc/memmodel.h
index d793f3e..f0a3f7c 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. */