* [PATCH 0/1] init/Kconfig: enable -O3 for all arches
@ 2019-12-11 10:46 Oleksandr Natalenko
2019-12-11 10:46 ` [PATCH 1/1] " Oleksandr Natalenko
0 siblings, 1 reply; 2+ messages in thread
From: Oleksandr Natalenko @ 2019-12-11 10:46 UTC (permalink / raw)
To: linux-kernel
Cc: Masahiro Yamada, Andrew Morton, Greg Kroah-Hartman, Jessica Yu,
Tejun Heo, Mauro Carvalho Chehab, Joel Fernandes, David Howells,
Patrick Bellasi, Krzysztof Kozlowski, Dan Williams,
Eric W . Biederman
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/20191210145657.105808-1-oleksandr@redhat.com/
[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(-)
--
2.24.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] init/Kconfig: enable -O3 for all arches
2019-12-11 10:46 [PATCH 0/1] init/Kconfig: enable -O3 for all arches Oleksandr Natalenko
@ 2019-12-11 10:46 ` Oleksandr Natalenko
0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Natalenko @ 2019-12-11 10:46 UTC (permalink / raw)
To: linux-kernel
Cc: Masahiro Yamada, Andrew Morton, Greg Kroah-Hartman, Jessica Yu,
Tejun Heo, Mauro Carvalho Chehab, Joel Fernandes, David Howells,
Patrick Bellasi, Krzysztof Kozlowski, Dan Williams,
Eric W . Biederman
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/673b885183fb64f1cbb3ed2387524077@natalenko.name/
Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com>
---
init/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/init/Kconfig b/init/Kconfig
index a34064a031a5..b41b18edb10e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-11 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 10:46 [PATCH 0/1] init/Kconfig: enable -O3 for all arches Oleksandr Natalenko
2019-12-11 10:46 ` [PATCH 1/1] " Oleksandr Natalenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).