From e828d3f3c946be5f3c8a65efe0809eb31d728d2f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 3 Jul 2008 00:40:56 +0100 Subject: [PATCH] struct-layout-1.exp: Compile generator on build system. * g++.dg/compat/struct-layout-1.exp: Compile generator on build system. * gcc.dg/compat/struct-layout-1.exp: Likewise. * objc.dg/gnu-encoding/gnu-encoding.exp: Likewise. From-SVN: r137397 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/compat/struct-layout-1.exp | 2 +- gcc/testsuite/gcc.dg/compat/struct-layout-1.exp | 2 +- gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 03fc86daef2..1cfcad45c05 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-07-02 Joseph Myers + + * g++.dg/compat/struct-layout-1.exp: Compile generator on build + system. + * gcc.dg/compat/struct-layout-1.exp: Likewise. + * objc.dg/gnu-encoding/gnu-encoding.exp: Likewise. + 2008-07-02 Andy Hutchinson PR testsuite/36285 diff --git a/gcc/testsuite/g++.dg/compat/struct-layout-1.exp b/gcc/testsuite/g++.dg/compat/struct-layout-1.exp index 14473486aeb..cd58e7302a2 100644 --- a/gcc/testsuite/g++.dg/compat/struct-layout-1.exp +++ b/gcc/testsuite/g++.dg/compat/struct-layout-1.exp @@ -136,7 +136,7 @@ if [info exists env(GCC_EXEC_PREFIX)] { set orig_gcc_exec_prefix_saved 1 unsetenv GCC_EXEC_PREFIX } -set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"] +set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"] set status [lindex $status 0] if { $orig_gcc_exec_prefix_saved } { set orig_gcc_exec_prefix_saved 0 diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp b/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp index 5de2c1e2618..992b62cdc09 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp +++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp @@ -98,7 +98,7 @@ if [info exists env(GCC_EXEC_PREFIX)] { set orig_gcc_exec_prefix_saved 1 unsetenv GCC_EXEC_PREFIX } -set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"] +set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"] set status [lindex $status 0] if { $orig_gcc_exec_prefix_saved } { set orig_gcc_exec_prefix_saved 0 diff --git a/gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp b/gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp index 7a0bdf3196c..dc4d9245a32 100644 --- a/gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp +++ b/gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp @@ -37,7 +37,7 @@ set generator_src "$srcdir/$subdir/struct-layout-encoding-1_generate.c" set generator_src "$generator_src $srcdir/$subdir/generate-random.c" set generator_src "$generator_src $srcdir/$subdir/generate-random_r.c" set generator_cmd "-o $generator $generator_src" -set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"] +set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"] set status [lindex $status 0] if { $status == 0 } then { file delete -force $tstobjdir -- 2.30.2