From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20485 invoked by alias); 26 Jan 2015 03:56:32 -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 20399 invoked by uid 55); 26 Jan 2015 03:56:22 -0000 From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/61548] [5 Regression] FAIL: gcc.dg/tls/alias-1.c (internal compiler error) Date: Mon, 26 Jan 2015 03:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at ucw dot cz X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka 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-01/txt/msg02802.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61548 --- Comment #13 from Jan Hubicka --- > So, what is here is: > emutls calls varpool_node::create_alias(decl("emutls_v.bar"), > decl("emutls_v.foo")) which sets alias = true and alias_target = > node("emutls_v.foo") on the node for "emutls_v.bar", however it does not set up > ref_list.references on node("emutls_v.bar") to point at node("emutls_v.foo"). > Then during varification we call symtab_node::get_alias_target() which gets the > alias from node("emutls_v.bar").ref_list.references but that crashes becauses > references doesn't contain an element for the alias target. The way to get the references for alias is to call alias->resolve_alias. The resolution normally happens at the end of parsing but if someone introduces new alias late, he needs to cal the resolve_alias manually. Honza