[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h

Chris Lattner lattner at cs.uiuc.edu
Mon Apr 5 11:38:41 PDT 2004


Changes in directory llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl:

handy.h updated: 1.1 -> 1.2

---
Log message:

Finally, fix the last perl bug that prevented it from working with LLVM:
  No, memcpy is NOT allowed when the src & dest overlap!


---
Diffs of the changes:  (+6 -2)

Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h:1.1	Tue Feb 17 16:21:16 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h	Mon Apr  5 11:35:52 2004
@@ -1,4 +1,4 @@
-/* $Header: /home/vadve/shared/PublicCVS/llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h,v 1.1 2004/02/17 22:21:16 criswell Exp $
+/* $Header: /home/vadve/shared/PublicCVS/llvm/test/Programs/MultiSource/Benchmarks/MallocBench/perl/handy.h,v 1.2 2004/04/05 16:35:52 lattner Exp $
  *
  *    Copyright (c) 1989, Larry Wall
  *
@@ -6,6 +6,10 @@
  *    as specified in the README file that comes with the perl 3.0 kit.
  *
  * $Log: handy.h,v $
+ * Revision 1.2  2004/04/05 16:35:52  lattner
+ * Finally, fix the last perl bug that prevented it from working with LLVM:
+ *   No, memcpy is NOT allowed when the src & dest overlap!
+ *
  * Revision 1.1  2004/02/17 22:21:16  criswell
  * Initial commit of the perl Malloc Benchmark.  I've cheated a little by
  * generating the yacc output files and committing them directly, but it was
@@ -108,7 +112,7 @@
 long xcount[MAXXCOUNT];
 long lastxcount[MAXXCOUNT];
 #endif /* LEAKTEST */
-#define Copy(s,d,n,t) (void)bcopy((char*)(s),(char*)(d), (n) * sizeof(t))
+#define Copy(s,d,n,t) (void)memmove((char*)(d),(char*)(s), (n) * sizeof(t))
 #define Zero(d,n,t) (void)bzero((char*)(d), (n) * sizeof(t))
 #else /* lint */
 #define New(x,v,n,s) (v = Null(s *))





More information about the llvm-commits mailing list