Even when using __builtin_memcmp, gcc may emit external references to
memcmp (when not optimizing for instance), so this #define does not
always provide a completely suitable memcmp().
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
#endif
#ifndef __HAVE_ARCH_MEMCMP
+#undef memcmp
/**
* memcmp - Compare two areas of memory
* @cs: One area of memory
#define __HAVE_ARCH_MEMMOVE
extern void *memmove(void *dest, const void *src, size_t n);
-#define __HAVE_ARCH_MEMCMP
+/* Some versions of gcc emit references to memcmp despite this macro defn. */
+/*#define __HAVE_ARCH_MEMCMP*/
#define memcmp __builtin_memcmp
static inline void *__memset_generic(void *s, char c, size_t count)