https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100845
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >While using -O2 is fine. -O2 is only fine because xor_hash is considering just reading memory and then malloc/free pairs are removed too. The warning is correct in my mind really as you are reading uninitialized memory.