util/xcompile: Only use -Wno-address-of-packed-member if supported
I thought gcc ignores -Wno-* stuff that it doesn't know about, but apparently not. Change-Id: If265a7bcdcfb5e83cc06b1f914dd6bab964eaca6 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37037 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
490eab46a8
commit
9ea4c8a71e
|
@ -185,6 +185,8 @@ detect_special_flags() {
|
||||||
testcc "$GCC" "$CFLAGS_GCC -Wl,--build-id=none" &&
|
testcc "$GCC" "$CFLAGS_GCC -Wl,--build-id=none" &&
|
||||||
CFLAGS_GCC="$CFLAGS_GCC -Wl,--build-id=none"
|
CFLAGS_GCC="$CFLAGS_GCC -Wl,--build-id=none"
|
||||||
|
|
||||||
|
testcc "$GCC" "$CFLAGS_GCC -Wno-address-of-packed-member" &&
|
||||||
|
CFLAGS_GCC="$CFLAGS_GCC -Wno-address-of-packed-member"
|
||||||
case "$architecture" in
|
case "$architecture" in
|
||||||
x86)
|
x86)
|
||||||
;;
|
;;
|
||||||
|
@ -219,7 +221,7 @@ SUBARCH_SUPPORTED+=${TSUPP-${TARCH}}
|
||||||
GCC_CC_${TARCH}:=${GCC}
|
GCC_CC_${TARCH}:=${GCC}
|
||||||
GCC_CFLAGS_${TARCH}:=${CFLAGS_GCC}
|
GCC_CFLAGS_${TARCH}:=${CFLAGS_GCC}
|
||||||
# Generally available for GCC's cc1:
|
# Generally available for GCC's cc1:
|
||||||
GCC_CFLAGS_${TARCH}+=-Wlogical-op -Wno-address-of-packed-member
|
GCC_CFLAGS_${TARCH}+=-Wlogical-op
|
||||||
GCC_ADAFLAGS_${TARCH}:=${CFLAGS_GCC}
|
GCC_ADAFLAGS_${TARCH}:=${CFLAGS_GCC}
|
||||||
GCC_COMPILER_RT_${TARCH}:=${CC_RT_GCC}
|
GCC_COMPILER_RT_${TARCH}:=${CC_RT_GCC}
|
||||||
GCC_COMPILER_RT_FLAGS_${TARCH}:=${CC_RT_EXTRA_GCC}
|
GCC_COMPILER_RT_FLAGS_${TARCH}:=${CC_RT_EXTRA_GCC}
|
||||||
|
|
Loading…
Reference in New Issue