All of lore.kernel.org
 help / color / mirror / Atom feed
* 4.1-rc1 fails with O3 optimization
@ 2015-04-27  2:03 Andev
  2015-04-28  1:00 ` Bobby Powers
  0 siblings, 1 reply; 13+ messages in thread
From: Andev @ 2015-04-27  2:03 UTC (permalink / raw)
  To: kernelnewbies

Hello Newbies,

I usually compile my kernel with an unsupported O3 option(why not? :).
Today after running the latest 4.1-rc1 kernel with O3, I got a boot
failure. This is the first time this has happened for me.

If someone is interested in debugging this, please read on.

Can you try to reproduce this bug? If yes, can you also bisect this? I
am a bit swamped right now and can try to reproduce this only on
Wednesday. If you are interested, apply the following patch, compile
and see if the kernel boots. Thanks!

diff --git a/Makefile b/Makefile
index 14c722f..05950ca 100644
--- a/Makefile
+++ b/Makefile
@@ -297,8 +297,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then
echo $$BASH; \

 HOSTCC       = gcc
 HOSTCXX      = g++
-HOSTCFLAGS   = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-fomit-frame-pointer -std=gnu89
-HOSTCXXFLAGS = -O2
+HOSTCFLAGS   = -Wall -Wmissing-prototypes -Wstrict-prototypes -O3
-fomit-frame-pointer -std=gnu89
+HOSTCXXFLAGS = -O3

 ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
 HOSTCFLAGS  += -Wno-unused-value -Wno-unused-parameter \
@@ -616,7 +616,7 @@ KBUILD_CFLAGS       += $(call
cc-option,-fno-delete-null-pointer-checks,)
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
 KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
 else
-KBUILD_CFLAGS  += -O2
+KBUILD_CFLAGS  += -O3
 endif



-- 
Andev

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-04-28 21:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27  2:03 4.1-rc1 fails with O3 optimization Andev
2015-04-28  1:00 ` Bobby Powers
2015-04-28  5:41   ` Andev
2015-04-28 13:03     ` leo kirotawa
     [not found]       ` <CAJUuVQ4i0UxQbCubaLbpUFzsnOcW_XrOf7MCA_qXoyX7qMzFPQ@mail.gmail.com>
2015-04-28 16:46         ` leo kirotawa
2015-04-28 17:40           ` leo kirotawa
2015-04-28 18:18             ` Andev
2015-04-28 18:30               ` leo kirotawa
2015-04-28 19:44                 ` Andev
2015-04-28 19:47                   ` nick
2015-04-28 20:29     ` Valdis.Kletnieks at vt.edu
2015-04-28 21:17       ` Andev
2015-04-28 21:24         ` Valdis.Kletnieks at vt.edu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.