From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzri3-00035r-Vn for qemu-devel@nongnu.org; Thu, 18 Jul 2013 13:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uzri1-0000Yl-15 for qemu-devel@nongnu.org; Thu, 18 Jul 2013 13:09:43 -0400 Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:52273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzri0-0000Yh-SM for qemu-devel@nongnu.org; Thu, 18 Jul 2013 13:09:40 -0400 Received: by mail-qa0-f49.google.com with SMTP id hu16so1835210qab.8 for ; Thu, 18 Jul 2013 10:09:40 -0700 (PDT) Sender: Richard Henderson Message-ID: <51E82150.5070806@twiddle.net> Date: Thu, 18 Jul 2013 10:09:36 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1374164088-13146-1-git-send-email-rth@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] util/iov: Fix -O1 uninitialized variable warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On 07/18/2013 09:36 AM, Peter Maydell wrote: > On 18 July 2013 17:14, Richard Henderson wrote: >> At -O2, code in the form >> >> if (p) A; B; if (p) C; >> >> may be rearranged via "jump threading" into >> >> if (p) { A; B; C; } else { B; } >> >> But at -O1 this doesn't happen and we -Werror out here on >> the "may be used uninitialized" orig_len. Perform this transform >> by hand so that -O1 remains a viable debugging alternative. >> >> Signed-off-by: Richard Henderson > > This is the same issue fixed by this (reviewed but > never applied) patch from June, isn't it? > > http://patchwork.ozlabs.org/patch/251410/ Yes, it is. r~