From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128647 invoked by alias); 6 Oct 2015 19:55:34 -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 128536 invoked by uid 48); 6 Oct 2015 19:55:31 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/67794] [6 regression] internal compiler error: Segmentation fault Date: Tue, 06 Oct 2015 19:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: ice-on-valid-code 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: bug_status assigned_to 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/msg00452.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67794 Alexandre Oliva changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot gnu.org --- Comment #4 from Alexandre Oliva --- Created attachment 36454 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36454&action=edit Patch that removes the crash This patch fixes the problem by tolerating IPA ESRA's leaving removed PARM_DECLs alone, instead of replacing them with VAR_DECLs. I would rather we used a VAR_DECL instead, because I'm concerned about other places that distinguish between PARM_DECLs and VAR_DECLs, at least when it comes to handling their default defs. I haven't looked into this possibility yet, though; it might be that other pieces of the compiler rely on the decls remaining as PARM_DECLs for other purposes.