[Bug libstdc++/105810] New: __glibcxx_assert can be improved greatly.
unlvsur at live dot com
Wed Jun 1 21:31:28 GMT 2022
Bug ID: 105810
Summary: __glibcxx_assert can be improved greatly.
Assignee: unassigned at gcc dot gnu.org
Reporter: unlvsur at live dot com
Target Milestone: ---
Every function call has to carry the call which adds a burden. With -Os the
function does not even get expanded. The operator becomes extremely
The situation might get worse when compiling with -fPIC since load/store data
from %rip register needs more instructions.
It can be improved to something like this. Put all the file, line, and
condition information into a separate function. Since the function is an inline
function, the entire program only holds one copy of the debugging information.
Unfortunately, GCC got ICE. I have submitted the bug report to fix that.
More information about the Gcc-bugs