* lto.c (lto_read_decls): Fix handling of INTEGER_CST.
authorJan Hubicka <jh@suse.cz>
Wed, 28 Nov 2018 20:36:13 +0000 (21:36 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 28 Nov 2018 20:36:13 +0000 (20:36 +0000)
From-SVN: r266586

gcc/lto/ChangeLog
gcc/lto/lto.c

index 56f8a9867a97657d966c1ff9c0a8a1d289e65735..ca998df8b73571f742d2f9abafe6b8875c60c7ec 100644 (file)
@@ -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.
index a5195fdd5570b318658e61f1ca3eb359850b988c..f838dcfc64c0274dd306205fcfd6cf088b568862 100644 (file)
@@ -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.  */