Description of Problem: gcc-2.96-93 in 7.1 (and gcc-2.96-97 in 7.2) is miscompiling rpmio/digest.c sha1 digest. Compiling with -O0 works, as does adding debugging messages. Version-Release number of selected component (if applicable): How Reproducible: Steps to Reproduce: 1. rpm --rebuild rpm-4.0.3-0.95.src.rpm 2. cd rpmio 3. make tdigest && ../tdigest --fipsa Actual Results: 2c80fcd2cf957725c03d03c123e666be6b97d925 abc a9993e364706816aba3e25717850c26c9cd0d89d FIPS PUB 180-1 Appendix A Expected Results: a9993e364706816aba3e25717850c26c9cd0d89d abc a9993e364706816aba3e25717850c26c9cd0d89d FIPS PUB 180-1 Appendix A Additional Information: There's debugging code in rpmio/digest.c to reproduce the intermediate FIPS results if necessary (but defining SHA_DEBUG causes problem to disappear).
Note that rpmio/digest.o is being compiled with -O0 in the rpm-4.0.3-0.95 package.
I am closing this case. gcc-2.96 is too old. Its release cycle was finished long ago. Also we don't support alpha anymore.