From 4f57a126c4e763e3041c04f0b22e91200506dcc6 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 2 Sep 2020 12:29:42 -0400 Subject: [PATCH] [libc++] Remove definition of _LIBCPP_ALIGNOF for GCC in C++03 mode That definition is known to be potentially incorrect, and we don't support GCC in C++03 mode anyway. --- libcxx/include/__config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libcxx/include/__config b/libcxx/include/__config index 3e64694f284b..17e6bfe207aa 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -398,9 +398,7 @@ #elif defined(_LIBCPP_COMPILER_CLANG) # define _LIBCPP_ALIGNOF(_Tp) _Alignof(_Tp) #else -// This definition is potentially buggy, but it's only taken with GCC in C++03, -// which we barely support anyway. See llvm.org/PR39713 -# define _LIBCPP_ALIGNOF(_Tp) __alignof(_Tp) +# error "We don't know a correct way to implement alignof(T) in C++03 outside of Clang" #endif #define _LIBCPP_PREFERRED_ALIGNOF(_Tp) __alignof(_Tp)