===================================================================
@@ -1,3 +1,7 @@
+2018-11-28 Jan Hubicka <jh@suse.cz>
+
+ * lto.c (lto_read_decls): Fix handling of INTEGER_CST.
+
2018-11-22 Jan Hubicka <jh@suse.cz>
* lto.c (cmp_type_location): Remove.
===================================================================
@@ -1764,7 +1764,8 @@ lto_read_decls (struct lto_file_decl_dat
from);
if (len == 1
&& (TREE_CODE (first) == IDENTIFIER_NODE
- || TREE_CODE (first) == INTEGER_CST))
+ || (TREE_CODE (first) == INTEGER_CST
+ && !TREE_OVERFLOW (first))))
continue;
/* Try to unify the SCC with already existing ones. */