[Bug lto/88297] [9 Regression] Assembler Error: symbol `_Z41__static_initialization_and_destruction_0ii.constprop.0' is already defined

michael.ploujnikov at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 3 18:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88297

--- Comment #5 from michael.ploujnikov at oracle dot com ---
(In reply to Richard Biener from comment #3)
> So before the patch we were just lucky, right?  When seeing the patches I
> wondered whether we instead want to add a clone_count member to cgraph_node
> (which we could stream) and use that for the .NUM suffix.  We alread have
> it (sort-of) if we walk the clones list and do counting, right?

But the root of the problem is that multiple different cgraph_nodes share the
same name, so even if two or more nodes like that have counters == 0 we would
get the same conflict. Unless it's always the case that the additional
cgraph_nodes with the same decl name are made as copies of the original one and
their counter values are copied as well - I'm not sure if things actually work
like that, I'm just guessing...


More information about the Gcc-bugs mailing list