Message ID | 1461598531-2190169-3-git-send-email-arnd@arndb.de |
---|---|
State | Superseded |
Headers | show |
Series | gcov fixes and maybe-uninitialized warnings | expand |
diff --git a/Makefile b/Makefile index c5a3db5aebd1..e595d1f626b8 100644 --- a/Makefile +++ b/Makefile @@ -624,7 +624,11 @@ 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 +ifdef CONFIG_PROFILE_ALL_BRANCHES +KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,) +else +KBUILD_CFLAGS += -O2 +endif endif # Tell gcc to never replace conditional load with a non-conditional one