util/xcompile: Use new GCC's warning options only if supported
Wflex-array-member-not-at-end & Wcalloc-transposed-args are not supported when using GCC older than GCC-14. Use them only when supported. Change-Id: I11c1e729569c8130bd254a10454c5066a72974d6 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82785 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
parent
b62f86be43
commit
78bd2710a7
@ -201,6 +201,13 @@ detect_special_flags() {
|
||||
CFLAGS_GCC="$CFLAGS_GCC -Wno-address-of-packed-member"
|
||||
testcc "$GCC" "$CFLAGS_GCC --param=min-pagesize=1024 $FLAGS_GCC" &&
|
||||
CFLAGS_GCC="$CFLAGS_GCC --param=min-pagesize=1024"
|
||||
|
||||
testcc "$GCC" "$CFLAGS_GCC -Wflex-array-member-not-at-end" &&
|
||||
CFLAGS_GCC="$CFLAGS_GCC -Wflex-array-member-not-at-end"
|
||||
|
||||
testcc "$GCC" "$CFLAGS_GCC -Wcalloc-transposed-args" &&
|
||||
CFLAGS_GCC="$CFLAGS_GCC -Wcalloc-transposed-args"
|
||||
|
||||
case "$architecture" in
|
||||
x86)
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user