Kernel:CC_HAVE_ASM_GOTO 、 Compiler lacks asm-goto support

历史

commit e501ce957a786ecd076ea0cfb10b114e6e4d0f40
Author: Peter Zijlstra [email protected]
Date: Wed Jan 17 11:42:07 2018 +0100

x86: Force asm-goto
We want to start using asm-goto to guarantee the absence of dynamic branches (and thus speculation).
A primary prerequisite for this is of course that the compiler supports asm-goto. This effecively lifts the minimum GCC version to
build an x86 kernel to gcc-4.5.

这里说为了,开始使用asm-goto,来确保不存在动态分支。主要就是确保编译器支持asm-goto。导致编译kernel的gcc的版本最低是4

猜你喜欢

转载自blog.csdn.net/qq_36428903/article/details/125924437
ASM