From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28258 invoked by alias); 13 Jun 2007 21:25:52 -0000 Received: (qmail 28209 invoked by uid 48); 13 Jun 2007 21:25:40 -0000 Date: Wed, 13 Jun 2007 21:25:00 -0000 Message-ID: <20070613212540.28208.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/32327] Incorrect stack sharing causing removal of live code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dougkwan at google dot com" 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: 2007-06/txt/msg01062.txt.bz2 ------- Comment #2 from dougkwan at google dot com 2007-06-13 21:25 ------- The address of dest has been passed to memcpy() and the alias analysis considers the varaible to escape. So potentially foo() can see the value of dest if memcpy() stash the pointer somewhere. This is impossible but the compiler cannot prove this so it has to be conservative and treat foo() as a potential reader of dest. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32327