diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-14 09:38:56 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-14 09:38:56 +0000 |
commit | 20b3ad9ea0c28e2c249e43462a22a38464efa081 (patch) | |
tree | f35899242f5d0af9ead5635e9b04bc5ccfe15035 /gcc/gimple.c | |
parent | 2487de1988f609a467b116368108cf6976f3b027 (diff) | |
download | gcc-20b3ad9ea0c28e2c249e43462a22a38464efa081.tar.gz |
2010-01-14 Richard Guenther <rguenther@suse.de>
PR lto/42665
* gimple.c (iterative_hash_gimple_type): Avoid hashing
error_mark_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 3ee15b56989..dce5ba59fb7 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3707,8 +3707,12 @@ iterative_hash_gimple_type (tree type, hashval_t val, /* For integer types hash the types min/max values and the string flag. */ if (TREE_CODE (type) == INTEGER_TYPE) { - v = iterative_hash_expr (TYPE_MIN_VALUE (type), v); - v = iterative_hash_expr (TYPE_MAX_VALUE (type), v); + /* OMP lowering can introduce error_mark_node in place of + random local decls in types. */ + if (TYPE_MIN_VALUE (type) != error_mark_node) + v = iterative_hash_expr (TYPE_MIN_VALUE (type), v); + if (TYPE_MAX_VALUE (type) != error_mark_node) + v = iterative_hash_expr (TYPE_MAX_VALUE (type), v); v = iterative_hash_hashval_t (TYPE_STRING_FLAG (type), v); } |