diff options
author | Dominik Vogt <vogt@linux.vnet.ibm.com> | 2015-08-21 12:48:08 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2015-08-21 12:48:08 +0000 |
commit | fd21fbd7616ae2c6edee7322c5aa23952a3384e6 (patch) | |
tree | bfdadbd93382543e7e6c97a1a661fc86fb059672 | |
parent | 52c6378aa5ecbe9b34d498d36499592cfd0443ce (diff) | |
download | gcc-fd21fbd7616ae2c6edee7322c5aa23952a3384e6.zip gcc-fd21fbd7616ae2c6edee7322c5aa23952a3384e6.tar.gz gcc-fd21fbd7616ae2c6edee7322c5aa23952a3384e6.tar.bz2 |
gcc-dg.exp: Add extra options for db-final to the command line only once.
2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
* lib/gcc-dg.exp: Add extra options for db-final to the command line
only once.
From-SVN: r227057
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/gcc-dg.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a91ce0d..c4094e4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com> + + * lib/gcc-dg.exp: Add extra options for db-final to the command line + only once. + 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * 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 7ce71df..7c1ab85 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 } } |