From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7753 invoked by alias); 12 Feb 2014 12:08:26 -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 7716 invoked by uid 48); 12 Feb 2014 12:08:21 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/43546] [4.7/4.8/4.9 Regression] ICE: in assign_stack_local_1, at function.c:353 with -mpreferred-stack-boundary=2 -msseregparm Date: Wed, 12 Feb 2014 12:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.4.4 X-Bugzilla-Keywords: ice-on-valid-code, ra X-Bugzilla-Severity: minor X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created 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: 2014-02/txt/msg01135.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43546 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #14 from Jakub Jelinek --- Created attachment 32114 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32114&action=edit gcc49-pr43546.patch This untested patch fixes this for me, the dynamic stack realignment code is then aware of the DFmode that might need to be possibly spilled. The cost patch isn't wrong either, but at that level we really can't determine if the constant load will be zero cost (when we will attempt to load it into a i387 stack register) or more expensive (if it is loaded into a SSE register).