Hi,
this patch fixes handling of INTEGER_CST for lto_read_decls. The
condition here ought to match conditional when tree-streamer-out and
tree.c expect integer constants to be shared.

Bootstrapped/regtested x86_64-linux, comitted.

Honza

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 266450)
+++ ChangeLog   (working copy)
@@ -1,3 +1,7 @@
+2018-11-28  Jan Hubicka  <j...@suse.cz>
+
+       * lto.c (lto_read_decls): Fix handling of INTEGER_CST.
+
 2018-11-22  Jan Hubicka  <j...@suse.cz>
 
        * lto.c (cmp_type_location): Remove.
Index: lto.c
===================================================================
--- lto.c       (revision 266450)
+++ lto.c       (working copy)
@@ -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.  */

Reply via email to