From: Jan Hubicka Date: Wed, 28 Nov 2018 20:36:13 +0000 (+0100) Subject: * lto.c (lto_read_decls): Fix handling of INTEGER_CST. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad42aa96b6ca0695dce4925d9655938fc1900edf;p=gcc.git * lto.c (lto_read_decls): Fix handling of INTEGER_CST. From-SVN: r266586 --- diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 56f8a9867a9..ca998df8b73 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2018-11-28 Jan Hubicka + + * lto.c (lto_read_decls): Fix handling of INTEGER_CST. + 2018-11-22 Jan Hubicka * lto.c (cmp_type_location): Remove. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index a5195fdd557..f838dcfc64c 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1764,7 +1764,8 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data, 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. */