diff mbox

[8/9] Flatten df.h

Message ID 559BD91B.2010300@redhat.com
State New
Headers show

Commit Message

Andrew MacLeod July 7, 2015, 1:50 p.m. UTC
This patch fixes up df.h. It contains 5 headers that will form part of 
backend.has well as hard-reg-set.h which is now going to be included by 
rtl.h.

The other 3 includes are required for df.h to compile, and it makes 
sense to leave them here.

furthermore, resource.h, sched-int.h and valtrack.h all include df.h, 
amongst other things, so flatten them as well. Now only source files 
will include df.h and we can see if it may belong in some other 
aggregator (or even become one) after include reduction.

All the requisite adjustments to source files will be in the final patch.

Bootstraps from scratch on x86_64-unknown-linux-gnu with no new 
regressions. Also compiles all the files in config-list.mk.
diff mbox

Patch


	* resource.h: Flatten hard-reg-set.h and df.h.
	* sched-int.h: Flatten insn-arrt.h and df.h.
	* valtrack.h: flatten bitmap.h, df.h, and rtl.h
	* df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.

Index: resource.h
===================================================================
*** resource.h	(revision 225452)
--- resource.h	(working copy)
*************** along with GCC; see the file COPYING3.
*** 20,28 ****
  #ifndef GCC_RESOURCE_H
  #define GCC_RESOURCE_H
  
- #include "hard-reg-set.h"
- #include "df.h"
- 
  /* Macro to clear all resources.  */
  #define CLEAR_RESOURCE(RES)	\
   do { (RES)->memory = (RES)->volatil = (RES)->cc = 0; \
--- 20,25 ----
Index: sched-int.h
===================================================================
*** sched-int.h	(revision 225452)
--- sched-int.h	(working copy)
*************** along with GCC; see the file COPYING3.
*** 21,32 ****
  #ifndef GCC_SCHED_INT_H
  #define GCC_SCHED_INT_H
  
- #include "insn-attr.h"
- 
  #ifdef INSN_SCHEDULING
  
- #include "df.h"
- 
  /* Identificator of a scheduler pass.  */
  enum sched_pass_id_t { SCHED_PASS_UNKNOWN, SCHED_RGN_PASS, SCHED_EBB_PASS,
  		       SCHED_SMS_PASS, SCHED_SEL_PASS };
--- 21,28 ----
Index: valtrack.h
===================================================================
*** valtrack.h	(revision 225452)
--- valtrack.h	(working copy)
*************** along with GCC; see the file COPYING3.
*** 22,31 ****
  #ifndef GCC_VALTRACK_H
  #define GCC_VALTRACK_H
  
- #include "bitmap.h"
- #include "df.h"
- #include "rtl.h"
- 
  /* Debug uses of dead regs.  */
  
  /* Entry that maps a dead pseudo (REG) used in a debug insns that dies
--- 22,27 ----
Index: df.h
===================================================================
*** df.h	(revision 225452)
--- df.h	(working copy)
*************** along with GCC; see the file COPYING3.
*** 25,37 ****
  #ifndef GCC_DF_H
  #define GCC_DF_H
  
- #include "bitmap.h"
  #include "regset.h"
- #include "sbitmap.h"
- #include "predict.h"
- #include "tm.h"
- #include "hard-reg-set.h"
- #include "function.h"
  #include "alloc-pool.h"
  #include "timevar.h"
  
--- 25,31 ----