Re: GCC strcmp optimizations causing valgrind uninitialized conditional jumps

2018-07-03 Thread Segher Boessenkool
On Tue, Jul 03, 2018 at 11:59:14AM -0700, William Kennington wrote: > Is there a bug tracking the issue? https://bugs.kde.org/show_bug.cgi?id=386945 > Also, unless your malloc is > guaranteed to be zeroing out the data or have a strcmp that is writing > doubleworld aligned data to the string, the

Re: GCC strcmp optimizations causing valgrind uninitialized conditional jumps

2018-07-03 Thread Segher Boessenkool
Hi! On Tue, Jul 03, 2018 at 11:26:55AM -0700, William Kennington wrote: > I've noticed while trying to do some valgrind testing on code linked > against system libraries that have inlined strcmps that valgrind is > unhappy about branches depending on uninitialized memory. I've read The branches h