aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer/interception
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-11-21 16:55:01 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2024-11-22 08:52:44 -0800
commitcdd7171a6b0bc1570659afa4ee8a10fe6b894993 (patch)
tree78b1a1b366a00de8db24f275f65a165cf7a1f3cd /libsanitizer/interception
parenteeff504238aeb4a9a20a9e445307b6773adb6f01 (diff)
downloadgcc-cdd7171a6b0bc1570659afa4ee8a10fe6b894993.zip
gcc-cdd7171a6b0bc1570659afa4ee8a10fe6b894993.tar.gz
gcc-cdd7171a6b0bc1570659afa4ee8a10fe6b894993.tar.bz2
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_apinski@quicinc.com>
Diffstat (limited to 'libsanitizer/interception')
-rw-r--r--libsanitizer/interception/Makefile.am2
-rw-r--r--libsanitizer/interception/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsanitizer/interception/Makefile.am b/libsanitizer/interception/Makefile.am
index f7013b4..3adf0e8 100644
--- a/libsanitizer/interception/Makefile.am
+++ b/libsanitizer/interception/Makefile.am
@@ -6,7 +6,7 @@ gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros
AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
-AM_CXXFLAGS += -std=gnu++14
+AM_CXXFLAGS += -std=gnu++17
AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
AM_CCASFLAGS = $(EXTRA_ASFLAGS)
ACLOCAL_AMFLAGS = -I m4
diff --git a/libsanitizer/interception/Makefile.in b/libsanitizer/interception/Makefile.in
index 2d807c9..5a50f72 100644
--- a/libsanitizer/interception/Makefile.in
+++ b/libsanitizer/interception/Makefile.in
@@ -341,7 +341,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
-Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti \
-fomit-frame-pointer -funwind-tables -fvisibility=hidden \
-Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \
- -std=gnu++14 $(EXTRA_CXXFLAGS)
+ -std=gnu++17 $(EXTRA_CXXFLAGS)
AM_CCASFLAGS = $(EXTRA_ASFLAGS)
ACLOCAL_AMFLAGS = -I m4
noinst_LTLIBRARIES = libinterception.la