diff mbox series

Fix minnor issue with INTEGER_CST merging in lto.c

Message ID 20181128203710.puet6hcxn7rwb4uz@kam.mff.cuni.cz
State New
Headers show
Series Fix minnor issue with INTEGER_CST merging in lto.c | expand

Commit Message

Jan Hubicka Nov. 28, 2018, 8:37 p.m. UTC
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
diff mbox series

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 266450)
+++ ChangeLog	(working copy)
@@ -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: 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.  */