mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 02:44:18 +08:00
cdd7171a6b
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_apinski@quicinc.com> |
||
---|---|---|
.. | ||
libtool-version | ||
Makefile.am | ||
Makefile.in | ||
ubsan_checks.inc | ||
ubsan_diag_standalone.cpp | ||
ubsan_diag.cpp | ||
ubsan_diag.h | ||
ubsan_flags.cpp | ||
ubsan_flags.h | ||
ubsan_flags.inc | ||
ubsan_handlers_cxx.cpp | ||
ubsan_handlers_cxx.h | ||
ubsan_handlers.cpp | ||
ubsan_handlers.h | ||
ubsan_init_standalone_preinit.cpp | ||
ubsan_init_standalone.cpp | ||
ubsan_init.cpp | ||
ubsan_init.h | ||
ubsan_interface.inc | ||
ubsan_monitor.cpp | ||
ubsan_monitor.h | ||
ubsan_platform.h | ||
ubsan_signals_standalone.cpp | ||
ubsan_signals_standalone.h | ||
ubsan_type_hash_itanium.cpp | ||
ubsan_type_hash_win.cpp | ||
ubsan_type_hash.cpp | ||
ubsan_type_hash.h | ||
ubsan_value.cpp | ||
ubsan_value.h | ||
ubsan_win_runtime_thunk.cpp |