summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorndesaulniers@google.com <ndesaulniers@google.com>2018-10-15 23:24:27 +0200
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>2018-10-19 08:47:30 +0200
commit1ff2fea5e30ca15752777441ecb64a169fe22e9e (patch)
tree7f136a2a8db1e6266761a69a6d3917a8e6621e16 /include
parentcompiler.h: update definition of unreachable() (diff)
downloadlinux-1ff2fea5e30ca15752777441ecb64a169fe22e9e.tar.xz
linux-1ff2fea5e30ca15752777441ecb64a169fe22e9e.zip
compiler-gcc: remove comment about gcc 4.5 from unreachable()
Remove the comment about being unable to detect __builtin_unreachable. __builtin_unreachable was implemented in the GCC 4.5 timeframe. The kernel's minimum supported version of GCC is 4.6 since commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"). Commit cb984d101b30 ("compiler-gcc: integrate the various compiler-gcc[345].h files") shows that unreachable() had different guards based on GCC version. Suggested-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compiler-gcc.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index cfac027e1625..2010493e1040 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -96,10 +96,6 @@
* Mark a position in code as unreachable. This can be used to
* suppress control flow warnings after asm blocks that transfer
* control elsewhere.
- *
- * Early snapshots of gcc 4.5 don't support this and we can't detect
- * this in the preprocessor, but we can live with this because they're
- * unreleased. Really, we need to have autoconf for the kernel.
*/
#define unreachable() \
do { \