aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2010-05-23 17:48:41 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2010-05-23 17:48:41 +0000
commitf67cc87d4fe90c71cb398067022126409b6f1d69 (patch)
tree317685d7957816052fbd553744ee649c6c8d3029 /gcc
parent7274feea190b82eacf5b4203a5a0de28c7e92f07 (diff)
downloadgcc-f67cc87d4fe90c71cb398067022126409b6f1d69.zip
gcc-f67cc87d4fe90c71cb398067022126409b6f1d69.tar.gz
gcc-f67cc87d4fe90c71cb398067022126409b6f1d69.tar.bz2
java-gimplify.c: Do not include tm.h, toplev.h.
* java-gimplify.c: Do not include tm.h, toplev.h. * typeck.c: Do not include tm.h. * mangle_name.c: Do not include tm.h. * jcf-dump.c: Do not include tm.h, ggc.h. * class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h. * decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h, and timevar.h. * jcf-parse.c: Do not include tm.h and tm_p.h. * resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h, target.h, and expr.h. * except.c: Do not include tm.h, rtl.h, function.h. * builtins.c: Do not include convert.h. Explain why RTL headers have to be included here. * verify-glue.c: Do not include tm.h. * jcf-depend.c: Do not include tm.h. * jcf-reader.c: Include ggc.h. * jcf-io.c: Do not include tm.h, toplev.h. * expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h, gimple.h. * lang.c: Do not include rtl.h, expr.h. * Make-lang.in: Update dependencies. From-SVN: r159764
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog24
-rw-r--r--gcc/java/Make-lang.in46
-rw-r--r--gcc/java/builtins.c4
-rw-r--r--gcc/java/class.c7
-rw-r--r--gcc/java/decl.c6
-rw-r--r--gcc/java/except.c5
-rw-r--r--gcc/java/expr.c6
-rw-r--r--gcc/java/java-gimplify.c2
-rw-r--r--gcc/java/jcf-depend.c1
-rw-r--r--gcc/java/jcf-dump.c2
-rw-r--r--gcc/java/jcf-io.c2
-rw-r--r--gcc/java/jcf-parse.c2
-rw-r--r--gcc/java/jcf-path.c2
-rw-r--r--gcc/java/jcf-reader.c1
-rw-r--r--gcc/java/jvgenmain.c2
-rw-r--r--gcc/java/lang.c4
-rw-r--r--gcc/java/mangle.c2
-rw-r--r--gcc/java/mangle_name.c1
-rw-r--r--gcc/java/resource.c6
-rw-r--r--gcc/java/typeck.c1
-rw-r--r--gcc/java/verify-glue.c1
21 files changed, 57 insertions, 70 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index efd33af..0bf4619 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,5 +1,29 @@
2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
+ * java-gimplify.c: Do not include tm.h, toplev.h.
+ * typeck.c: Do not include tm.h.
+ * mangle_name.c: Do not include tm.h.
+ * jcf-dump.c: Do not include tm.h, ggc.h.
+ * class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h.
+ * decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h,
+ and timevar.h.
+ * jcf-parse.c: Do not include tm.h and tm_p.h.
+ * resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h,
+ target.h, and expr.h.
+ * except.c: Do not include tm.h, rtl.h, function.h.
+ * builtins.c: Do not include convert.h. Explain why RTL headers
+ have to be included here.
+ * verify-glue.c: Do not include tm.h.
+ * jcf-depend.c: Do not include tm.h.
+ * jcf-reader.c: Include ggc.h.
+ * jcf-io.c: Do not include tm.h, toplev.h.
+ * expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h,
+ gimple.h.
+ * lang.c: Do not include rtl.h, expr.h.
+ * Make-lang.in: Update dependencies.
+
+2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
+
* jcf-parse.c: Include bitmap.h.
* Make-lang.in: Update dependencies.
diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in
index 39c3a1e..26a81ba 100644
--- a/gcc/java/Make-lang.in
+++ b/gcc/java/Make-lang.in
@@ -267,7 +267,7 @@ java.stagefeedback: stageprofile-start
# .o:.h dependencies.
JAVA_TREE_H = $(TREE_H) $(HASHTAB_H) java/java-tree.h
-java/jcf-dump.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(JAVA_TREE_H) \
+java/jcf-dump.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(JAVA_TREE_H) \
java/jcf-dump.c java/jcf-reader.c java/jcf.h java/javaop.h java/javaop.def \
version.h $(GGC_H) intl.h java/zipfile.h
java/boehm.o: java/boehm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
@@ -276,60 +276,60 @@ java/builtins.o: java/builtins.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(JAVA_TREE_H) $(GGC_H) $(FLAGS_H) $(OPTABS_H) $(EXPR_H) langhooks.h \
gt-java-builtins.h
java/class.o: java/class.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
- $(JAVA_TREE_H) $(RTL_H) java/jcf.h java/parse.h toplev.h output.h $(GGC_H) \
- $(TARGET_H) $(FUNCTION_H) gt-java-class.h $(CGRAPH_H) $(TM_P_H)
+ $(JAVA_TREE_H) java/jcf.h java/parse.h toplev.h output.h $(GGC_H) \
+ $(FUNCTION_H) gt-java-class.h
java/constants.o: java/constants.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) gt-java-constants.h
-java/decl.o: java/decl.c $(CONFIG_H) $(JAVA_TREE_H) $(RTL_H) java/jcf.h \
- toplev.h $(FLAGS_H) $(SYSTEM_H) coretypes.h $(TM_H) $(FUNCTION_H) $(EXPR_H) \
- libfuncs.h except.h java/java-except.h $(GGC_H) $(REAL_H) gt-java-decl.h \
+java/decl.o: java/decl.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
+ toplev.h $(FLAGS_H) $(SYSTEM_H) coretypes.h $(TM_H) \
+ libfuncs.h java/java-except.h $(GGC_H) $(REAL_H) gt-java-decl.h \
$(TARGET_H) $(CGRAPH_H) langhooks.h
java/except.o: java/except.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h $(REAL_H) \
- $(RTL_H) java/javaop.h java/java-opcodes.h except.h java/java-except.h \
- toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(FUNCTION_H)
+ java/javaop.h java/java-opcodes.h except.h java/java-except.h \
+ toplev.h $(SYSTEM_H) coretypes.h
java/expr.o: java/expr.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h $(REAL_H) \
- $(RTL_H) $(EXPR_H) java/javaop.h java/java-opcodes.h except.h \
+ java/javaop.h java/java-opcodes.h \
java/java-except.h java/java-except.h java/parse.h toplev.h \
$(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) gt-java-expr.h $(TARGET_H) \
- tree-iterator.h $(TM_P_H)
+ tree-iterator.h
java/jcf-depend.o: java/jcf-depend.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
- $(TM_H) java/jcf.h
+ java/jcf.h
java/jcf-parse.o: java/jcf-parse.c $(CONFIG_H) $(JAVA_TREE_H) $(FLAGS_H) \
- input.h java/java-except.h $(SYSTEM_H) coretypes.h $(TM_H) toplev.h \
- java/parse.h $(GGC_H) debug.h $(REAL_H) gt-java-jcf-parse.h $(TM_P_H) \
+ input.h java/java-except.h $(SYSTEM_H) coretypes.h toplev.h \
+ java/parse.h $(GGC_H) debug.h $(REAL_H) gt-java-jcf-parse.h \
java/jcf-reader.c java/zipfile.h java/jcf.h $(BITMAP_H)
java/jvgenmain.o: java/jvgenmain.c $(CONFIG_H) $(JAVA_TREE_H) $(SYSTEM_H) \
coretypes.h $(TM_H) intl.h
java/lang.o: java/lang.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h input.h \
- toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(EXPR_H) $(DIAGNOSTIC_H) \
+ toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(DIAGNOSTIC_H) \
langhooks.h $(LANGHOOKS_DEF_H) gt-java-lang.h opts.h options.h $(EXCEPT_H)
java/mangle.o: java/mangle.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) $(SYSTEM_H) \
coretypes.h $(TM_H) toplev.h $(GGC_H) gt-java-mangle.h $(LANGHOOKS_DEF_H)
java/mangle_name.o: java/mangle_name.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) \
- $(SYSTEM_H) coretypes.h $(TM_H) toplev.h $(GGC_H)
-java/resource.o: java/resource.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
- $(JAVA_TREE_H) $(RTL_H) java/jcf.h java/parse.h toplev.h output.h $(GGC_H) \
- $(TARGET_H) $(FUNCTION_H) gt-java-resource.h $(EXPR_H)
+ $(SYSTEM_H) coretypes.h toplev.h $(GGC_H)
+java/resource.o: java/resource.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
+ $(JAVA_TREE_H) java/jcf.h java/parse.h toplev.h output.h $(GGC_H) \
+ $(TARGET_H) $(FUNCTION_H) gt-java-resource.h
java/typeck.o: java/typeck.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
- toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) $(REAL_H)
+ toplev.h $(SYSTEM_H) coretypes.h $(GGC_H) $(REAL_H)
java/win32-host.o: java/win32-host.c $(CONFIG_H) $(SYSTEM_H) coretypes.h java/jcf.h
java/verify-glue.o: java/verify-glue.c $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) \
- coretypes.h $(TM_H) java/verify.h toplev.h
+ coretypes.h java/verify.h toplev.h
java/verify-impl.o: java/verify-impl.c $(CONFIG_H) java/verify.h $(SYSTEM_H) \
coretypes.h java/jcf.h $(JAVA_TREE_H)
java/zextract.o: java/zextract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
java/zipfile.h
java/java-gimplify.o: java/java-gimplify.c $(CONFIG_H) $(SYSTEM_H) \
- coretypes.h $(TM_H) $(JAVA_TREE_H) $(GIMPLE_H) toplev.h
+ coretypes.h $(JAVA_TREE_H) $(GIMPLE_H)
# jcf-io.o needs $(ZLIBINC) added to cflags.
-java/jcf-io.o: java/jcf-io.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
+java/jcf-io.o: java/jcf-io.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(JAVA_TREE_H) java/zipfile.h
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(ZLIBINC) $(srcdir)/java/jcf-io.c $(OUTPUT_OPTION)
# jcf-path.o needs a -D.
-java/jcf-path.o: java/jcf-path.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
+java/jcf-path.o: java/jcf-path.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
java/jcf.h
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DLIBGCJ_ZIP_FILE='"$(datadir)/java/libgcj-$(version).jar"' \
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c
index a4f59f9..a365805 100644
--- a/gcc/java/builtins.c
+++ b/gcc/java/builtins.c
@@ -34,7 +34,9 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "langhooks.h"
#include "java-tree.h"
#include <stdarg.h>
-#include "convert.h"
+
+/* FIXME: All these headers are necessary for sync_compare_and_swap.
+ Front ends should never have to look at that. */
#include "rtl.h"
#include "insn-codes.h"
#include "expr.h"
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 7e9659b..83759a5 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -27,9 +27,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
-#include "rtl.h"
#include "flags.h"
#include "java-tree.h"
#include "jcf.h"
@@ -38,15 +36,12 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "output.h"
#include "parse.h"
#include "function.h"
-#include "tm_p.h"
#include "ggc.h"
#include "stdio.h"
-#include "target.h"
-#include "except.h"
#include "cgraph.h"
#include "tree-iterator.h"
-#include "cgraph.h"
#include "vecprim.h"
+#include "tm.h" /* FIXME: For gcc_obstack_init from defaults.h. */
/* DOS brain-damage */
#ifndef O_BINARY
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 81d4d6e..9cb3c75 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -28,20 +28,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
-#include "rtl.h"
#include "toplev.h"
#include "flags.h"
#include "java-tree.h"
#include "jcf.h"
-#include "function.h"
-#include "expr.h"
#include "libfuncs.h"
-#include "except.h"
#include "java-except.h"
#include "ggc.h"
-#include "timevar.h"
#include "cgraph.h"
#include "tree-inline.h"
#include "target.h"
diff --git a/gcc/java/except.c b/gcc/java/except.c
index 84e9e22..380890e 100644
--- a/gcc/java/except.c
+++ b/gcc/java/except.c
@@ -25,15 +25,12 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
-#include "rtl.h"
#include "java-tree.h"
#include "javaop.h"
#include "java-opcodes.h"
#include "jcf.h"
-#include "function.h"
-#include "except.h"
+#include "except.h" /* for doing_eh. */
#include "java-except.h"
#include "toplev.h"
#include "tree-iterator.h"
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 2885364..2cce0ee 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -27,11 +27,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
-#include "rtl.h"
#include "flags.h"
-#include "expr.h"
#include "java-tree.h"
#include "javaop.h"
#include "java-opcodes.h"
@@ -39,11 +36,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "java-except.h"
#include "parse.h"
#include "toplev.h"
-#include "except.h"
-#include "tm_p.h"
#include "ggc.h"
#include "tree-iterator.h"
-#include "gimple.h"
#include "target.h"
static void flush_quick_stack (void);
diff --git a/gcc/java/java-gimplify.c b/gcc/java/java-gimplify.c
index dd75fb9..516b61c 100644
--- a/gcc/java/java-gimplify.c
+++ b/gcc/java/java-gimplify.c
@@ -25,12 +25,10 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
#include "java-tree.h"
#include "tree-dump.h"
#include "gimple.h"
-#include "toplev.h"
static tree java_gimplify_block (tree);
static enum gimplify_status java_gimplify_modify_expr (tree *);
diff --git a/gcc/java/jcf-depend.c b/gcc/java/jcf-depend.c
index e18eda3..c93c73b 100644
--- a/gcc/java/jcf-depend.c
+++ b/gcc/java/jcf-depend.c
@@ -28,7 +28,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "mkdeps.h"
#include <assert.h>
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c
index b29c7e4..2012f7b 100644
--- a/gcc/java/jcf-dump.c
+++ b/gcc/java/jcf-dump.c
@@ -51,8 +51,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "ggc.h"
#include "intl.h"
#include "jcf.h"
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index 28a48bb..1c455da 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -27,11 +27,9 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "jcf.h"
#include "tree.h"
-#include "toplev.h"
#include "java-tree.h"
#include "hashtab.h"
#include <dirent.h>
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 8524161..a85e653 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -27,7 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
#include "obstack.h"
#include "flags.h"
@@ -40,7 +39,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "ggc.h"
#include "debug.h"
#include "assert.h"
-#include "tm_p.h"
#include "cgraph.h"
#include "vecprim.h"
#include "bitmap.h"
diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c
index 7e21770..04764c3 100644
--- a/gcc/java/jcf-path.c
+++ b/gcc/java/jcf-path.c
@@ -27,7 +27,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
+#include "tm.h" /* FIXME: For GET_ENVIRONMENT from defaults.h. */
#include <dirent.h>
diff --git a/gcc/java/jcf-reader.c b/gcc/java/jcf-reader.c
index ffd1ac5..8970104 100644
--- a/gcc/java/jcf-reader.c
+++ b/gcc/java/jcf-reader.c
@@ -24,6 +24,7 @@ Java and all Java-based marks are trademarks or registered trademarks
of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc. */
+#include "ggc.h"
#include "jcf.h"
#include "zipfile.h"
diff --git a/gcc/java/jvgenmain.c b/gcc/java/jvgenmain.c
index b75f46b..93665e9 100644
--- a/gcc/java/jvgenmain.c
+++ b/gcc/java/jvgenmain.c
@@ -27,12 +27,12 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "obstack.h"
#include "jcf.h"
#include "tree.h"
#include "java-tree.h"
#include "intl.h"
+#include "tm.h" /* FIXME: For gcc_obstack_init from defaults.h. */
static char * do_mangle_classname (const char *string);
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index a704d5d..a85f68a 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -30,8 +30,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "tm.h"
#include "tree.h"
#include "input.h"
-#include "rtl.h"
-#include "expr.h"
#include "java-tree.h"
#include "jcf.h"
#include "toplev.h"
@@ -45,7 +43,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "tree-dump.h"
#include "opts.h"
#include "options.h"
-#include "except.h"
+#include "except.h" /* For USING_SJLJ_EXCEPTIONS. */
static bool java_init (void);
static void java_finish (void);
diff --git a/gcc/java/mangle.c b/gcc/java/mangle.c
index 4630f6d..c6a753f 100644
--- a/gcc/java/mangle.c
+++ b/gcc/java/mangle.c
@@ -28,7 +28,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "jcf.h"
#include "tree.h"
#include "java-tree.h"
@@ -36,6 +35,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "toplev.h"
#include "ggc.h"
#include "langhooks-def.h"
+#include "tm.h" /* FIXME: For gcc_obstack_init from defaults.h. */
static void mangle_class_field (tree);
static void mangle_vtable (tree);
diff --git a/gcc/java/mangle_name.c b/gcc/java/mangle_name.c
index a75f5ca..8327d7e 100644
--- a/gcc/java/mangle_name.c
+++ b/gcc/java/mangle_name.c
@@ -27,7 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "jcf.h"
#include "tree.h"
#include "java-tree.h"
diff --git a/gcc/java/resource.c b/gcc/java/resource.c
index 401e634..96fc087 100644
--- a/gcc/java/resource.c
+++ b/gcc/java/resource.c
@@ -25,21 +25,15 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
-#include "rtl.h"
-#include "flags.h"
#include "java-tree.h"
#include "jcf.h"
-#include "obstack.h"
#include "toplev.h"
#include "output.h"
#include "parse.h"
#include "function.h"
#include "ggc.h"
#include "stdio.h"
-#include "target.h"
-#include "expr.h"
#include "tree-iterator.h"
#include "cgraph.h"
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c
index 7915489..e71b109 100644
--- a/gcc/java/typeck.c
+++ b/gcc/java/typeck.c
@@ -27,7 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
#include "obstack.h"
#include "flags.h"
diff --git a/gcc/java/verify-glue.c b/gcc/java/verify-glue.c
index 3dfe608..77ef45f 100644
--- a/gcc/java/verify-glue.c
+++ b/gcc/java/verify-glue.c
@@ -27,7 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "tree.h"
#include "parse.h"