From 8468e03688622f265529699e2efd355a4c122cc6 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 29 Aug 2023 17:27:19 +0200 Subject: [PATCH] [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. --- gdb/testsuite/gdb.arch/i386-avx512.exp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2