http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937
--- Comment #1 from Yury Gribov <y.gribov at samsung dot com> --- Created attachment 31118 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31118&action=edit Draft patch Here is a draft patch implementing my proposal.