http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51784
--- Comment #28 from Iain Sandoe <iains at gcc dot gnu.org> 2012-01-14 15:58:32 UTC --- Created attachment 26324 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26324 a first attempt at a fix this is pretty much the first ever RTL I've written .... ... so comments welcome ... I've had a quick look at the output on a couple of test-cases and it seems to DTRT .. but it's "hardly tested" so far.