https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380
--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Ah, thanks! The patch fixed as in coment #10 is OK for mainline. We obviously should not try to do any merging of external symbols; it is pointless. We only want to calculate equivalences on these to merge non-externals referencing them. Patch is OK with the fixes and testcase.