https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61422
--- Comment #6 from Marat Zakirov <m.zakirov at samsung dot com> --- Created attachment 32898 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32898&action=edit Proposed patch Try this. It is mostly the same. No additional patches is needed. I hope it's reproducible.