https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114277
--- Comment #3 from Raphael M Zinsly <rzinsly at ventanamicro dot com> --- Created attachment 57670 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57670&action=edit proposed patch I created this patch using the approach Jeff mentioned, I tested and it fixes this bug.