From: John Criswell Date: Thu, 28 Oct 2004 18:21:41 +0000 (+0000) Subject: Commented out the _Alloc_traits specialization entirely, as it is only X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9ba883c22f6203aae85a4edea3d69748181b5844;p=oota-llvm.git 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 --- 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 > {