|
21 | 21 |
|
22 | 22 | cc32-option = $(call try-run,\ |
23 | 23 | $(CC_COMPAT) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) |
24 | | -cc32-disable-warning = $(call try-run,\ |
25 | | - $(CC_COMPAT) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) |
26 | 24 |
|
27 | 25 | # We cannot use the global flags to compile the vDSO files, the main reason |
28 | 26 | # being that the 32-bit compiler may be older than the main (64-bit) compiler |
@@ -74,16 +72,6 @@ VDSO_CFLAGS += $(call cc32-option,-Werror=strict-prototypes) |
74 | 72 | VDSO_CFLAGS += -Werror=date-time |
75 | 73 | VDSO_CFLAGS += $(call cc32-option,-Werror=incompatible-pointer-types) |
76 | 74 |
|
77 | | -# The 32-bit compiler does not provide 128-bit integers, which are used in |
78 | | -# some headers that are indirectly included from the vDSO code. |
79 | | -# This hack makes the compiler happy and should trigger a warning/error if |
80 | | -# variables of such type are referenced. |
81 | | -VDSO_CFLAGS += -D__uint128_t='void*' |
82 | | -# Silence some warnings coming from headers that operate on long's |
83 | | -# (on GCC 4.8 or older, there is unfortunately no way to silence this warning) |
84 | | -VDSO_CFLAGS += $(call cc32-disable-warning,shift-count-overflow) |
85 | | -VDSO_CFLAGS += -Wno-int-to-pointer-cast |
86 | | - |
87 | 75 | # Compile as THUMB2 or ARM. Unwinding via frame-pointers in THUMB2 is |
88 | 76 | # unreliable. |
89 | 77 | ifeq ($(CONFIG_THUMB2_COMPAT_VDSO), y) |
|
0 commit comments