diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c3fc9c3efe..5040e14896 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-18 Andreas Arnez + + * lib/gdb.exp (gdb_compile): Re-enable use of + universal_compile_options for languages other than Rust. + 2018-01-18 Andreas Arnez * gdb.arch/s390-tdbregs.exp: Add the compile option -msoft-float. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index a4bde724be..7ee3a70fd2 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3504,12 +3504,12 @@ proc gdb_compile {source dest type options} { # Add platform-specific options if a shared library was specified using # "shlib=librarypath" in OPTIONS. + set new_options {} if {[lsearch -exact $options rust] != -1} { # -fdiagnostics-color is not a rustcc option. } else { set new_options [universal_compile_options] } - set new_options {} set shlib_found 0 set shlib_load 0 foreach opt $options {