Author: rsmith Date: Mon Oct 10 01:55:42 2016 New Revision: 283724 URL: http://llvm.org/viewvc/llvm-project?rev=283724&view=rev Log: Mark aligned allocation as done.
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp cfe/trunk/test/Lexer/cxx-features.cpp cfe/trunk/www/cxx_status.html Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=283724&r1=283723&r2=283724&view=diff ============================================================================== --- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original) +++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Mon Oct 10 01:55:42 2016 @@ -510,7 +510,6 @@ static void InitializeCPlusPlusFeatureTe if (LangOpts.CPlusPlus1z) { Builder.defineMacro("__cpp_hex_float", "201603"); Builder.defineMacro("__cpp_inline_variables", "201606"); - //Builder.defineMacro("__cpp_aligned_new", "201606"); //Builder.defineMacro("__cpp_noexcept_function_type", "201510"); Builder.defineMacro("__cpp_capture_star_this", "201603"); Builder.defineMacro("__cpp_if_constexpr", "201606"); @@ -522,6 +521,8 @@ static void InitializeCPlusPlusFeatureTe Builder.defineMacro("__cpp_nontype_template_args", "201411"); Builder.defineMacro("__cpp_fold_expressions", "201603"); } + if (LangOpts.AlignedAllocation) + Builder.defineMacro("__cpp_aligned_new", "201606"); // TS features. if (LangOpts.ConceptsTS) Modified: cfe/trunk/test/Lexer/cxx-features.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/cxx-features.cpp?rev=283724&r1=283723&r2=283724&view=diff ============================================================================== --- cfe/trunk/test/Lexer/cxx-features.cpp (original) +++ cfe/trunk/test/Lexer/cxx-features.cpp Mon Oct 10 01:55:42 2016 @@ -30,8 +30,7 @@ #error "wrong value for __cpp_inline_variables" #endif -#if check(aligned_new, 0, 0, 0, 0) // FIXME: provisional name -// FIXME: value shuld be 201606 for cxx1z once implemented +#if check(aligned_new, 0, 0, 0, 201606) // FIXME: provisional name #error "wrong value for __cpp_aligned_new" #endif Modified: cfe/trunk/www/cxx_status.html URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_status.html?rev=283724&r1=283723&r2=283724&view=diff ============================================================================== --- cfe/trunk/www/cxx_status.html (original) +++ cfe/trunk/www/cxx_status.html Mon Oct 10 01:55:42 2016 @@ -679,7 +679,7 @@ as the draft C++1z standard evolves. <tr> <td>Dynamic memory allocation for over-aligned data</td> <td><a href="http://wg21.link/p0035r4">P0035R4</a></td> - <td class="none" align="center">No</td> + <td class="svn" align="center">SVN</td> </tr> <tr> <td>Template argument deduction for class templates</td> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits