From patchwork Mon Jul 23 13:22:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 172679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 55A342C0361 for ; Mon, 23 Jul 2012 23:22:41 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1343654562; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=HRt88CyurP2X2Stpl2T0 /YBdnVQ=; b=dTwcrXljEPmCyyAdjI6+Aax0qqm28JuiimSVijyBP9Hj3pDNukWi rN3D2C7D/wQa0OmSxGq8nM1sj1+Fgcakyd5liBf7htJS8VEZ4WfZhztXyRVPE6C5 2BkcvqYiebQE5a7Ldl0933rm1vbNlUiUBg6YIsD5ysfcuTe8S1ZzD2s= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Date:From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=tS4E3s0D5itvbPOf/z3gWHlVzUjNh/7Kv9aiVN0p35B9T2m7YholyrBlMwIqYJ ptlPE3mKH1JBuLs+vIvTg+rtjbUug97Iwf4pHbBXCw1NJbEDJKmnD6qymLr3s0Ca RJ/KjKzj+oIEzJ9jmnxYm4XkIRVbaqGE7w5gTMxU/MU70=; Received: (qmail 31590 invoked by alias); 23 Jul 2012 13:22:36 -0000 Received: (qmail 31580 invoked by uid 22791); 23 Jul 2012 13:22:35 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Jul 2012 13:22:22 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 06682A3A49 for ; Mon, 23 Jul 2012 15:22:21 +0200 (CEST) Date: Mon, 23 Jul 2012 15:22:20 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Use local-decls in aliased vars dumping Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2012-07-23 Richard Guenther * tree-ssa-alias.c (dump_alias_info): Walk over local decls instead of referenced vars. Index: gcc/tree-ssa-alias.c =================================================================== --- gcc/tree-ssa-alias.c (revision 189718) +++ gcc/tree-ssa-alias.c (working copy) @@ -378,17 +378,16 @@ stmt_may_clobber_global_p (gimple stmt) void dump_alias_info (FILE *file) { - size_t i; + unsigned i; const char *funcname = lang_hooks.decl_printable_name (current_function_decl, 2); - referenced_var_iterator rvi; tree var; fprintf (file, "\n\nAlias information for %s\n\n", funcname); fprintf (file, "Aliased symbols\n\n"); - FOR_EACH_REFERENCED_VAR (cfun, var, rvi) + FOR_EACH_LOCAL_DECL (cfun, i, var) { if (may_be_aliased (var)) dump_variable (file, var);