------- Comment #7 from mmitchel at gcc dot gnu dot org 2008-06-06 22:59 ------- We set GCC_EXEC_PREFIX when testing in-tree GCC because we want the GCC we're testing to search the right paths.
Note that in creating site.exp, we do: @echo "set GCC_EXEC_PREFIX \"$(libdir)/gcc/\"" >> ./tmp0 If I understand correctly, the issue in: http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01493.html may be that DejaGNU wants to compile testglue, and therefore needs GCC_EXEC_PREFIX set at that point, since testglue is of course built with the compiler being tested. Maybe HOSTCC should be "GCC_EXEC_PREFIX= gcc"? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36443