From: Maxim Kuvyrkov Date: Thu, 19 Feb 2015 12:22:16 +0000 (+0000) Subject: Revert untested commit X-Git-Tag: releases/gcc-4.9.3~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7066ce417eebd88c1483f6d74afc1f27e5ee543;p=thirdparty%2Fgcc.git Revert untested commit 2015-02-19 Maxim Kuvyrkov Backport from mainline 2015-02-19 Maxim Kuvyrkov * lib/target-supports.exp (check_compile): Save/restore additional_sources that may belong to an actual test. From-SVN: r220813 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bcf5fdaa9aa2..d12c2d1791a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2015-02-19 Maxim Kuvyrkov + + Revert: + + 2015-02-19 Maxim Kuvyrkov + Backport from mainline + 2015-02-19 Maxim Kuvyrkov + + * lib/target-supports.exp (check_compile): Save/restore + additional_sources that may belong to an actual test. + 2015-02-19 Maxim Kuvyrkov Backport from mainline diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 819f4900171d..52ec684fb6d0 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -41,12 +41,6 @@ proc check_compile {basename type contents args} { global tool verbose "check_compile tool: $tool for $basename" - # Save additional_sources to avoid compiling testsuite's sources - # against check_compile's source. - global additional_sources - set tmp_additional_sources "$additional_sources" - set additional_sources "" - if { [llength $args] > 0 } { set options [list "additional_flags=[lindex $args 0]"] } else { @@ -92,9 +86,6 @@ proc check_compile {basename type contents args} { file delete $output } - # Restore additional_sources. - set additional_sources "$tmp_additional_sources" - return [list $lines $scan_output] }