http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50980
--- Comment #1 from Joel Sherrill <joel at gcc dot gnu.org> 2011-11-04 13:27:12 UTC --- Sebastian Huber posted http://gcc.gnu.org/ml/gcc-patches/2011-11/msg00500.html and I have been using it successfully. A variant of this has been used for months with the shipping RTEMS 4.6 toolchains.