+2008-07-02 Joseph Myers <joseph@codesourcery.com>
+
+ * 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 <hutchinsonandy@aim.com>
PR testsuite/36285
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
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
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