From a83d4fe9cbc51adcefb8a1070374186f3399fef4 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 20 Nov 2023 15:40:55 -0700 Subject: [PATCH] cdefs: Remove some builtin defines, they are unused Remove __GNUCLIKE_BUILTIN_NEXT_ARG, __GNUCLIKE_MATH_BUILTIN_RELOPS, __GNUCLIKE_BUILTIN_MEMCPY: they are unused. Also remove them from the generated cryptodevh.py script. PR: 275221 (exp-run) Sponsored by: Netflix --- sys/sys/cdefs.h | 5 ----- tests/sys/opencrypto/cryptodevh.py | 2 -- 2 files changed, 7 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index f93a70245e5..5782735187c 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -79,11 +79,6 @@ */ #define __compiler_membar() __asm __volatile(" " : : : "memory") -#define __GNUCLIKE_BUILTIN_NEXT_ARG 1 -#define __GNUCLIKE_MATH_BUILTIN_RELOPS - -#define __GNUCLIKE_BUILTIN_MEMCPY 1 - /* XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced */ #define __CC_SUPPORTS_INLINE 1 #define __CC_SUPPORTS___INLINE 1 diff --git a/tests/sys/opencrypto/cryptodevh.py b/tests/sys/opencrypto/cryptodevh.py index 79af275ce34..d6982c26f1c 100644 --- a/tests/sys/opencrypto/cryptodevh.py +++ b/tests/sys/opencrypto/cryptodevh.py @@ -23,8 +23,6 @@ def __has_include(x): return 0 def __has_builtin(x): return 0 -__GNUCLIKE_BUILTIN_NEXT_ARG = 1 -__GNUCLIKE_BUILTIN_MEMCPY = 1 __CC_SUPPORTS_INLINE = 1 __CC_SUPPORTS___INLINE = 1 __CC_SUPPORTS___INLINE__ = 1