diff options
Diffstat (limited to 'base/compiler_specific.h')
-rw-r--r-- | base/compiler_specific.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/base/compiler_specific.h b/base/compiler_specific.h index 358a5c9ca3..c2a02dee01 100644 --- a/base/compiler_specific.h +++ b/base/compiler_specific.h @@ -85,9 +85,6 @@ // ALLOW_UNUSED_LOCAL(x); #define ALLOW_UNUSED_LOCAL(x) false ? (void)x : (void)0 -// Used for Arc++ where -Wno-unused-parameter is used. -#define ALLOW_UNUSED_PARAM(x) false ? (void)x : (void)0 - // Annotate a typedef or function indicating it's ok if it's not used. // Use like: // typedef Foo Bar ALLOW_UNUSED_TYPE; @@ -108,14 +105,6 @@ #define NOINLINE #endif -#if COMPILER_GCC && defined(NDEBUG) -#define ALWAYS_INLINE inline __attribute__((__always_inline__)) -#elif COMPILER_MSVC && defined(NDEBUG) -#define ALWAYS_INLINE __forceinline -#else -#define ALWAYS_INLINE inline -#endif - // Specify memory alignment for structs, classes, etc. // Use like: // class ALIGNAS(16) MyClass { ... } @@ -165,16 +154,6 @@ // If available, it would look like: // __attribute__((format(wprintf, format_param, dots_param))) -// Sanitizers annotations. -#if defined(__has_attribute) -#if __has_attribute(no_sanitize) -#define NO_SANITIZE(what) __attribute__((no_sanitize(what))) -#endif -#endif -#if !defined(NO_SANITIZE) -#define NO_SANITIZE(what) -#endif - // MemorySanitizer annotations. #if defined(MEMORY_SANITIZER) && !defined(OS_NACL) #include <sanitizer/msan_interface.h> @@ -195,15 +174,6 @@ #define MSAN_CHECK_MEM_IS_INITIALIZED(p, size) #endif // MEMORY_SANITIZER -// DISABLE_CFI_PERF -- Disable Control Flow Integrity for perf reasons. -#if !defined(DISABLE_CFI_PERF) -#if defined(__clang__) && defined(OFFICIAL_BUILD) -#define DISABLE_CFI_PERF __attribute__((no_sanitize("cfi"))) -#else -#define DISABLE_CFI_PERF -#endif -#endif - // Macro useful for writing cross-platform function pointers. #if !defined(CDECL) #if defined(OS_WIN) @@ -222,14 +192,6 @@ #endif // defined(COMPILER_GCC) #endif // !defined(UNLIKELY) -#if !defined(LIKELY) -#if defined(COMPILER_GCC) -#define LIKELY(x) __builtin_expect(!!(x), 1) -#else -#define LIKELY(x) (x) -#endif // defined(COMPILER_GCC) -#endif // !defined(LIKELY) - // Compiler feature-detection. // clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension #if defined(__has_feature) |