------- Comment #15 from jakub at gcc dot gnu dot org  2008-06-09 06:59 -------
"Unless you can find a way to localize those environment changes only to 
the tested compiler (by setting/restoring them around every call to the 
compiler being tested for example), HOSTCC must set/clear all the 
environment variables that it uses."

Unfortunately, $HOSTCC is invoked from tcl, not from shell, so e.g. sticking
unset GCC_EXEC_PREFIX; into $HOSTCC doesn't work.

The patch I've posted a few days ago temporarily removes it from the
environment for $HOSTCC invocations in struct-layout-1.exp.  Other than that,
ALT_*_UNDER_TEST might contain a host compiler, so similar unsetting/setting
would be needed in c-compat.exp too.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36443

Reply via email to