From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6649 invoked by alias); 25 Feb 2015 14:50:49 -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 6590 invoked by uid 48); 25 Feb 2015 14:50:45 -0000 From: "ktietz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64212] [4.9/5 Regression] ICE [in noninterposable_alias, at symtab.c:1706] Date: Wed, 25 Feb 2015 15:07: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ktietz at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 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: 2015-02/txt/msg02791.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64212 --- Comment #6 from Kai Tietz --- (In reply to Jan Hubicka from comment #5) > Well, can someone overwrite dllimport symbol by different definition? > If not, it is a bug of decl_binds_to_current_def_p to return false here. > If it can be inteprposed, I think the function > symtab_node::noninterposable_alias should remove dllimport attribute on the > alias created and so should symtab_node::make_decl_local Thanks Honza, well, dllimport symbol can be interposed ... well their function-stub can. So variant two seems to be the right thing to do. I am about to prepare a patch for this ...