https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113807
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:e1729eb80489e6c8e03d7c9a072736350407c7f4 commit r15-2653-ge1729eb80489e6c8e03d7c9a072736350407c7f4 Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu Feb 8 15:46:08 2024 +0000 libstdc++: Use memcmp to optimize std::bitset::_M_is_equal() [PR113807] As noted in the PR the compiler doesn't seem able to do this on its own, so we get better code at all optimization levels by using memcmp. libstdc++-v3/ChangeLog: PR libstdc++/113807 * include/std/bitset (bitset::_M_is_equal()): Use memcmp to optimize operator==.