aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r--include/linux/compiler-gcc.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index 17cbe3cffc0e..dd4b4c59c2f0 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -128,22 +128,6 @@
128#define __always_unused __attribute__((unused)) 128#define __always_unused __attribute__((unused))
129#define __mode(x) __attribute__((mode(x))) 129#define __mode(x) __attribute__((mode(x)))
130 130
131#ifdef CONFIG_STACK_VALIDATION
132#define annotate_unreachable() ({ \
133 asm("%c0:\n\t" \
134 ".pushsection .discard.unreachable\n\t" \
135 ".long %c0b - .\n\t" \
136 ".popsection\n\t" : : "i" (__LINE__)); \
137})
138#define ASM_UNREACHABLE \
139 "999:\n\t" \
140 ".pushsection .discard.unreachable\n\t" \
141 ".long 999b - .\n\t" \
142 ".popsection\n\t"
143#else
144#define annotate_unreachable()
145#endif
146
147/* gcc version specific checks */ 131/* gcc version specific checks */
148 132
149#if GCC_VERSION < 30200 133#if GCC_VERSION < 30200