From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23771 invoked by alias); 14 Aug 2005 06:17:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23763 invoked by uid 48); 14 Aug 2005 06:17:15 -0000 Date: Sun, 14 Aug 2005 06:17:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050814061714.23384.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/23384] New: Clobber list should be flow sensitive X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg01567.txt.bz2 List-Id: Take the following code: struct f { int i; int j; }; void g(void); void i(struct f*); int kk(void) { struct f a; int j; a.i = 1; a.j =2 ; g(); j = a.i; i(&a); return j; } --- j should be changed to 1 as the address of a is not escape until after the call to i so g should not get a call clobbered for the SFT's of a. -- Summary: Clobber list should be flow sensitive Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23384