http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54582
--- Comment #12 from David Binderman <dcb314 at hotmail dot com> 2013-02-07 21:19:15 UTC --- I coded up some of my ideas into the attached C++ source code. Then I modified builtins.c and did a bootstrap. My small patch seems to be working well. I'm sure someone could convert my C++ code into something that follows the compiler coding conventions, add test cases etc.