From: Jason Merrill Date: Thu, 10 Dec 2020 16:21:50 +0000 (-0500) Subject: c++: Update value of __cplusplus for C++20. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=445430e16bd08ade34637d2346ded40dd49de508;p=gcc.git c++: Update value of __cplusplus for C++20. It's past time to update this macro to the specified value for C++20. libcpp/ChangeLog: * init.c (cpp_init_builtins): Update __cplusplus for C++20. --- diff --git a/libcpp/init.c b/libcpp/init.c index f77dc26a003..7987798afbe 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -542,7 +542,7 @@ cpp_init_builtins (cpp_reader *pfile, int hosted) { if (CPP_OPTION (pfile, lang) == CLK_CXX20 || CPP_OPTION (pfile, lang) == CLK_GNUCXX20) - _cpp_define_builtin (pfile, "__cplusplus 201709L"); + _cpp_define_builtin (pfile, "__cplusplus 202002L"); else if (CPP_OPTION (pfile, lang) == CLK_CXX17 || CPP_OPTION (pfile, lang) == CLK_GNUCXX17) _cpp_define_builtin (pfile, "__cplusplus 201703L");