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] delete #include "tm.h" from a few basic datastructures


The patch below deletes #includes for tm.h and a few other "huh?"
headers from source files for basic GCC datastructures.

Tested on x86_64-unknown-linux-gnu.  OK to commit?

-Nathan

	* bitmap.c: Delete unnecessary includes.
	* ebitmap.c: Likewise.
	* et-forest.c: Likewise.
	* sreal.c: Likewise.
	* statistics.c: Likewise.
	* stringpool.c: Likewise.
	* double-int.c: Add comment for inclusion of tm.h.

diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index f2fd2bd..7f533ed 100644
--- a/gcc/bitmap.c
+++ b/gcc/bitmap.c
@@ -21,9 +21,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
-#include "rtl.h"
-#include "flags.h"
 #include "obstack.h"
 #include "ggc.h"
 #include "bitmap.h"
diff --git a/gcc/double-int.c b/gcc/double-int.c
index f3501a5..9e32b39 100644
--- a/gcc/double-int.c
+++ b/gcc/double-int.c
@@ -20,7 +20,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
+#include "tm.h"			/* For SHIFT_COUNT_TRUNCATED.  */
 #include "tree.h"
 #include "toplev.h"
 
diff --git a/gcc/ebitmap.c b/gcc/ebitmap.c
index cb52468..c57d141 100644
--- a/gcc/ebitmap.c
+++ b/gcc/ebitmap.c
@@ -21,10 +21,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
-#include "rtl.h"
-#include "flags.h"
-#include "obstack.h"
 #include "ebitmap.h"
 
 /* The ebitmap data structure is a sparse bitmap structure that works
diff --git a/gcc/et-forest.c b/gcc/et-forest.c
index 94757c0..b35d063 100644
--- a/gcc/et-forest.c
+++ b/gcc/et-forest.c
@@ -26,7 +26,6 @@ License along with libiberty; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
 #include "et-forest.h"
 #include "alloc-pool.h"
 
diff --git a/gcc/sreal.c b/gcc/sreal.c
index 415a02c..df35ddd 100644
--- a/gcc/sreal.c
+++ b/gcc/sreal.c
@@ -52,7 +52,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
 #include "sreal.h"
 
 static inline void copy (sreal *, sreal *);
diff --git a/gcc/statistics.c b/gcc/statistics.c
index b7bfd45..873bbc3 100644
--- a/gcc/statistics.c
+++ b/gcc/statistics.c
@@ -26,7 +26,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-dump.h"
 #include "statistics.h"
 #include "hashtab.h"
-#include "tm.h"
 #include "function.h"
 
 static int statistics_dump_nr;
diff --git a/gcc/stringpool.c b/gcc/stringpool.c
index 8d45a26..747db17 100644
--- a/gcc/stringpool.c
+++ b/gcc/stringpool.c
@@ -29,7 +29,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
 #include "ggc.h"
 #include "ggc-internal.h"
 #include "tree.h"


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