This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Remove needless obstack.h includes


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 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]