summaryrefslogtreecommitdiffstats
path: root/mysql-5.5-strmov.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-02-10 13:51:09 +0100
committerRemi Collet <fedora@famillecollet.com>2011-02-10 13:51:09 +0100
commit0fc48141027baeee1d6fe3c97495b3d2a7c38cba (patch)
treeb8457602593c48c54522d4099f118f778c8a0bcb /mysql-5.5-strmov.patch
parent735c35eac02b867da0085a9ed1e6e042c43361f8 (diff)
move mysql 5.5 stuff to new dir
Diffstat (limited to 'mysql-5.5-strmov.patch')
-rw-r--r--mysql-5.5-strmov.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/mysql-5.5-strmov.patch b/mysql-5.5-strmov.patch
deleted file mode 100644
index 3d8ccec..0000000
--- a/mysql-5.5-strmov.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-Remove overly optimistic definition of strmov() as stpcpy().
-
-mysql uses this macro with overlapping source and destination strings,
-which is verboten per spec, and fails on some Red Hat platforms.
-Deleting the definition is sufficient to make it fall back to a
-byte-at-a-time copy loop, which should consistently give the
-expected behavior.
-
-Note: the particular case that prompted this patch is reported and fixed
-at http://bugs.mysql.com/bug.php?id=48864. However, my faith in upstream's
-ability to detect this type of error is low, and I also see little evidence
-of any real performance gain from optimizing these calls. So I'm keeping
-this patch.
-
-
-diff -Naur mysql-5.5.8.orig/include/m_string.h mysql-5.5.8/include/m_string.h
---- mysql-5.5.8.orig/include/m_string.h 2010-12-03 12:58:24.000000000 -0500
-+++ mysql-5.5.8/include/m_string.h 2010-12-20 21:39:13.905186372 -0500
-@@ -74,15 +74,6 @@
- extern void *(*my_str_malloc)(size_t);
- extern void (*my_str_free)(void *);
-
--#if defined(HAVE_STPCPY) && MY_GNUC_PREREQ(3, 4) && !defined(__INTEL_COMPILER)
--#define strmov(A,B) __builtin_stpcpy((A),(B))
--#elif defined(HAVE_STPCPY)
--#define strmov(A,B) stpcpy((A),(B))
--#ifndef stpcpy
--extern char *stpcpy(char *, const char *); /* For AIX with gcc 2.95.3 */
--#endif
--#endif
--
- /* Declared in int2str() */
- extern char _dig_vec_upper[];
- extern char _dig_vec_lower[];