History

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.

ndesaulniers@google.com committed 8 years ago

Commit 1ff2fea1 parent fe0640e1 file · +0 −4Browse files

Unified · Split

include/linux/compiler-gcc.h+0−4
@@ -96,10 +96,6 @@ · 95 unmodified lines
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 { \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t