summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/include/bits/c++config
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libstdc++/include/bits/c++config')
-rw-r--r--contrib/libstdc++/include/bits/c++config12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/libstdc++/include/bits/c++config b/contrib/libstdc++/include/bits/c++config
index d5bf458..831d35e 100644
--- a/contrib/libstdc++/include/bits/c++config
+++ b/contrib/libstdc++/include/bits/c++config
@@ -34,7 +34,7 @@
#include <bits/os_defines.h>
// The current version of the C++ library in compressed ISO date format.
-#define __GLIBCPP__ 20020513
+#define __GLIBCPP__ 20020831
// This is necessary until GCC supports separate template
// compilation.
@@ -69,7 +69,15 @@
// that threads are properly configured on your platform before
// assigning blame to the STL container-memory allocator. After doing
// so, please report any possible issues to libstdc++@gcc.gnu.org .
-// Do not blindly #define __USE_MALLOC here or on the command line.
+// Do not define __USE_MALLOC on the command line. Enforce it here:
+#ifdef __USE_MALLOC
+#error __USE_MALLOC should only be defined within \
+libstdc++-v3/include/bits/c++config before full recompilation of the library.
+#endif
+// Define __USE_MALLOC after this point in the file in order to aid debugging
+// or globally change allocation policy. This breaks the ABI, thus
+// completely recompile the library. A patch to better support
+// changing the global allocator policy would be probably be accepted.
// The remainder of the prewritten config is mostly automatic; all the
// user hooks are listed above.
OpenPOWER on IntegriCloud