[libcxx] r280585 - memory_resource still needs init_priority when built with GCC 4.9
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 3 00:05:40 PDT 2016
Author: ericwf
Date: Sat Sep 3 02:05:40 2016
New Revision: 280585
URL: http://llvm.org/viewvc/llvm-project?rev=280585&view=rev
Log:
memory_resource still needs init_priority when built with GCC 4.9
Modified:
libcxx/trunk/src/experimental/memory_resource.cpp
Modified: libcxx/trunk/src/experimental/memory_resource.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/experimental/memory_resource.cpp?rev=280585&r1=280584&r2=280585&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/memory_resource.cpp (original)
+++ libcxx/trunk/src/experimental/memory_resource.cpp Sat Sep 3 02:05:40 2016
@@ -72,10 +72,8 @@ union ResourceInitHelper {
// Only in C++11 is "init_priority" needed to ensure initialization order.
#if _LIBCPP_STD_VER > 11
_LIBCPP_SAFE_STATIC
-#else
- __attribute__((init_priority (101)))
#endif
-ResourceInitHelper res_init;
+ResourceInitHelper res_init __attribute__((init_priority (101)));
} // end namespace
More information about the cfe-commits
mailing list