Makefile.include (1724c7c0c9494dcbdd7f630f29e1e8427cb231d1) Makefile.include (3866058ef15b6ae6f4ff48e088428b46bcc43fa1)
1ifneq ($(O),)
2ifeq ($(origin O), command line)
3 dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
4 ABSOLUTE_O := $(shell cd $(O) ; pwd)
5 OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/)
6 COMMAND_O := O=$(ABSOLUTE_O)
7ifeq ($(objtree),)
8 objtree := $(O)

--- 25 unchanged lines hidden (view full) ---

34EXTRA_WARNINGS += -Wshadow
35EXTRA_WARNINGS += -Wstrict-prototypes
36EXTRA_WARNINGS += -Wswitch-default
37EXTRA_WARNINGS += -Wswitch-enum
38EXTRA_WARNINGS += -Wundef
39EXTRA_WARNINGS += -Wwrite-strings
40EXTRA_WARNINGS += -Wformat
41
1ifneq ($(O),)
2ifeq ($(origin O), command line)
3 dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
4 ABSOLUTE_O := $(shell cd $(O) ; pwd)
5 OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/)
6 COMMAND_O := O=$(ABSOLUTE_O)
7ifeq ($(objtree),)
8 objtree := $(O)

--- 25 unchanged lines hidden (view full) ---

34EXTRA_WARNINGS += -Wshadow
35EXTRA_WARNINGS += -Wstrict-prototypes
36EXTRA_WARNINGS += -Wswitch-default
37EXTRA_WARNINGS += -Wswitch-enum
38EXTRA_WARNINGS += -Wundef
39EXTRA_WARNINGS += -Wwrite-strings
40EXTRA_WARNINGS += -Wformat
41
42ifneq ($(CC), clang)
42CC_NO_CLANG := $(shell $(CC) -dM -E -x c /dev/null | grep -Fq "__clang__"; echo $$?)
43
44ifeq ($(CC_NO_CLANG), 1)
43EXTRA_WARNINGS += -Wstrict-aliasing=3
44endif
45
46# Hack to avoid type-punned warnings on old systems such as RHEL5:
47# We should be changing CFLAGS and checking gcc version, but this
48# will do for now and keep the above -Wstrict-aliasing=3 in place
49# in newer systems.
50# Needed for the __raw_cmpxchg in tools/arch/x86/include/asm/cmpxchg.h

--- 50 unchanged lines hidden ---
45EXTRA_WARNINGS += -Wstrict-aliasing=3
46endif
47
48# Hack to avoid type-punned warnings on old systems such as RHEL5:
49# We should be changing CFLAGS and checking gcc version, but this
50# will do for now and keep the above -Wstrict-aliasing=3 in place
51# in newer systems.
52# Needed for the __raw_cmpxchg in tools/arch/x86/include/asm/cmpxchg.h

--- 50 unchanged lines hidden ---