https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112413
--- Comment #5 from Mikael Pettersson <mikpelinux at gmail dot com> --- Created attachment 56561 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56561&action=edit proposed fix, only compile-tested for now