https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108978
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 54561 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54561&action=edit quick patch This is a quick hacked patch which adds this. I didn't even test it or add testcases. It might not even compile because of the use of lbasename. But someone else should be able to take it and finish it up.