From 9ba883c22f6203aae85a4edea3d69748181b5844 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Thu, 28 Oct 2004 18:21:41 +0000 Subject: [PATCH] Commented out the _Alloc_traits specialization entirely, as it is only supported by specific versions of GCC. It is left in place in case anyone wants to updated it for GCC 3.4 or re-use it for earlier versions of GCC where it works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17324 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/MallocAllocator.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/llvm/Support/MallocAllocator.h b/include/llvm/Support/MallocAllocator.h index 18ec611e1f7..ae3dbace05a 100644 --- a/include/llvm/Support/MallocAllocator.h +++ b/include/llvm/Support/MallocAllocator.h @@ -72,7 +72,13 @@ inline bool operator!=(const MallocAllocator&, const MallocAllocator&) { } } // End llvm namespace -#if defined(__linux__) && !(defined (sparc) || defined (_sparc)) +/* + * This specialization was used for optimization earlier, but doesn't appear + * to work with newer versions of GCC, Linux or otherwise. + * + * This can be re-enabled if desired, but by default, it won't be included. + */ +#if 0 namespace std { template struct _Alloc_traits > { -- 2.34.1