gcc-dg.exp: Add extra options for db-final to the command line only once.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Fri, 21 Aug 2015 12:48:08 +0000 (12:48 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Fri, 21 Aug 2015 12:48:08 +0000 (12:48 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-dg.exp

index a91ce0d9b60c4b72a81a9eaf5ade3844e3147f52..c4094e4555cea2805902e1ab27acb102d0e3f11c 100644 (file)
@@ -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.
index 7ce71df488b1f0c2ada7e9a328d0b7ff07a4cff6..7c1ab85f32e1a26256a43a798323f06cef368da5 100644 (file)
@@ -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
            }
        }