From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7210 invoked by alias); 19 Jul 2005 08:48:16 -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 7168 invoked by uid 48); 19 Jul 2005 08:48:10 -0000 Date: Tue, 19 Jul 2005 08:58:00 -0000 From: "rguenth at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050719084809.22555.rguenth@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/22555] New: array in struct disables salias subvars for other fields X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02302.txt.bz2 List-Id: struct { int i; int j; int x[2]; } a; int foo(void) { a.i = 1; a.j = 0; a.x[0] = 5; return a.i + a.j; } does not get optimized, because salias disables subvars for a because it contains an array. I have a simple patch in testing. -- Summary: array in struct disables salias subvars for other fields Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization, alias Severity: enhancement Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22555