https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:ae5112f230f05e8a693931a44bf2fd20bef58f85 commit r11-10792-gae5112f230f05e8a693931a44bf2fd20bef58f85 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Tue Jul 20 14:00:38 2021 +0100 c++tools, configury: Configure with C++; test checking status [PR98821]. The c++tools configure fragments need to be built with a C++ compiler. In addition, the stand-alone server uses diagnostic mechanisms in common with GCC, but needs to define implementations for gcc_assert and supporting output functions. Signed-off-by: Iain Sandoe <i...@sandoe.co.uk> PR c++/98821 - modules : c++tools configures with CC but code fragments assume CXX. PR c++/98821 c++tools/ChangeLog: * config.h.in: Regenerate. * configure: Regenerate. * configure.ac: Configure using C++. Pull logic to detect enabled checking modes; default to release checking. * server.cc (AI_NUMERICSERV): Define a fallback value. (gcc_assert): New. (gcc_unreachable): New. (fancy_abort): Only build when checking is enabled. Co-authored-by: Jakub Jelinek <ja...@redhat.com> (cherry picked from commit e4d306cf706eef83f99d510c308eda1539d05875)