commit | 8173ff8790ad3502d04e1c07d014cb84a3b8187b | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Wed Nov 04 23:14:00 2015 +0200 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Tue Jun 28 21:09:46 2016 +0300 |
tree | bf45f54b730ab98b116f09aac0d2158e1f78ab0a | |
parent | 013de2b5ab8094d2c82a2771f3d143eeb656eda9 [diff] |
liblzma: Make Valgrind happier with optimized (gcc -O2) liblzma. When optimizing, GCC can reorder code so that an uninitialized value gets used in a comparison, which makes Valgrind unhappy. It doesn't happen when compiled with -O0, which I tend to use when running Valgrind. Thanks to Rich Prohaska. I remember this being mentioned long ago by someone else but nothing was done back then.