init/Kconfig: enable -O3 for all arches
RFC PATCH 1/1 init/Kconfig: enable -O3 for all arches
Building a kernel with -O3 may help in hunting bugs like [1] and thus using this switch should not be restricted to one specific arch only.
Thus lets expose it. If for some reasone we have to hide it, lets hide it under EXPERT.
The commit is made against next-20191210 tag.
[1] https://lore.kernel.org/lkml/[email protected]/
--- init/Kconfig | 1 - 1 file changed, 1 deletion(-)
init/Kconfig +0 -1
@@ -1228,7 +1228,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE config CC_OPTIMIZE_FOR_PERFORMANCE_O3 bool "Optimize more for performance (-O3)" - depends on ARC imply CC_DISABLE_WARN_MAYBE_UNINITIALIZED # avoid false positives help Choosing this option will pass "-O3" to your compiler to optimize
Signature · 1 line
2.24.0
Quoted 6 lines · Oleksandr Natalenko
Building a kernel with -O3 may help in hunting bugs like [1] and thus using this switch should not be restricted to one specific arch only.
Thus lets expose it. If for some reasone we have to hide it, lets hide it under EXPERT.
You are not hiding it under EXPERT so no need to document in commit log theoretical future decisions.
Quoted 1 line
The commit is made against next-20191210 tag.
This does not belong to commit message. You can put such under the --- separator.
Best regards,
Krzysztof
Quoted 23 lines
[1] https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Oleksandr Natalenko <[email protected]>--- init/Kconfig | 1 - 1 file changed, 1 deletion(-)init/Kconfig +0
-2@@ -1228,7 +1228,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE config CC_OPTIMIZE_FOR_PERFORMANCE_O3 bool "Optimize more for performance (-O3)" - depends on ARC imply CC_DISABLE_WARN_MAYBE_UNINITIALIZED # avoid false positives help Choosing this option will pass "-O3" to your compiler to optimize --2.24.0