From f67cc87d4fe90c71cb398067022126409b6f1d69 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Sun, 23 May 2010 17:48:41 +0000 Subject: [PATCH] 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 --- gcc/java/ChangeLog | 24 +++++++++++++++++++++ gcc/java/Make-lang.in | 46 ++++++++++++++++++++-------------------- gcc/java/builtins.c | 4 +++- gcc/java/class.c | 7 +----- gcc/java/decl.c | 6 ------ gcc/java/except.c | 5 +---- gcc/java/expr.c | 6 ------ gcc/java/java-gimplify.c | 2 -- gcc/java/jcf-depend.c | 1 - gcc/java/jcf-dump.c | 2 -- gcc/java/jcf-io.c | 2 -- gcc/java/jcf-parse.c | 2 -- gcc/java/jcf-path.c | 2 +- gcc/java/jcf-reader.c | 1 + gcc/java/jvgenmain.c | 2 +- gcc/java/lang.c | 4 +--- gcc/java/mangle.c | 2 +- gcc/java/mangle_name.c | 1 - gcc/java/resource.c | 6 ------ gcc/java/typeck.c | 1 - gcc/java/verify-glue.c | 1 - 21 files changed, 57 insertions(+), 70 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index efd33aff57b..0bf461933e7 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,27 @@ +2010-05-23 Steven Bosscher + + * 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 * jcf-parse.c: Include bitmap.h. diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in index 39c3a1e901b..26a81bab79a 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 a4f59f9fa7f..a3658058a55 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 -#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 7e9659b1598..83759a56bec 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 81d4d6e60ad..9cb3c75076e 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 84e9e2266b3..380890ef360 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 28853643988..2cce0eef3ca 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 dd75fb995c2..516b61cd28a 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 e18eda3ddcc..c93c73bf915 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 diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c index b29c7e4fb8e..2012f7b0eac 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 28a48bb4504..1c455da2101 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 diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 8524161b499..a85e65343e6 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 7e21770ec51..04764c381d8 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 diff --git a/gcc/java/jcf-reader.c b/gcc/java/jcf-reader.c index ffd1ac5a325..8970104708b 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 b75f46b79c7..93665e9f2ea 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 a704d5d9020..a85f68a3316 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 4630f6d9da0..c6a753fa61d 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 a75f5cad090..8327d7e86de 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 401e6342f0b..96fc0870416 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 79154896a44..e71b109b7e9 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 3dfe608808c..77ef45f725e 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"