+2008-07-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR testsuite/36443
+ * objc.dg/gnu-encoding/gnu-encoding.exp: Temporarily unset
+ GCC_EXEC_PREFIX from environment when running $HOSTCC.
+
2008-07-16 Dodji Seketeli <dseketel@redhat.com>
PR c++/13699
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"
+# Temporarily unset GCC_EXEC_PREFIX from environment, as that might
+# confuse the $HOSTCC.
+set orig_gcc_exec_prefix_saved 0
+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 build "$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