https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117935
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 59817 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59817&action=edit Something like this I have not tested this nor compiled it so there might be some typos in it. But I wanted to get the patch attached so I can come back to it later today (once I finish up the other 2 things I am working on).