From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8226 invoked by alias); 22 Nov 2013 11:38:50 -0000 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 Received: (qmail 8168 invoked by uid 48); 22 Nov 2013 11:38:47 -0000 From: "paulo@matos-sorge.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57748] [4.7/4.8/4.9 Regression] ICE when expanding assignment to unaligned zero-sized array Date: Fri, 22 Nov 2013 11:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paulo@matos-sorge.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg02299.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57748 --- Comment #49 from Paulo J. Matos --- I noticed that enabling misaligned moves have created a few test failures on my port. Namely: execute.exp=20051113-1.c. It was generating one too many moves to deference the structure in function Sum. Applying patch posted by Bernd: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02291.html fixes the problems I was seeing. The patch does not apply cleanly to 4.8 (3 out of 14 hunks fail) but they are easily fixable. Again, a request for this to be approved in master and later in 4.8 (since it lead to wrong code generation).