Anything that's in this file that starts with __ is private to the
FreeBSD tree, so remove the obsolete ones:
GNUCLIKE_ASM
GNUCLIKE_MATH_BUILTIN_CONSTANTS
GNUCLIKE_TYPEOF
GNUCLIKE_SECTION
GNUCLIKE_CTOR_SECTION_HANDLING
GNUCLIKE_BUILTIN_CONSTANT_P
GNUCLIKE_BUILTIN_VARARGS
GNUCLIKE_BUILTIN_STDARG
GNUCLIKE_BUILTIN_VAALIST
GNUC_VA_LIST_COMPATIBILITY
GNUCLIKE_BUILTIN_NEXT_ARG
GNUCLIKE_MATH_BUILTIN_RELOPS
GNUCLIKE_BUILTIN_MEMCPY
CC_SUPPORTS_INLINE
CC_SUPPORTS_INLINE
CC_SUPPORTS_INLINE__
CC_SUPPORTS_FUNC__
CC_SUPPORTS_WARNING
CC_SUPPORTS_VARADIC_XXX
__CC_SUPPORTS_DYNAMIC_ARRAY_INIT
Assume that the compiler we're using support gnuc constructs >= gcc 6,
so simplify ancient support there. Unifdef the above in the code since
they were always defined, but sys/cdefs.h is the only place that
remained. clang supports all these constructs for all interesting
versions of clang.
There are some __ symbols that may be in use by external software, so
don't retire const, etc for now. Unconditionally define some of
them. They might be used outside of the tree which might break the other
compiler (those that don't define GNUC__) support that works today. If
there's actaully any of these users out there, I'll cope.
Sponsored by: Netflix