From patchwork Fri Jul 10 19:49:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew MacLeod X-Patchwork-Id: 493871 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DD8CA140291 for ; Sat, 11 Jul 2015 05:49:44 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=jFfC97Dl; dkim-atps=neutral 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:content-type; q= dns; s=default; b=XYcMlNtAYjTuDnRbiX1yaqdCVKErorCya1nl7G/wRTJW/g HSCfrbWP9U6dKsK1LrkoCa9XUxNbsvUBoOLs6AZmO0IfXBmOQ1QFjMwpYOgoYnhg LeeM8vj3Wg59/VaczWqje1wwha0b4aTvUUHtiJkjIezFdIm6uXxpbfBm38UyA= 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:content-type; s= default; bh=yPBzv2QEXFwlelIO2nL6GrFEzhw=; b=jFfC97DlgDr41mLufrPg BOIrlrfPRG69A8nnQ3CDsAiYxrfOMa88pWVkaYXLCRNu8Enhu492DBVR1a3jwGJU rhqMk/gYMfwtY4Bk4HTQ5XX/6yfp5uMNTOumDVUHx0CADzMPPCWCD5Al83EOOOP/ 79n45R97TDca2sqqHPhOQLI= Received: (qmail 87633 invoked by alias); 10 Jul 2015 19:49:27 -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 87513 invoked by uid 89); 10 Jul 2015 19:49:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_50, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=no 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 10 Jul 2015 19:49:19 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 85E1A307F6A for ; Fri, 10 Jul 2015 19:49:17 +0000 (UTC) Received: from [10.10.57.58] (vpn-57-58.rdu2.redhat.com [10.10.57.58]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6AJnG20023911 for ; Fri, 10 Jul 2015 15:49:16 -0400 Message-ID: <55A021BB.1040705@redhat.com> Date: Fri, 10 Jul 2015 15:49:15 -0400 From: Andrew MacLeod User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: gcc-patches Subject: [patch] Remove needless obstack.h includes X-IsSubscribed: yes noticed obstack.h was being included in a few files which already include backend.h, so its redundant. Just taking them out. Bootstraps on x86_64-unknown-linux-gnu, with no new regressions. finishing up a config-list.mk using targets from the changes just to be sure. OK for trunk assuming everything finishes fine? Andrew * bb-reorder.c: Don't include obstack.h if backend.h is included. * cfg.c: Likewise. * cfgloopanal.c: Likewise. * cfgrtl.c: Likewise. * combine.c: Likewise. * cprop.c: Likewise. * dominance.c: Likewise. * fwprop.c: Likewise. * gcse.c: Likewise. * ira-emit.c: Likewise. * ira.c: Likewise. * loop-init.c: Likewise. * loop-invariant.c: Likewise. * loop-iv.c: Likewise. * loop-unroll.c: Likewise. * lower-subreg.c: Likewise. * postreload-gcse.c: Likewise. * postreload.c: Likewise. * regcprop.c: Likewise. * regrename.c: Likewise. * reload1.c: Likewise. * reorg.c: Likewise. * tree-ssa-pre.c: Likewise. * tree-ssa-structalias.c: Likewise. * tree.c: Likewise. * web.c: Likewise. * config/aarch64/cortex-a57-fma-steering.c: Likewise. * config/alpha/alpha.c: Likewise. * config/arm/arm.c: Likewise. * config/avr/avr.c: Likewise. * config/darwin.c: Likewise. * config/fr30/fr30.c: Likewise. * config/frv/frv.c: Likewise. * config/ft32/ft32.c: Likewise. * config/m32c/m32c.c: Likewise. * config/mcore/mcore.c: Likewise. * config/mep/mep.c: Likewise. * config/mn10300/mn10300.c: Likewise. * config/moxie/moxie.c: Likewise. * config/rs6000/rs6000.c: Likewise. * config/spu/spu.c: Likewise. * config/stormy16/stormy16.c: Likewise. Index: bb-reorder.c =================================================================== *** bb-reorder.c (revision 225674) --- bb-reorder.c (working copy) *************** *** 92,98 **** #include "output.h" #include "target.h" #include "tm_p.h" - #include "obstack.h" #include "insn-config.h" #include "expmed.h" #include "dojump.h" --- 92,97 ---- Index: cfg.c =================================================================== *** cfg.c (revision 225674) --- cfg.c (working copy) *************** along with GCC; see the file COPYING3. *** 49,58 **** #include "config.h" #include "system.h" #include "coretypes.h" ! #include "obstack.h" #include "alloc-pool.h" #include "alias.h" - #include "backend.h" #include "cfghooks.h" #include "tree.h" #include "hard-reg-set.h" --- 49,57 ---- #include "config.h" #include "system.h" #include "coretypes.h" ! #include "backend.h" #include "alloc-pool.h" #include "alias.h" #include "cfghooks.h" #include "tree.h" #include "hard-reg-set.h" Index: cfgloopanal.c =================================================================== *** cfgloopanal.c (revision 225674) --- cfgloopanal.c (working copy) *************** along with GCC; see the file COPYING3. *** 23,29 **** #include "backend.h" #include "predict.h" #include "rtl.h" - #include "obstack.h" #include "cfgloop.h" #include "tree.h" #include "flags.h" --- 23,28 ---- Index: cfgrtl.c =================================================================== *** cfgrtl.c (revision 225674) --- cfgrtl.c (working copy) *************** along with GCC; see the file COPYING3. *** 56,62 **** #include "except.h" #include "rtl-error.h" #include "tm_p.h" - #include "obstack.h" #include "insn-attr.h" #include "insn-config.h" #include "expmed.h" --- 56,61 ---- Index: combine.c =================================================================== *** combine.c (revision 225674) --- combine.c (working copy) *************** along with GCC; see the file COPYING3. *** 111,117 **** #include "tree-pass.h" #include "valtrack.h" #include "cgraph.h" - #include "obstack.h" #include "rtl-iter.h" #ifndef LOAD_EXTEND_OP --- 111,116 ---- Index: cprop.c =================================================================== *** cprop.c (revision 225674) --- cprop.c (working copy) *************** along with GCC; see the file COPYING3. *** 50,56 **** #include "alloc-pool.h" #include "cselib.h" #include "intl.h" - #include "obstack.h" #include "tree-pass.h" #include "dbgcnt.h" #include "target.h" --- 50,55 ---- Index: dominance.c =================================================================== *** dominance.c (revision 225674) --- dominance.c (working copy) *************** *** 37,43 **** #include "coretypes.h" #include "backend.h" #include "rtl.h" - #include "obstack.h" #include "cfganal.h" #include "diagnostic-core.h" #include "alloc-pool.h" --- 37,42 ---- Index: fwprop.c =================================================================== *** fwprop.c (revision 225674) --- fwprop.c (working copy) *************** along with GCC; see the file COPYING3. *** 32,38 **** #include "insn-config.h" #include "recog.h" #include "flags.h" - #include "obstack.h" #include "cfgrtl.h" #include "cfgcleanup.h" #include "target.h" --- 32,37 ---- Index: gcse.c =================================================================== *** gcse.c (revision 225674) --- gcse.c (working copy) *************** along with GCC; see the file COPYING3. *** 166,172 **** #include "alloc-pool.h" #include "cselib.h" #include "intl.h" - #include "obstack.h" #include "tree-pass.h" #include "dbgcnt.h" #include "target.h" --- 166,171 ---- Index: ira-emit.c =================================================================== *** ira-emit.c (revision 225674) --- ira-emit.c (working copy) *************** along with GCC; see the file COPYING3. *** 77,83 **** #include "tm_p.h" #include "target.h" #include "flags.h" - #include "obstack.h" #include "cfgrtl.h" #include "cfgbuild.h" #include "alias.h" --- 77,82 ---- Index: ira.c =================================================================== *** ira.c (revision 225674) --- ira.c (working copy) *************** along with GCC; see the file COPYING3. *** 375,381 **** #include "tm_p.h" #include "target.h" #include "flags.h" - #include "obstack.h" #include "cfgrtl.h" #include "cfgbuild.h" #include "cfgcleanup.h" --- 375,380 ---- Index: loop-init.c =================================================================== *** loop-init.c (revision 225674) --- loop-init.c (working copy) *************** along with GCC; see the file COPYING3. *** 27,33 **** #include "df.h" #include "alias.h" #include "regs.h" - #include "obstack.h" #include "cfgcleanup.h" #include "cfgloop.h" #include "tree-pass.h" --- 27,32 ---- Index: loop-invariant.c =================================================================== *** loop-invariant.c (revision 225674) --- loop-invariant.c (working copy) *************** along with GCC; see the file COPYING3. *** 43,49 **** #include "rtl.h" #include "df.h" #include "tm_p.h" - #include "obstack.h" #include "cfgrtl.h" #include "cfgloop.h" #include "flags.h" --- 43,48 ---- Index: loop-iv.c =================================================================== *** loop-iv.c (revision 225674) --- loop-iv.c (working copy) *************** along with GCC; see the file COPYING3. *** 54,60 **** #include "tree.h" #include "rtl.h" #include "df.h" - #include "obstack.h" #include "cfgloop.h" #include "flags.h" #include "alias.h" --- 54,59 ---- Index: loop-unroll.c =================================================================== *** loop-unroll.c (revision 225674) --- loop-unroll.c (working copy) *************** along with GCC; see the file COPYING3. *** 25,31 **** #include "rtl.h" #include "alias.h" #include "tree.h" - #include "obstack.h" #include "profile.h" #include "cfgrtl.h" #include "cfgloop.h" --- 25,30 ---- Index: lower-subreg.c =================================================================== *** lower-subreg.c (revision 225674) --- lower-subreg.c (working copy) *************** along with GCC; see the file COPYING3. *** 31,37 **** #include "tm_p.h" #include "flags.h" #include "insn-config.h" - #include "obstack.h" #include "cfgrtl.h" #include "cfgbuild.h" #include "recog.h" --- 31,36 ---- Index: postreload-gcse.c =================================================================== *** postreload-gcse.c (revision 225674) --- postreload-gcse.c (working copy) *************** along with GCC; see the file COPYING3. *** 45,51 **** #include "expr.h" #include "except.h" #include "intl.h" - #include "obstack.h" #include "params.h" #include "target.h" #include "tree-pass.h" --- 45,50 ---- Index: postreload.c =================================================================== *** postreload.c (revision 225674) --- postreload.c (working copy) *************** along with GCC; see the file COPYING3. *** 27,33 **** #include "df.h" #include "tm_p.h" - #include "obstack.h" #include "insn-config.h" #include "flags.h" #include "alias.h" --- 27,32 ---- Index: regcprop.c =================================================================== *** regcprop.c (revision 225674) --- regcprop.c (working copy) *************** *** 31,37 **** #include "recog.h" #include "flags.h" #include "diagnostic-core.h" - #include "obstack.h" #include "tree-pass.h" #include "rtl-iter.h" #include "emit-rtl.h" --- 31,36 ---- Index: regrename.c =================================================================== *** regrename.c (revision 225674) --- regrename.c (working copy) *************** *** 33,39 **** #include "output.h" #include "recog.h" #include "flags.h" - #include "obstack.h" #include "tree-pass.h" #include "target.h" #include "emit-rtl.h" --- 33,38 ---- Index: reload1.c =================================================================== *** reload1.c (revision 225674) --- reload1.c (working copy) *************** along with GCC; see the file COPYING3. *** 28,34 **** #include "rtl-error.h" #include "tm_p.h" - #include "obstack.h" #include "insn-config.h" #include "flags.h" #include "alias.h" --- 28,33 ---- Index: reorg.c =================================================================== *** reorg.c (revision 225674) --- reorg.c (working copy) *************** along with GCC; see the file COPYING3. *** 124,130 **** #include "conditions.h" #include "regs.h" #include "recog.h" - #include "obstack.h" #include "insn-attr.h" #include "resource.h" #include "except.h" --- 124,129 ---- Index: tree-ssa-pre.c =================================================================== *** tree-ssa-pre.c (revision 225674) --- tree-ssa-pre.c (working copy) *************** along with GCC; see the file COPYING3. *** 56,62 **** #include "tree-ssa.h" #include "tree-iterator.h" #include "alloc-pool.h" - #include "obstack.h" #include "tree-pass.h" #include "langhooks.h" #include "cfgloop.h" --- 56,61 ---- Index: tree-ssa-structalias.c =================================================================== *** tree-ssa-structalias.c (revision 225674) --- tree-ssa-structalias.c (working copy) *************** *** 26,32 **** #include "gimple.h" #include "rtl.h" #include "ssa.h" - #include "obstack.h" #include "flags.h" #include "alias.h" #include "fold-const.h" --- 26,31 ---- Index: tree.c =================================================================== *** tree.c (revision 225674) --- tree.c (working copy) *************** along with GCC; see the file COPYING3. *** 43,49 **** #include "attribs.h" #include "varasm.h" #include "tm_p.h" - #include "obstack.h" #include "toplev.h" /* get_random_seed */ #include "filenames.h" #include "output.h" --- 43,48 ---- Index: web.c =================================================================== *** web.c (revision 225674) --- web.c (working copy) *************** along with GCC; see the file COPYING3. *** 42,48 **** #include "diagnostic-core.h" #include "flags.h" - #include "obstack.h" #include "insn-config.h" #include "recog.h" #include "tree-pass.h" --- 42,47 ---- Index: config/aarch64/cortex-a57-fma-steering.c =================================================================== *** config/aarch64/cortex-a57-fma-steering.c (revision 225674) --- config/aarch64/cortex-a57-fma-steering.c (working copy) *************** *** 31,37 **** #include "insn-attr.h" #include "recog.h" #include "output.h" - #include "obstack.h" #include "target.h" #include "emit-rtl.h" #include "context.h" --- 31,36 ---- Index: config/alpha/alpha.c =================================================================== *** config/alpha/alpha.c (revision 225674) --- config/alpha/alpha.c (working copy) *************** along with GCC; see the file COPYING3. *** 50,56 **** #include "insn-codes.h" #include "optabs.h" #include "reload.h" - #include "obstack.h" #include "except.h" #include "diagnostic-core.h" #include "tm_p.h" --- 50,55 ---- Index: config/arm/arm.c =================================================================== *** config/arm/arm.c (revision 225674) --- config/arm/arm.c (working copy) *************** *** 34,40 **** #include "stor-layout.h" #include "calls.h" #include "varasm.h" - #include "obstack.h" #include "regs.h" #include "insn-config.h" #include "conditions.h" --- 34,39 ---- Index: config/avr/avr.c =================================================================== *** config/avr/avr.c (revision 225674) --- config/avr/avr.c (working copy) *************** *** 49,55 **** #include "expr.h" #include "c-family/c-common.h" #include "diagnostic-core.h" - #include "obstack.h" #include "recog.h" #include "optabs.h" #include "langhooks.h" --- 49,54 ---- Index: config/darwin.c =================================================================== *** config/darwin.c (revision 225674) --- config/darwin.c (working copy) *************** along with GCC; see the file COPYING3. *** 58,64 **** #include "cfgbuild.h" #include "cfgcleanup.h" #include "debug.h" - #include "obstack.h" #include "internal-fn.h" #include "gimple-fold.h" #include "tree-eh.h" --- 58,63 ---- Index: config/fr30/fr30.c =================================================================== *** config/fr30/fr30.c (revision 225674) --- config/fr30/fr30.c (working copy) *************** *** 46,52 **** #include "emit-rtl.h" #include "stmt.h" #include "expr.h" - #include "obstack.h" #include "except.h" #include "cfgrtl.h" #include "cfganal.h" --- 46,51 ---- Index: config/frv/frv.c =================================================================== *** config/frv/frv.c (revision 225674) --- config/frv/frv.c (working copy) *************** along with GCC; see the file COPYING3. *** 46,52 **** #include "emit-rtl.h" #include "stmt.h" #include "expr.h" - #include "obstack.h" #include "except.h" #include "insn-codes.h" #include "optabs.h" --- 46,51 ---- Index: config/ft32/ft32.c =================================================================== *** config/ft32/ft32.c (revision 225674) --- config/ft32/ft32.c (working copy) *************** *** 36,42 **** #include "recog.h" #include "reload.h" #include "diagnostic-core.h" - #include "obstack.h" #include "alias.h" #include "stor-layout.h" #include "calls.h" --- 36,41 ---- Index: config/m32c/m32c.c =================================================================== *** config/m32c/m32c.c (revision 225674) --- config/m32c/m32c.c (working copy) *************** *** 37,43 **** #include "recog.h" #include "reload.h" #include "diagnostic-core.h" - #include "obstack.h" #include "alias.h" #include "fold-const.h" #include "stor-layout.h" --- 37,42 ---- Index: config/mcore/mcore.c =================================================================== *** config/mcore/mcore.c (revision 225674) --- config/mcore/mcore.c (working copy) *************** *** 39,45 **** #include "output.h" #include "insn-attr.h" #include "flags.h" - #include "obstack.h" #include "expmed.h" #include "dojump.h" #include "explow.h" --- 39,44 ---- Index: config/mep/mep.c =================================================================== *** config/mep/mep.c (revision 225674) --- config/mep/mep.c (working copy) *************** along with GCC; see the file COPYING3. *** 41,47 **** #include "insn-attr.h" #include "flags.h" #include "recog.h" - #include "obstack.h" #include "expmed.h" #include "dojump.h" #include "explow.h" --- 41,46 ---- Index: config/mn10300/mn10300.c =================================================================== *** config/mn10300/mn10300.c (revision 225674) --- config/mn10300/mn10300.c (working copy) *************** *** 46,52 **** #include "expr.h" #include "insn-codes.h" #include "optabs.h" - #include "obstack.h" #include "diagnostic-core.h" #include "tm_p.h" #include "tm-constrs.h" --- 46,51 ---- Index: config/moxie/moxie.c =================================================================== *** config/moxie/moxie.c (revision 225674) --- config/moxie/moxie.c (working copy) *************** *** 36,42 **** #include "recog.h" #include "reload.h" #include "diagnostic-core.h" - #include "obstack.h" #include "alias.h" #include "stor-layout.h" #include "varasm.h" --- 36,41 ---- Index: config/rs6000/rs6000.c =================================================================== *** config/rs6000/rs6000.c (revision 225674) --- config/rs6000/rs6000.c (working copy) *************** *** 33,39 **** #include "insn-attr.h" #include "flags.h" #include "recog.h" - #include "obstack.h" #include "alias.h" #include "fold-const.h" #include "stringpool.h" --- 33,38 ---- Index: config/spu/spu.c =================================================================== *** config/spu/spu.c (revision 225674) --- config/spu/spu.c (working copy) *************** *** 29,35 **** #include "insn-attr.h" #include "flags.h" #include "recog.h" - #include "obstack.h" #include "alias.h" #include "fold-const.h" #include "stringpool.h" --- 29,34 ---- Index: config/stormy16/stormy16.c =================================================================== *** config/stormy16/stormy16.c (revision 225674) --- config/stormy16/stormy16.c (working copy) *************** *** 36,42 **** #include "flags.h" #include "recog.h" #include "diagnostic-core.h" - #include "obstack.h" #include "alias.h" #include "fold-const.h" #include "stringpool.h" --- 36,41 ----