Skip to contentSkip to conversation

init/Kconfig: enable -O3 for all arches

PATCH New Oleksandr Natalenko 1 participant 2 messages Dec 11, 2019

lore
Share & tools
lore
#0 lore raw

cover init/Kconfig: enable -O3 for all arches

The purpose of this submission is to expose -O3 for all the architectures, not only ARC, since it helps in hunting some bugs (see the commit message for specific example).

Previously this was posted as RFC here: [1]. With this submission I'm addressing Krzysztof's concern regarding commit message. No other changes are made.

The RFC was accepted into -mm tree here: [2]. If needed, please replace that one with this one since this one has a nicer commit message.

The patch is made against next-20191210 tag.

Thanks.

[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://marc.info/?l=linux-mm-commits&m=157602335225239&w=2

Oleksandr Natalenko (1):
init/Kconfig: enable -O3 for all arches

 init/Kconfig | 1 -
 1 file changed, 1 deletion(-)
Signature · 1 line
2.24.1
#1 lore raw

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.

With that, lets expose it for everyone.

[1] https://lore.kernel.org/lkml/[email protected]/

---
 init/Kconfig | 1 -
 1 file changed, 1 deletion(-)
init/Kconfig +0 -1
index a34064a031a5..b41b18edb10e 100644
@@ -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.1