+2008-06-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR testsuite/36443
+ * gcc.dg/compat/struct-layout-1.exp: Temporarily unset
+ GCC_EXEC_PREFIX from environment when running $HOSTCC.
+ * g++.dg/compat/struct-layout-1.exp: Likewise.
+
2008-06-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36345
set generator_src "$generator_src $srcdir/$subdir/../../gcc.dg/compat/generate-random_r.c"
set generator_cmd "-o $generator $generator_src"
+# Temporarily unset GCC_EXEC_PREFIX from environment, as that might
+# confuse the $HOSTCC.
+if [info exists env(GCC_EXEC_PREFIX)] {
+ set orig_gcc_exec_prefix "$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 [lindex $status 0]
+if { $orig_gcc_exec_prefix_saved } {
+ set orig_gcc_exec_prefix_saved 0
+ setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix"
+}
if { $status == 0 } then {
file delete -force $tstobjdir
file mkdir $tstobjdir
set generator_src "$generator_src $srcdir/$subdir/generate-random_r.c"
set generator_cmd "-o $generator $skip_dfp $generator_src"
+# Temporarily unset GCC_EXEC_PREFIX from environment, as that might
+# confuse the $HOSTCC.
+if [info exists env(GCC_EXEC_PREFIX)] {
+ set orig_gcc_exec_prefix "$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 [lindex $status 0]
+if { $orig_gcc_exec_prefix_saved } {
+ set orig_gcc_exec_prefix_saved 0
+ setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix"
+}
if { $status == 0 } then {
file delete -force $tstobjdir
file mkdir $tstobjdir