https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86450
--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> --- For libstdc++ the default (without --enable-werror or --disable-werror) is to add $(WERROR_FLAG) to WARN_FLAGS. WERROR_FLAG is empty by default, but contains -Werror for maintainer mode. So if you use --enable-maintainer-mode --disable-werror then -Werror won't be added to the libstdc++ flags. Is that an acceptable workaround for now? No code changes required. When I'm back from holiday I'll look into the libstdc++ warning flags and determine why -Wabi was added and how to make it actually work as intended.