From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23634 invoked by alias); 22 Jun 2011 04:00:52 -0000 Received: (qmail 23626 invoked by uid 22791); 22 Jun 2011 04:00:51 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from dair.pair.com (HELO dair.pair.com) (209.68.1.49) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 22 Jun 2011 04:00:37 +0000 Received: (qmail 68156 invoked by uid 20157); 22 Jun 2011 04:00:36 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 22 Jun 2011 04:00:36 -0000 Date: Wed, 22 Jun 2011 08:17:00 -0000 From: Hans-Peter Nilsson To: Jan Hubicka cc: gcc-patches@gcc.gnu.org Subject: Regression with "varpool alias reorg" In-Reply-To: <20110618083233.GA22220@kam.mff.cuni.cz> Message-ID: References: <20110618083233.GA22220@kam.mff.cuni.cz> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01651.txt.bz2 On Sat, 18 Jun 2011, Jan Hubicka wrote: > * lto-symtab.c (lto_varpool_replace_node): Remove code handling > extra name aliases. > (lto_symtab_resolve_can_prevail_p): Likewise. > (lto_symtab_merge_cgraph_nodes): Update alias_of pointers. > * cgraphbuild.c (record_reference): Remove extra body alias code. > (mark_load): Likewise. > (mark_store): Likewise. > * cgraph.h (varpool_node): Remove extra_name filed; > add alias_of and extraname_alias. > (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare. > (varpool_alias_aliased_node): New inline function. > (varpool_variable_node): New function. > * cgraphunit.c (handle_alias_pairs): Handle also variable aliases. > * ipa-ref.c (ipa_record_reference): Allow aliases on variables. > * lto-cgraph.c (lto_output_varpool_node): Update streaming. > (input_varpool_node): Likewise. > * lto-streamer-out.c (produce_symtab): Remove extra name aliases. > (varpool_externally_visible_p): Remove extra body alias code. > (function_and_variable_visibility): Likewise. > * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function. > (ipa_pta_execute): Use it. > * varpool.c (varpool_remove_node): Remove extra name alias code. > (varpool_mark_needed_node): Likewise. > (varpool_analyze_pending_decls): Analyze aliases. > (assemble_aliases): New functoin. > (varpool_assemble_decl): Use it. > (varpool_create_variable_alias): New function. > (varpool_extra_name_alias): Rewrite. > (varpool_for_node_and_aliases): New function. This caused a regression for emutls targets, see PR49500. brgds, H-P