[Bug libstdc++/105810] __glibcxx_assert can be improved greatly.

unlvsur at live dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 8 08:58:37 GMT 2022


--- Comment #10 from cqwrteur <unlvsur at live dot com> ---
(In reply to Jonathan Wakely from comment #7)
> Right, but that function doesn't even exist today, so there's nothing to
> merge today. This change adds new symbols (one for every assertion in the
> library) which must be assembled and then merged by the linker.
> I'm just not sure why you're pointing this out in comment 4 like it's an
> advantage of the change. Of course there's only one copy of the function,
> otherwise it would be an ODR violation, or a linker error. But it's still
> one more function for every assertion in the library.

I am not saying "merging my code", I am saying the compiler would only emit
once. Not merging my code into libstdc++ something like that.

More information about the Gcc-bugs mailing list