From: uweigand Date: Fri, 21 Aug 2015 12:48:08 +0000 (+0000) Subject: 2015-08-21 Dominik Vogt X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85e5a8d34def199f538722fed4240602dfcf858e;p=thirdparty%2Fgcc.git 2015-08-21 Dominik Vogt * lib/gcc-dg.exp: Add extra options for db-final to the command line only once. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227057 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a91ce0d9b60c..c4094e4555ce 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 7ce71df488b1..7c1ab85f32e1 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 } }