https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114698
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- See https://github.com/archiecobbs/libnbcompat/issues/4 for the full analysis of the issue with sha2.c and even mentions it is shared with many projects.