Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/cdefs.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
/* | /* | ||||
* This code has been put in place to help reduce the addition of | * This code has been put in place to help reduce the addition of | ||||
* compiler specific defines in FreeBSD code. It helps to aid in | * compiler specific defines in FreeBSD code. It helps to aid in | ||||
* having a compiler-agnostic source tree. | * having a compiler-agnostic source tree. | ||||
*/ | */ | ||||
#if defined(__GNUC__) | #if defined(__GNUC__) | ||||
imp: This opens the block... | |||||
#if __GNUC__ >= 3 | #if __GNUC__ >= 3 | ||||
#define __GNUCLIKE_ASM 3 | #define __GNUCLIKE_ASM 3 | ||||
#define __GNUCLIKE_MATH_BUILTIN_CONSTANTS | #define __GNUCLIKE_MATH_BUILTIN_CONSTANTS | ||||
#else | #else | ||||
#define __GNUCLIKE_ASM 2 | #define __GNUCLIKE_ASM 2 | ||||
#endif | #endif | ||||
#define __GNUCLIKE___TYPEOF 1 | #define __GNUCLIKE___TYPEOF 1 | ||||
#define __GNUCLIKE___SECTION 1 | #define __GNUCLIKE___SECTION 1 | ||||
#define __GNUCLIKE_CTOR_SECTION_HANDLING 1 | #define __GNUCLIKE_CTOR_SECTION_HANDLING 1 | ||||
#define __GNUCLIKE_BUILTIN_CONSTANT_P 1 | #define __GNUCLIKE_BUILTIN_CONSTANT_P 1 | ||||
#if (__GNUC_MINOR__ > 95 || __GNUC__ >= 3) | #if (__GNUC_MINOR__ > 95 || __GNUC__ >= 3) | ||||
#define __GNUCLIKE_BUILTIN_VARARGS 1 | #define __GNUCLIKE_BUILTIN_VARARGS 1 | ||||
#define __GNUCLIKE_BUILTIN_STDARG 1 | #define __GNUCLIKE_BUILTIN_STDARG 1 | ||||
#define __GNUCLIKE_BUILTIN_VAALIST 1 | #define __GNUCLIKE_BUILTIN_VAALIST 1 | ||||
#endif | #endif | ||||
#if defined(__GNUC__) | |||||
#define __GNUC_VA_LIST_COMPATIBILITY 1 | #define __GNUC_VA_LIST_COMPATIBILITY 1 | ||||
#endif | |||||
/* | /* | ||||
* Compiler memory barriers, specific to gcc and clang. | * Compiler memory barriers, specific to gcc and clang. | ||||
*/ | */ | ||||
#if defined(__GNUC__) | |||||
#define __compiler_membar() __asm __volatile(" " : : : "memory") | #define __compiler_membar() __asm __volatile(" " : : : "memory") | ||||
#endif | |||||
#define __GNUCLIKE_BUILTIN_NEXT_ARG 1 | #define __GNUCLIKE_BUILTIN_NEXT_ARG 1 | ||||
#define __GNUCLIKE_MATH_BUILTIN_RELOPS | #define __GNUCLIKE_MATH_BUILTIN_RELOPS | ||||
#define __GNUCLIKE_BUILTIN_MEMCPY 1 | #define __GNUCLIKE_BUILTIN_MEMCPY 1 | ||||
/* XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced */ | /* XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced */ | ||||
#define __CC_SUPPORTS_INLINE 1 | #define __CC_SUPPORTS_INLINE 1 | ||||
#define __CC_SUPPORTS___INLINE 1 | #define __CC_SUPPORTS___INLINE 1 | ||||
#define __CC_SUPPORTS___INLINE__ 1 | #define __CC_SUPPORTS___INLINE__ 1 | ||||
#define __CC_SUPPORTS___FUNC__ 1 | #define __CC_SUPPORTS___FUNC__ 1 | ||||
#define __CC_SUPPORTS_WARNING 1 | #define __CC_SUPPORTS_WARNING 1 | ||||
#define __CC_SUPPORTS_VARADIC_XXX 1 /* see varargs.h */ | #define __CC_SUPPORTS_VARADIC_XXX 1 /* see varargs.h */ | ||||
#define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1 | #define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1 | ||||
#endif /* __GNUC__ */ | #endif /* __GNUC__ */ | ||||
impAuthorUnsubmitted Done Inline ActionsThis closes the block.... imp: This closes the block....
| |||||
/* | /* | ||||
* Macro to test if we're using a specific version of gcc or later. | * Macro to test if we're using a specific version of gcc or later. | ||||
*/ | */ | ||||
#if defined(__GNUC__) | #if defined(__GNUC__) | ||||
#define __GNUC_PREREQ__(ma, mi) \ | #define __GNUC_PREREQ__(ma, mi) \ | ||||
(__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi)) | (__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi)) | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 783 Lines • Show Last 20 Lines |
This opens the block...