OSDN Git Service

PR go/48501
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Feb 2012 18:04:28 +0000 (18:04 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Feb 2012 18:04:28 +0000 (18:04 +0000)
* go.test/go-test.exp (go-gc-tests): Disable optimizations when
compiling generated file for 64bit and index tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184219 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/go.test/go-test.exp

index 69564ea..67c9274 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-14  Ian Lance Taylor  <iant@google.com>
+
+       PR go/48501
+       * go.test/go-test.exp (go-gc-tests): Disable optimizations when
+       compiling generated file for 64bit and index tests.
+
 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc.dg/lower-subreg-1.c: Fix and simplify target selector.
 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc.dg/lower-subreg-1.c: Fix and simplify target selector.
index 3e51b19..c559244 100644 (file)
@@ -433,7 +433,12 @@ proc go-gc-tests { } {
                } else {
                    pass "$name execution"
                    file delete $base-out.x
                } else {
                    pass "$name execution"
                    file delete $base-out.x
+                   # Disable optimizations as this test takes a long time
+                   # to compile.
+                   set hold $TORTURE_OPTIONS
+                   set TORTURE_OPTIONS [ list { -O0 -g }]
                    go-torture-execute "./$base-out.go"
                    go-torture-execute "./$base-out.go"
+                   set TORTURE_OPTIONS $hold
                }
                file delete $base-out.go
            }
                }
                file delete $base-out.go
            }
@@ -940,7 +945,12 @@ proc go-gc-tests { } {
                } else {
                    pass "$name execution 0"
                    file delete tmp.x
                } else {
                    pass "$name execution 0"
                    file delete tmp.x
+                   # Disable optimizations as this test takes a long time
+                   # to compile.
+                   set hold $TORTURE_OPTIONS
+                   set TORTURE_OPTIONS [ list { -O0 -g }]
                    go-torture-execute "./tmp.go"
                    go-torture-execute "./tmp.go"
+                   set TORTURE_OPTIONS $hold
                }
                if { [catch "exec $output_file -pass 1 >tmp.go"] != 0 } {
                    fail "$name execution 1"
                }
                if { [catch "exec $output_file -pass 1 >tmp.go"] != 0 } {
                    fail "$name execution 1"