From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41KtPb5wdvzF1QL for ; Wed, 4 Jul 2018 04:46:27 +1000 (AEST) Date: Tue, 3 Jul 2018 13:46:18 -0500 From: Segher Boessenkool To: William Kennington Cc: linuxppc-dev@lists.ozlabs.org Subject: Re: GCC strcmp optimizations causing valgrind uninitialized conditional jumps Message-ID: <20180703184617.GF16221@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 here do *not* depend on uninitialised memory. Valgrind does not realise that however. The valgrind people are aware of this problem. > Any ideas on how to workaround / fix this? Does -fno-builtin-strcmp do the trick? Segher