From patchwork Fri Oct 18 13:38:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew MacLeod X-Patchwork-Id: 284591 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A8F992C00B1 for ; Sat, 19 Oct 2013 00:38:16 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; q=dns; s=default; b=vI8m91Jd7ZaCIGB1f eYVwHL61xMk9Ya3Li/A9lReJDbd75378X+0FTC60nqx0r/y850syMO+aAmCjYL6J uZ2ZfrYsP9vjrMXeaIRQuEbyLKWw5k/dgvyjy06kWipghXADNTPO5kHyfe6FzJL4 Ay09Xuj373WuoDH23k6iiidCE0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=default; bh=pyRQHxj0yfv8I0mjAMyiIdn uO6g=; b=VEKStNAFoxBVjwb6Yq5laWSHNdAg+VQpDhIdus6T6/GzUgjH/GNsr/C WcVBAeXbH+hWeDUeeBO0GwlCQOjpqHStgfgCfXcfr0X+MdXpce1JEnbYQjicdcWM exx/i0zBZOOiGX7+WNE8oDIHC7um4JTehpLJmOoEpTV/ZZTW3bSE= Received: (qmail 19281 invoked by alias); 18 Oct 2013 13:38:11 -0000 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 Received: (qmail 19266 invoked by uid 89); 18 Oct 2013 13:38:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2013 13:38:09 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9IDc8xk006997 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 18 Oct 2013 09:38:08 -0400 Received: from [10.10.61.67] (vpn-61-67.rdu2.redhat.com [10.10.61.67]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r9IDc7bk016697; Fri, 18 Oct 2013 09:38:08 -0400 Message-ID: <526139BF.4050607@redhat.com> Date: Fri, 18 Oct 2013 09:38:07 -0400 From: Andrew MacLeod User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: gcc-patches , Richard Biener Subject: [patch 2/8] Remove tree-ssa-address.h from the tree-ssa.h include list. References: <5260856C.7070008@redhat.com> In-Reply-To: <5260856C.7070008@redhat.com> X-IsSubscribed: yes This patch just does the direct thing.. included the file where it was needed (7 .c files) I was tempted to move copy_ref_info() to a different file... its actually the only routine in this file which is SSA based... and rename the file tree-address.[ch]. Not sure where I'd copy it to, maybe tree-ssa.c... Almost every routine called is in tree-ssanames.c, but that doesnt seem quite appropriate. Maybe its OK like it is. In any case, if you want something further done, I can follow up with another patch. bootstraps on x86_64-unknown-linux-gnu with no new regressions. OK? Andrew * tree-ssa.h: Don't include tree-ssa-address.h. * cfgexpand.c: Add tree-ssa-address.h to include list. * expr.c: Likewise. * gimple-fold.c: Likewise. * gimple-ssa-strength-reduction.c: Likewise. * trans-mem.c: Likewise. * tree-mudflap.c: Likewise. * tree-ssa-loop-ivopts.c: Likewise. *** T3/tree-ssa.h 2013-10-17 10:52:02.858047334 -0400 --- tree-ssa.h 2013-10-17 12:10:07.460476961 -0400 *************** along with GCC; see the file COPYING3. *** 33,39 **** #include "tree-ssanames.h" #include "tree-ssa-dom.h" #include "tree-ssa-threadedge.h" - #include "tree-ssa-address.h" #include "tree-ssa-loop.h" #include "tree-into-ssa.h" #include "tree-dfa.h" --- 33,38 ---- *** T3/cfgexpand.c 2013-10-17 10:52:02.825047320 -0400 --- cfgexpand.c 2013-10-17 12:21:13.884452160 -0400 *************** along with GCC; see the file COPYING3. *** 47,52 **** --- 47,53 ---- #include "regs.h" /* For reg_renumber. */ #include "insn-attr.h" /* For INSN_SCHEDULING. */ #include "asan.h" + #include "tree-ssa-address.h" /* This variable holds information helping the rewriting of SSA trees into RTL. */ *** T3/expr.c 2013-10-17 10:52:02.831047323 -0400 --- expr.c 2013-10-17 12:22:05.594452615 -0400 *************** along with GCC; see the file COPYING3. *** 52,57 **** --- 52,58 ---- #include "tree-outof-ssa.h" #include "target-globals.h" #include "params.h" + #include "tree-ssa-address.h" /* Decide whether a function's arguments should be processed from first to last or from last to first. *** T3/gimple-fold.c 2013-10-17 10:52:02.836047325 -0400 --- gimple-fold.c 2013-10-17 12:21:57.753452521 -0400 *************** along with GCC; see the file COPYING3. *** 31,36 **** --- 31,37 ---- #include "target.h" #include "ipa-utils.h" #include "gimple-pretty-print.h" + #include "tree-ssa-address.h" /* Return true when DECL can be referenced from current unit. FROM_DECL (if non-null) specify constructor of variable DECL was taken from. *** T3/gimple-ssa-strength-reduction.c 2013-10-17 10:52:02.836047325 -0400 --- gimple-ssa-strength-reduction.c 2013-10-17 12:21:05.563452124 -0400 *************** along with GCC; see the file COPYING3. *** 48,53 **** --- 48,54 ---- #include "expmed.h" #include "params.h" #include "hash-table.h" + #include "tree-ssa-address.h" /* Information about a strength reduction candidate. Each statement in the candidate table represents an expression of one of the *** T3/trans-mem.c 2013-10-17 10:52:02.853047332 -0400 --- trans-mem.c 2013-10-17 12:21:09.283452139 -0400 *************** *** 35,40 **** --- 35,41 ---- #include "langhooks.h" #include "gimple-pretty-print.h" #include "cfgloop.h" + #include "tree-ssa-address.h" #define PROB_VERY_UNLIKELY (REG_BR_PROB_BASE / 2000 - 1) *** T3/tree-mudflap.c 2013-10-17 10:52:02.856047334 -0400 --- tree-mudflap.c 2013-10-17 12:20:54.929452093 -0400 *************** along with GCC; see the file COPYING3. *** 42,47 **** --- 42,48 ---- #include "ggc.h" #include "cgraph.h" #include "gimple.h" + #include "tree-ssa-address.h" extern void add_bb_to_loop (basic_block, struct loop *); *** T3/tree-ssa-loop-ivopts.c 2013-10-17 10:52:02.859047335 -0400 --- tree-ssa-loop-ivopts.c 2013-10-17 12:20:59.933452106 -0400 *************** along with GCC; see the file COPYING3. *** 86,91 **** --- 86,92 ---- #include "tree-inline.h" #include "tree-ssa-propagate.h" #include "expmed.h" + #include "tree-ssa-address.h" /* FIXME: Expressions are expanded to RTL in this pass to determine the cost of different addressing modes. This should be moved to a TBD