From patchwork Sat Sep 7 08:15:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 273375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 35ECA2C00E0 for ; Sat, 7 Sep 2013 18:15:54 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=MJaeX7PqiGkAL7BeeA++0p1JwAmkpawj4v9/k6XkB2izrd fIL5ANEiPpT8/i9h4xoVYr37OIbb5oGqPEoSyTKCA1a/Ew21VcqsYmRS94gpJdlD gmReokDJMGp7tHYFe02g9IcjZth2Qtyss8vL3J9GdaZyDzFgnDLcUejk0VtDc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=/gAbAwi6Fxh5lSTRH+z5AEBLSls=; b=jtTz+mI/bk4EtZ2JmNAb dmx83nZKZ4w/uKhLSzXzznI47ksLR174WBbVwtGlktnq98EGuwOqh2tR9nlKDStL skxWSYmsv/4+ECMAzGRwjuHjgis3ZUQ7w7nOlN08xtwGdjfqWcuTpymLukzoORQs awm+vZg1BMkDBiCpRg9YSXM= Received: (qmail 12548 invoked by alias); 7 Sep 2013 08:15:47 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 12531 invoked by uid 89); 7 Sep 2013 08:15:45 -0000 Received: from mail-oa0-f53.google.com (HELO mail-oa0-f53.google.com) (209.85.219.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 07 Sep 2013 08:15:45 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, NO_RELAYS, T_FRT_BELOW2 autolearn=ham version=3.3.2 X-HELO: mail-oa0-f53.google.com Received: by mail-oa0-f53.google.com with SMTP id k18so4859703oag.40 for ; Sat, 07 Sep 2013 01:15:42 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.104.36 with SMTP id gb4mr4855454obb.43.1378541742642; Sat, 07 Sep 2013 01:15:42 -0700 (PDT) Received: by 10.182.137.136 with HTTP; Sat, 7 Sep 2013 01:15:42 -0700 (PDT) Date: Sat, 7 Sep 2013 10:15:42 +0200 Message-ID: Subject: [PATCH, bootstrap]: Initialize deref_align in ipa_modify_call_arguments to fix profiledbootstrap From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Hello! It looks that it is too hard for the compiler to track deref_align initialization through dependent deref_base boolean. The patch bellow fixes "may be used uninitialized" warning that breaks profiledbootstrap. 2013-09-07 Uros Bizjak * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align. Tested on x86_64-pc-linux-gnu with LTO profiledbootstrap. OK for mainline? Uros. Index: ipa-prop.c =================================================================== --- ipa-prop.c (revision 202352) +++ ipa-prop.c (working copy) @@ -3526,7 +3526,7 @@ ipa_modify_call_arguments (struct cgraph_edge *cs, { tree expr, base, off; location_t loc; - unsigned int deref_align; + unsigned int deref_align = 0; bool deref_base = false; /* We create a new parameter out of the value of the old one, we can