https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110060
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the other thing that is going wrong is the addition of the optimizer hints is causing things like std::vector<T>::size no longer to be inlined. because the TU size has increased and we start hitting the TU size limit. This is why -O3 does not warn either.