|
|
@ -789,13 +789,13 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) |
|
|
|
# See modpost pattern 2
|
|
|
|
# See modpost pattern 2
|
|
|
|
KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
|
|
|
|
KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
|
|
|
|
KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
|
|
|
|
KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
|
|
|
|
endif |
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
|
|
|
|
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
|
|
|
|
# These warnings generated too much noise in a regular build.
|
|
|
|
# These warnings generated too much noise in a regular build.
|
|
|
|
# Use make W=1 to enable them (see scripts/Makefile.extrawarn)
|
|
|
|
# Use make W=1 to enable them (see scripts/Makefile.extrawarn)
|
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
|
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(ld-name),lld) |
|
|
|
ifeq ($(ld-name),lld) |
|
|
|
LDFLAGS += -O2
|
|
|
|
LDFLAGS += -O2
|
|
|
|