https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115102
--- Comment #3 from Paul Cercueil <paul at crapouillou dot net> --- Created attachment 58313 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58313&action=edit Proposed fix Attached is the proposed fix. Credits go to Oleg for the original solution.