From: tedu Date: Mon, 29 May 2017 12:12:35 +0000 (+0000) Subject: clang has builtin_memmove. ok deraadt X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0c715902aeffa9c6afdcb10abd5d9ff0b1eb4d61;p=openbsd clang has builtin_memmove. ok deraadt --- diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 4d2b9395535..5b9dfddceee 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: systm.h,v 1.130 2017/05/18 09:15:16 kettenis Exp $ */ +/* $OpenBSD: systm.h,v 1.131 2017/05/29 12:12:35 tedu Exp $ */ /* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */ /*- @@ -341,10 +341,12 @@ extern int (*mountroot)(void); #define memcmp(b1, b2, n) __builtin_memcmp((b1), (b2), (n)) #define memcpy(d, s, n) __builtin_memcpy((d), (s), (n)) #define memset(b, c, n) __builtin_memset((b), (c), (n)) +#if (defined(__GNUC__) && __GNUC__ >= 4) +#define memmove(d, s, n) __builtin_memmove((d), (s), (n)) +#endif #if !defined(__clang__) && (defined(__GNUC__) && __GNUC__ >= 4) #define bcmp(b1, b2, n) __builtin_bcmp((b1), (b2), (n)) #define bcopy(s, d, n) __builtin_bcopy((s), (d), (n)) -#define memmove(d, s, n) __builtin_memmove((d), (s), (n)) #endif #if defined(DDB)