https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98681
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50037 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50037&action=edit gcc11-pr98681.patch Therefore, if you want to use UINTVAL in that function wherever possible, we can, but we need to add INTVAL (mask) > 0 check to catch the problems with negative mask %P printing. I'm already bootstrapping/regtesting the earlier patch, but can throw this one in too.