[llvm-commits] CVS: llvm/include/llvm/Support/MallocAllocator.h

John Criswell criswell at cs.uiuc.edu
Thu Oct 28 11:21:55 PDT 2004



Changes in directory llvm/include/llvm/Support:

MallocAllocator.h updated: 1.9 -> 1.10
---
Log message:

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.


---
Diffs of the changes:  (+7 -1)

Index: llvm/include/llvm/Support/MallocAllocator.h
diff -u llvm/include/llvm/Support/MallocAllocator.h:1.9 llvm/include/llvm/Support/MallocAllocator.h:1.10
--- llvm/include/llvm/Support/MallocAllocator.h:1.9	Thu Oct 28 12:31:46 2004
+++ llvm/include/llvm/Support/MallocAllocator.h	Thu Oct 28 13:21:41 2004
@@ -72,7 +72,13 @@
 }
 } // 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<typename Type, typename Type2>
   struct _Alloc_traits<Type, ::llvm::MallocAllocator<Type2> > {






More information about the llvm-commits mailing list