From patchwork Mon Nov 11 21:07:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew MacLeod X-Patchwork-Id: 290508 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 080062C00AC for ; Tue, 12 Nov 2013 08:08:18 +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=NQETUVhii8FB85Va+ inUDJgo4sjn+yOSjhfSIg5WkcUmAEu4hjkMWnsmenCx2JZkRPZw93ZP7drIf0v3V IaiKWH4NWvu6xI78tr94/jaD5vLPTLTo+/9osouZkrVBZKSLUmTI8cypeUr7n0aY LOzfS4fnmXdgbhS2VoC5jbHMAU= 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=wjqtCOKldva7SL/lZgpHZeg MgWw=; b=in06aFigfOVnheuhmWImoguEskXBPOjhGFWr00utOEGDn2f2FZ4MAyg Vm+N5oheBeB4lV4ABxJccrs6LHJrlkc7QyJA5sFmeEAi9tFMRlmiWJ5gaJjS7Sma BwgGsA4ZjEg8FVLH9Foa7JN2WUzMWLmajnHeuPO2HrQ5JpsLdRoM= Received: (qmail 19734 invoked by alias); 11 Nov 2013 21:07:36 -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 19674 invoked by uid 89); 11 Nov 2013 21:07:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_50, RDNS_NONE, SPF_HELO_PASS, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Nov 2013 21:07:29 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rABL7MBL022354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 11 Nov 2013 16:07:22 -0500 Received: from [10.10.55.41] (vpn-55-41.rdu2.redhat.com [10.10.55.41]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rABL7LJK027378; Mon, 11 Nov 2013 16:07:21 -0500 Message-ID: <52814709.6080904@redhat.com> Date: Mon, 11 Nov 2013 16:07:21 -0500 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 , Jeff Law , Richard Biener , Diego Novillo Subject: [patch 3/4] Separate gimple.[ch] and gimplify.[ch] - front end files References: <5281460E.1070001@redhat.com> In-Reply-To: <5281460E.1070001@redhat.com> X-IsSubscribed: yes This one covers the front end files which included gimple.h Bootstraps on x86_64-unknown-linux-gnu with no new regressions. OK? Andrew * ada/gcc-interface/trans.c: Include gimplify.h. * c/c-typeck.c: Include gimplify.h. * c-family/c-common.c: Include gimplify.h. * c-family/c-gimplify.c: Likewise. * c-family/cilk.c: Likewise. * c-family/c-omp.c: Include gimple-expr.h instead of gimple.h. * c-family/c-ubsan.c: Don't include gimple.h. * cp/class.c: Include gimplify.h. * cp/cp-gimplify.c: Likewise. * cp/error.c: Likewise. * cp/init.c: Likewise. * cp/optimize.c: Likewise. * cp/pt.c: Likewise. * cp/semantics.c: Likewise. * cp/tree.c: Likewise. * cp/vtable-class-hierarchy.c: Likewise. * cp/decl2.c: Don't include gimple.h. * cp/except.c: Likewise. * cp/method.c: Include pointer-set.h instead of gimple.h. * fortran/f95-lang.c: Don't include gimple.h. * fortran/trans-array.c: Include gimple-expr.h instead of gimple.h. * fortran/trans.c: Likewise. * fortran/trans-decl.c: Likewise. * fortran/trans-expr.c: Include gimplify.h. * fortran/trans-openmp.c: Likewise. * go/go-lang.c: Include gimplify.h. * go/gofrontend/expressions.cc: Likewise. * go/gofrontend/gogo-tree.cc: Likewise. * go/gofrontend/types.cc: Likewise. * java/java-gimplify.c: Include gimplify.h. * objc/objc-act.c: Include gimplify.h. Index: ada/gcc-interface/trans.c =================================================================== *** ada/gcc-interface/trans.c (revision 204496) --- ada/gcc-interface/trans.c (working copy) *************** *** 33,39 **** #include "output.h" #include "libfuncs.h" /* For set_stack_check_libfunc. */ #include "tree-iterator.h" ! #include "gimple.h" #include "bitmap.h" #include "cgraph.h" #include "diagnostic.h" --- 33,39 ---- #include "output.h" #include "libfuncs.h" /* For set_stack_check_libfunc. */ #include "tree-iterator.h" ! #include "gimplify.h" #include "bitmap.h" #include "cgraph.h" #include "diagnostic.h" Index: c/c-typeck.c =================================================================== *** c/c-typeck.c (revision 204496) --- c/c-typeck.c (working copy) *************** along with GCC; see the file COPYING3. *** 36,42 **** #include "target.h" #include "tree-iterator.h" #include "bitmap.h" ! #include "gimple.h" #include "tree-inline.h" #include "omp-low.h" #include "c-family/c-objc.h" --- 36,42 ---- #include "target.h" #include "tree-iterator.h" #include "bitmap.h" ! #include "gimplify.h" #include "tree-inline.h" #include "omp-low.h" #include "c-family/c-objc.h" Index: c-family/c-common.c =================================================================== *** c-family/c-common.c (revision 204496) --- c-family/c-common.c (working copy) *************** along with GCC; see the file COPYING3. *** 42,47 **** --- 42,48 ---- #include "opts.h" #include "cgraph.h" #include "target-def.h" + #include "gimplify.h" cpp_reader *parse_in; /* Declared in c-pragma.h. */ Index: c-family/c-gimplify.c =================================================================== *** c-family/c-gimplify.c (revision 204496) --- c-family/c-gimplify.c (working copy) *************** along with GCC; see the file COPYING3. *** 29,35 **** #include "tm.h" #include "tree.h" #include "c-common.h" ! #include "gimple.h" #include "tree-inline.h" #include "diagnostic-core.h" #include "langhooks.h" --- 29,35 ---- #include "tm.h" #include "tree.h" #include "c-common.h" ! #include "gimplify.h" #include "tree-inline.h" #include "diagnostic-core.h" #include "langhooks.h" Index: c-family/cilk.c =================================================================== *** c-family/cilk.c (revision 204496) --- c-family/cilk.c (working copy) *************** along with GCC; see the file COPYING3. *** 25,31 **** #include "coretypes.h" #include "tree.h" #include "langhooks.h" ! #include "gimple.h" #include "tree-iterator.h" #include "tree-inline.h" #include "c-family/c-common.h" --- 25,31 ---- #include "coretypes.h" #include "tree.h" #include "langhooks.h" ! #include "gimplify.h" #include "tree-iterator.h" #include "tree-inline.h" #include "c-family/c-common.h" Index: c-family/c-omp.c =================================================================== *** c-family/c-omp.c (revision 204496) --- c-family/c-omp.c (working copy) *************** along with GCC; see the file COPYING3. *** 27,33 **** #include "tree.h" #include "c-common.h" #include "c-pragma.h" ! #include "gimple.h" /* For create_tmp_var_raw. */ #include "langhooks.h" --- 27,33 ---- #include "tree.h" #include "c-common.h" #include "c-pragma.h" ! #include "gimple-expr.h" #include "langhooks.h" Index: c-family/c-ubsan.c =================================================================== *** c-family/c-ubsan.c (revision 204496) --- c-family/c-ubsan.c (working copy) *************** along with GCC; see the file COPYING3. *** 24,30 **** #include "tree.h" #include "alloc-pool.h" #include "cgraph.h" - #include "gimple.h" #include "output.h" #include "toplev.h" #include "ubsan.h" --- 24,29 ---- Index: cp/class.c =================================================================== *** cp/class.c (revision 204496) --- cp/class.c (working copy) *************** along with GCC; see the file COPYING3. *** 36,41 **** --- 36,42 ---- #include "splay-tree.h" #include "pointer-set.h" #include "hash-table.h" + #include "gimplify.h" /* The number of nested classes being processed. If we are not in the scope of any class, this is zero. */ Index: cp/cp-gimplify.c =================================================================== *** cp/cp-gimplify.c (revision 204496) --- cp/cp-gimplify.c (working copy) *************** along with GCC; see the file COPYING3. *** 27,33 **** #include "cp-tree.h" #include "c-family/c-common.h" #include "tree-iterator.h" ! #include "gimple.h" #include "hashtab.h" #include "pointer-set.h" #include "flags.h" --- 27,33 ---- #include "cp-tree.h" #include "c-family/c-common.h" #include "tree-iterator.h" ! #include "gimplify.h" #include "hashtab.h" #include "pointer-set.h" #include "flags.h" Index: cp/error.c =================================================================== *** cp/error.c (revision 204496) --- cp/error.c (working copy) *************** along with GCC; see the file COPYING3. *** 33,38 **** --- 33,39 ---- #include "pointer-set.h" #include "c-family/c-objc.h" #include "ubsan.h" + #include "gimplify.h" #include // For placement-new. Index: cp/init.c =================================================================== *** cp/init.c (revision 204496) --- cp/init.c (working copy) *************** along with GCC; see the file COPYING3. *** 28,33 **** --- 28,34 ---- #include "cp-tree.h" #include "flags.h" #include "target.h" + #include "gimplify.h" static bool begin_init_stmts (tree *, tree *); static tree finish_init_stmts (bool, tree, tree); Index: cp/optimize.c =================================================================== *** cp/optimize.c (revision 204496) --- cp/optimize.c (working copy) *************** along with GCC; see the file COPYING3. *** 34,40 **** #include "langhooks.h" #include "diagnostic-core.h" #include "dumpfile.h" ! #include "gimple.h" #include "tree-iterator.h" #include "cgraph.h" --- 34,40 ---- #include "langhooks.h" #include "diagnostic-core.h" #include "dumpfile.h" ! #include "gimplify.h" #include "tree-iterator.h" #include "cgraph.h" Index: cp/pt.c =================================================================== *** cp/pt.c (revision 204496) --- cp/pt.c (working copy) *************** along with GCC; see the file COPYING3. *** 42,47 **** --- 42,48 ---- #include "timevar.h" #include "tree-iterator.h" #include "type-utils.h" + #include "gimplify.h" /* The type of functions taking a tree, and some additional data, and returning an int. */ Index: cp/semantics.c =================================================================== *** cp/semantics.c (revision 204496) --- cp/semantics.c (working copy) *************** along with GCC; see the file COPYING3. *** 41,47 **** #include "tree-iterator.h" #include "vec.h" #include "target.h" ! #include "gimple.h" #include "bitmap.h" #include "hash-table.h" #include "omp-low.h" --- 41,47 ---- #include "tree-iterator.h" #include "vec.h" #include "target.h" ! #include "gimplify.h" #include "bitmap.h" #include "hash-table.h" #include "omp-low.h" Index: cp/tree.c =================================================================== *** cp/tree.c (revision 204496) --- cp/tree.c (working copy) *************** along with GCC; see the file COPYING3. *** 30,36 **** #include "convert.h" #include "cgraph.h" #include "splay-tree.h" ! #include "gimple.h" /* gimple_has_body_p */ #include "hash-table.h" static tree bot_manip (tree *, int *, void *); --- 30,36 ---- #include "convert.h" #include "cgraph.h" #include "splay-tree.h" ! #include "gimplify.h" #include "hash-table.h" static tree bot_manip (tree *, int *, void *); Index: cp/vtable-class-hierarchy.c =================================================================== *** cp/vtable-class-hierarchy.c (revision 204496) --- cp/vtable-class-hierarchy.c (working copy) *************** along with GCC; see the file COPYING3. *** 118,124 **** #include "cgraph.h" #include "tree-iterator.h" #include "vtable-verify.h" ! #include "gimple.h" static int num_calls_to_regset = 0; static int num_calls_to_regpair = 0; --- 118,124 ---- #include "cgraph.h" #include "tree-iterator.h" #include "vtable-verify.h" ! #include "gimplify.h" static int num_calls_to_regset = 0; static int num_calls_to_regpair = 0; Index: cp/decl2.c =================================================================== *** cp/decl2.c (revision 204496) --- cp/decl2.c (working copy) *************** along with GCC; see the file COPYING3. *** 45,51 **** #include "c-family/c-pragma.h" #include "dumpfile.h" #include "intl.h" - #include "gimple.h" #include "pointer-set.h" #include "splay-tree.h" #include "langhooks.h" --- 45,50 ---- Index: cp/except.c =================================================================== *** cp/except.c (revision 204496) --- cp/except.c (working copy) *************** along with GCC; see the file COPYING3. *** 31,37 **** #include "tree-inline.h" #include "tree-iterator.h" #include "target.h" - #include "gimple.h" static void push_eh_cleanup (tree); static tree prepare_eh_type (tree); --- 31,36 ---- Index: cp/method.c =================================================================== *** cp/method.c (revision 204496) --- cp/method.c (working copy) *************** along with GCC; see the file COPYING3. *** 34,40 **** #include "common/common-target.h" #include "diagnostic.h" #include "cgraph.h" ! #include "gimple.h" /* Various flags to control the mangling process. */ --- 34,40 ---- #include "common/common-target.h" #include "diagnostic.h" #include "cgraph.h" ! #include "pointer-set.h" /* Various flags to control the mangling process. */ Index: fortran/f95-lang.c =================================================================== *** fortran/f95-lang.c (revision 204496) --- fortran/f95-lang.c (working copy) *************** along with GCC; see the file COPYING3. *** 28,34 **** #include "system.h" #include "coretypes.h" #include "tree.h" - #include "gimple.h" #include "flags.h" #include "langhooks.h" #include "langhooks-def.h" --- 28,33 ---- Index: fortran/trans-array.c =================================================================== *** fortran/trans-array.c (revision 204496) --- fortran/trans-array.c (working copy) *************** along with GCC; see the file COPYING3. *** 79,85 **** #include "system.h" #include "coretypes.h" #include "tree.h" ! #include "gimple.h" /* For create_tmp_var_name. */ #include "diagnostic-core.h" /* For internal_error/fatal_error. */ #include "flags.h" #include "gfortran.h" --- 79,85 ---- #include "system.h" #include "coretypes.h" #include "tree.h" ! #include "gimple-expr.h" #include "diagnostic-core.h" /* For internal_error/fatal_error. */ #include "flags.h" #include "gfortran.h" Index: fortran/trans.c =================================================================== *** fortran/trans.c (revision 204496) --- fortran/trans.c (working copy) *************** along with GCC; see the file COPYING3. *** 22,28 **** #include "system.h" #include "coretypes.h" #include "tree.h" ! #include "gimple.h" /* For create_tmp_var_raw. */ #include "tree-iterator.h" #include "diagnostic-core.h" /* For internal_error. */ #include "flags.h" --- 22,28 ---- #include "system.h" #include "coretypes.h" #include "tree.h" ! #include "gimple-expr.h" /* For create_tmp_var_raw. */ #include "tree-iterator.h" #include "diagnostic-core.h" /* For internal_error. */ #include "flags.h" Index: fortran/trans-decl.c =================================================================== *** fortran/trans-decl.c (revision 204496) --- fortran/trans-decl.c (working copy) *************** along with GCC; see the file COPYING3. *** 26,32 **** #include "tm.h" #include "tree.h" #include "tree-dump.h" ! #include "gimple.h" /* For create_tmp_var_raw. */ #include "ggc.h" #include "diagnostic-core.h" /* For internal_error. */ #include "toplev.h" /* For announce_function. */ --- 26,32 ---- #include "tm.h" #include "tree.h" #include "tree-dump.h" ! #include "gimple-expr.h" /* For create_tmp_var_raw. */ #include "ggc.h" #include "diagnostic-core.h" /* For internal_error. */ #include "toplev.h" /* For announce_function. */ Index: fortran/trans-expr.c =================================================================== *** fortran/trans-expr.c (revision 204496) --- fortran/trans-expr.c (working copy) *************** along with GCC; see the file COPYING3. *** 38,43 **** --- 38,44 ---- /* Only for gfc_trans_assign and gfc_trans_pointer_assign. */ #include "trans-stmt.h" #include "dependency.h" + #include "gimplify.h" /* Convert a scalar to an array descriptor. To be used for assumed-rank Index: fortran/trans-openmp.c =================================================================== *** fortran/trans-openmp.c (revision 204496) --- fortran/trans-openmp.c (working copy) *************** along with GCC; see the file COPYING3. *** 23,29 **** #include "system.h" #include "coretypes.h" #include "tree.h" ! #include "gimple.h" /* For create_tmp_var_raw. */ #include "diagnostic-core.h" /* For internal_error. */ #include "gfortran.h" #include "trans.h" --- 23,29 ---- #include "system.h" #include "coretypes.h" #include "tree.h" ! #include "gimplify.h" /* For create_tmp_var_raw. */ #include "diagnostic-core.h" /* For internal_error. */ #include "gfortran.h" #include "trans.h" Index: go/go-lang.c =================================================================== *** go/go-lang.c (revision 204496) --- go/go-lang.c (working copy) *************** along with GCC; see the file COPYING3. *** 23,29 **** #include "coretypes.h" #include "opts.h" #include "tree.h" ! #include "gimple.h" #include "ggc.h" #include "toplev.h" #include "debug.h" --- 23,29 ---- #include "coretypes.h" #include "opts.h" #include "tree.h" ! #include "gimplify.h" #include "ggc.h" #include "toplev.h" #include "debug.h" Index: go/gofrontend/expressions.cc =================================================================== *** go/gofrontend/expressions.cc (revision 204496) --- go/gofrontend/expressions.cc (working copy) *************** *** 12,17 **** --- 12,18 ---- #include "intl.h" #include "tree.h" #include "gimple.h" + #include "gimplify.h" #include "tree-iterator.h" #include "convert.h" #include "real.h" Index: go/gofrontend/gogo-tree.cc =================================================================== *** go/gofrontend/gogo-tree.cc (revision 204496) --- go/gofrontend/gogo-tree.cc (working copy) *************** *** 9,14 **** --- 9,15 ---- #include "toplev.h" #include "tree.h" #include "gimple.h" + #include "gimplify.h" #include "tree-iterator.h" #include "cgraph.h" #include "langhooks.h" Index: go/gofrontend/types.cc =================================================================== *** go/gofrontend/types.cc (revision 204496) --- go/gofrontend/types.cc (working copy) *************** *** 10,15 **** --- 10,16 ---- #include "intl.h" #include "tree.h" #include "gimple.h" + #include "gimplify.h" #include "real.h" #include "convert.h" Index: java/java-gimplify.c =================================================================== *** java/java-gimplify.c (revision 204496) --- java/java-gimplify.c (working copy) *************** The Free Software Foundation is independ *** 27,33 **** #include "tree.h" #include "java-tree.h" #include "dumpfile.h" ! #include "gimple.h" static tree java_gimplify_block (tree); static enum gimplify_status java_gimplify_modify_expr (tree *); --- 27,33 ---- #include "tree.h" #include "java-tree.h" #include "dumpfile.h" ! #include "gimplify.h" static tree java_gimplify_block (tree); static enum gimplify_status java_gimplify_modify_expr (tree *); Index: objc/objc-act.c =================================================================== *** objc/objc-act.c (revision 204496) --- objc/objc-act.c (working copy) *************** along with GCC; see the file COPYING3. *** 60,66 **** #include "tree-pretty-print.h" /* For enum gimplify_status */ ! #include "gimple.h" /* For encode_method_prototype(). */ #include "objc-encoding.h" --- 60,66 ---- #include "tree-pretty-print.h" /* For enum gimplify_status */ ! #include "gimplify.h" /* For encode_method_prototype(). */ #include "objc-encoding.h"