To add to bjohnson777's fine suggestion above regarding chroot, another possible solution might be building and installing the earlier GCC version yourself, which is usually pretty simple (but not always). When you ./configure, just specify a different directory with '--prefix', and you can...