Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/82785?usp=email )
Change subject: util/xcompile: Use new GCC's commande options only if supported ......................................................................
util/xcompile: Use new GCC's commande 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 --- M util/xcompile/xcompile 1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/82785/1
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index ad4361d..ff067d2 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -201,6 +201,13 @@ 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) ;;