From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99509 invoked by alias); 9 Oct 2015 06:18:30 -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 99469 invoked by uid 48); 9 Oct 2015 06:18:26 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/67891] [6 Regression] FAIL: gcc.dg/pr43300.c (internal compiler error) on alpha-linux-gnu Date: Fri, 09 Oct 2015 06:18: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2015-10/txt/msg00622.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67891 --- Comment #2 from Alexandre Oliva --- Created attachment 36469 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36469&action=edit Patch that works around the problem Ugh. assign_parms's use of emit_block_move (as for parameter a in this testcase) marks decls as addressable that weren't before, so they no longer pass is_gimple_reg in spite of having SSA defs. This is turn causes set_parm_rtl to pass the parm down to set_rtl, instead of the default def, so the RTL isn't associated with the partition holding the default def. Oops. Fortunately, ssa_default_def doesn't seem to mind being called for addressable decls, so we can just skip the is_gimple_reg test. I'm testing further to see that this is indeed the case.