From: Dominik Vogt Date: Fri, 21 Aug 2015 12:48:08 +0000 (+0000) Subject: gcc-dg.exp: Add extra options for db-final to the command line only once. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd21fbd7616ae2c6edee7322c5aa23952a3384e6;p=gcc.git gcc-dg.exp: Add extra options for db-final to the command line only once. 2015-08-21 Dominik Vogt * lib/gcc-dg.exp: Add extra options for db-final to the command line only once. From-SVN: r227057 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a91ce0d9b60..c4094e4555c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-21 Dominik Vogt + + * lib/gcc-dg.exp: Add extra options for db-final to the command line + only once. + 2015-08-20 Bill Schmidt * gcc.target/powerpc/altivec-35.c (foo): Add tests for vec_madd. diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index 7ce71df488b..7c1ab85f32e 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -270,7 +270,7 @@ proc gcc-dg-test-1 { target_compile prog do_what extra_tool_flags } { set finalcmd [lindex $x 0] if { [info procs ${finalcmd}_required_options] != "" } { set req [${finalcmd}_required_options] - if { $req != "" } { + if { $req != "" && [lsearch -exact $extra_tool_flags $req] == -1 } { lappend extra_tool_flags $req } }