https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104726
--- Comment #1 from Hongyu Wang <wwwhhhyyy333 at gmail dot com> --- Created attachment 52532 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52532&action=edit A patch Hi Rainer, can you try this on your solaris system? We don't have such platform to confirm it works. I'll install it if it passes, or you can directly push it as an obvious fix.