aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2012-01-20 15:12:34 +0100
committerUros Bizjak <uros@gcc.gnu.org>2012-01-20 15:12:34 +0100
commit0ab6e1eceb167b931222d4d092acaca60f88a7a0 (patch)
tree8f479086bf0d3be588ac7f6d22effab238239d6a /gcc
parent3675f54bd95dbb1071ec824a51860aa5c7679ea9 (diff)
downloadgcc-0ab6e1eceb167b931222d4d092acaca60f88a7a0.zip
gcc-0ab6e1eceb167b931222d4d092acaca60f88a7a0.tar.gz
gcc-0ab6e1eceb167b931222d4d092acaca60f88a7a0.tar.bz2
go-test.exp (go-gc-tests): Pass correctly formatted options to go_target_compile.
* go.test/go-test.exp (go-gc-tests): Pass correctly formatted options to go_target_compile. From-SVN: r183339
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/go.test/go-test.exp19
2 files changed, 17 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f479fcd..d0068ba 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-20 Uros Bizjak <ubizjak@gmail.com>
+
+ * go.test/go-test.exp (go-gc-tests): Pass correctly formatted
+ options to go_target_compile.
+
2012-01-20 Kai Tietz <ktietz@redhat.com>
* g++.dg/torture/pr51344.C: Fix typo.
@@ -57,8 +62,7 @@
2012-01-17 Ian Lance Taylor <iant@google.com>
PR go/50656
- * go.test/go-test.exp (go-gc-tests): Recognize some more test
- lines.
+ * go.test/go-test.exp (go-gc-tests): Recognize some more test lines.
2012-01-17 Tobias Burnus <burnus@net-b.de>
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index 01be094..28b7e40 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -208,6 +208,9 @@ proc go-gc-tests { } {
set DEFAULT_GOCFLAGS " -pedantic-errors"
}
+ set options ""
+ lappend options "additional_flags=$DEFAULT_GOCFLAGS"
+
# Set GOARCH for tests that need it.
go-set-goarch
@@ -585,7 +588,7 @@ proc go-gc-tests { } {
set dg-do-what-default "link"
set output_file "./[file rootname [file tail $test]].exe"
set comp_output [go_target_compile "$ofile1 $ofile2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
verbose -log $comp_output
set result [go_load "$output_file" "" ""]
@@ -610,7 +613,7 @@ proc go-gc-tests { } {
set dg-do-what-default "link"
set output_file "./[file rootname [file tail $test]].exe"
set comp_output [go_target_compile "$ofile1 $ofile2 $ofile3" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
pass $name
@@ -633,7 +636,7 @@ proc go-gc-tests { } {
set ofile2 "[file rootname [file tail $test]].o"
set output_file "./[file rootname [file tail $test]].exe"
set comp_output [go_target_compile "$ofile1 $ofile2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
set result [go_load "$output_file" "" ""]
@@ -660,7 +663,7 @@ proc go-gc-tests { } {
set dg-do-what-default "link"
set output_file "./[file rootname [file tail $file2]].exe"
set comp_output [go_target_compile "$ofile1 $ofile2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
set result [go_load "$output_file" "" ""]
@@ -726,7 +729,7 @@ proc go-gc-tests { } {
errchk $file3 ""
set output_file "./[file rootname [file tail $test]].exe"
set comp_output [go_target_compile "$ofile0 $ofile1 $ofile2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp-output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
set result [go_load "$output_file" "" ""]
@@ -759,7 +762,7 @@ proc go-gc-tests { } {
set ofile2 "[file rootname [file tail $test]].o"
set output_file "./[file rootname [file tail $test]].exe"
set comp_output [go_target_compile "$ofile1 $ofile2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
set result [go_load "$output_file" "" ""]
@@ -775,7 +778,7 @@ proc go-gc-tests { } {
regsub "/\[^/\]*$" $test "/cmplxdivide1.go" test2
set output_file "./[file rootname [file tail $test]].o"
set comp_output [go_target_compile "$test $test2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
set result [go_load "$output_file" "" ""]
@@ -853,7 +856,7 @@ proc go-gc-tests { } {
set ofile2 "[file rootname [file tail $file2]].o"
set output_file "./[file rootname [file tail $test]].exe"
set comp_output [go_target_compile "$ofile1 $ofile2" \
- $output_file "executable" "$DEFAULT_GOCFLAGS"]
+ $output_file "executable" "$options"]
set comp_output [go-dg-prune $target_triplet $comp_output]
if [string match "" $comp_output] {
setup_xfail "*-*-*"