summaryrefslogtreecommitdiff
path: root/base/compiler_specific.h
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2017-07-26 20:29:06 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-26 20:29:06 +0000
commit38bc769bac923a216e9381d720ba730bd7b2f5ef (patch)
tree0987cb51d27d74f7ff76c75683d6b504bac0e6d4 /base/compiler_specific.h
parenta29e6994243913703862fdbe17c059150c9ae149 (diff)
parent54cfa4a2bacc9c43b06c1582d929da42bb165100 (diff)
downloadlibchrome-38bc769bac923a216e9381d720ba730bd7b2f5ef.tar.gz
Revert "libchrome: Uprev the library to r456626 from Chromium" am: e5b2c6fa6f
am: 54cfa4a2ba Change-Id: I651f5f9421f53c4c10798749155641b3e8bde687
Diffstat (limited to 'base/compiler_specific.h')
-rw-r--r--base/compiler_specific.h38
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)