Skip to content

Commit 1ff2fea

Browse files
nickdesaulniersojeda
authored andcommitted
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 cafa001 ("Raise the minimum required gcc version to 4.6"). Commit cb984d1 ("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>
1 parent fe0640e commit 1ff2fea

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎include/linux/compiler-gcc.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@
9696
* Mark a position in code as unreachable. This can be used to
9797
* suppress control flow warnings after asm blocks that transfer
9898
* control elsewhere.
99-
*
100-
* Early snapshots of gcc 4.5 don't support this and we can't detect
101-
* this in the preprocessor, but we can live with this because they're
102-
* unreleased. Really, we need to have autoconf for the kernel.
10399
*/
104100
#define unreachable() \
105101
do { \

0 commit comments

Comments
 (0)