commit | 14115f84a38161d55eaa2d070f08739bde37e966 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Wed Nov 04 23:14:00 2015 +0200 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Wed Nov 04 23:14:00 2015 +0200 |
tree | 6773aa61b4d1ee75b16393dc4f1fe3ef339cc16b | |
parent | f4c95ba94beb71a608eb6eadbf82b44f53a0260e [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.