From: Tom de Vries Date: Tue, 29 Aug 2023 15:27:19 +0000 (+0200) Subject: [gdb/testsuite] Require have_compile_flag -mavx512f in gdb.arch/i386-avx512.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8468e03688622f265529699e2efd355a4c122cc6;p=binutils-gdb.git [gdb/testsuite] Require have_compile_flag -mavx512f in gdb.arch/i386-avx512.exp When running test-case gdb.arch/i386-avx512.exp with gcc 4.8.4, I run into: ... Running gdb.arch/i386-avx512.exp ... gdb compile failed, gcc: error: unrecognized command line option '-mavx512f' ... Fix this by requiring have_compile_flag -mavx512f. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.arch/i386-avx512.exp b/gdb/testsuite/gdb.arch/i386-avx512.exp index 0c50591dcbe..758bdacc3a5 100644 --- a/gdb/testsuite/gdb.arch/i386-avx512.exp +++ b/gdb/testsuite/gdb.arch/i386-avx512.exp @@ -20,6 +20,7 @@ require {is_any_target i?86-*-* x86_64-*-*} +require {have_compile_flag -mavx512f} standard_testfile