From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19823 invoked by alias); 11 Jun 2011 15:35:22 -0000 Received: (qmail 19694 invoked by uid 22791); 11 Jun 2011 15:35:21 -0000 X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_40,KAM_STOCKTIP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Jun 2011 15:35:02 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 17AEA9AC7D7; Sat, 11 Jun 2011 17:35:01 +0200 (CEST) Date: Sat, 11 Jun 2011 15:41:00 -0000 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Cgraph alias reorg 18/14 (fix LTO symtab streaming) Message-ID: <20110611153501.GA854@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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/msg00911.txt.bz2 Hi, another hunk that got lost. We need to stream aliases into the symbol table. For some reason this cuase very little trouble... Bootstrapped/regtested x86_64-linux. Comitted. Honza Index: ChangeLog =================================================================== --- ChangeLog (revision 174955) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ 2011-06-11 Jan Hubicka + * lto-streamer-out.c (produce_symtab): Stream out the newly represented + aliases. + +2011-06-11 Jan Hubicka + * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying args. (ipa_update_after_lto_read): Likewise. (ipa_write_node_info): Do not sream call_with_var_arguments. Index: lto-streamer-out.c =================================================================== --- lto-streamer-out.c (revision 174952) +++ lto-streamer-out.c (working copy) @@ -2582,7 +2582,7 @@ produce_symtab (struct output_block *ob, if (DECL_COMDAT (node->decl) && cgraph_comdat_can_be_unshared_p (node)) continue; - if (node->alias || node->global.inlined_to) + if ((node->alias && !node->thunk.alias) || node->global.inlined_to) continue; write_symbol (cache, &stream, node->decl, seen, false); } @@ -2594,7 +2594,7 @@ produce_symtab (struct output_block *ob, if (DECL_COMDAT (node->decl) && cgraph_comdat_can_be_unshared_p (node)) continue; - if (node->alias || node->global.inlined_to) + if ((node->alias && !node->thunk.alias) || node->global.inlined_to) continue; write_symbol (cache, &stream, node->decl, seen, false); }