In cross-compiling, you need to create an instrumentation binding to the platform for which you want to create executable code, which means that you can do this without a script. You will only need GCC sources (in this case).
, , GCC 4.4 , configure, make make install.
i686 Windows:
./configure --target=i686-mingw32 --host=$CHOST --build=$CHOST \
--prefix=/usr --enable-languages=fortran,c,c++ --enable-sjlj-exceptions \
--enable-hash-synchronization --disable-nls --disable-libssp --disable-shared