I've prepared patch for mozilla-firefox, to make possible to compile it with gcc-4. Please test this patch.
Created attachment 56995 [details, diff] patch
I grabbed the upstream fix and posted it in bug 87800. Its been working fine for me, and applies to the suite, thunderbird and firefox.
*** This bug has been marked as a duplicate of 87800 ***