diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ed56c819cb..667dbfddec 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-05-29 Gary Benson + + * gdb.arch/i386-avx.exp (additional_flags): Also set when + building with clang. + * gdb.arch/i386-sse.exp (additional_flags): Likewise. + 2020-05-29 Gary Benson * gdb.cp/koenig.exp (prepare_for_testing): Add diff --git a/gdb/testsuite/gdb.arch/i386-avx.exp b/gdb/testsuite/gdb.arch/i386-avx.exp index c52586d2e8..ad7bf02e5c 100644 --- a/gdb/testsuite/gdb.arch/i386-avx.exp +++ b/gdb/testsuite/gdb.arch/i386-avx.exp @@ -31,7 +31,7 @@ if [get_compiler_info] { } set additional_flags "" -if [test_compiler_info gcc*] { +if { [test_compiler_info gcc*] || [test_compiler_info clang*] } { set additional_flags "additional_flags=-mavx -I${srcdir}/.." } diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp index 1fd7cab2a4..75cbfa531a 100644 --- a/gdb/testsuite/gdb.arch/i386-sse.exp +++ b/gdb/testsuite/gdb.arch/i386-sse.exp @@ -31,7 +31,7 @@ if [get_compiler_info] { } set additional_flags "" -if [test_compiler_info gcc*] { +if { [test_compiler_info gcc*] || [test_compiler_info clang*] } { set additional_flags "additional_flags=-msse -I${srcdir}/.." }