Compiling qemu on gcc4 has been a long standing issue. During the time several approaches came up, each more or less intrusive.
I have collected the ones I found to be the cleanest, fixed PowerPC host support with Michael Matz and am sending everything as a patchset now, hoping that someone comments on these patches and they will finally get included. Please test these patches on all platforms you have available. Regards, Alex