https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117731
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:cdd7171a6b0bc1570659afa4ee8a10fe6b894993 commit r15-5592-gcdd7171a6b0bc1570659afa4ee8a10fe6b894993 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Thu Nov 21 16:55:01 2024 -0800 libsanitizer: Move language level from gnu++14 to gnu++17 While compiling libsanitizer for aarch64-linux-gnu, I noticed the new warning: ``` ../../../../libsanitizer/asan/asan_interceptors.cpp: In function âchar* ___interceptor_strcpy(char*, const char*)â: ../../../../libsanitizer/asan/asan_interceptors.cpp:554:6: warning: âif constexprâ only available with â-std=c++17â or â-std=gnu++17â [-Wc++17-extensions] 554 | if constexpr (SANITIZER_APPLE) { | ^~~~~~~~~ ``` So compile-rt upstream compiles this as gnu++17 (the current defualt for clang), so let's update it to be similar. Build and tested on aarch64-linux-gnu. PR sanitizer/117731 libsanitizer/ChangeLog: * asan/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * asan/Makefile.in: Regenerate. * hwasan/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * hwasan/Makefile.in: Regenerate. * interception/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * interception/Makefile.in: Regenerate. * libbacktrace/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * libbacktrace/Makefile.in (AM_CXXFLAGS): Regenerate. * lsan/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * lsan/Makefile.in: Regenerate. * sanitizer_common/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * sanitizer_common/Makefile.in: Regenerate. * tsan/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * tsan/Makefile.in: Regenerate. * ubsan/Makefile.am (AM_CXXFLAGS): Replace gnu++14 with gnu++17. * ubsan/Makefile.in: Regenerate. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>