From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 967 invoked by alias); 25 Apr 2009 22:44:39 -0000 Received: (qmail 935 invoked by uid 48); 25 Apr 2009 22:44:28 -0000 Date: Sat, 25 Apr 2009 22:44:00 -0000 Message-ID: <20090425224428.934.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/39612] [4.4/4.5 Regression] Incorrect warning issued Re variable *is* used uninitialized in this function In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rakdver at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg02367.txt.bz2 ------- Comment #3 from rakdver at gcc dot gnu dot org 2009-04-25 22:44 ------- I cannot reproduce this in 4.5; all the unnecessary loads are removed. > The fix is to avoid the load part of load-store-motion of course. I've considered this, but it seems much easier to just let the unnecessary loads be dce'd (detecting the unnecessary loads in lsm would basically duplicate the work done by ssa update for the new variables. I thought about doing the ssa update and then removing the loads that are unused, but since that seems to happen anyway, there is not much point). -- rakdver at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|rakdver at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED |NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39612