Remove checks for __GNUCLIKE macros for varargs.

All supported compilers (modern versions of GCC and clang) support
these.

PR:		263102 (exp-run)
Reviewed by:	brooks, imp
Differential Revision:	https://reviews.freebsd.org/D34800
This commit is contained in:
John Baldwin 2022-04-12 10:06:00 -07:00
parent 9f92ef766a
commit b8717a8709
2 changed files with 1 additions and 8 deletions

View File

@ -41,7 +41,6 @@
typedef __va_list va_list;
#endif
#ifdef __GNUCLIKE_BUILTIN_STDARG
#define va_start(ap, last) __builtin_va_start((ap), (last))
#define va_arg(ap, type) __builtin_va_arg((ap), type)
#define __va_copy(dest, src) __builtin_va_copy((dest), (src))
@ -49,6 +48,5 @@
#define va_copy(dest, src) __va_copy(dest, src)
#endif
#define va_end(ap) __builtin_va_end(ap)
#endif
#endif /* ! _SYS__STDARG_H_ */

View File

@ -208,13 +208,8 @@ typedef __uintmax_t __rman_res_t;
* Types for varargs. These are all provided by builtin types these
* days, so centralize their definition.
*/
#ifdef __GNUCLIKE_BUILTIN_VARARGS
typedef __builtin_va_list __va_list; /* internally known to gcc */
#else
#error "No support for your compiler for stdargs"
#endif
#if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \
&& !defined(__NO_GNUC_VA_LIST)
#if !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/
#endif