http://codereview.appspot.com/4798045/diff/1/ipa.c File ipa.c (right):
http://codereview.appspot.com/4798045/diff/1/ipa.c#newcode1034 ipa.c:1034: { Has varpool node linking happened at this point? If not, the new code here is not excersised. http://codereview.appspot.com/4798045/diff/1/ipa.c#newcode1041 ipa.c:1041: vnode->externally_visible = false; Better to add a simple loop after varpool_node_linking to merge the attribute in l-ipo.c assuming the linking happens after local visibility pass. http://codereview.appspot.com/4798045/