4.1-rc1 fails with O3 optimization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux